Abstract
Continual Instruction Tuning (CIT) is essential for maintaining Large Language Models (LLMs) in dynamic, domain-specific environments. However, standard approaches often suffer from catastrophic forgetting or high computational overhead. This paper presents an automated framework that prioritizes intelligent data selection over simple retention. By employing a self-adaptive proxy model to calculate Instruction-Following Difficulty (IFD), the system filters incoming data batches to retain only the most informative samples. Experimental results in the medical domain demonstrate a 66.7% reduction in computational costs while simultaneously improving diagnostic accuracy and reducing formatting errors compared to full-dataset training.
Introduction
Large Language Models (LLMs) frequently encounter "catastrophic forgetting" when fine-tuned on new information, losing proficiency in previously mastered tasks. While existing research primarily focuses on retention strategies like rehearsal buffers, the critical role of input data selection is often overlooked. In production environments, such as specialized medical assistants, data arrives in continuous streams. Static filtering methods are insufficient because the "difficulty" or "novelty" of data is relative to the model's current state. This paper introduces an "Automatic Continual Learning" pipeline designed for seamless, efficient updates in real-world deployments.
Methodology
The proposed framework consists of four iterative modules designed to automate the lifecycle of model updates.
- Data Generation: Raw domain-specific records (e.g., medical notes) are transformed into structured instruction-response pairs using Chain-of-Thought (CoT) prompting.
- Self-Adaptive Data Filtering: This module filters data based on length, semantic diversity, and Instruction-Following Difficulty (IFD). Unlike static methods, the system uses a small, frequently updated proxy model to calculate IFD scores. This ensures the filtering criteria evolve as the main model gains knowledge, effectively identifying and discarding redundant information.
- Model Tuning: The framework utilizes Low-Rank Adaptation (LoRA) for parameter-efficient fine-tuning, enabling rapid generation of lightweight checkpoints.
- Model Evaluation: An automated evaluation process compares the new candidate model against the current deployment. If performance thresholds are met, a seamless swap is executed.
Results and Discussion
The framework was validated using a synthetic medical dataset of 30,000 samples and the Interactive Medical Consultation System (IMCS) benchmark. Key findings include:
- Efficiency: The system achieved peak performance using only 10,000 filtered samples, reducing computational requirements by 66.7%.
- Performance: The filtered model reached 70.4% accuracy in medical diagnosis, surpassing both the baseline (67.6%) and the model trained on the complete, unfiltered dataset (70.2%).
- Quality: Training on curated subsets significantly reduced "fault cases"—meaningless or incorrectly formatted outputs—from 35 to 21.
Conclusion
This research demonstrates that "less is more" in continual learning; high-quality, non-redundant data is superior to sheer volume. By treating continual learning as a system-level pipeline with adaptive filtering, LLMs can be updated more efficiently and reliably. Future work will explore utilizing filtered-out data for Direct Preference Optimization (DPO) and integrating these selection methods with traditional regularization techniques.
Summary updated