Self-Indexing Latent Memories for Access-Aware Continual Instruction Tuning of LLMs

Dhruv Dixit, Paritosh Pandey, Snehalkumar 'Neil' S. GaikwadarXiv 2026 · arXiv

TL;DR

TILA-CT is a novel, replay-free method for continual instruction tuning that makes task-specific modules "self-indexing." By using a single latent memory for both task adaptation and routing, it effectively separates the preservation of skills from the ability to access them, achieving state-of-the-art performance with minimal forgetting across diverse LLM backbones.

What Problem Does This Paper Address?

When we teach Large Language Models (LLMs) new tasks one after another—a process called Continual Instruction Tuning (CIT)—they often suffer from "catastrophic forgetting," where new learning overwrites old skills.

A common solution is to use task-private modules (like adapters). You freeze the parameters of an old task and add new ones for the next. While this preserves the knowledge perfectly, it introduces a new "access" problem: at inference time, the model is given a prompt but isn't told which task it belongs to. How does it know which frozen module to use?

Existing methods often rely on replaying old data (which raises privacy and storage concerns) or complex routing mechanisms that can be fragile. This paper tackles the challenge of building a system that can both learn new tasks without forgetting and accurately route inputs to the correct preserved knowledge without needing to store any old examples.

Methods

The authors introduce Task-Isolated Latent Adapter Continual Training (TILA-CT). Its core innovation is making task modules self-indexing.

As shown in the overview below, each task receives its own private "latent memory" ($Z_i$) and a bank of adapters.

Figure 1: Overview of TILA-CT. A frozen backbone produces prompt features for routing and token states for adaptation. The shared router selects one task-private module using a key derived from the task’s persistent latent memory. The selected memory gathers causal-prefix information and injects task-conditioned context through adapters at each adapted layer. Pink marks frozen backbone computation, green marks learned router and adapter computation, and gray marks stored modules or intermediate representations.

The Latent Memory is the "secret sauce" that performs two roles simultaneously:

  1. Adaptation (Gather-and-Inject): During processing, the memory "gathers" information from the causal prefix of the current tokens and "injects" task-specific context back into the model via adapters.
  2. Access (Routing): The same memory state, when mean-pooled, acts as a unique "routing prototype" (a key).

A small, shared prompt-only router learns to match the incoming prompt to these prototypes. Because the identity of the module is tied directly to the state used for its computation, the system becomes "self-indexing." Crucially, this method is replay-free; it doesn't need to see a single example from a previous task to maintain its performance.

Datasets

The researchers evaluated TILA-CT using the CT-Pipeline, an 8-task stream covering diverse domains:

  • FOMC: Monetary policy stance classification.
  • C-STANCE: Chinese stance classification.
  • MeetingBank: Meeting summarization.
  • ScienceQA: Science question answering.
  • NumGLUE-en: Numerical reasoning.
  • JEC-QA: Legal QA.
  • MedMCQA: Medical QA.
  • 20Minuten: German text simplification.

They tested this pipeline across six different frozen backbones, ranging from 1B to 8B parameters, including dense Transformers (Llama-3.1/3.2), Mixture-of-Experts (OLMoE), and hybrid architectures (Falcon-H1R).

Key Insights and Ideas

  • Preservation $\neq$ Access: The authors highlight that even if you perfectly freeze a task's parameters (preservation), the model "forgets" if the router fails to pick that module (access). TILA-CT is designed to stabilize this access.
  • The Power of Self-Indexing: Using the same learned state for both processing and identification ensures that a module's "ID" is grounded in its actual functional behavior. Ablations showed that using independent routing keys (A2 in Table 4) significantly degrades performance compared to the self-indexing approach (A0).
  • Retention Can Trump Acquisition: Interestingly, TILA-CT sometimes has a lower "acquisition" score (initial learning) than baselines but ends up with a higher "final" score because it forgets so much less. For example, in ScienceQA, an initial deficit of 4.32 points against a baseline shrank to just 0.48 points by the end of the 8-task stream.
  • The "Oracle Gap": There is a ~1.21 point performance gap between the learned router and an "Oracle" (which always knows the task ID). This suggests that the primary bottleneck in modern CIT is increasingly the selection of the right knowledge rather than the retention of it.

Key Results

TILA-CT consistently outperformed strong baselines in both final performance and forgetting metrics.

  • Top-Tier Performance: On the Qwen3-8B-Reasoning backbone, TILA-CT achieved a final macro score of 63.98, significantly higher than the strongest replay-free baseline, GoD-MoE (62.01).
  • Minimal Forgetting: It recorded an average forgetting of only 1.38 points, a 26% reduction compared to GoD-MoE (1.88 points).
  • High Routing Accuracy: The system achieved 93.9% macro routing accuracy across the 8-task stream, demonstrating that the self-indexing memories are highly effective at identifying the correct task from the prompt alone.
Table 1: Results on Qwen3 backbone (mean over seeds 37, 73, 101). Gray subscripts are standard deviations. Forgetting and its variance use 7 mean task losses. Mean |∆| excludes task 1. (mid-rev.) means that order was used.

Limitations and Future Work

  • Linear Parameter Growth: Each new task adds private parameters (about 88M for the 8B model). While this is only ~1.1% of the backbone per task, it adds up over long streams.
  • Closed-Set Assumption: The current router assumes it's picking from a known set of learned tasks. It doesn't yet handle "out-of-distribution" prompts or detect when a completely new task has arrived.
  • Future Directions: The authors suggest exploring module pruning, merging, or reuse to manage storage growth. They also aim to improve router stability to further close the "oracle gap."

Summary updated

Abstract

Continual instruction tuning often preserves old skills with task-private modules. Inference still requires selecting the right module from the prompt alone. We introduce Task-Isolated Latent Adapter Continual Training (TILA-CT), a replay-free method that makes each task module self-indexing. Each task receives a latent memory and adapter bank in a frozen LLM. During adaptation, the memory gathers causal-prefix information and injects task-conditioned context. For access, its persistent state provides the routing prototype used by a shared prompt-only router. On the 8-task CT-Pipeline stream, TILA-CT achieves 65.19 acquisition and 63.98 final macro score, with 1.38 points of average forgetting. A middle-reversed order gives 65.38 acquisition and 64.17 final macro score. Across 6 backbones, final scores remain within 1.5 points of acquisition. Ablations support memory-derived routing keys and causal gathering. Final macro routing accuracy is 93.9\%, and oracle routing recovers 1.21 final macro points. These results separate preserved task computation from learned access to it.
BibTeX
@misc{dixit2026self,
  author = {Dhruv Dixit and Paritosh Pandey and Snehalkumar 'Neil' S. Gaikwad},
  title = {{Self-Indexing Latent Memories for Access-Aware Continual Instruction Tuning of LLMs}},
  year = {2026},
  eprint = {2611.11684},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.11684},
}
Figure