Towards Automatic Continual Learning: A Self-Adaptive Framework for Continual Instruction Tuning

Peiyi Lin, Fukai Zhang, Kai Niu, Hao FuarXiv 2025 · DOI · arXiv

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.

The four-module iterative framework: Data Generation, Self-Adaptive Data Filtering, Model Tuning, and Model Evaluation.
  1. Data Generation: Raw domain-specific records (e.g., medical notes) are transformed into structured instruction-response pairs using Chain-of-Thought (CoT) prompting.
  2. 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.
Comparison of static filtering vs. self-adaptive filtering using a proxy model to update IFD scores.
  1. Model Tuning: The framework utilizes Low-Rank Adaptation (LoRA) for parameter-efficient fine-tuning, enabling rapid generation of lightweight checkpoints.
  2. 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

Abstract

Continual instruction tuning enables large language models (LLMs) to learn incrementally while retaining past knowledge, whereas existing methods primarily focus on how to retain old knowledge rather than on selecting which new knowledge to learn. In domain-specific contexts, maintaining data quality and managing system constraints remain key challenges. To address these issues, we propose an automated continual instruction tuning framework that dynamically filters incoming data, which identify and reduce redundant data across successive updates. Our approach utilizes a small proxy model for efficient perplexity-based filtering, and updates the proxy to ensure that the filtering criteria remain aligned with the evolving state of the deployed model. Compared to existing static data selection methods, our framework can effectively handle incrementally acquired data and shifting distributions. Additionally, it addresses practical deployment challenges by enabling seamless model updates, supporting version rollback and incorporating automatic checkpoint evaluation. We evaluated the system in real-world medical scenarios. It reduced computational costs by 66.7% and improved model performance, and achieved autonomous updates, thus demonstrating its effectiveness for automatic continual instruction tuning.
BibTeX
@misc{lin2025towards,
  author = {Peiyi Lin and Fukai Zhang and Kai Niu and Hao Fu},
  title = {{Towards Automatic Continual Learning: A Self-Adaptive Framework for Continual Instruction Tuning}},
  year = {2025},
  eprint = {2503.15924},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.15924},
}
Figure