🤖 AI Summary
To address the degradation of general-purpose capabilities in large language models (LLMs) caused by domain-specific fine-tuning, this paper proposes an error-sample-driven framework for weakness identification and iterative preference training. Unlike conventional approaches, it avoids requiring full domain datasets; instead, it self-generates erroneous examples, retrieves semantically similar samples, and integrates weakly supervised error detection, counterfactual weakness construction, and lightweight preference alignment training for targeted optimization. Its core contribution is the novel paradigm of “weakness-case acquisition + iterative preference training,” where errors serve as explicit signals to guide efficient, capability-preserving adaptation. Experiments on LLaMA-2 and Mistral-7B demonstrate zero degradation in general-domain performance while achieving statistically significant improvements over mainstream methods—including LoRA, QLoRA, and DPO—on downstream domain-specific tasks.
📝 Abstract
Large Language Models (LLMs) often require domain-specific fine-tuning to address targeted tasks, which risks degrading their general capabilities. Maintaining a balance between domain-specific enhancements and general model utility is a key challenge. This paper proposes a novel approach named APT (Weakness Case Acquisition and Iterative Preference Training) to enhance domain-specific performance with self-generated dis-preferred weakness data (bad cases and similar cases). APT uniquely focuses on training the model using only those samples where errors occur, alongside a small, similar set of samples retrieved for this purpose. This targeted training minimizes interference with the model's existing knowledge base, effectively retaining generic capabilities. Experimental results on the LLama-2 and Mistral-V0.3 models across various benchmarks demonstrate that APT ensures no reduction in generic capacity and achieves superior performance on downstream tasks compared to various existing methods. This validates our method as an effective strategy for enhancing domain-specific capabilities without sacrificing the model's broader applicability.