Is Memorization Context-Sensitive? Prefix-Based Extraction Beyond Isolated Prefixes
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) can expose memorized training sequences under prefix-based extraction: given a prefix from a training example, the model may assign high probability to the original continuation. In deployed systems, however, prefixes are rarely evaluated in isolation. They often appear together with instructions, retrieved documents, or other task-specific context, as in retrieval-augmented generation (RAG). This motivates examining whether contextual conditioning mitigates memorization or merely changes the set of memorized samples that become extractable. We investigate this issue through paired item-level measurements of probabilistic suffix extraction. For each prefix-suffix pair, we score the target suffix under an empty prompt and under retrieved contexts of varying relevance, across three open-weight instruction-tuned models. We find that context does not simply erase memorization. Instead, extractable memorization consists of a context-robust core and a context-sensitive boundary. Many samples that are extractable without context remain extractable under the retrieved context, especially as the prefix length increases. At the same time, context mainly affects marginal samples near the extraction threshold: it suppresses some exposures, but also enables new ones that are missed by prefix-only evaluation. These findings qualify the view that RAG reduces memorization risk. Context can lower aggregate extraction by suppressing boundary cases, yet robustly extractable samples persist, and context-enabled extractability remains security-relevant.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 7 of its 26 references that are in the map. First posted on arXiv 8 Oct 2026.
Builds on
7 of 26 references.
References · 7
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2023The Falcon Series of Open Language Modelscited by 535
- 2024Multilingual E5 Text Embeddings: A Technical Reportcited by 372
- 2023SoK: Memorization in General-Purpose Large Language Modelscited by 37
- 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Rethinking Memorization Measures and their Implications in Large Language Models
- 2026Context Memorization for Efficient Long Context Generation
- 2024Investigating Context-Faithfulness in Large Language Models: The Roles of Memory Strength and Evidence Style
- 2024Revisiting Prefix-tuning: Statistical Benefits of Reparameterization among Prompts
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigation
- 2026Quantifying Prior Dominance in RAG Systems
- 2025Understanding Verbatim Memorization in LLMs Through Circuit Discovery
- 2024Demystifying Verbatim Memorization in Large Language Models