Why `

    This article examines a phenomenon in which typing only `<think` into an open-source large model can cause it to output seemingly unrelated Q&A content. It rules out cache hits and server-side data leaks in a local, no-cache environment, and traces the issue to tokenizer handling and training-data preprocessing. The article explains how special tokens differ from ordinary text tokens, why incorrectly segmented control markers can be learned as normal token sequences, and why incomplete prefixes such as `<think` can still trigger the behavior. It also covers related contamination involving dialogue control markers, steps for checking whether a system is affected, and fixes across data preprocessing, alignment, inference checks, and tokenizer configuration.

    1. Symptom and Misconceptions

    A developer ran a simple test on an open-source large model: by typing only the characters <think into the chat box, the model immediately produced a piece of Q&A content that appeared to come from somewhere else, as if it were reciting a history that did not belong to the current conversation. More than ten repeated tests produced largely consistent results.

    It is easy to interpret this phenomenon as “the cache pulled in someone else’s session” or “the server leaked history records.” However, the behavior can still be triggered when reproducing with open-source weights in a local environment without caching or system prompts. Therefore, cache hits and server-side data leakage can be ruled out. The problem lies in the model itself, and more specifically, in how the training data was processed.

    One point should be made first: the phenomenon in this article comes from community feedback and personal reproduction. The article does not provide a confirmed model version, the number of test samples, or a reproduction rate. Readers should validate the behavior on the model and tokenizer they use, and should not treat this description as a universal conclusion for all models.

    2. How a Tokenizer Segments Text

    Large language models do not process strings directly. A tokenizer first splits text into a number of tokens, then maps each token to an integer ID. What the model ultimately processes is a sequence of IDs.

    A vocabulary usually contains special tokens, such as a thinking-start marker and dialogue role boundary markers. Each of them corresponds to a unique ID and does not correspond to any ordinary character combination. When the system assembles a prompt, it inserts the IDs of these special tokens directly into the sequence. Text typed by the user in the input box goes through the ordinary tokenization process and produces only ordinary token IDs.

    The table below illustrates the difference. The IDs shown are only for demonstration and are not real vocabulary IDs:

    Source Surface string Token sequence (illustrative)
    System injection <think> [SPECIAL_THINK_ID], 1 special token
    User input <think [ordinary token sequence], multiple ordinary tokens

    In a correctly implemented system, user input cannot directly produce special token IDs. The tokenizer treats user text as ordinary characters, so the two channels are isolated at the ID level. This isolation is similar to the idea behind parameterized queries that prevent SQL injection: the data channel and the instruction channel are separated, so user data cannot impersonate instructions.

    3. Hidden Problems Introduced During Training

    Whether the isolation mechanism works depends on whether the training data maintains the same isolation. If the training corpus did not replace <think> with a special token during preprocessing, but instead segmented it as ordinary text, then what the model learned as the “thinking-start marker” is actually an ordinary token sequence.

    This kind of error is usually not noticed during training. As long as the input and output sides of the training samples use the same segmentation method, the loss function still decreases, and ordinary evaluation metrics do not show anomalies. Internally, the model only learns that “after a certain ordinary token sequence, a piece of thinking content or a certain type of Q&A text often follows.”

    The problem is exposed during inference. When the text entered by the user is tokenized and happens to produce the same or a very similar ID sequence to the ordinary token sequence seen during training, the model continues generating along the pattern learned in training. This generated content comes from the training corpus distribution and looks like someone else’s conversation record.

    Therefore, the mechanism behind this phenomenon can be summarized as follows: the model has not accessed other users’ data. Instead, it is triggered by an input that resembles a control marker and samples content from the training distribution. The term “cross-talk” in the article title is only a description of the surface phenomenon.

    4. Why an Incomplete <think Can Also Trigger It

    The key to this issue is that the model judges based on token sequences, not on whether a string is complete.

    If the training data contains the ordinary token sequence produced by segmenting <think>, then when a user enters the complete string <think>, the tokenization result may also match that sequence. <think, without the closing >, may tokenize into a prefix of that sequence. The model has already formed a strong association with this prefix during training, so when it sees the prefix, it starts completing the subsequent pattern.

    Note that this explanation depends on the specific tokenizer and training data. Whether the behavior can be triggered depends on three points: whether the polluted segmented sequence exists in the training samples; whether the user input, after tokenization, matches that sequence or its prefix; and how strong the model’s association with that pattern is. If any one of these is missing, the phenomenon may not appear. If someone finds that <think does not trigger the behavior on their own model but other forms do, this likewise shows that the trigger condition is a specific token match, not a property of a particular string itself.

    In addition, the article’s mention that “the model enters thinking mode by itself when thinking mode is not enabled” can be explained by the same mechanism: some input features have established an incorrect strong association with “should think,” and when similar token fragments appear in the input, the model may enter that mode.

    5. Similar Contamination and Scope of Impact

    In practice, contamination is usually not limited to a single marker. If dialogue structure control symbols such as <|im_start|> and <|begin_of_sequence|> are also incorrectly segmented during training, the same problem can occur. In such cases, a user may construct text similar to role boundaries and cause the model to misjudge the source of a message, for example by treating user text as a system message or treating a forged multi-turn dialogue as real history.

    The impact of this type of issue should be viewed objectively. The content generated by the model is sampled from the training distribution; it does not read other users’ sessions in real time. A malicious user may use this to interfere with output or bypass some behavior constraints, but from this mechanism itself, it is not possible to directly obtain other users’ real data.

    However, for teams using large models in production environments, this is still an issue that needs to be fixed. It breaks the basic assumption that “system instructions cannot be forged by users,” and when output anomalies occur, troubleshooting costs are high because the phenomenon appears only under specific inputs while training-stage metrics look completely normal.

    6. How to Determine Whether a System Is Affected

    The following steps can be used to check your own system.

    Step 1: Build a test set. The test set should include various reserved control strings and their variants, including full forms, prefixes that keep only the beginning, forms with different casing or spaces, and common text adjacent to the control strings.

    Step 2: Compare tokenization results. Tokenize the training samples and check whether control markers are mapped to special token IDs rather than ordinary token sequences. If the same marker is segmented inconsistently across samples, it indicates a problem in preprocessing.

    Step 3: Run the test set in the inference environment and record whether the output contains content unrelated to the question or whether control markers are generated. Compare the results before and after the fix to confirm whether the problem disappears.

    Step 4: Add these test cases to regression tests. Rerun them whenever the tokenizer is changed, the vocabulary is adjusted, or the training data is updated, to prevent the problem from recurring.

    7. Fixes

    Fixes need to address three layers at the same time: data, inference, and tokenizer configuration.

    7.1 Data Layer

    In the data preprocessing pipeline, replace all system control markers with the corresponding special token IDs before tokenization. This way, the control markers in the training data will remain consistent with the markers injected by the system during inference.

    Scan the full training corpus once to find control marker sequences that were incorrectly segmented, and normalize them. During the scan, check both the input side and the output side to avoid fixing only one side.

    Perform a static check on the token sequences of the training samples, confirm that the IDs corresponding to special markers match the reserved IDs in the vocabulary, and retain the check results as a data quality metric.

    7.2 Alignment Layer

    If full retraining is too costly, a small number of alignment samples can first be used to try to suppress the abnormal behavior. The input side of such samples is a user-forged control string, and the expected output is that the model recognizes the input as invalid and gives a neutral response.

    The number of samples required depends on the model size and data distribution; this article does not give a specific number. After the fix, evaluate with an independent test set to confirm that the abnormal behavior has indeed decreased and that normal dialogue ability has not been damaged.

    7.3 Inference Layer

    Two things need to be done at the inference entry point: detect whether the input contains reserved control strings, and validate the tokenization result. The code below is illustrative, is incomplete, and is only used to explain the checking idea:

    1. # Illustrative code, incomplete; only shows the checking idea
    2. RESERVED_STRINGS = ["<think", "<think>", "<|im_start|>", "<|im_end|>", "<|begin_of_sequence|>"]
    3. def contains_reserved(text: str) -> bool:
    4. # String-level check: covers full strings and prefixes, blocking inputs that may trigger polluted sequences
    5. return any(s in text for s in RESERVED_STRINGS)
    6. def handle_user_input(text: str) -> str:
    7. if contains_reserved(text):
    8. # Reject according to policy, or escape and process, and return a neutral response
    9. raise ValueError("Input contains a reserved control string")
    10. ids = tokenizer.encode(text)
    11. # ID-level validation: can only catch special IDs mistakenly produced by the tokenizer;
    12. # cannot catch polluted sequences that training incorrectly split into ordinary tokens, so it cannot be relied on alone
    13. assert not any(i in SPECIAL_TOKEN_IDS for i in ids)
    14. return text

    It should be specifically noted that the ID-level validation in this code can only detect special IDs output by the tokenizer. Polluted sequences that were split into ordinary tokens during training will not trigger this check. Therefore, string-level detection and training data cleaning are necessary; ID validation cannot be kept alone.

    In addition, the output side should also be monitored. When the model generates control markers at abnormal positions, or when long passages unrelated to the current conversation appear in the output, an alert should be triggered and the original input logged for later analysis.

    7.4 Tokenizer Configuration Layer

    Special tokens should use forms that cannot be constructed through ordinary text input. Specific practices include: preventing reserved markers from entering the user input channel as printable strings; hard-coding these markers in the tokenizer so that they never match user input; using exactly the same tokenizer configuration for training and inference; and placing the configuration under version management.

    When new special tokens are added, data cleaning rules and safety test cases should be updated at the same time. Otherwise, the new markers are very likely to have the same segmentation error in the training data, and the problem will only be exposed after launch.

    8. Summary

    Entering an incomplete <think and triggering abnormal output may look on the surface like the model is saying something unrelated. The actual root cause is a segmentation error in the training data during tokenization. This error causes an ordinary token sequence to learn the meaning of a control marker. During inference, user input only needs to match this sequence to be treated as a trigger condition.

    Fixes should simultaneously cover training data cleaning, inference entry detection, tokenizer configuration pinning, and regression testing. Relying only on ID-level validation or a small amount of alignment training cannot fundamentally solve the problem.