advanced26 min studyLesson 628 in Engineering

Measure what adaptation leaves behind

Compare target gains and retained capabilities with paired, group-aware uncertainty rather than assuming frozen base weights prevent forgetting.

On this page

What you’ll understand

  • Explain why active adapters can change base-model behavior despite frozen base weights.
  • Design paired retention comparisons under matched prompts and decoding.
  • Calculate a simple paired score difference and its stated uncertainty model.

A fine-tuned model can improve the intended instruction task while losing useful behavior elsewhere. Freezing the base weights does not prevent that:an active adapter still changes the function evaluated at inference. Retention evaluation asks which capabilities and product behaviors must remain acceptable. Measure them alongside target gains using the same prompts, formatting, and decoding conditions, then report uncertainty and subgroup effects instead of presenting one favorable average.

Retention is a defined requirement, not every possible ability

Choose held-out tasks relevant to existing use, including factual or domain checks, reasoning formats, languages, tool schemas, and behavior constraints where appropriate. Keep their source groups separate from training and from the validation used to tune mixtures. A narrow retention set cannot support a claim that nothing was forgotten globally. Record the base checkpoint's performance before adaptation under the same tokenizer, template, and evaluation procedure so a later difference is not caused by formatting or scorer drift.

Adapters may leave original base bytes unchanged while altering logits, representations, and generated responses whenever enabled. Disabling a pure adapter can recover a base execution path only if other trained modules or artifacts did not also change and the serving stack is identical. That is a rollback mechanism to verify, not proof that the adapted model preserves capabilities. Empirical forgetting studies motivate measurement but do not establish a universal rank, learning rate, or mixture that prevents regressions.

Δ=1N∑i=1N(siadapted−sibase)\Delta=\frac1N\sum_{i=1}^{N}(s_i^{\rm adapted}-s_i^{\rm base})
Scores use one fixed rubric on the same N evaluation units;Δ has the rubric's units, for example an accuracy fraction. Pairing controls item difficulty but does not remove scorer bias, contamination, or dependence among related items.↔ Scroll wide equations horizontally.

Paired uncertainty uses the differences

For binary correctness, each paired difference is−1,0, or 1. The uncertainty of the mean depends on those differences, not two unrelated binomial standard errors. A simple independent-item estimate uses sample variance of differences divided by item count. Related prompts, conversation variants, and task clusters violate that independence assumption;resample or model the appropriate group and report the effective evaluation unit. Repeated stochastic generations also need a design that distinguishes item uncertainty from decoding variability.

A normal approximation is illustrative for a sufficiently suitable sample, not an exact confidence guarantee. Bootstrap intervals likewise inherit their resampling assumptions and can be unstable with few groups. Report effect size and per-task results, not only whether an interval crosses zero. A statistically clear regression may be unacceptable even if a much larger target-task gain raises a pooled average. Conversely, a tiny noisy change should not be described as certain forgetting from one seed.

SE⁡(dˉ)≈sd2N,sd2=∑i(di−dˉ)2N−1\operatorname{SE}(\bar d)\approx\sqrt{\frac{s_d^2}{N}},\qquad s_d^2=\frac{\sum_i(d_i-\bar d)^2}{N-1}
This paired independent-unit estimate assumes N>1 and an appropriate sampling model. Scores and differences are dimensionless for binary correctness. Clustered units or dependent decoding require another variance/resampling design.↔ Scroll wide equations horizontally.

Keep the release decision multidimensional

Use predefined acceptance rules for target improvement, retention floors, severe failure rates, and latency or resource limits. Inspect regressions by source group and task rather than compensating every loss with more wins on an easy benchmark. Reevaluate after merge, quantization, and serving changes because the final artifact can behave differently from the training-time adapter. Preserve failures as reviewed evaluation cases without repeatedly training on the final test and still claiming it remained untouched.

The probability lab contrasts expected marginal scores with a paired comparison. Reset and set both p=0.8, n=20, predict sixteen successes. Reset and re-set p=0.6, n=20 to predict twelve. These independent binomial models do not encode which items changed from correct to incorrect or the covariance of paired outcomes. Play highlights possible counts, not model answers. Explain why the same two marginal accuracies can correspond to different paired uncertainty and why the actual per-item results must be retained.

A paired retention decline

On 100 independently sampled binary-scored items, an adapted model fixes ten base errors but breaks thirty base successes. Fifty are correct for both and ten wrong for both. Assume fixed deterministic decoding and a suitable independent-item normal approximation.

  1. Base correctness is 30+50=80;adapted correctness is 10+50=60. Paired differences have ten+1, thirty−1, and sixty zeros, so mean difference is−20/100=−0.2, or−20 percentage points.

  2. The sum of squared differences is 40. Sample variance is(40−100×0.2²)/99=36/99≈0.363636, so SE is sqrt(0.363636/100)≈0.0603.

  3. An illustrative normal 95% interval is−0.2±1.96×0.0603, approximately[−0.3182, −0.0818]. This calculation requires the stated independent-unit design;related prompt groups or scorer variability need a different uncertainty treatment.

The result

The paired trace reveals a measured retention regression under its sampling assumptions. Target-task gains elsewhere do not erase that finding.

Explore the model

Interactive lab

Interactive lab · probability

Marginal scores do not contain the paired trace

Reset, set p=0.8, n=20, predict 16 successes. Reset and re-set p=0.6, n=20, predict 12. Independent binomial bars do not encode paired wins/losses, item clusters, or adapter forgetting.

Marginal scores do not contain the paired traceThese are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Current readings: Mean · np: 5; Variance · np(1−p): 2.5; Total probability: 1. All parameters are adjustable with the labeled controls below.03581000.070.150.220.3Successes kP(X = k)k = 0 · P = 9.77e-4
Exact probabilityHighlighted outcomeMean np
Mean · np
5
Variance · np(1−p)
2.5
Total probability
1
t = 0 s

These are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forRetain per-item or per-group paired results to support an uncertainty claim.

Check your understanding

Why can a LoRA model regress on retention tasks even though base weights are frozen?

Try it yourself

On fifty paired items, a candidate gains eight successes, loses three, and ties on the rest. Compute the mean binary-score difference. Explain why forty-nine paraphrases of one item would not justify the same independent-item uncertainty as fifty distinct sampled items.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Use net paired changes and then identify the sampling unit.

Compare with the solution

Net gain is 8−3=5, so the mean difference is 5/50=0.1, or ten percentage points. Strongly related paraphrases share difficulty and content, so treating them as fifty independent observations can understate uncertainty. Use the source group as the resampling or modeling unit when that matches the evaluation design, and report that narrower evidence scope.

Take it with you

  • Frozen base storage does not guarantee retained behavior with adapters enabled.
  • Paired effects and uncertainty require the correct independent or clustered evaluation unit.
  • Target gains, retention, severe failures, and serving constraints need separate release criteria.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.