Anchor Only What the Base Model Knows: Evidence-Weighted Self-Rehearsal

When a general language model is fine-tuned on a narrow domain such as chemistry or finance, it loses general skills it used to have. This is catastrophic forgetting. The usual fix when the original training data is unavailable is self-rehearsal. The frozen base model writes its own practice text, and the specialized model is trained to keep reproducing it. That practice text is a set of pseudo-labels, meaning training targets produced by a model rather than by people, and it carries the base model's hallucinations and guesses. Current self-rehearsal methods treat every generated token as equally worth preserving. This note argues that doing so wastes the model's capacity to specialize. It forces the fine-tuned model to hold on to tokens the base model never really knew, and those tokens then compete with the domain being learned.

The proposal is simple. Each rehearsal token is weighted by how much evidence the base model had for it, measured from its raw output scores (logits) before normalization. The fine-tuned model is then tied to the base model only where that evidence is strong. The claim is that this moves the tradeoff between domain skill and retained general skill outward, not merely along the curve. The experiments are designed so that the idea fails cleanly if uniform anchoring does just as well.

Core Claim

Treat self-rehearsal as a pseudo-labeling problem. The "noise" in this setting is not wrong labels relative to a human ground truth, because preserving the base model's behavior is the goal. The noise is low-information targets: tokens the base model emitted without much internal support. Anchoring to those tokens has a cost with no benefit. It spends the stability budget where there was nothing stable to keep.

This leads to two testable predictions. First, on a plot of domain score against general-benchmark score, traced out by sweeping the strength of the retention penalty, evidence-weighted anchoring should dominate uniform anchoring. Second, divergence-driven prioritization looks for the tokens where the fine-tuned model has drifted most from the base, as Adversarial Latent Embedding Repair for LLM Continual Learning (ALER) does in continuous prompt space. When the same idea is applied to discrete text, it should be contaminated by low-evidence tokens: large divergence can simply mean the base model's own output was arbitrary. Filtering by base evidence should make divergence-driven repair both cheaper and more accurate.

Relation to Prior Work

Two papers motivate the gap directly. Mitigating Catastrophic Forgetting in Large Language Models with Self-Synthesized Rehearsal (SSR) has the base model generate rehearsal instances by in-context learning. The current model then refines the outputs, and instances are chosen by nearness to k-means centroids. Centroid distance measures how typical an instance is, not how reliable it is, and refinement by the drifting model can amplify its biases. Self-Evolving Pseudo-Rehearsal for Catastrophic Forgetting with Task Similarity in LLMs (SERS) does three things: it fills cloze templates built from 1% seed data using the base model, blends base and current predictions when they diverge, and regularizes by Wasserstein task similarity. Its blending is sequence-level and heuristic, and it never asks whether the base model's own target deserved preserving. The proposal differs from both by weighting at the token level, using the base model's evidence, and computing the target only from the frozen base.

A third paper supplies the method. Estimating LLM Uncertainty with Logits (LogTokU) shows that softmax normalization throws away evidence strength. It treats the top-K raw logits as parameters of a Dirichlet distribution, which separates two things: epistemic uncertainty, meaning a lack of training evidence, and aleatoric uncertainty, meaning genuine ambiguity. It does this in a single forward pass. We reuse this estimator on the base model only. The base model is open-weight, so the paper's stated limitation (closed APIs, rescaled logits) does not bite.

Several papers constrain the design. Less is More: Pseudo-Label Filtering for Continual Test-Time Adaptation shows that static confidence thresholds fail under drift and proposes self-adaptive per-class thresholds. In our setting the scorer is the frozen base model, so its uncertainty on a fixed rehearsal pool does not drift, and we deliberately do not need adaptive thresholds. This is a design choice that follows from putting the scorer on the anchor rather than the learner. Prioritized Generative Replay reports that generative replay collapses in reinforcement learning when synthetic data exceeds 87% of updates. That result warns that fully synthetic rehearsal can degrade. It is also a reason to down-weight low-evidence synthetic content rather than add more of it. ALER shows that forgetting is long-tailed, with over half concentrated in the most-forgotten 20% of samples. We take this as the rationale for prioritization, but move it into discrete text, where formatting and compositional behaviors live.

Research Program

