arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.11779cs.CL
收藏

通过自对齐困惑度为微调大语言模型选择高效响应生成策略

Efficient Response Generation Strategy Selection for Fine-Tuning Large Language Models Through Self-Aligned Perplexity

University of Adelaide(阿德莱德大学)

Xuan Ren, Qi Chen, Lingqiao Liu

AI总结:

本文提出自对齐困惑度度量,通过小样本评估候选输出与目标LLM风格的一致性,从而高效选择最佳数据生成策略,避免穷举训练,并在多个推理基准上验证了其有效性。

摘要:

微调大语言模型(LLMs)通常依赖于生成大量输入-输出对。然而,对于给定问题,可能存在许多有效输出。在实践中,这些输出通常通过从教师模型中蒸馏知识来获得,并且它们可能因所使用的特定教师模型或提示策略而异。近期研究结果表明,这些训练输出的生成方式会显著影响微调后模型的性能,这引出了一个重要问题:我们如何从众多可能的方法中挑选出最佳的数据生成方法?本文没有对每个候选方法进行穷举式训练和评估,而是提出了一种可扩展的近似方法,该方法评估一小部分生成数据,以估计其对特定目标LLM的适用性。我们的核心思想是,有效的输出应当对目标LLM来说是熟悉的。虽然先前的工作使用困惑度来衡量熟悉程度,但我们通过实证分析和实际观察发现,困惑度在刻画熟悉程度方面可能并非最优。为了解决这一问题,我们引入了自对齐困惑度,这是一种新颖的度量指标,用于捕捉候选输出与目标LLM自身风格和推理模式的贴合程度。通过这种方式,我们可以在小样本上识别出最有效的生成策略,然后将其应用于生成完整的训练集。我们证明,使用所选方法生成的数据进行训练,在多个以推理为重点的基准测试上带来了显著改进,尤其是在不同候选方法导致高度分化的训练结果的情况下。我们的实现已在 https://github.com/XuanRen4470/SPPL 公开。

英文摘要:

Fine-tuning large language models (LLMs) typically relies on producing large sets of input-output pairs. Yet for a given question, there can be many valid outputs. In practice, these outputs are often derived by distilling knowledge from teacher models, and they can vary depending on the specific teacher model or prompting strategy employed. Recent findings show that how these training outputs are generated can significantly affect the performance of the fine-tuned model, raising an important question: how do we pick the best data generation method from among numerous possibilities? Rather than exhaustively training and evaluating on each candidate, this paper proposes a scalable approximate method that assesses a small subset of generated data to estimate its suitability for a specific target LLM. Our central idea is that effective outputs should be familiar to the target LLM. While previous work measures familiarity with perplexity, we find that perplexity might be suboptimal in characterizing familiarity through empirical analyses and practical observations. To address this, we introduce self-aligned perplexity, a novel metric capturing how closely candidate outputs adhere to the target LLM's own style and reasoning patterns. In this way, we can identify the most effective generation strategy on a small sample, then apply it to produce the complete training set. We demonstrate that training on data generated by the chosen method yields significant improvements across diverse reasoning-focused benchmarks, particularly in cases where different candidate methods lead to highly divergent training outcomes. Our implementation is publicly available at https://github.com/XuanRen4470/SPPL.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