HyperRepair: Recovering Forgotten General Capabilities of Fine-Tuned Language Models

Junrong Tang, Jianghui Wang, Hao Kong, Yang Lin, Yibo Yang
10/30/2026
cs.CL

No confident code implementation found for this paper.

Abstract

Fine-tuning improves a language model's performance in a target domain but can weaken its general capabilities. Existing methods often face a trade-off between general capabilities and domain specialization, making it difficult to preserve both.

Show full abstract

We introduce HyperRepair, a framework for recovering general capabilities while retaining domain specialization at only inference cost. To make recovery generalizable across models sharing a pretrained backbone, HyperRepair learns a hypernetwork from repairs trained on source models. The hypernetwork uses activation fingerprints that summarize changes from the pretrained backbone to generate a tailored Repairing Side Net (RSN), whose prompt-conditioned gate applies corrections selectively. This enables recovery on models from unseen adaptation domains without target-domain examples or additional optimization. We evaluate HyperRpair across two model families, 12 LoRA adaptation datasets, and 15 general benchmarks. On the default split, HyperRepair achieves 93.4% of the base models' average general score while retaining 99.5% of the fine-tuned models' average domain score.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tang2026hyperrepair,
  title  = {HyperRepair: Recovering Forgotten General Capabilities of Fine-Tuned Language Models},
  author = {Junrong Tang and Jianghui Wang and Hao Kong and Yang Lin and Yibo Yang},
  year   = {2026},
  eprint = {2610.41147},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.41147v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.41147.svg)](https://codeofpaper.com/paper/2610.41147)

Discussion