Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

CAMR: Compatibility-Aware Memory Replay for Continual Learning in Large Language Models

  • Problem Parameter-space methods, knowledge-editing methods and history-selection replay leave open which incoming examples should supervise an update and how much replay each arrival receives. CAMR is introduced to decide both together.
  • Method CAMR uses compatibility checks and a sigmoid memory gate to feed an actor-critic writer that picks ADD, MERGE or IGNORE for each arrival under a fixed cap on historical replay.

Figure 2: Overview of CAMR. The writer retrieves and filters compatible history, then selects ADD, MERGE, or
IGNOREto form the training batch; feedback from th…

Figure 2 : Overview of CAMR. The writer retrieves and filters compatible history, then selects ADD, MERGE, or IGNOREto form the training batch; feedback from the updated language model trains the writer.

Original paper · CC BY 4.0 · Jingpu Yang, Tianhao Li, Fengxian Ji, Yufeng Wang, Shuxin Zheng, Xiaoqing Zhang · CAMR: Compatibility-Aware Memory Replay for Continual Learning in Large Language Models · Original paper figure · Extracted the figure area from page 4 of the original PDF.

Why supervision and replay need a joint decision

Continual factual updating asks a model to take in new and replacement facts over a long sequence while keeping earlier facts that still hold. Parameter-space methods and knowledge-editing methods control how weights move, but their update rules do not decide which incoming and stored examples should drive training. Experience replay addresses retention by revisiting stored examples, yet full-history replay grows more expensive as the stream lengthens, and random replay ignores what each example still needs.

Adaptive replay methods go further and choose history by interference risk or transfer value, as MIR and TSR do. That choice covers only the historical side. The incoming example may still need more learning, may gain from being trained alongside related history, or may already be mastered and need no direct update. The study therefore asks whether one policy can set the supervision of the current example and the composition of historical replay together, under a fixed cap on replayed examples per arrival.

Three supervision actions under a replay cap

The cap K counts only historical replay examples, not the current one, so each arrival has a fixed number of historical slots. Under ADD, the incoming example is trained together with general replay. MERGE keeps that structure but gives compatible related history priority inside the same budget. IGNORE drops direct supervision of the incoming example when it duplicates a record verified as mastered, and it still replays history.

Figure 1 places the three actions beside a comparison with Random Replay and the scaling experiments. The language model is trained by full-parameter supervised fine-tuning, while retrieval and the action policy operate only inside training. Feedback from acquisition, retention and cost updates the policy online. Evaluation is closed-book, and retrieval and writer decisions stay confined to training.

How compatible history is found and filtered

Each stored record is classified against the incoming example as equivalent, conflicting or retired. With structured metadata, a slot is a (subject, relation, scope) triple and a fact identity also includes object and target. Without metadata, input-output pairs match after conservative Unicode and whitespace normalization. Eligible history H_t is what remains after removing retired, current-equivalent and conflicting records, while equivalent records stay available so that IGNORE can still be checked.

Before action selection, a probe set P_t is drawn uniformly without replacement from H_t, with size min(P, floor(|H_t|/2)). The probes measure loss changes and are excluded from the training batch. The remaining records form the replay pool U_t = H_t \ P_t. Retrieval combines semantic search with exact lookups. A frozen MPNet encoder produces mean-pooled, L2-normalized embeddings, random-hyperplane locality-sensitive hashing finds similar records, and exact indices find records by fact identity and slot.

The results are reranked by cosine similarity and filtered by the compatibility rules. Records with similarity above the threshold τ_s form the candidate set C_t ⊆ U_t, which feeds the gate, while U_t supplies general replay.

Gating history and choosing an action

The writer projects the current embedding and each candidate embedding into a shared d_h-dimensional space and normalizes both with RMSNorm, giving \( u_t = \mathrm{RMSNorm}(W_Q e_t) \) and \( k_i = \mathrm{RMSNorm}(W_K e_i) \). Each candidate receives a weight from a sigmoid of its scaled dot product with the current query: \[ g_{ti} = \sigma\left(\frac{u_t^\top k_i}{\sqrt{d_h}}\right) \] Because each weight passes through its own sigmoid, candidates are scored independently rather than normalized against one another.

The gated candidates are averaged into \( v_t = \frac{1}{|C_t|}\sum_{i\in C_t} g_{ti} k_i \), and their mean gate value is \( \bar g_t \). Both are set to zero when C_t is empty.

