`? 原文显示 “` thinking`” 前面有空格? 在中文中 “、 ` thinking`” 表示 token 是 ` thinking`? 但通常 DeepSeek 是 `<|begin▁of▁thinking|>`? 不补充。保留原文形式 `

    。标题、摘要、正文。正文可包含换行、markdown。需要确保正文中没有

    其他? 只两个分隔符。OK.

    Need craft article. Let’s draft.

    Title: Special Tokens in LLM Inputs: Token Pollution, Boundary Confusion, and Abnormal Output

    Summary: This article examines why manually typing sequences such as <think can cause an LLM to produce unrelated or repetitive output. It explains the distinction between system-injected special tokens and user-entered ordinary text, describes how token pollution during training can blur instruction boundaries, analyzes overfitting-driven “thinking mode” activation and unconstrained generation, and summarizes common mitigation practices including data cleaning, token alignment, targeted alignment data, and runtime input filtering.

    Need ensure abstract not copy正文开头. Good.

    正文 structure:

    • Introduction / Phenomenon and clarifying misconceptions: Is it cross-talk or a technical flaw?
      In recent LLM use and local deployment tests with open weights, developers observed… when user deliberately enters character combinations such as <think, model may not answer logically but output long unrelated text, appear to recite pretraining data, or look like entering another user’s conversation. Black-box anomaly invites speculation: cache hit or unauthorized reading of other users’ history. From rigorous technical view, this is an evidence-free human hallucination. LLM output is probabilistic generation based on current context. So-called cross-talk is essentially classic safety and engineering issue in token parsing and context boundary recognition. Not rare, not vendor-specific; teams need regular data governance and engineering.

    • Core technical analysis: What is token pollution and boundary confusion?
      Understand tokenizer and distinction between system instructions and user input in model’s view.

    1. Special tokens vs ordinary tokens. Token minimal unit. Normal input split into ordinary token IDs. To control behavior (thinking mode, roles), framework injects special tokens such as <|im_start|> and thinking. System-injected special tokens mapped to independent unique token ID (assume [114514]). If user manually types <think, tokenizer treats as ordinary text and splits into multiple regular token IDs (e.g. [1919, 810]). Ideally true thinking single token and user <think multi-token sequence are different; model can distinguish.
    2. Token pollution during training. Root cause: token pollution in training, similar to XML escape attack in traditional web security. If during pretraining or SFT data engineers fail to process strings containing special markers as true single tokens, but split as ordinary strings and feed into model, model memorizes wrong mapping at weight level. Fatal consequence: when user constructs polluted token sequence via normal input, from model token stream perspective it is indistinguishable from system-injected instruction. Model loses ability to tell source.
    • Underlying logic of abnormal behavior: from “empty input” to “dreaming/reciting”
      When model cannot distinguish instruction source, behavior uncontrollable. Understand:
    1. Overfitting and forced activation of thinking mode. Model has seen many system-assistant dialogues beginning with special tokens; when user input simulates same token sequence, model mistakenly believes in specific instruction context. Even without real system instruction, model forcibly enters thinking mode and seeks next most likely token internally.
    2. “Dreaming” and “reciting” generated content. Without effective input constraint, model faces pseudo-context of empty input. Generation no longer based on user’s real need but pretraining probability distribution. Model “dreams” along, output general corpus, training data fragments, irrelevant long text. This explains recitation and same固化 behavior after repeated tests.
    • General prevention and governance: improving robustness
      No need rebuild architecture; normalize data engineering and alignment training. Best practices:
    1. Strict data cleaning and token alignment. Ensure all system-level control tokens (thinking, <|im_start|>, <|begin_of_sequence|>, etc.) are correctly mapped by tokenizer to special token IDs before feeding model; do not split as ordinary strings. Key to cut pollution at source.
    2. Build targeted alignment datasets (RLHF/DPO). Beyond cleaning historical data, build defense in RLHF or DPO. Construct over one hundred user input examples containing malicious or unintentional special token sequences, with expected outputs explicitly requiring model to recognize invalid input and give friendly refusal or guidance. Teach model to stay clear and refuse abnormal generation when encountering pseudo-system tokens from user.
    3. Runtime input filtering and escaping. At deployment, add protection before user input reaches model. Use regex matching or character escaping to intercept common special control tokens, ensure they enter token stream only as ordinary text, eliminating possibility of constructing attack sequences.
    • Conclusion
      The “dreaming” phenomenon caused by special characters is mysterious-looking but a technical collision between data engineering and tokenization under specific conditions. Developers and enterprise users should discard curiosity and return to technical fundamentals. With rigorous token boundary management, clean data cleaning pipelines, effective alignment training, can eliminate token pollution and make LLMs more robust/reliable in complex real interactions.

    Need ensure no “cache hit” maybe okay. “open-weight local deployment testing” good. “human hallucination” maybe “human hallucination” weird, original “人类幻觉” could translate “human hallucination” or “anthropomorphic illusion”. Use “human hallucination” maybe. Need not overdo. Need concise but consistent. Need title summary正文. Use markdown headings. Need maybe “###” etc.

    Need final only. Need no extra. Let’s produce. Ensure exactly two