Preserving Knowledge in Large Language Model with Model-Agnostic Self-Decompression
Zilun Zhang, Yutao Sun, Tiancheng Zhao, Leigang Sha, Ruochen Xu, Kyusong Lee, Jianwei Yin
TL;DR
This work tackles catastrophic forgetting in LLMs and MLLMs during domain adaptation by introducing model-agnostic Tree Generation (TG), a self-decompression approach that dumps knowledge from an LLM into a training corpus. The TG framework, and its TG-SFT variant for supervised fine-tuning, constructs a structured, tree-formed dialogue corpus via layered recursive prompts and semantic deduplication, mitigating forgetting while preserving general capabilities. Key contributions include a formalization of TG with tunable parameters $N_i$ and $L_i$, the introduction of Wide-Tree and Balance-Tree variants, and evidence that TG-SFT can restore LLM benchmark performance comparable to human data and approach LLaVA Full-Param baselines on MLLMs. The approach extends to post-pretraining through TG-PT, showing that decompressed corpora can outperform random data, highlighting TG’s potential for knowledge distillation, continual learning, and broader model generalization across tasks and domains.
Abstract
Humans can retain old knowledge while learning new information, but Large Language Models (LLMs) often suffer from catastrophic forgetting when post-pretrained or supervised fine-tuned (SFT) on domain-specific data. Moreover, for Multimodal Large Language Models (MLLMs) which are composed of the LLM base and visual projector (e.g. LLaVA), a significant decline in performance on language benchmarks was observed compared to their single-modality counterparts. To address these challenges, we introduce a novel model-agnostic self-decompression method, Tree Generation (TG), that decompresses knowledge within LLMs into the training corpus. This paper focuses on TG-SFT, which can synthetically generate SFT data for the instruction tuning steps. By incorporating the dumped corpus during SFT for MLLMs, we significantly reduce the forgetting problem.
