Skip to content

A survey of in-parameter memory enhancement for large language modelsTowards In-Parameter Memory Augmentation for Large Language Models

arXiv· arXiv:2610.08630· Haoyu Huang, Zhongwei Xie, Jiaxin Bai, Yisen Gao, Hong Ting Tsang, Wuganjing Song, Huihao Jing, Yufei Li, Yangqiu Song·Indexed by this site · 2026-10-07· Originally publishedTools

Quick read

Other

Based on the paper PDF (AI-generated); refer to the original

The survey organizes deployment-time parameter memory by injection site and acquisition timing, and draws boundaries with ICL and unmodified KV cache.

Questions
LLMs and agents need to incorporate documents, preferences, and interaction experience from after pretraining. The authors state that making all of them context tokens consumes window space, with computation and latency growing with length; sparse attention and KV compression can only mitigate.
Methods
Memory objects are produced by acquisition operators, then inserted into the forward pass at inference by enhancement operators. Inclusion requires simultaneously satisfying parameter form, independent acquisition, and deployment-time enhancement. Methods are classified by injection site (Embedding, Attention, FFN, Hybrid) and by whether they are formed before or during serving.
Experiments and results
The authors did not run numerical experiments. Based on qualitative levels inferred from mechanisms, online methods almost always materialize per request or per token and are transient or session-limited; offline methods almost always form before deployment and are persistent, with write cost high and read cost low.
Limitations and future work
The authors note that only text is covered, MLE, MLA, and mHC are not included, and the comparison has no unified numerical measurements. Open directions include conflict detection and capacity allocation on long streams, safety-aware write gates, and co-design with ICL and model-native recursive self-improvement.
Experimental setupwrite cost(定性档)、read cost(定性档)
Metrics
write cost(定性档)read cost(定性档)
AI summaryA review systematically organizes methods for enhancing "in-parameter memory" for large language models (LLMs) at deployment stage: memory-bearing parameter objects are plugged into the forward pass at inference time to supplement the problems of in-context learning (ICL) consuming context capacity and repeated discrete encoding costs growing with context length. The review organizes the field along two orthogonal dimensions: parameter placement location (Embedding, Attention, FFN layers, or Hybrid) and parameter acquisition timing (online acquisition during deployment vs offline acquisition before deployment), and discusses open directions such as interference, safety, co-design with ICL, and recursive self-improvement.

A review systematically organizes methods for enhancing "in-parameter memory" for large language models (LLMs) at deployment stage: memory-bearing parameter objects are plugged into the forward pass at inference time to supplement the problems of in-context learning (ICL) consuming context capacity and repeated discrete encoding costs growing with context length. The review organizes the field along two orthogonal dimensions: parameter placement location (Embedding, Attention, FFN layers, or Hybrid) and parameter acquisition timing (online acquisition during deployment vs offline acquisition before deployment), and discusses open directions such as interference, safety, co-design with ICL, and recursive self-improvement.

Related events and news