Two actor heads give masked sigmoid probabilities for IGNORE and MERGE, and the three actions receive probabilities as follows: \[ \pi(\mathrm{IGNORE}\mid z_t)=\rho^I_t,\quad \pi(\mathrm{MERGE}\mid z_t)=(1-\rho^I_t)\rho^M_t,\quad \pi(\mathrm{ADD}\mid z_t)=(1-\rho^I_t)(1-\rho^M_t) \]

Training on the sampled batch and updating the writer

Sampling depends on the chosen action. ADD and IGNORE draw uniformly from U_t, while MERGE reserves part of the budget for uniform draws and gives the rest to compatible candidates from C_t. Unused candidate slots are filled from the remaining pool. Every draw is without replacement, and at most K records are selected. The training batch holds the current example and the replay set under ADD or MERGE, and only the replay set under IGNORE.

The language-model loss is answer-only. It averages the answer-token NLL over the original question and an optional same-answer view, keeps end-of-sequence tokens and leaves out prompt tokens. When the current fact is active and replay is nonempty, the objective is \[ L^{LM}_t = \alpha\,\ell_\theta(x_t) + (1-\alpha)\,\frac{1}{|R_t|}\sum_{x\in R_t}\ell_\theta(x) \] with α balancing the current example and the replayed examples.

Current-only steps give the current loss unit weight, history-only steps average the replay losses, and an empty IGNORE batch triggers no update. AdamW updates the model and keeps its optimizer state across events.

The writer's reward after each event is \[ r_t = \Delta^{cur}_t + \lambda_h \Delta^{hist}_t - \lambda_c \frac{C_t}{C_{ref}} \] where Δcur is the reduction in the current question's loss, Δhist is the mean reduction over the historical probes, and C_t counts logical nonpadding training tokens. Probe and mastery-check forward passes are excluded from C_t, and an empty probe set gives zero historical gain.

The writer's parameters stay fixed within a rollout and are updated at its end, using discounted returns G_t = r_t + γG_{t+1} and advantages computed against the critic value V_t. The actor loss is \[ L_\pi = -\frac{1}{|D|}\sum_{t\in D}\left[\bar A_t \log \pi_\phi(a_t\mid z_t) + \beta H_t\right] \] over choice events, the critic regresses to the returns, and forced actions train only the critic.

The relevance gate receives gradient only through the actor loss.

Long-stream factual updating on WikiBigEdit

On WikiBigEdit the study processes 100,000 facts in their original eight-interval order and reads Original Match at 3K, 10K, 50K and 100K. Among the evaluated methods, CAMR (Full FT) has the highest Original Match at each of those checkpoints.

The unmodified Qwen3-8B-Base scores 14.67 at 3K and 12.88 at 100K, which places the gains in the table against a low starting point.

Table 1 also lists a separate CAMR (LoRA) run with K=8 and a learning rate of 2×10 −4 through 50K updates and 10−4 afterward, so it is a different configuration from the Full FT row.

Replacement updates on WikiFactDiff

WikiFactDiff is processed in twelve stages, each with 2,700 new facts and 300 replacements. The current stage is evaluated for success rates, reported as ES and GS. The figure also plots ED and GD, which are new-minus-obsolete answer-probability gaps. CAMR keeps ES near 100% across the stream.

At 36K, both CAMR and Random Replay (Full FT) reach 99.33% ES, while CAMR reaches 98.08% GS, a 1.25-point improvement over Random Replay (Full FT). The 1.25-point gap is reported at this one checkpoint in the text. ED and GD are positive at every reported replacement checkpoint, which the authors read as a higher average probability for updated answers than for obsolete ones.

Cross-task and cross-domain sequences

The TRACE sequence runs C-STANCE, MeetingBank, Py150 and text-only ScienceQA. CAMR (Full FT) reaches 56.75%, 69.84%, 67.92% and 95.40% on these four tasks, the highest final scores among the evaluated methods.

Random Replay (Full FT) reaches 95.35 on ScienceQA, against 95.40 for CAMR (Full FT), and CAMR (LoRA) reaches 92.80.

The cross-domain sequence runs FinQA, GSM8K, APPS introductory and SAMSum. CAMR (Full FT) reaches 76.11%, 81.58%, 30.50% and 45.10% on these tasks, and the three earlier tasks retain or improve on their post-acquisition scores. Those final scores exceed Random Replay (Full FT) by 2.70, 5.46, 9.10 and 3.43 points respectively. The authors say CAMR leads on FinQA and SAMSum, while O-LoRA and Adam-NSCL reach the highest GSM8K and APPS scores.

Replay cap and component ablations

