TL;DR
Teaching a multimodal AI new tasks usually means tweaking its internal weights—risking catastrophic forgetting—or hoarding a forever-growing library of past examples. InduceKV freezes the model entirely and instead distills new tasks into a fixed-size, external "cheat sheet" of compressed attention states (KV caches). By treating continual learning as an online memory-budgeting puzzle, it adapts to new domains while keeping old skills intact, all within a strictly bounded deployment footprint.
What Problem Does This Paper Address?
Multimodal Large Language Models (MLLMs) live in a changing world where new tasks and visual domains arrive sequentially. Retraining from scratch on all historical data is prohibitively expensive.
Existing continual learning fixes typically take one of two routes: updating lightweight adapter parameters (like LoRA or Mixtures-of-Experts) or replaying old training data. Both have a catch. Repeatedly nudging parameters can warp the delicate, pretrained bridge connecting vision and language. Meanwhile, adding new expert modules or expanding replay buffers causes the deployed system's memory footprint to balloon over time.
The authors ask: Can we continually adapt an MLLM without touching its backbone weights and while keeping the deployed external memory strictly capped?
Methods
InduceKV externalizes task updates into an attention-ready Key-Value (KV) memory bank of fixed size $B$ (e.g., 256 entries), leaving the MLLM backbone completely frozen.
- Frozen KV Extraction: For a given training input (image + prompt, excluding the answer to prevent label leakage), the frozen model runs a forward pass. It extracts a normalized vector from the final layer to act as a retrieval key, alongside the KV states across all Transformer layers. To save space, variable-length token sequences are compressed into a tiny, fixed length $m$ (e.g., 8 tokens) via segment-mean pooling.
- Bilevel Inducing-Set Selection: We can't store every training example, so when a new task arrives, InduceKV merges new candidates with the existing memory and runs a two-level optimization to pick the best $B$ entries:
- Inner Loop (Calibration): Learns a tiny set of scalar parameters—a retrieval temperature and one value-scaling gate per layer—to control how strongly retrieved memories influence current-task predictions.
- Outer Loop (Selection): Assigns selection weights to candidates by balancing three goals: performing well on the current task, preserving performance on a small set of historical anchors (past examples kept offline only during updates), and maximizing spectral coverage (a log-determinant penalty that prevents picking redundant, near-duplicate memories). Once converged, the top-$B$ entries become the new deployed memory.
- Two-Stage Inference: At test time, a prefix-only pass computes the query's retrieval key. This key fetches a similarity-weighted blend of stored KV payloads, which are concatenated directly into the model's self-attention cache for generation.
Datasets
The authors evaluate InduceKV across four continual multimodal setups (introducing no new benchmarks, but following established protocols):
- Task-Incremental Instruction Tuning: UCIT and CoIN (sequences of distinct vision-language tasks like ScienceQA, TextVQA, and RefCOCO).
- Continual Visual Question Answering (VQA): VQAv2 (split into 10 question-type tasks) and VQACL (covering VQAv2 and video-based NExT-QA).
- Domain-Incremental Adaptation: Sequential shifts across Medicine, Chart, and Math domains.
- Lifelong Multimodal Instruction Tuning: LiIT, simulating dynamic dataset arrival.
Key Insights and Ideas
- Stability-Plasticity as Memory Allocation: Instead of fighting gradient interference in weight space, InduceKV reframes continual learning as deciding which precomputed context representations deserve a spot in a fixed-size cache.
- Late Layers Do the Heavy Lifting: Measuring where the model actually pays attention to injected KV tokens reveals that utilization ramps up from ~1.8% in early layers to ~9.4% in deep layers—and tasks with higher late-layer memory attention see the biggest accuracy jumps.
- Diversity Fights Forgetting: Dropping the log-determinant spectral coverage regularizer causes selected memories to clump together in representation space, hurting retention. Forcing geometric diversity keeps the tiny memory bank expressive.
- Cheaper Than Prompt Retrieval: Unlike in-context exemplar retrieval—which forces the model to re-encode retrieved images and text through every FFN and attention layer at test time—InduceKV injects precomputed KV states directly into attention.
Key Results
Under matched memory budgets, InduceKV consistently outperforms parameter-efficient fine-tuning (PEFT), MoE routing, and replay baselines:
- Instruction Tuning (Table 2): Using an identical LLaVA-v1.5-7B backbone, InduceKV beats the strong HiDe-LLaVA baseline on UCIT (69.82 vs. 68.94 Avg) and CoIN (66.05 vs. 64.70 Avg). Pairing it with LLaVA-OneVision-4B pushes scores further to 70.25 and 66.38.
- Continual VQA: On the 10-task VQAv2 stream, InduceKV reaches 52.64 Average Performance (AP), beating CL-MoE (51.34) while keeping forgetting low (1.70). Under the T5 protocol, it tops QUAD on both VQAv2 (39.86 vs. 39.25 AP) and NExT-QA (32.12 vs. 31.70 AP) with lower forgetting.
- Ablations: Removing query-specific retrieval weighting causes the steepest drop (-4.20 AP on VQAv2), followed by disabling the inner-loop calibration (-3.49 AP), proving that raw KV injection without learned gating isn't enough.
Limitations and Future Work
- Inference Overhead: While faster than full prompt-level retrieval, InduceKV is slower at test time than replay-free PEFT (like merged LoRA) because it requires an extra prefix-only forward pass to compute the retrieval key, plus slightly larger attention matrices during prefill.
- Growing Offline Anchor Pool: Although the deployed inference state is strictly fixed, the default offline update step keeps 64 historical anchors per past task to measure retention—meaning training-time storage grows linearly with task count (though the authors note a globally capped variant is explored in the appendix).
- Relaxation Gap: The theoretical regret guarantees apply to continuous selection weights before rounding to the discrete top-$B$ entries for deployment.
(Future work directions are not explicitly discussed in the main text of the paper.)
Summary updated