1 events · 0 news mentions

  • This event's paper

    LLM参数内记忆增强方法综述

    一篇综述梳理部署阶段LLM参数内记忆增强方法,按参数放置位置与获取时间两维度组织。

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Turn post-pretraining knowledge into parameter objects insertable at deployment to avoid ICL's cost that grows with context length.

    How to put post-pretraining knowledge into reusable parameter objects at deployment, rather than making everything context tokens.

    • Scenario: The authors state that LLMs and agents need to incorporate new documents, domain constraints, user preferences, and interaction experience; most systems use explicit tokens, i.e., in-context learning (ICL).
    • Existing shortcomings: The authors state that ICL is interpretable, inspectable, and easily modifiable, but computation and latency grow with retrieved tokens, and long contexts can exhaust the window; sparse attention and KV compression can only mitigate.
    • Observation: Memory can be represented as parameters, adapters, or parameter-like objects, combined into the forward pass at inference. The authors state that this can avoid the quadratic cost of long-context prefill and reduce latency on reuse; the paper does not report time costs.
    • This paper proposes: A survey of parameter memory inserted into the forward pass at deployment, categorized by placement site and acquisition timing, with boundaries defined by memory object, acquisition operator, and enhancement operator.
    • Boundary: Unmodified KV cache obtained from token prefill is considered token memory by the authors and is not included; KV banks independently produced by encoders remain in scope.
  2. What related research exists?

    Related work is grouped by ICL, long context, plug-and-play PEFT, continual learning, and architecture-oriented memory surveys.

    Adjacent work is used to delineate the boundaries of in-parameter memory (IPM), not as performance baselines run by the authors.

    ICL and Long Context

    • Text memory: Dong et al. (2024) surveys ICL; Lewis et al. (2020), Gao et al. (2023), Fan et al. (2024) discuss RAG. The authors state that memory is text demonstrations or retrieved documents on a frozen model.
    • Agents: The authors list Ying et al. (2026) and DeepSeek-AI (2026) as examples of ICL-style agent memory.
    • Window scaling: The authors cite limited windows (Vaswani et al., 2017; Liu et al., 2024) and state that sparse attention and KV cache compression can only mitigate, not remove, the cost that grows with length.

    Adjacent Paradigms in Table 1

    • Plug-and-play PEFT: Hu et al. (2021), Li & Liang (2021), Lester et al. (2021), Liu et al. (2022) are still inserted at deployment after training. The authors include them based on three tests.
    • Full-parameter SFT: Updates are merged into the backbone before serving, leaving no separate object for enhancement operators; the authors exclude it.
    • Unmodified KV cache: Rehg (2024), Kim et al. (2026), Cai et al. (2024) discuss compression. The authors state that their entries are byproducts of prefill, lacking an independent acquisition operator, so they are excluded.

    Continual Learning and Parallel Surveys

    • Continual learning: Kirkpatrick et al. (2017), Shi et al. (2025) study absorbing new knowledge over task sequences and mitigating forgetting, typically by offline updates to model parameters. The authors use whether the memory object is still enhanced at deployment as the dividing line.
    • Recent transitions: Lin et al. (2025a), Xu et al. (2026b) are described by the authors as shifting toward IPM; if inserted only at inference, they enter the taxonomy as offline methods.
    • Architecture-oriented surveys: Zhoubian et al. (2026) covers KV cache, SSM, MoE, and parameter-efficient adaptation. The authors do not count token-derived KV cache that is not modified as IPM.

    Existing Observations on Placement Sites

    • FFN: Geva et al. (2021), Dai et al. (2022), Meng et al. (2022) link feed-forward layers to key-value memory and factual associations. The authors accordingly treat FFN as a natural injection site.
    • Attention: Schlag et al. (2021) discuss linear attention and fast weights compressing associations into fixed-size states. The authors accordingly treat attention as another site class.

    The authors position this paper alongside these works: indexing only parameter objects produced by independent operators and combined into the forward pass at deployment, organized by target module and acquisition timing, rather than covering all memory forms. The paper has no comparative baselines run by the authors.

  3. How does the paper address this problem?

    Define the scope with memory object, acquisition operator, and enhancement operator, then categorize by injection site and acquisition timing.

    The overall approach is to describe in-parameter memory (IPM) with two operators, then place methods into the inventory in Figure 3 by enhancement site and object formation time.

    Operator Formulation

    • Object and operators: The backbone parameters are θ, the memory object is φ. The acquisition operator A produces φ, and the enhancement operator C combines it at inference. Placement in the taxonomy is the site of C, not A. Taking LoRA generation as an example, A is a hypernetwork that emits adapters from documents or task descriptions, and C is the inference-time combination on selected modules.
    • One-shot acquisition: A maps source K to φ. The authors state that K is usually static external memory. This covers gradient optimization over continuous vectors, one-forward hypernetworks, and knowledge encoders that emit KV pairs.
    • Stateful acquisition: Written as ϕt = A(ϕt−1, zt), using evidence at step t to rewrite the current memory; the authors state that this evidence is usually produced by the model itself. Generation is written as yt ∼ pC(θ,ϕt)(yt ∣ x≤ t), with the distribution coming from the backbone already combined with the current memory.
    • Combination and frequency: C can be addition to frozen parameters, LoRA residuals, extra KV, virtual tokens, or direct updates to hidden representations. A can be triggered per-token, per-segment, or on demand.

    Inclusion Boundaries

    • Three tests: Table 1 requires all three to hold: continuous parameter form; produced by an independent A, not a byproduct of running the model; entering the forward pass as an independent object at deployment.
    • Exclusions and inclusions: Full-parameter SFT is merged into θ before serving, so the last test fails. Unmodified KV cache fails the second test. KV banks produced by encoders, and learned write rules that emit parameter-like states, are kept within the boundary by the authors. The appendix states that permanently merged controls do not enter Table 3.
    • With continual learning: The dividing line is whether φ is still enhanced at deployment. Methods trained offline but inserted at inference enter the offline category.

    Two Axes

    • Parameter placement: Embedding side is continuous prompts, prefixes, or hidden inputs; Attention side is KV, attention-side adapters, or matrix-valued associative states; FFN side is feed-forward parameters or alternative projections. Two or more sites are Hybrid. Sites differ in read path, capacity, update cost, and compatibility with pretrained checkpoints; the paper gives no unified numbers.
    • Acquisition timing: Looks at whether φ is formed during serving (online) or before serving (offline), not when the operator that produces it is trained. The authors give an example: a hypernetwork can be trained offline, but the LoRA it emits for a specific deployment still counts as online.
    • Typical correspondence: The authors state that offline is usually one-shot acquisition, and online is usually stateful acquisition. Table 2 lists operational criteria and typical objects, including soft prompts, soft tokens, memory tables, encoded KV banks, adapters, fast weights, and online neural memory.

    Four Method Classes

    • Embedding: Online forms or updates soft tokens or soft prompts at inference, such as MemGen, GradMem; MINT maintains a learnable soft prompt library, modifying CLIP's input prompts. Offline examples include prompt-tuning, TokMem, Engram, where objects are fixed in the segment but still enter the forward pass at inference.
    • Attention: Online includes Titans, Atlas (written as ATLAS in Figure 3), δ-mem, and CEPE, which are test-time memory or encoded KV. Offline prefix-tuning learns per-layer continuous KV. KBLaM, AtlasKV, SR-KI can project new sentences on the fly, but the authors label them offline because the knowledge is organized offline.
    • FFN: The authors state that online typically uses hypernetworks to generate MLP LoRA; the reported implementation of Doc2LoRA modifies MLP down-projection, so it is labeled FFN. The same group includes codebooks, side memory, and fast-weight writes. Offline examples include PRAG, which encodes retrieved knowledge into FFN-side parameters and inserts them at inference.
    • Hybrid: Modifications span more than one site. Online examples include Temp-LoRA, which trains temporary multi-site LoRA at inference, and SHINE, which maps context to per-layer LoRA in one forward pass. Offline examples include standard LoRA that adapts both attention and FFN.

    Properties Recorded in Comparisons

    • Four items: Section 5 compares task purpose, materialization timing, persistence, and write/read cost. Table 3 records site, object type, and A; Table 4 records how it is used at deployment.
    • Level source: Write and read are qualitative levels inferred from mechanisms. The authors state that source papers rarely report comparable FLOPs or wall-clock time.
  4. What experiments did the paper conduct?

    The authors did not run numerical experiments; they only labeled representative methods with materialization, persistence, and read/write levels based on mechanisms.

    The authors did not run experiments; the so-called results are qualitative comparisons of mechanisms of existing methods.

    Experimental setup

    • Authors' experiments: The paper does not report models, datasets, evaluation models, sample sizes, or number of repetitions run by the authors themselves.
    • Comparison materials: The audit checklist in Figure 3, and Tables 3 and 4 in the appendix.
    • Cost definitions: Write and read are qualitative levels, inferred from mechanisms, not measurements on a unified benchmark (Section 5, Table 4 title).
    • Baselines: There are no baseline models run as controls, nor numeric metrics such as ASR.
    • Scope: The comparison is limited to methods that pass Table 1 and are discussed in the text modality (Section 2.3, Section 8).
    • Column alignment: The following uses only the summaries stated in the Section 5 text, and does not treat possibly misaligned Table 4 cells as row-by-row measurements.

    Main results

    The paper has no experimental results table with measurable values. Section 5's summary of online and offline is as follows.

    Authors' summary (Section 5)WriteRead
    online: generative adapters, soft promptsMedium, one-time writing of a new objectNot separately listed in that paragraph
    online: recurrent fast weights, online neural memoryLow, per tokenNot separately listed in that paragraph
    offlineHigh, one-timeLow
    • Row patterns: The authors say online rows are almost always per-request or per-token, and transient or limited to the session; offline rows are almost always formed before deployment and persistent. They use "almost always," not a full claim for every row.
    • Same object: The authors say adapters are cheap to generate online and expensive to train offline; encoded KV is combined per request in CEPE and M+, and precomputed in KBLaM and AtlasKV.
    • Trade-offs: The authors say online can adapt immediately but has higher compute at write time; offline is more stable but cannot absorb new streams without offline training. For precise citation, provenance, targeted deletion, or manual revision, the authors consider ICL more suitable.

    Authors' interpretation on the placement axis

    • Embedding: The authors say it enters from the input, the backbone can be frozen, and combination is cheapest, but the effect must pass through every layer above, so it is indirect.
    • Attention and FFN: The authors say the attention side can be content-addressable but is coupled to head structure and attention budget. The FFN side writes into the layers where factual associations reside and can directly rewrite behavior; reading is position-wise, and sequential writes on shared weights interfere with each other.
    • Hybrid: The authors say cross-site placement is most expressive, affecting both what is read and how computation is done; but behavior is hard to trace to a single component, and updates must be coordinated across different objects.

    Other ablations and analyses

    • The paper does not report ablations, parameter sweeps, number of queries, or number of repetitions.
    • Retention is also only qualitative; the authors say source papers rarely share benchmarks or comparable measurements (Section 5, Section 8).
    • Sparse Memory Finetuning: Table 3 lists it as FFN online (Lin et al., 2025a); Section 4.3 attributes the same-named approach to Berges et al. (2024) and calls it offline. Classification follows Figure 3 and Table 3.
    • Task purpose labels include knowledge injection, long-context modeling, task adaptation, document QA, continual learning, and lifelong editing, and the paper does not compare scores on a unified benchmark.
  5. What are some points that can be further explored?

    The authors note that only text is covered and there is no unified numerical measurement; open issues include interference, safe writing, and co-design with ICL.

    The authors frame the limitations as three things—modality, architecture, and measurement—and list interference, safety, co-design with ICL, and recursive self-improvement as open directions.

    Limitations and future directions noted by the authors

    • Modality: Only the text modality is considered; similar work in vision, audio, and video is not included (Section 8).
    • New architectures: IPMs built into updated LLM architectures are not included; the authors name Mixture of Latent Experts (MLE), Multi-head Latent Attention (MLA), and Manifold-Constrained Hyper-Connections (mHC) (Section 8).
    • Measurement: The comparison has no numerical measurements; write cost, read cost, and retention are qualitative levels inferred from mechanisms, because source papers rarely share benchmarks or comparable measurements (Section 8).
    • Interference: Sequential edits and recurrent writes overwrite earlier associations; subspace projection, norm constraints, and erase gates can slow this process, but conflict detection on long streams and fixed-capacity allocation remain open (Section 6).
    • Safety: The authors say untrusted context written once is later read as trusted knowledge, and existing memory systems do not record provenance; parameter writes can implant behavior into weights, and behavior-level forgetting leaves traces. Update budgets, provenance-modulated write gates, and privacy-aware consolidation remain open (Section 6).
    • Co-design and self-improvement: A decides what stays in context and what goes into ϕ, and C reads both in a single forward pass; and model-native recursive self-improvement in which A writes useful deployment experience into ϕ (Section 6).

    Experimental coverage

    • Inclusion criteria are written in Table 1: parameter form, independent acquisition, and deployment-time enhancement; a method is included only if all three hold.
    • The method list uses Figure 3 as the audit set; Tables 3 and 4 in the appendix record site, memory object, A, task purpose, materialization, persistence, and qualitative read/write levels.
    • Placement is divided into Embedding, Attention, FFN, Hybrid, and timing into online and offline (Section 3, Figure 3).
    • Cost comparison uses qualitative levels inferred from mechanisms; the paper does not report FLOPs, wall-clock time, or retention rates on a unified benchmark (Section 5, Section 8).
    • The paper does not report models, datasets, evaluation methods, or number of repetitions run by the authors themselves.
  6. Summarize the main content of the paper

    Two axes plus three operators organize parameter memory inserted at deployment, and flag open issues such as interference and safety.

    Parameter memory inserted into the forward pass at deployment is delimited separately and classified by site and timing.

    • Problem: If post-pretraining documents, preferences, and interaction experience all become context tokens, cost rises with length. The authors say sparse attention and KV compression can only mitigate, not remove, this scaling.
    • Formulation: Memory objects are produced by acquisition operators, and enhancement operators combine them at inference. Placement looks at the combination site; timing looks at whether the object is formed before or during serving, not when the operator is trained. The source for one-time acquisition is usually external static memory; stateful acquisition usually rewrites evidence produced by the model itself.
    • Map: Four site types are further divided into online and offline. Common objects are soft prompts, soft tokens, memory tables, encoded KV, adapters, fast weights, and test-time neural memory. Knowledge can be organized offline and still project onto new sentences; the authors still label methods like KBLaM as offline.
    • Comparison: There are no numerical experiments by the authors themselves. Section 5 says online methods are almost always per-request or per-token, and transient or limited to the session; offline is almost always written before deployment and persistent. Generative adapters are a one-time medium write, recurrent states are a low per-token write, and offline is a one-time high write with low read. For the same adapter, online generation and offline training have different write costs.
    • Trade-offs: The authors say online can adapt immediately with higher write compute; offline is more stable but cannot absorb new streams without offline training. For precise citation, provenance, targeted deletion, and manual revision, the authors consider text-form ICL still more suitable.
    • Follow-ups: Open issues include interference and forgetting, safety-aware acquisition, one-forward-pass co-design with ICL, and recursive self-improvement that writes deployment experience into parameters. In the conclusion, the authors say IPMs are more efficient and more model-native relative to ICL. The review only discusses text, does not include MLE, MLA, or mHC, and has no unified numerical measurements.
Read originalarxiv.org