MemSFT: Mitigating Alignment Tax with an External Parametric Memory
Abstract
Adapting Large Language Models (LLMs) to specialized domains often incurs an alignment tax, as fine-tuning on domain-specific tasks can cause catastrophic forgetting and substantially degrade performance on general tasks. We propose MemSFT, which mitigates the alignment tax by decoupling domain specialization from backbone parameter updates through a plug-and-play parametric memory. The memory is trained to imitate the behavior of a non-parametric retriever operating over domain data, thereby memorizing knowledge and patterns that would otherwise be accessed through retrieval. Once trained on a specific domain, the memory can be reused across LLMs of different sizes. During generation, a learned router dynamically fuses the output distributions of the memory and backbone at each decoding step, allowing domain expertise to be invoked selectively. Across biology, geoscience, and law, evaluations with models ranging from Qwen3-8B to Qwen3-235B-A22B show that MemSFT consistently improves domain performance with negligible degradation in general performance, whereas full SFT suffers severe forgetting on general tasks. Overall, our results demonstrate a practical path to decoupling general model capabilities from domain-specific knowledge at the parameter level, thereby equipping LLMs with new specialized capabilities without compromising their general capabilities.
Community
Adapting LLMs to specialized domains often incurs an alignment tax: fine-tuning on domain-specific tasks can cause catastrophic forgetting and substantially degrade performance on general tasks. MemSFT mitigates this alignment tax without updating the backbone: it trains an external parametric memory to imitate the behavior of a non-parametric retriever over domain data, while a learned token-level router dynamically fuses the memory and backbone output distributions during generation.
Across biology, geoscience, and law, MemSFT substantially improves domain performance with negligible degradation in general capabilities. A single domain-specific 8B memory can be reused across Qwen3 backbones ranging from 8B to 235B-A22B, and adapting four backbones requires only 0.22× the FLOPs of full SFT.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Retrievable Gradients: Continual Post-Training Without Cumulative Weight Drift (2026)
- Parametric Memory Decoding for Zero-Shot Routing in LoRA-Based External Parametric Memory (2026)
- SeDeM: Selective Decompression of Hidden-State Memories for Long-Context Question Answering (2026)
- TransMem: Transforming Hidden States into Memory for Large Language Models (2026)
- HyperSafe: Inference-Time Safety Recovery for Fine-Tuned Language Models (2026)
- UniMem: Complementary Episodic-to-Parametric Memory for Boundary-Agnostic Task Streams (2026)
- Predicting Mergeability of Parameter-Efficient Fine-Tuning Updates (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2607.25614 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 6
Jiarui-Wang/MemSFT-Qwen3-Bio-Memory-4B
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper

