2025-02-19 · 进阶 · 自然语言处理 · 机器学习

PAFT: Prompt-Agnostic Fine-Tuning

提出了一种名为PAFT的细粒度微调方法,通过动态调整提示词,提高大型语言模型在下游任务中的鲁棒性和泛化能力。

更新于 2025-02-19。作者:Chenxing Wei、Yao Shu、Mingwen Ou、Ying Tiffany He、Fei Richard Yu。

中文摘要

尽管大型语言模型(LLMs)在经过微调后能够很好地适应下游任务,但这种适应性往往牺牲了提示的鲁棒性,因为即使是微小的提示变化也可能显著降低性能。为了解决这个问题,我们提出了提示无关微调(PAFT),这是一种简单而有效的方法,能够在微调过程中动态调整提示。这鼓励模型学习底层任务原则,而不是过度拟合特定的提示公式。PAFT分为两个阶段:首先,构建一组多样化的、有意义的合成候选提示。其次,在微调过程中,从这组提示中随机采样以创建动态的训练输入。在多个数据集和LLMs上的大量实验表明,使用PAFT训练的模型在各种提示上表现出强大的鲁棒性和泛化能力,包括未见过的提示。这种增强的鲁棒性不仅提高了模型性能和推理速度,同时保持了训练效率。消融研究进一步证实了PAFT的有效性。

英文摘要

While Large Language Models (LLMs) adapt well to downstream tasks after fine-tuning, this adaptability often compromises prompt robustness, as even minor prompt variations can significantly degrade performance. To address this, we propose Prompt-Agnostic Fine-Tuning(PAFT), a simple yet effective approach that dynamically adjusts prompts during fine-tuning. This encourages the model to learn underlying task principles rather than overfitting to specific prompt formulations. PAFT operates in two stages: First, a diverse set of meaningful, synthetic candidate prompts is constructed. Second, during fine-tuning, prompts are randomly sampled from this set to create dynamic training inputs. Extensive experiments across diverse datasets and LLMs demonstrate that models trained with PAFT exhibit strong robustness and generalization across a wide range of prompts, including unseen ones. This enhanced robustness improves both model performance and inference speed while maintaining training efficiency. Ablation studies further confirm the effectiveness of PAFT.

解读

一句话总结

提出了一种名为PAFT的细粒度微调方法,通过动态调整提示词,提高大型语言模型在下游任务中的鲁棒性和泛化能力。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt