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

训练提示至关重要:面向鲁棒微调的状态自适应优化

Training Prompt Matters: State-Adaptive Optimization for Robust Fine-Tuning

University of Science and Technology of China(中国科学技术大学)

Wenhang Shi, Yiren Chen, Shuqing Bian, Zhe Zhao, Jinhao Dong, Pengfei Hu, Wei Lu, Xiaoyong Du

AI总结:

本文提出状态自适应提示优化(SAPO)策略,通过将任务公式从静态输入转变为动态状态自适应变量,有效缓解灾难性遗忘并提升泛化能力,在多个基准上取得显著性能提升。

摘要:

虽然提示工程在推理过程中对最大化大型语言模型(LLM)的能力至关重要,但提示在训练过程中的作用仍未得到充分探索。现有的微调范式通常将训练提示视为表面形式,假设语义等价的指令会产生相同的学习结果。然而,我们揭示这种等价性具有欺骗性:虽然释义后的提示通常会导致类似的任务内性能,但它们在灾难性遗忘和泛化方面会引发截然不同的跨任务影响。关键的是,这些影响在任务间呈正相关,表明存在始终产生更好性能的优越提示。此外,我们发现这些优越提示可以在学习之前通过任务损失稳健地识别。利用这些见解,我们引入了状态自适应提示优化(SAPO),这是一种轻量级但有效的训练策略,它将任务公式从静态输入转变为动态的、状态自适应的变量。在多种基准上的全面实验证实了其有效性,它显著减轻了遗忘,同时提高了泛化能力,相比于最先进的方法取得了显著的性能提升。这些结果提供了关于训练提示如何塑造学习动态的见解,并为鲁棒微调提供了实用的方法。我们的代码可在 https://github.com/Eric8932/SAPO 获取。

英文摘要:

While prompt engineering is instrumental in maximizing the capabilities of Large Language Models (LLMs) during inference, the role of prompts during training remains critically underexplored. Prevailing fine-tuning paradigms typically treat training prompts as mere surface forms, assuming that semantically equivalent instructions yield identical learning outcomes. However, we reveal that this equivalence is deceptive: while paraphrased prompts often lead to comparable in-task performance, they induce drastically different cross-task impacts regarding catastrophic forgetting and generalization. Crucially, these impacts are positively correlated across tasks, indicating the existence of superior prompts that consistently yield better performance. Furthermore, we discover that these superior prompts can be robustly identified by task loss prior to learning. Leveraging these insights, we introduce State-Adaptive Prompt Optimization (SAPO), a lightweight yet effective training strategy that shifts task formulation from a static input to a dynamic, state-adaptive variable. Comprehensive experiments on diverse benchmarks confirm its effectiveness, which significantly mitigates forgetting while improving generalization, achieving substantial performance gains over state-of-the-art methods. These results provide insights into how training prompts shape learning dynamics and offer a practical recipe for robust fine-tuning. Our code is available at https://github.com/Eric8932/SAPO.

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

↑