DONOD:通过模型内在数据剪枝实现LLM的高效且可泛化的指令微调
DONOD: Efficient and Generalizable Instruction Fine-Tuning for LLMs via Model-Intrinsic Dataset Pruning
AI总结:
提出轻量级模型内在数据剪枝方法DONOD,结合DON和NOD指标及TOPSIS算法过滤噪声样本,在提升LLM微调效率与跨域泛化能力的同时保持数据集无关性。
摘要:
大型语言模型(LLMs)的特定指令微调被广泛用于特定领域的适应。虽然特定领域的监督微调(SFT)有效且高效,但它通常会削弱跨领域泛化能力,并难以处理带噪训练数据。为了应对这些挑战,我们提出了DONOD,一种轻量级的模型内在数据剪枝方法。我们的方法使用两个基于模型参数的指标来评估数据:范数变化量(DON),用于捕获对模型权重的累积影响;以及变化量范数(NOD),用于量化权重不稳定性。此外,通过采用逼近理想解排序技术(TOPSIS)算法,我们在SFT过程中无需依赖辅助模型,即可有效过滤掉带噪、不可学习及损害泛化能力的样本。在数学任务上的实验表明,由DONOD选择的数据实现了更优的微调效率,并提升了对带噪数据的鲁棒性。通过过滤掉整个数据集的70%,我们将目标领域准确率提升了14.90%,跨领域准确率提升了5.67%。同时,我们选出的数据展现出卓越的跨架构泛化能力。由较小模型(例如Llama 3.1-8B)剪枝得到的数据能在更大模型(例如Llama 2-13B)上有效泛化。与现有相关方法相比,DONOD表现出相当或更优的性能,同时保持与数据集无关的特性,从而实现了更广泛的适用性。代码将公开发布。
英文摘要:
Ad-hoc instruction fine-tuning of large language models (LLMs) is widely adopted for domain-specific adaptation. While domain-specific supervised fine-tuning (SFT) is effective and efficient, it often weakens cross-domain generalization and struggles with noisy training data. To address these challenges, we propose DONOD, a lightweight model-intrinsic data pruning method. Our approach evaluates data using two model-parameter-based metrics: Delta of Norm (DON), which captures the cumulative influence on model weights, and Norm of Delta (NOD), which quantifies weight instability. Moreover, by employing the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) algorithm, we effectively filter noisy, unlearnable, and generalization-harming samples without relying on auxiliary models during the SFT process. Experiments on mathematical tasks demonstrate that data selected by DONOD achieves superior fine-tuning efficiency and improved robustness against noisy data. By filtering out 70% of the whole dataset, we improve target-domain accuracy by 14.90% and cross-domain accuracy by 5.67%. Meanwhile, our selected data present superior cross-architecture generalization. Data pruned by smaller models (e.g., Llama 3.1-8B) generalize effectively on larger models (e.g., Llama 2-13B). Compared to existing related methodologies, DONOD demonstrates comparable or superior performance while remaining dataset-agnostic, enabling broader applicability. Code will be made publicly available.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。