TL;DR
Self-Consolidating Language Models (SCoL) reframe long-context inference as a continual learning problem where an LLM internalizes streaming information directly into its own weights. By using meta-reinforcement learning, the model learns to generate textual instructions specifying exactly where (which Transformer layers) to apply parameter updates via LoRA. This approach significantly improves knowledge acquisition and retention while mitigating catastrophic forgetting, all without requiring expensive, explicit parameter importance calculations.
What Problem Does This Paper Address?
As large language models (LLMs) are increasingly deployed in streaming workflows—such as multi-turn conversations, document processing, and agentic loops—they must reliably preserve and reuse information from past contexts. While expanding context windows helps, models often suffer from "lost in the middle" phenomena or degrade as reasoning complexity scales.
Existing solutions rely on external memory, retrieval-augmented generation (RAG), or context compression. However, these methods depend heavily on retrieval quality, introduce latency, or suffer from lossy summarization. A compelling alternative is using the model's own weights as an internal memory substrate by fine-tuning on new context. Unfortunately, sequential neural network updates trigger catastrophic interference, where new updates overwrite previously learned information. Traditional methods to combat this (like calculating Fisher information matrices) are computationally prohibitive at LLM scale. SCoL addresses this gap by training the LLM to dynamically determine which of its own layers are safe and effective to modify.
Methods
SCoL treats context consolidation as a meta-reinforcement learning problem over a drifting model state (since each committed update alters the model that will choose future updates).
The framework operates via a distinct two-loop optimization process:
- Inner Loop (Sequential Consolidation): Given a new context chunk, the current model samples $K$ candidate textual actions (e.g.,
"L27, L1"). The framework attaches LoRA adapters exclusively to the selected layers and performs a causal language modeling update. Each candidate is scored using a reward function that balances acquisition (learning the new context) and retention (not forgetting past contexts). The highest-reward candidate update is permanently merged into the model weights. - Outer Loop (Meta-Update): After processing a stream of contexts, the preference data generated in the inner loop (which layer selections yielded better rewards) is used to update the base pre-adaptation policy using Identity Preference Optimisation (IPO).
The authors instantiate SCoL under two reward regimes: a supervised QA reward (using a frozen LLM judge) and an intrinsic, unsupervised likelihood-based reward that measures fractional degradation in log-likelihood across past contexts.
Datasets
The authors evaluated SCoL across two distinct tasks:
- SQuAD: Used for supervised knowledge incorporation, where the model streams passages and is rewarded based on its accuracy answering associated question-answer sets.
- LongBench v2: Used for unsupervised long-context consolidation. Long documents are broken into sequential 2048-token segments, and the model must consolidate them well enough to answer a final reasoning query without access to the original text.
Key Insights and Ideas
- Emergent Fisher Alignment: One of the most striking findings is that SCoL naturally learns to route updates to loss-sensitive regions. Without explicitly computing parameter sensitivity at inference time, the model's generated layer selections strongly align with layers of high Fisher information.
- Late-Layer Specialization: The trained policy heavily concentrates its updates on the final layer (L27), as seen in Figure 3. This provides behavioral validation for mechanistic interpretability studies suggesting that late blocks in Transformers function as key-value storage for factual associations.
- Length Extrapolation: SCoL demonstrates impressive scalability. Even when meta-trained on shorter context streams (16k–32k tokens), the selection behavior successfully generalizes to much longer evaluation streams (32k–64k tokens) without full-context access.
Key Results
SCoL consistently outperforms prompting, summarization, batch test-time training (TTT), and sequential fine-tuning baselines:
- Knowledge Retention (SQuAD): SCoL achieves 35.40% immediate accuracy and 20.46% retention after 100 passages. In comparison, standard sequential fine-tuning (
SEAL_continual) completely collapses due to catastrophic forgetting, dropping to a mere 1.30% retention. - Long-Context Efficiency (LongBench v2): In the short-context regime, SCoL achieves 42.3% accuracy, outperforming full-context in-context learning (38.0%) and summarization (39.3%). In the long-context regime (up to 64k tokens), SCoL achieves 37.0%, significantly beating sequential fine-tuning (23.0%) and remaining highly competitive with full-context baselines.
Limitations and Future Work
Despite its strong performance, SCoL introduces notable computational overhead during training because it must simulate and evaluate multiple candidate layer adaptations in the inner loop. Furthermore, because each committed update changes the state for subsequent steps, the stream must be processed sequentially, which limits parallelization.
The authors also noted a tendency toward mode collapse over extended training rounds, where the model begins to over-index on a few repeated layer selections. They suggest that future work should explore more robust policy diversity regularizations, such as explicit KL control or batch-level entropy penalties, to sustain context-dependent flexibility over indefinite streams.
Summary updated