arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.12859cs.CLcs.AI
收藏

PAFT:提示无关的微调

PAFT: Prompt-Agnostic Fine-Tuning

College of Computer Science and Software Engineering, Shenzhen University, China(深圳大学计算机科学与软件工程学院);Tsinghua Shenzhen International Graduate School, Tsinghua University, China(清华大学深圳国际研究生院);Guangdong Lab of AI and Digital Economy (SZ), China(广东人工智能与数字经济实验室(深圳));Hong Kong University of Science and Technology (Guangzhou), China(香港科技大学(广州));School of Information Technology, Carleton University, Canada(卡尔顿大学信息科技学院)

Chenxing Wei, Yao Shu, Mingwen Ou, Ying Tiffany He, Fei Richard Yu

AI总结:

PAFT通过动态变化训练提示增强LLM对提示措辞的鲁棒性,在未见提示上准确率提升7%,推理速度提升3.2倍,并在多个基准上表现更优。

摘要:

微调大型语言模型(LLM)常常导致对特定提示措辞的过拟合,其中微小的措辞变化会大幅降低性能。为了解决这个问题,我们提出了提示无关的微调(PAFT),一种通过在训练期间动态变化提示来增强鲁棒性的方法。PAFT首先生成多样化的合成提示,然后持续从该集合中采样以构建训练实例,迫使模型学习基本任务原则而非表面模式。在使用监督微调(SFT)和强化学习微调(RLFT)的系统评估中,PAFT展示了显著提升的提示鲁棒性,在未见提示上的泛化准确率比标准方法高出7%。除了增强的鲁棒性外,PAFT在问答、数学推理和工具使用的既有基准上始终产生更优的整体性能。值得注意的是,使用PAFT训练的模型由于提示敏感性降低,推理速度提高了3.2倍。消融研究进一步验证了PAFT的有效性,而理论分析揭示PAFT能有效增强LLM的跨领域泛化能力。

英文摘要:

Fine-tuning large language models (LLMs) often causes overfitting to specific prompt wording, where minor phrasing variations drastically reduce performance. To address this, we propose Prompt-Agnostic Fine-Tuning (PAFT), a method that enhances robustness through dynamic prompt variation during training. PAFT first generates diverse synthetic prompts, then continuously samples from this set to construct training instances, forcing models to learn fundamental task principles rather than surface-level patterns. Across systematic evaluations using both supervised fine-tuning (SFT) and reinforcement learning fine-tuning (RLFT), PAFT demonstrates substantially improved prompt robustness, achieving 7% higher generalization accuracy on unseen prompts than standard methods. In addition to enhanced robustness, PAFT consistently yields superior overall performance on established benchmarks for question answering, mathematical reasoning, and tool use. Notably, models trained with PAFT attain 3.2 faster inference speeds due to reduced prompt sensitivity. Ablation studies further validate effectiveness of PAFT, while theoretical analysis reveals that PAFT can effectively enhance the cross-domain generalization ability of LLM.

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

↑