Abstract
As world knowledge advances and new task schemas emerge, Continual Learning (CL) becomes essential for keeping Large Language Models (LLMs) current and addressing their shortcomings. This process typically involves continual instruction tuning (CIT) and continual pre-training (CPT) to enable these models to adapt to novel tasks and acquire critical knowledge. However, collecting sufficient CPT data and efficiently bridging knowledge gaps remain significant challenges. Inspired by the 'summarizing mistakes' strategy, we propose the Continue Evolving from Mistakes (CEM) method, a data-efficient approach aiming to collect CPT data and continually improve LLMs' performance through iterative evaluation and supplementation with mistake-relevant knowledge. To further optimize data usage and mitigate forgetting, we introduce a novel training paradigm that combines CIT and CPT. Experiments show that CEM substantially enhances multiple models' performance on both in-domain and out-of-domain QA tasks, achieving gains of up to 29.63%.
Introduction
Large Language Models (LLMs) are often static, limited by the knowledge present in their initial training corpora. As real-world information evolves or specialized domains are encountered, these models frequently hallucinate or fail. Traditional remediation involves Continual Instruction Tuning (CIT) to improve response style and Continual Pre-training (CPT) to inject new facts. However, CIT is often insufficient for deep knowledge acquisition, while CPT is data-intensive and prone to the "perplexity curse," where models improve at next-token prediction but lose instruction-following capabilities or forget previous tasks. This work introduces CEM, a targeted, data-efficient framework designed to bridge these knowledge gaps by learning specifically from errors.
Methodology
The CEM framework follows a five-step iterative pipeline inspired by human learning strategies.
- Error Identification: The model is evaluated on a QA dataset to pinpoint specific incorrect responses.
- Knowledge Extraction: A lightweight teacher model analyzes these failures to identify core "knowledge points" or keywords.
- Targeted Retrieval: These keywords guide the retrieval of relevant background information from external sources like Wikipedia and Bing.
- Hybrid Data Construction: To balance new knowledge acquisition with skill retention, the framework constructs five data types: a Supplemental Corpus (raw text), Normative Instructions (standard QA), Extractive Instructions (reading comprehension tasks), Review Instructions (re-testing correct answers), and General Instructions (maintaining conversational fluency).
- Parallel Training: The model is fine-tuned simultaneously on these diverse data streams.
Experimental Results
The researchers evaluated CEM using benchmarks such as Xiezhi (in-domain), CMMLU, and C-Eval (out-of-domain). Reasoning and math stability were monitored via HotpotQA and GSM8K.
The results demonstrate significant improvements across multiple architectures. For instance, Llama3-8B's accuracy on the Xiezhi benchmark rose from 25.09% to 54.72%, representing a relative gain of nearly 30%. Furthermore, the model showed strong generalization to out-of-domain tasks, such as a 10.92% gain on CMMLU. Unlike baseline methods like AdaptLLM, which can lead to performance degradation on certain tasks, CEM consistently provided positive gains. The inclusion of "Review Instructions" was particularly effective in reducing the "Right-to-Wrong" (R2W) rate, mitigating catastrophic forgetting.
Discussion and Limitations
CEM proves that mistakes can serve as a precise compass for data-efficient learning. The use of "Extractive Instructions" transforms passive reading into active learning, which is more effective for knowledge injection than standard pre-training. However, the study primarily focused on QA tasks; the efficacy of CEM for creative writing or coding remains to be explored. Additionally, the method depends on the availability of high-quality external search results and encyclopedic data. Future work will investigate applying CEM to non-QA domains and managing long-term training stability over numerous iterations.
Summary updated