Papers › Spectral Unforgetting: Post-Hoc Recovery of Damaged Capabilities Without Retraining

Spectral Unforgetting: Post-Hoc Recovery of Damaged Capabilities Without Retraining

19 May 2026arXiv:2605.20296added by Syntology

Aarash Abro, Muhammad Tahir

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Fine-tuning a language model for a target task routinely degrades capabilities the training data never explicitly threatened. We study this phenomenon, known as catastrophic forgetting, and propose a post-hoc repair solution that uses only the pretrained checkpoint W_(base) and its fine-tuned descendant W_(ft). The goal is not merely to revert the model toward the base checkpoint, but to recover capabilities damaged by fine-tuning while preserving both the target-task gains and any beneficial held-out improvements. We introduce DG-Hard, a checkpoint-only spectral repair method for the fine-tuning update Δ= W_(ft) - W_(base). DG-Hard treats Δ as a low-rank task-aligned signal embedded in an IID-like noise residual that gradient descent has no incentive to remove, and applies the Donoho-Gavish hard singular-value threshold to each weight-delta matrix, keeping the structured high-energy part of the update and removing the spectral bulk. This reduces repair to a closed-form SVD filtering step requiring no data-dependent tuning. A central difficulty is evaluation: average accuracy hides per-benchmark failures, while naive recovery scores reward models that simply revert toward the base. We therefore introduce a partition-conditional metric that separately tracks healing, preservation, non-damage, and target-task retention. Across $14$ (model, task) settings and nine cross-domain held-out benchmarks, DG-Hard achieves the strongest balanced repair among post-hoc baselines. DG-Hard also restores safety alignment degraded by benign fine-tuning on three independent safety axes, despite using no alignment data. These results suggest that part of fine-tuning-induced capability loss is not an unavoidable consequence of specialization, but a removable spectral residue in the weight update itself.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2605.20296")

Code

Syntology Ran 9 of 10 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 3 ran · honoured contract; 2 ran · our draft was wrong; 4 ran · fixture could not drive it.

By repository: found in paper text by Syntology: 10 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

BrickleRex/dghard found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 9 ran; 3 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · honoured contract
2ran · our draft was wrong
4ran · fixture could not drive it
1unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from BrickleRex/dghard. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

_compute_deltas BrickleRex/dghard/dghard/repair/dg_hard.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · 0dc3919b12724614 · report
_dg_hard_shrink_batch BrickleRex/dghard/dghard/repair/dg_hard.py found in paper text by Syntology ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · e3e0a7657eb33954 · report
_sigma_hat_dg_batch BrickleRex/dghard/dghard/repair/dg_hard.py found in paper text by Syntology ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · be03b9b860271a8c · report
_sigma_hat_ours_batch BrickleRex/dghard/dghard/repair/dg_hard.py found in paper text by Syntology ran · honoured contract fingerprinted Apache-2.0 (permissive) · a28002a12a235b53 · report
dg_hard_shrink BrickleRex/dghard/dghard/repair/dg_hard.py found in paper text by Syntology ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 9ced83614bd103c8 · report
dg_omega BrickleRex/dghard/dghard/repair/dg_hard.py found in paper text by Syntology ran · honoured contract fingerprinted Apache-2.0 (permissive) · 31512bd50deec21d · report
mp_singular_median BrickleRex/dghard/dghard/repair/dg_hard.py found in paper text by Syntology ran · honoured contract fingerprinted Apache-2.0 (permissive) · d59c7ded5c646650 · report
sigma_hat_dg BrickleRex/dghard/dghard/repair/dg_hard.py found in paper text by Syntology ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 22373b7862723a7f · report
sigma_hat_ours BrickleRex/dghard/dghard/repair/dg_hard.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · ba7eeb93bfb0e628 · report
DgHardRepair BrickleRex/dghard/dghard/repair/dg_hard.py found in paper text by Syntology unverified Apache-2.0 (permissive) · b2ed3fabfcfc87cf · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.20296, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections