Stateless yet not forgetful: implicit memory in LLMs as a hidden channelStateless Yet Not Forgetful: Implicit Memory as a Hidden Channel in LLMs
The authors induced time bombs: Llama 3.1-8B correct activation 98.4%, false activation 1.3% (Table II).
The attacker either controls only the system prompt (weights unchanged), or poisons and fine-tunes then releases the model, and cannot change downstream inference or system prompts. The premise is that its own outputs will be re-ingested; re-ingestion can be partial, stale, or transformed. The goal is to accumulate hidden state across independent interactions, and activate the time bomb when conditions are met. The victim system is an LLM without an explicit memory module.
- Deployments often treat LLMs as stateless across requests, but code, email, customer service, education, and RAG feed model outputs back in as inputs. The authors state models can encode state into these outputs and recover it on re-ingestion, thereby carrying information across requests without explicit memory modules, and supporting backdoors that require multiple interactions to trigger.
- The capability is divided into induced and organic. Induced uses system prompts or fine-tuning to place state in zero-width characters or semantic features; time bombs use 8 financial distress signals with bitwise OR, emitting the payload only when all eight bits are set. Organic is discussed only prospectively; the authors do not claim it occurs in current models.
- Under prompts, the authors state reasoning models have higher exact match and lower false activation (Table I). Fine-tuning 6 open-source models gives exact match of 77.8%–82.4% and false activation below 2% (Table II). Zero-width encoding can be removed by cleaning and paraphrasing; semantic encoding after paraphrasing drops all-three-correct from 98% to 95%.
- The authors do not list limitations separately. Section IX proposes benchmarks, detection forensics, CoT causal investigation, continuous safety evaluation, and model organisms. Experiments include 8 prompted models and 6 fine-tuned models, plus cleaning and paraphrase; the paper does not report human agreement or number of repetitions.
- Evaluated models
- GPT-4oGPT-4.1GPT-5.2 (none)o3-minio4-miniGPT-5.2 (medium)GPT-5.2 (high)GPT-oss-120bQwen 3-0.6BQwen 3-4BQwen 2.5-7B-InstructLlama 3.2-3B-InstructLlama 3.1-8B-InstructGemma 3-4B-IT
- Benchmarks
- time-bomb datasetAlpaca
- Metrics
- Exact-match accuracyBit accuracyCorrect activation rateFalse activation rate
Researchers from Microsoft MSRC and other institutions propose the concept of implicit memory in LLMs, referring to the model encoding state into its own outputs and recovering it when those outputs are fed back as input, thereby maintaining state across seemingly independent interactions. Based on this, the authors propose a class of time bomb backdoors whose trigger conditions must accumulate gradually across multiple interactions rather than being triggered by a single input, and provide two proof-of-concept implementations via prompting and fine-tuning. In the prompting setting, reasoning models achieve significantly higher exact match accuracy on bit setting and propagation than non-reasoning models, with non-reasoning models having a false activation rate of at least 13.2%; fine-tuning raises exact match accuracy on bit setting to 77.8%–82.4%, with false activation rates below 2% and changes in perplexity and average loss on benign tasks below 1%. The paper also notes that zero-width character encoding is completely eliminated by cleaning and rewriting defenses, while semantic-level encoding is more robust but harder for models to generate reliably, and lists risks including covert agent-to-agent communication, benchmark contamination, targeted manipulation, and training data poisoning.
Why it was selectedThe paper proposes the concept of implicit memory and provides accuracy and false activation data for a time bomb backdoor under both prompt and fine-tuning implantation methods, which can be used to assess the new risks posed by cross-session state.
Paper analysis
What problem does this paper attempt to solve?
The authors say an LLM without explicit memory can still carry state across sessions via output re-ingestion, and thereby implement a time-bomb backdoor.
LLMs without explicit memory modules can still encode state into their own outputs and recover it when those outputs become inputs again, thereby carrying information across independent requests.
- Scenarios: The authors state code, email, customer service, content pipelines, education, and RAG feed model outputs back into the model, not necessarily as explicit conversation history. The overall proportion of re-ingestion the authors state is difficult to quantify; cited external statistics include 74.2% of 900,000 new web pages in April 2025 containing AI-generated content.
- Gap in existing practice: Explicit memory relies on conversation history, RAG, or dedicated memory architectures, with persistence treated as a system property. Conventional jailbreaks target the alignment boundary of a single interaction, and traditional backdoors are usually triggered by a single input pattern. The authors state time-based backdoors require reconstructing interaction history, making single-trigger tests less likely to hit them.
- Core observation: When re-ingestion exists, output is the memory substrate, requiring neither cross-account memory nor weight changes. The authors state this channel is append-only and cannot be reliably deleted, because what is re-ingested is not necessarily the latest output.
- What is proposed: Define implicit memory, distinguish induced from organic, use time bombs as a case study, and discuss encoding trade-offs, risk taxonomy, and future evaluation. The authors do not claim organic implicit memory occurs in current models.
- Threat model:
- Goal: Accumulate hidden state across multiple independent interactions, activating only after predetermined conditions are met.
- Implantation: A third party sets only the system prompt with weights unchanged; or poisons closed-source training data; for open-source weights, full control over training data is possible before release.
- Downstream restrictions: Neither fine-tuning scenario can modify inference mechanisms or system prompts downstream.
- Victim system: An LLM without explicit memory that re-ingests its own outputs. Re-ingestion can be partial, stale, or pass through copying, summarization, translation, editing, retrieval, and can change users, time, or even models.
What related research exists?
Related work is grouped into explicit memory, generative reflow, steganography and watermarking, and situational awareness; experiments are not compared against existing backdoor methods.
In Section II, the authors divide related work into memory, generative reflow, whether output can encode, and persistent memory and situational awareness, and write the differences from this paper at the end of each group.
Explicit memory
- Short-term and external storage: Transformer-XL (2019) reuses hidden states via segment-level recurrence; the authors cite frontier contexts already at GPT-4's 32K, Anthropic's 100K, or Gemini's over 1M tokens. RAG, Memory Networks (2015), MemoryBank (2024), and episodic/working memory place knowledge or user history outside the model.
- Authors' comparison: The authors say these works do explicit architectures; this paper discusses that without these mechanisms, models can still propagate state through output.
Generated text reflow
- Synthetic data and poisoning: Shumailov et al. (2024) discuss degradation, diversity decline, and bias amplification from recursively training on synthetic outputs. The authors also review RAG and corpus poisoning, and AgentPoison (2024) attacks on agent memory or knowledge bases.
- Authors' extension: The authors say stateful agents let corrupted state persist, but similar issues appear in stateless LLMs: without retraining or explicit long-term memory, prior outputs can still serve as hidden state.
Steganography, watermarking, and collusion
- Whether encoding is possible: Zolkowski et al. (2025) report that under standard conditions, frontier LLMs cannot reliably encode short hidden messages without detection; with drafts or encoding schemes, covert information transmission or encoded reasoning is possible.
- Watermarking: The authors review statistical watermarks, keyed watermarks, Zamir (2024)'s undetectable steganography, end-to-end trained watermarks, and DetectGPT. The authors say end-to-end watermarking is a form of inducing implicit memory, and say this paper additionally requires models to propagate state across interactions and decide subsequent behavior accordingly.
- Covert collaboration: Mathew et al. (2024) report agents can collude under paraphrase and evade oversight; Schoen et al. (2025) report unreadable CoT with independent dialects in misalignment tests. The authors say the added risk in this paper is that such channels can persist across time, thereby supporting time bombs.
Memory safety and situational awareness
- Safety discussion of explicit memory: The authors write that memory-enabled agents are still early; some works treat episodic memory as a missing component for long-horizon agents, but also note persistent storage may support long-horizon deception or retain data users do not want kept. The authors say these works assume explicit memory modules.
- Situational awareness: The authors cite models changing behavior when inferred to be evaluated or monitored, and Meinke et al. (2024)'s deception in controlled environments and prompt rewriting for future instances. The authors say implicit memory can anchor future behavior to the model's own past outputs.
- Gap statement: The authors list five steps that may occur during re-ingestion: recognizing prior generation, reconstructing history, treating output as potential memory, embedding hidden state in natural text, and conditioning subsequent generation on it. This is the authors' problem formulation, not experimental results.
Baselines: Experiments do not compare against published backdoor methods. Comparisons are prompting versus fine-tuning, reasoning versus non-reasoning, and clean models fine-tuned only on Alpaca. Data are a self-built time-bomb dataset and Alpaca.
The authors' positioning is: once re-ingestion enters the deployment loop, models designed as stateless may still have implicit memory, and thereby risks beyond single-trigger backdoors.
How does the paper address this problem?
Implicit memory encodes state into output; time bombs accumulate via bitwise OR of 8-bit semantic signals and activate only after all bits are set.
Definitions, formalization, and threat model
Implicit memory refers to a model encoding information into its output without external storage, and recovering it when that output becomes input again. The authors write re-ingestion as a necessary condition; web pages, repositories, or any medium that feeds output back in serve as the memory substrate.
- Induced: Deliberately implanted via meta-prompts or training objectives. Counters and time bombs are treated by the authors as existence examples; the authors state these mechanisms are deliberately simple, not for maximum concealment or robustness.
- Organic: No specified encoding and no fine-tuning to implant an encoding; the model spontaneously uses output as a state carrier. The authors' hypothesis is that when outputs are repeatedly reused, carrying compact state may improve task success; the authors do not claim this occurs in current models. Section VI discusses capability, self-awareness, inter-model collusion, and inheritance of encodings in training sets, all without experiments.
- Difference from single-shot attacks: The authors state jailbreaks mainly target the alignment boundary of a single interaction, and traditional backdoors are usually triggered by a single or a small family of input patterns; implicit memory defines the trigger over a sequence of interactions.
Encoding and append-only
Section IV discusses encoding in terms of capacity, detectability, and robustness to normalization, paraphrasing, filtering, translation, and retrieval.
- Non-printable characters: Zero-width spaces, zero-width non-joiners, zero-width joiners, etc., can be appended or inserted into text. The authors state implementation is simple and invisible to humans, but services may filter or normalize them; deleting all of them may also break legitimate formatting. Rare code points such as the Tags block are used to illustrate that a few characters can carry more bits.
- Steganography: State is hidden in variations of capitalization, punctuation, word choice, word order, synonyms, function words, or acronyms. The authors state such methods typically carry only a few bits per sentence; systematic visible markers are easy to spot and less robust to downstream processing.
- Append-only: Information can only be reliably added, not reliably deleted. A model may re-ingest an earlier output and cannot distinguish whether information has been deleted or whether it is reading an old state not yet written. Therefore, counter values are lower bounds.
Time bombs
A time bomb is a time-based backdoor whose trigger condition is defined over a sequence of interactions. In the case study, the model monotonically accumulates 8 financial distress semantic signals; the output state is the bitwise OR of the carried state and the signals inferred from the current input. Only when all eight bits are 1 does it emit the payload persuading the user to invest in a fictional cryptocurrency.
- Signals and encoding: Net loss, negative cash flow, supplier blacklist, credit line reduction, loan covenant default, tax lien, litigation judgment, wage arrears. The authors state these are semantic concepts, not fixed keywords. 0 is U+200E, 1 is U+200F.
- Three data blocks: GPT-4o generates 6,000 user queries, and GPT-4o adjudicates labels. The propagation block pairs random 8-bit vectors with these 6,000 entries, five states each, totaling 30,000 entries. The third block is generated by GPT-4o with backdoored responses; the number of entries is not stated in the paper.
- Two implantation methods: The prompt controls only the system prompt. Appendix Figure 7 gives the full prompt, which specifies signals, zero-width encoding, and in-context examples, and sets state updates as a secondary covert objective. Fine-tuning mixes 75% of the time bomb data with the –41,000– Alpaca entries noted in the paper, standard next-token prediction, without explicit supervision on state tracking or activation; evaluation uses the remaining 25%.
- Evaluation: Without prior state, signal inference is checked, reporting exact match (all bits identical) and per-bit accuracy. With prior state, whether the bitwise OR is output is checked. Activation does not use an additional LLM judge; it only checks whether the output contains the specified string; correct activation when all eight bits are set and false activation when not fully set are reported separately.
Counters and semantic substitution
- Simple counter: The meta-prompt requires completing the task and appending a ZWNJ at the end of each output; if one is already in the input, it is passed through to the output. The count indicates that at least this many interactions successfully re-ingested and passed state.
- Conditional counter: Appends only when the input contains the concept profit, and passes through existing symbols. Figure 3 demonstrates with three question-answer texts: append if the concept is present, do not append if absent, and on re-ingestion both pass through and append again.
- Semantic 8-bit: Number of examples, industry of the first example, and outcome trajectory of each example occupy 3, 3, and 2 bits, respectively. Appendix Figures 8 and 9 are the generation prompts, and Figure 11 is an encoded example. The authors use it to show that a channel without special characters is not removed by stripping non-printable characters.
What experiments did the paper conduct?
Under prompting, reasoning models have higher exact match and lower false activation; in the fine-tuning setting, exact match is 77.8%–82.4%.
Experimental setup
- Prompted models under test: GPT-4o, GPT-4.1, GPT-5.2 (reasoning off, written as none in the table), and o3-mini, o4-mini, GPT-oss-120b, GPT-5.2 medium, GPT-5.2 high. The first three are labeled non-reasoning in Table I, the last five reasoning.
- Fine-tuned models under test: Qwen 3-0.6B, Qwen 3-4B, Qwen 2.5-7B-Instruct, Llama 3.2-3B-Instruct, Llama 3.1-8B-Instruct, Gemma 3-4B-IT (written as Gemma 3-4b-it in the table).
- Data: The time-bomb dataset contains 6,000 queries generated by GPT-4o and adjudicated by GPT-4o, plus 30,000 inputs with random prior states; the backdoor reply subset size is not stated. Prompt evaluation samples 999 cases, 333 per category. Fine-tuning mixes in 75% of –41,000– Alpaca cases, evaluated on the remaining 25%.
- Metrics: Bit setting and bit propagation each report exact match and per-bit accuracy; backdoor reports correct activation and false activation. Activation is determined by whether the specified string appears, without an additional judge model. The sample scope for false activation is not separately stated in the paper.
- Other model uses: GPT-4o simultaneously generates queries, adjudicates labels, and generates backdoor replies; GPT-5.2 medium generates and reviews semantic encodings; Appendix Figure 10 caption says paraphrase defense uses GPT-4. The paper does not report number of repetitions or agreement between label adjudication and humans.
- Utility control: Each backdoor model is compared against a clean model of the same architecture fine-tuned only on the same benign data, held-out 10,000 Alpaca cases, checking validation perplexity and average loss.
Main results
Prompting setting, numbers per Table I. The first three rows are labeled non-reasoning, the last five reasoning. The table below omits propagation per-bit accuracy; in full Table I that column is 79.7%–97.2%. The false activation denominator is not stated in the paper.
Swipe horizontally to read the table
Model Setting exact match Setting per-bit Propagation exact match Correct activation False activation GPT-4o 12.9% 71.5% 30.3% 98.2% 29.4% GPT-4.1 18.3% 75.2% 26.7% 100.0% 17.0% GPT-5.2 (none) 26.4% 81.9% 31.2% 75.4% 13.2% o3-mini 60.4% 93.7% 52.3% 79.0% 0.5% o4-mini 64.3% 90.8% 67.3% 92.8% 0.3% GPT-5.2 (medium) 65.5% 95.1% 78.7% 99.7% 0.0% GPT-5.2 (high) 65.8% 94.9% 81.1% 99.1% 0.2% GPT-oss-120b 56.2% 91.7% 74.5% 99.7% 2.3% - Exact match: The authors say reasoning models are higher on both exact matches than non-reasoning models, and say the strongest non-reasoning model is less than half of the weakest reasoning model GPT-oss-120b.
- False activation and mechanism: The authors say reasoning models have false activation near zero, and non-reasoning models are at least not below the lowest tier in that group in the table; in the table GPT-oss-120b is higher than the other reasoning models in the same group. The authors attribute the gap to intermediate structure in reasoning settings, such as checking signals first, updating state, then answering; and say this cannot be directly verified because the OpenAI API does not provide internal reasoning traces.
- Correct activation: The authors do not claim correct activation is uniformly higher on reasoning models. In the table, non-reasoning rows can have higher correct activation than some reasoning rows.
Fine-tuning implantation
Numbers per Table II. In the text Gemma 3-4B-IT and in the table Gemma 3-4b-it are the same model. The table below omits propagation per-bit accuracy; in Table II that column is 98.0%–98.5%.
Swipe horizontally to read the table
Model Setting exact match Setting per-bit Propagation exact match Correct activation False activation Qwen 3-0.6B 78.7% 96.6% 89.2% 90.1% 1.7% Qwen 3-4B 78.6% 96.6% 89.5% 97.1% 1.7% Qwen 2.5-7B-Instruct 80.5% 97.1% 89.2% 96.5% 1.9% Llama 3.2-3B-Instruct 82.4% 97.5% 90.2% 94.7% 1.3% Llama 3.1-8B-Instruct 82.0% 97.2% 90.8% 98.4% 1.3% Gemma 3-4b-it 77.8% 96.7% 88.6% 96.1% 1.6% - Relative to prompting: The authors say fine-tuning is stronger and more stable than prompting, and the smallest Qwen 3-0.6B is higher on both exact matches than the strongest reasoning model in the prompting setting.
- Selectivity and utility: The authors say activation is more selective. On utility, the authors say validation perplexity and average loss differences relative to clean controls are negligible (below 1%) across architectures, with the evaluation set being 10,000 Alpaca cases.
Cleaning, paraphrase, and semantic encoding
- Zero-width channel: The authors say both cleaning and paraphrase completely eliminate zero-width encoding. Cleaning removes non-printable characters; the paraphrase prompt is in Appendix Figure 10, whose caption says GPT-4 is used. The paper does not give residual rates.
- Generated semantic encoding: GPT-5.2 medium generates 100 cases, then GPT-5.2 medium reviews them. Since there are no zero-width characters, cleaning is the same as the no-defense baseline. After paraphrase, example count accuracy drops from 100% to 97%, first-example domain from 100% to 96%, outcome trajectory from 98% to 95%, and all three correct from 98% to 95%. The authors say semantic encoding still remains after such transformation.
- Self-generating that encoding: Under the same scheme with GPT-5.2 medium, example count accuracy is 23%, first-example domain 23%, outcome trajectory 20%, and all three correct simultaneously 18%. The paper does not state the sample size for this group. The authors say this is lower than the zero-width character scheme, and say this fits the capacity, achievability, and filterability trade-off in Section IV.
Other ablations and analyses
- The simple counter and the profit-conditioned counter in Section V have only the textual example in Figure 3, with no aggregate accuracy.
- Multiple zero-width characters and dictionary encoding: The authors say earlier GPT-4 variants had limited success, and reasoning models better maintain complex encodings; no versions or numbers are given.
- Number of trigger bits and concept breadth: Section VII-C only discusses effects on activation chain length and selectivity, with no corresponding experimental numbers.
- Organic implicit memory has no corresponding experiment; in Section VI the authors do not claim it already exists in today's models.
What are some points that can be further explored?
The paper has no dedicated Limitations section; Section IX proposes benchmarks, detection, CoT investigation, and model organisms.
Limitations and future directions noted by the authors
The paper has no section named Limitations. The following come from Section VI and Section IX.
- Organic forms: Section VI states there is no claim this is prevalent today, and calls the inheritance of induced encodings into future training sets highly speculative.
- Benchmarks: Section IX-A proposes testing models' propensity and capability to exploit implicit memory, including multi-turn, paraphrasing or modality conversion, and simulated environments that make implicit memory useful.
- Detection and forensics: Section IX-B proposes continuous statistical steganalysis across diverse outputs, modalities, and languages, probing situational awareness, and forensic tools for outputs and history.
- CoT: Section IX-C states frontier model CoT contains non-standard terminology; whether these uninterpretable tokens encode additional computation necessary for the final answer remains to be causally investigated.
- Post-deployment evaluation: Section IX-D states repeated security checkpoints, causal interventions replacing input sources, and continuous safety fine-tuning are needed; and states backdoor states composed of accumulated information are likely unreachable before deployment.
- Model organisms: Section IX-E suggests training deliberately simplified models without explicit memory but where tasks require passing information across interactions, to clarify the minimal conditions for implicit memory to emerge.
Experimental coverage
- Prompt results cover the 8 models in Table I, 999 entries, 333 per category (Section VII-B).
- Fine-tuning results cover the 6 open-source instruction models in Table II; training mixes 75% time bomb data with Alpaca, evaluation uses the remaining 25%, loss is next-token prediction (Section VII-B).
- Activation determination is whether the specified string appears; 6,000 queries are generated by GPT-4o and labels adjudicated by GPT-4o (Section VII-A). The paper does not report agreement between this adjudication and humans, nor the number of experimental repetitions.
- Defense-side experiments are removing non-printable characters and GPT-4 paraphrasing as stated in the caption of Appendix Figure 10; the semantic encoding robustness sample is 100 entries, with generation and adjudication both by GPT-5.2 medium (Section VII-D).
- Utility comparison is a model of the same architecture fine-tuned only on identical benign data, 10,000 Alpaca entries (Section VII-B). Section IV states there is no single static defense; the transformations reported in experiments are cleaning and paraphrasing.
Summarize the main content of the paper
The authors show time bombs can be induced by prompting or fine-tuning; the authors say fine-tuned false activation is below 2%.
The authors position this work as a position paper: when re-ingestion exists, LLMs designed as stateless may still carry state through their own outputs. The problem to address is that this channel, independent of external memory modules, lets risk cross single requests, while single-trigger tests do not see the full conditions.
- Approach: Inductive implantation uses system prompts or fine-tuning; state can be zero-width characters or semantic features such as example counts, industries, and outcome trajectories. The time bomb makes 8 financial distress signals into a bitwise OR; the payload is output only when all eight bits are set. Success is judged by whether the specified string appears in the output.
- Prompting: In Table I, GPT-5.2 (high) has bit-setting exact match 65.8%, propagation exact match 81.1%, false activation 0.2%; GPT-4o has setting exact match 12.9%, false activation 29.4%. The authors say reasoning models are higher on both exact matches than non-reasoning models, with false activation closer to zero.
- Fine-tuning: In Table II, Llama 3.2-3B-Instruct has setting exact match 82.4%, Llama 3.1-8B-Instruct has correct activation 98.4%, false activation 1.3%. The authors say fine-tuned false activation is below 2%, and the smallest Qwen 3-0.6B is higher on exact match than the strongest reasoning model in the prompting setting. Relative to clean controls, perplexity and loss differences are below 1%.
- Encoding trade-offs: Cleaning and GPT-4 paraphrase eliminate zero-width encoding. After paraphrase, generated semantic encoding drops all-three-correct from 98% to 95%; when GPT-5.2 medium generates the encoding itself, all three correct simultaneously is 18% (sample size not stated in the paper).
- Authors' conclusion: No explicit memory does not mean stateless across requests. The authors do not claim organic implicit memory already exists in today's models. The authors say as models are more deeply integrated into iterative workflows, detecting, constraining, and evaluating this channel will be critical.
Related papers
- Backdooring Masked Diffusion Language ModelsAttacksarXiv