Retrievable Gradients: Continual Post-Training Without Cumulative Weight Drift

Weihang Su, Jiacheng Kang, Jingyan Xu, Qingyao Ai, Jianming Long, Hanwen Zhang, Bangde Du, Xinyuan Cao, Min Zhang, Yiqun LiuarXiv 2026

TL;DR

REGRAD (Retrievable Gradients) is a novel paradigm that treats document-specific gradients as retrievable units of knowledge stored in an offline "Gradient Bank." At inference time, the model retrieves query-relevant gradients and applies them as a temporary, reversible parameter update, successfully combining the deep integration of parametric learning with the flexibility and safety of retrieval-augmented generation.

What Problem Does This Paper Address?

Large Language Models (LLMs) are frozen snapshots of knowledge at the time of training, but the real world is dynamic. To keep them updated, practitioners typically choose between two paradigms, both of which carry heavy trade-offs:

  1. Continual Post-Training (CPT): Directly fine-tuning the model on new documents. While this internalizes knowledge into the model's parameters, repeatedly updating shared weights causes cumulative weight drift. Over time, this leads to catastrophic forgetting and degrades core capabilities like reasoning and instruction-following.
  2. Retrieval-Augmented Generation (RAG): Prepending relevant text to the prompt at inference time. This avoids weight drift entirely but leaves knowledge outside the parameters, relying on in-context learning. Furthermore, long contexts quadratically increase inference latency and compute costs.

The authors ask: How can we obtain the benefits of parametric knowledge integration without continuously accumulating weight drift?

Methods

REGRAD decouples knowledge acquisition from permanent weight modification through a three-stage lifecycle:

Figure 1: Overview of the REGRAD framework. The method operates in three stages: Meta-Learning, Gradient Bank Construction, and Online Inference.
  • Stage 1: Meta-Learning for Initialization: Raw language-modeling gradients are optimized for verbatim token reconstruction rather than answering questions. To fix this, REGRAD uses a MAML-style bi-level meta-learning objective. The inner loop calculates an unsupervised gradient on a document within a compact LoRA adapter subspace ($\theta$). The outer loop evaluates how well this updated model answers a downstream query without seeing the document text in its prompt. This forces the optimization to treat $\theta$ as a "gradient shaper," transforming raw gradients into generalizable adaptation signals.
  • Stage 2: Gradient Bank Construction: Using the fixed meta-learned initialization, REGRAD computes document-specific gradients offline for the entire external corpus. These low-rank gradients are indexed alongside their corresponding raw text.
  • Stage 3: Online Inference: Given a user query, a standard retriever (like BM25) fetches the top-$K$ relevant documents. Instead of stuffing the text into the prompt, REGRAD fetches their pre-computed gradients, aggregates them via simple tensor addition, and applies a temporary weight update. After generating the answer, the update is discarded, restoring the base model.

Datasets

The framework was evaluated across general and highly specialized vertical domains:

  • General Domain: Utilizing a Wikipedia dump evaluated on multi-hop and factual QA datasets: 2WikiMultihopQA (2WQA), HotpotQA (HQA), ComplexWebQuestions (CWQ), and PopQA.
  • Medical Domain: Utilizing PubMed Abstracts evaluated on PubMedQA, MedQA, and BioASQ.
  • Legal Domain: Utilizing the Pile-of-Law corpus evaluated on CaseHOLD, Learned Hands Family (LHF), and HousingQA.

Key Insights and Ideas

  • Gradients as Knowledge Atoms: Rather than treating gradients as transient optimization steps to be discarded, REGRAD reframes them as modular, reusable units of parametric knowledge.
  • The Failure of Raw Gradients: Simply caching standard language-modeling gradients without meta-training actually hurts performance. As shown in Figure 2, raw gradients introduce optimization noise that disrupts pre-trained reasoning because they are misaligned with downstream task requirements. Meta-learning is essential to "shape" them into useful QA signals.
Figure 2: Impact of the meta-learning stage.
  • Complementary Modalities: Parametric updates (REGRAD) and textual context (RAG) operate via different computational mechanisms. Combining them (ReGrad + ICL) yields the highest overall performance, proving that parameter-side adaptation and context-side evidence complement each other.

Key Results

  • Superior Performance: Across LLaMA-3.2 (1B/3B) and LLaMA-3.1 (8B), REGRAD consistently outperformed standard CPT and RAG baselines in parameter-only configurations. For example, on LLaMA-3B, REGRAD achieved an overall average score of 61.94, compared to 40.86 for Standard CPT and 47.69 for a strong RAG baseline.
  • Mitigating Cumulative Drift: In a stress test scaling up to 10,000 injected documents, CPT's performance sharply degraded due to weight drift. REGRAD's performance steadily improved because it applies updates temporarily on a per-query basis, avoiding long-term capability degradation.
  • Negligible Latency Overhead: Because REGRAD operates in a low-rank LoRA subspace, aggregating and applying the retrieved gradients at inference time takes only 6 to 15 milliseconds, introducing minimal overhead compared to standard generation.

Limitations and Future Work

  • Supervised Meta-Learning Dependency: Stage 1 currently requires task-specific supervised QA pairs to align the gradients. The authors note that exploring weakly supervised or synthetic data generation could make the meta-training phase entirely unsupervised.
  • Storage Overhead: Storing gradients linearly scales with the corpus size and requires more space than raw text alone. Though mitigated by LoRA parameterization, future work will explore gradient quantization and sparsification.
  • Extension to Capabilities: The current work focuses entirely on factual knowledge injection. A promising future direction is extending REGRAD to inject reusable capabilities, such as agent tool-use behaviors or specific reasoning skills.

Summary updated

BibTeX
@misc{su2026retrievable,
  author = {Weihang Su and Jiacheng Kang and Jingyan Xu and Qingyao Ai and Jianming Long and Hanwen Zhang and Bangde Du and Xinyuan Cao and Min Zhang and Yiqun Liu},
  title = {{Retrievable Gradients: Continual Post-Training Without Cumulative Weight Drift}},
  year = {2026},
  eprint = {2606.15734},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.15734},
}
Figure