RECALL: REpresentation-aligned Catastrophic-forgetting ALLeviation via Hierarchical Model Merging
Bowen Wang, Haiyuan Wan, Liwen Shi, Chen Yang, Peng He, Yue Ma, Haochen Han, Wenhao Li, Tiao Tan, Yongjian Li, Fangming Liu, Yifan Gong, Sheng Zhang
TL;DR
This work tackles catastrophic forgetting in continual, multi-domain lidar-style language-model settings by proposing RECALL, a data-free, representation-aware model merging framework. RECALL leverages layer-wise internal representations from a small set of typical samples to compute inter-model similarities via an $m$-sample $RBF$-based metric and derives per-layer merging weights to perform hierarchical, layer-wise parameter fusion. The method demonstrates strong knowledge retention and cross-domain generalization across five NLP tasks, both when merging a base model with a single expert and when fusing multiple expert models, including in sequential fine-tuning scenarios where prior tasks are preserved more reliably than with standard baselines. With no access to historical data, RECALL offers a scalable approach to evolve LLMs while minimizing interference between specialized and general knowledge, enabling robust multi-domain integration in continual learning settings.
Abstract
We unveil that internal representations in large language models (LLMs) serve as reliable proxies of learned knowledge, and propose RECALL, a novel representation-aware model merging framework for continual learning without access to historical data. RECALL computes inter-model similarity from layer-wise hidden representations over clustered typical samples, and performs adaptive, hierarchical parameter fusion to align knowledge across models. This design enables the preservation of domain-general features in shallow layers while allowing task-specific adaptation in deeper layers. Unlike prior methods that require task labels or incur performance trade-offs, RECALL achieves seamless multi-domain integration and strong resistance to catastrophic forgetting. Extensive experiments across five NLP tasks and multiple continual learning scenarios show that RECALL outperforms baselines in both knowledge retention and generalization, providing a scalable and data-free solution for evolving LLMs.