The method has three parts: a rehearsal pool, a per-token evidence score, and a weighted retention term.

The rehearsal pool is generated once by the frozen base model, using SSR-style in-context prompting with a small number of generic instruction exemplars. For every rehearsal token $t$ in a sequence $x$, we record two things. The first is the base model's full next-token distribution $p_0(\cdot \mid x_{<t})$. The second is its LogTokU epistemic score $e_t$, computed from the top-K raw logits, where higher $e_t$ means less evidence.

The weight is

$$w_t = \frac{\exp(-e_t/\tau)}{\operatorname{mean}_{s \in \text{batch}} \exp(-e_s/\tau)},$$

where $\tau$ is a temperature and the batch normalization keeps the total retention budget fixed. This matters because it makes weighted and uniform anchoring comparable at equal penalty strength.

Training minimizes

$$\mathcal{L}(\theta) = \mathcal{L}_{\text{domain}}(\theta) + \lambda \sum_{t} w_t \,\mathrm{KL}\big(p_0(\cdot \mid x_{<t}) \,\|\, p_\theta(\cdot \mid x_{<t})\big).$$

Here $\theta$ are the fine-tuned weights, $\mathcal{L}_{\text{domain}}$ is ordinary next-token loss on domain data, and $\lambda$ sets the stability–plasticity balance. The target is always the base model's soft distribution, never an argmax token and never the current model's refinement, so no confirmation loop is possible.

The prioritized variant resamples rehearsal sequences every few hundred steps. Each sequence's sampling probability is proportional to the sum over its tokens of $w_t$ times the current KL at $t$. In words, it rehearses where the model has drifted and the base model knew what it was doing. This variant is compared with sampling by KL alone.

We also borrow from Pseudo-Label Validation for Unsupervised Domain Adaptation. That paper argues that an undersmoothed imputer, meaning one that is less regularized than the models it ranks, gives reliable model selection without target labels. We ask whether the frozen base model's soft predictions on held-out unlabeled general prompts can select $\lambda$ and $\tau$ without touching the general benchmarks. This is secondary, but it matters for honest reporting, because otherwise the tradeoff curve is tuned on the test suite.

Two settings are used. The domain setting follows ALER. We specialize on SciKnowEval chemistry and on the FinGPT financial suite (sentiment on FPB, FiQA-SA, TFNS and NWGI, plus headline classification and relation extraction). Retention is measured on the six general benchmarks ALER uses: MMLU, MMLU-Pro, GSM8K, GPQA, IFEval and HumanEval. The continual setting follows SSR and SERS: 5-task and 10-task sequential chains on SuperNI with LLaMA-2-7B, reporting average ROUGE-L and backward transfer (BWT, how much scores on earlier tasks drop after later training). LLaMA-2-7B is also the model on which LogTokU was validated, so the evidence estimator is not being taken out of its tested regime.

Baselines

The naive reference points are plain fine-tuning with no rehearsal and the untouched base model. These bound how much forgetting there is to fix and how much domain skill is gained. On SuperNI 5-task chains with LLaMA-2-7B, SSR reports non-rehearsal average ROUGE-L of 19.03 with BWT as low as −42.39. On SciKnowEval, ALER reports roughly a 12% average drop in general capability under standard fine-tuning. Our reproductions should land near these figures before any comparison is trusted.

The strongest self-rehearsal baselines are SSR and SERS. SSR reports average ROUGE-L of 52.16 on 5-task LLaMA-2-7B chains, with BWT between −0.79 and −0.18, exceeding random real-data rehearsal at 49.67. SERS reports a 2.16% average ROUGE-L gain over SSR on LLaMA-2-7B. The file gives no absolute SERS figure, so its number must come from our reproduction. Both are run with the same generated pool size, the same number of rehearsal tokens per step, and the same grid over the mixing ratio. Beating them means higher average ROUGE-L at equal or better BWT across three seeds on both chain lengths.

The strongest domain-specialization baseline is ALER. It reports average general-benchmark retention within 0.02% of the base model on SciKnowEval, and sometimes a 0.12% gain, at 1.47–1.48x training cost. The file does not report ALER's domain score on SciKnowEval or FinGPT: no reported result was found on Lacuna for ALER's in-domain accuracy. ALER already nearly saturates retention, so beating it cannot mean better retention alone. It must mean a higher domain score at matched retention, or matched domain and retention at clearly lower wall-clock cost. ALER is run with its published search settings and given the same total GPU-hour budget as our method, including our one-time pool scoring.

Weight-space baselines are SLERP merging of the specialized and base models, as used in BioMistral: A Collection of Open-Source Pretrained Large Language Models for Medical Domains, and LoRA fine-tuning as in FinGPT: Instruction Tuning Benchmark for Open-Source Large Language Models in Financial Datasets. For merging, we sweep the interpolation coefficient to trace its own tradeoff curve. For LoRA, we sweep rank. Both curves are plotted on the same axes as ours.

Three ablations isolate the key ingredient. The first is uniform KL anchoring: the same pool, the same soft base targets, and the same $\lambda$ grid, with $w_t = 1$. The only difference from the proposal is the weighting. The second is softmax-entropy weighting. It is identical except that $e_t$ is the entropy of $p_0$, which tests whether logit evidence adds anything over the normalized distribution. The third is KL-only prioritization, which uses the same resampling schedule without the evidence factor.

Why not just…?

Why not just anchor uniformly to the base model's soft outputs? This is the most serious threat. Soft-target distillation already avoids hard-label noise, and it is possible that low-evidence tokens carry small KL penalties anyway and so cost little plasticity. The proposal does not argue around this. The first decisive check below measures it directly. If the evidence-weighted curve does not dominate the uniform curve at any penalty strength, the core claim is false and the contribution reduces to a cost-free relabeling.

Why not just weight by softmax confidence or entropy? LogTokU reports that on TruthfulQA with LLaMA-2-7B, its logit-evidence score reaches 71.78% AUROC for detecting unreliable answers, against about 48.91% for sampling-based semantic entropy. The file does not report plain token-entropy AUROC, so the gap to token entropy is not established. Entropy also mixes "several valid continuations" (aleatoric) with "no idea" (epistemic), and only the latter should be released from anchoring. The softmax-entropy ablation settles whether that distinction matters for forgetting. If entropy weighting matches logit weighting, we report the simpler method.

Why not just merge weights or use LoRA? Awakening the Sleeping Agent: Lean-Specific Agentic Data Reactivates General Tool Use in Goedel Prover found that SLERP merging of a specialized prover with its base recovered some tool use but caused a large drop in math performance, which is a zero-sum trade. ALER reports that narrow parameter-efficient fine-tuning still produces long-tailed forgetting. These are reasons to expect merging and LoRA to sit inside our curve, but BioMistral shows merging can help in medical QA. For that reason both are swept and plotted rather than dismissed.

Why not just fine-tune on a hundred clean general examples afterward? The Goedel-Prover study restored tool calling from 4.6% to 83.8% with 100 traces. The same study reports that the model became trigger-happy and lost irrelevance detection, and that building those traces required a cross-model pipeline. Post-hoc repair targets one known capability. Rehearsal is meant to protect capabilities nobody thought to check. We include a 100-example post-hoc SFT arm on IFEval-style data as a cheap comparison point.

Decisive Checks

The first check is a binned attribution study, run before any method comparison. The rehearsal pool is split into quintiles of base-model evidence. We train with rehearsal drawn from one quintile at a time, at fixed token count, and measure general retention gained per point of domain score lost. The hypothesis predicts that the lowest-evidence quintile buys little retention while costing domain skill. If retention per unit cost is flat across quintiles, the project stops here, with that negative result published.

The second check is the full tradeoff comparison. Curves of domain score against average general score are drawn for the proposal, uniform anchoring, entropy weighting, SSR, SERS, ALER, merging and LoRA on SciKnowEval chemistry and FinGPT. Dominance is assessed at matched general retention with seed-level confidence intervals.

The third check tests the contamination hypothesis for divergence-driven repair. Among the top 20% most-divergent rehearsal tokens at mid-training, we measure what fraction fall in the lowest base-evidence quintile. We then test whether excluding them improves retention per rehearsal step compared with KL-only prioritization.

The fourth check tests label-free selection. We report whether $\lambda$ and $\tau$ chosen by base-model pseudo-label validation on unlabeled general prompts land within one grid step of the values chosen using the general benchmarks themselves.