Table 4 compares CAMR with Random Replay and Semantic Replay at per-arrival caps of 4, 8 and 16, all with full-parameter fine-tuning. At K=4, CAMR reaches 93.98% Original and 86.56% Rephrase, against 93.62% and 86.08% for Random Replay. At K=16, CAMR reaches 98.10% Original and 90.42% Rephrase. Semantic Replay reaches 80.40% Original at K=4, 82.62% at K=8 and 87.96% at K=16, below CAMR on Original and Rephrase at every cap.

At K=4, Random Replay scores higher than CAMR on Persona (70.74% against 69.98%) and on Locality (19.58% against 18.34%), so CAMR's lead at that cap covers Original and Rephrase only. At K=8, CAMR reports 72.62% Persona and 19.86% Locality, the highest values in the table, and it leads all four metrics at that cap.

The writer ablations in Table 5 remove one component at a time: Action Selection (leaving ADD-only routing), Online Feedback (freezing the initialized writer), Memory Gate (weighting all candidates equally), IGNORE (masking that action) and Replay on IGNORE (skipping historical replay for that action). On NumGLUE-ds the complete writer scores 77.54, against 74.57 without Action Selection, 72.85 without Memory Gate, 76.63 without IGNORE and 73.54 without Replay on IGNORE.

The text singles out NumGLUE-ds as the task most sensitive to memory gating and to replay under IGNORE, and it says Online Feedback improves three of the four tasks, with the largest gain on NumGLUE-ds. These drops support keeping each component for this task mix. They do not show that every component helps on every task, because the table covers FOMC, NumGLUE-cm, NumGLUE-ds and Py150 only.

At 100K, CAMR gives the fixed core-3K set 2.42 times the replay share that Random Replay gives it. CAMR's replay covers 90.4% of arrived facts, against 83.9% for Semantic Replay, and the authors link this to MERGE reserving uniform slots while ADD samples uniformly.

Limits of the evidence

The experiments focus on Qwen3-8B-Base, and the authors plan to extend CAMR to larger models and other model families.

The replay-cap study in Table 4 compares CAMR only with Random Replay and Semantic Replay. The 1.25-point GS margin on WikiFactDiff is reported at one checkpoint, 36K. The 150K comparison with Full-history Replay (LoRA) is described in the text only as a surpass on all four Match metrics.

Paper info

Authors
Jingpu Yang, Tianhao Li, Fengxian Ji, Yufeng Wang, Shuxin Zheng, Xiaoqing Zhang
Venue
arXiv · Preprint
First published
2026-10-27
Added
2026-10-28
Updated
2026-10-27
Version
v1
arXiv
2610.36734
Category
cs.CL
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Abstract

Continual learning requires large language models to acquire new knowledge and capabilities while retaining what they have learned. Fine-tuning and replay support acquisition and retention, but deciding whether incoming examples need supervision and which historical examples to revisit remains a challenge. We propose Compatibility-Aware Memory Replay (CAMR), an adaptive framework that jointly controls current-example supervision and historical replay. CAMR combines compatibility checks with a learned memory gate to guide an online policy over three actions: learning incoming examples with general replay, jointly reinforcing compatible related examples, and skipping direct supervision of verified mastered duplicates. The policy learns from acquisition, retention, and training-cost feedback under a bounded per-arrival replay budget. We evaluate CAMR with Qwen3-8B-Base on continual factual updating and cross-task and cross-domain learning. On WikiBigEdit, CAMR consistently leads evaluated methods in Original Match from 3K to 100K facts, reaching 93.66% after just 3K facts and surpassing Full-history Replay (LoRA) after 100K facts. It also achieves the highest final scores on all four selected TRACE tasks and maintains or improves earlier-task performance relative to post-acquisition levels in a sequence spanning financial question answering, mathematical reasoning, code generation, and summarization.

Quote from the paper

Jingpu Yang, Tianhao Li, Fengxian Ji, Yufeng Wang, Shuxin Zheng, Xiaoqing Zhang (2026). CAMR: Compatibility-Aware Memory Replay for Continual Learning in Large Language Models. arXiv:2610.36734v1. https://arxiv.org/abs/2610.36734v1

BibTeX
@misc{yang2026camr,
  title = {{CAMR: Compatibility-Aware Memory Replay for Continual Learning in Large Language Models}},
  author = {Jingpu Yang and Tianhao Li and Fengxian Ji and Yufeng Wang and Shuxin Zheng and Xiaoqing Zhang},
  year = {2026},
  eprint = {2610.36734},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.36734v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up