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

The First Few Tokens Are All You Need:一种面向推理模型的高效且有效的无监督前缀微调方法

The First Few Tokens Are All You Need: An Efficient and Effective Unsupervised Prefix Fine-Tuning Method for Reasoning Models

Tencent AI Lab(腾讯AI实验室)

Ke Ji, Jiahao Xu, Tian Liang, Qiuzhi Liu, Zhiwei He, Xingyu Chen, Xiaoyuan Liu, Zhijie Wang, Junying Chen, Benyou Wang, Zhaopeng Tu, Haitao Mi, Dong Yu

AI总结:

提出无监督前缀微调(UPFT)方法,利用前缀自洽性仅对初始前缀子串进行训练,在免标签和免穷举采样的前提下大幅降低训练时间与成本,同时保持与监督方法相当的推理性能。

摘要:

提升大型语言模型(LLMs)的推理能力通常需要使用带标签数据进行监督微调,或进行计算成本高昂的采样。我们提出了无监督前缀微调(UPFT),该方法利用了前缀自洽性(Prefix Self-Consistency)的观察结果——即不同解决轨迹之间共享初始推理步骤——来提升LLM的推理效率。通过仅在初始前缀子串(最少仅需8个token)上进行训练,UPFT消除了对带标签数据或穷举采样的需求。在推理基准上的实验表明,UPFT的性能与拒绝采样微调(Rejection Sampling Fine-Tuning)等监督方法相当,同时将训练时间减少了75%,采样成本降低了99%。进一步分析表明,错误往往出现在推理过程的后期阶段,且基于前缀的训练保留了模型的结构知识。这项工作证明了极小的无监督微调即可在LLMs中解锁显著的推理增益,为传统方法提供了一种可扩展且资源高效的替代方案。

英文摘要:

Improving the reasoning capabilities of large language models (LLMs) typically requires supervised fine-tuning with labeled data or computationally expensive sampling. We introduce Unsupervised Prefix Fine-Tuning (UPFT), which leverages the observation of Prefix Self-Consistency -- the shared initial reasoning steps across diverse solution trajectories -- to enhance LLM reasoning efficiency. By training exclusively on the initial prefix substrings (as few as 8 tokens), UPFT removes the need for labeled data or exhaustive sampling. Experiments on reasoning benchmarks show that UPFT matches the performance of supervised methods such as Rejection Sampling Fine-Tuning, while reducing training time by 75% and sampling cost by 99%. Further analysis reveals that errors tend to appear in later stages of the reasoning process and that prefix-based training preserves the model's structural knowledge. This work demonstrates how minimal unsupervised fine-tuning can unlock substantial reasoning gains in LLMs, offering a scalable and resource-efficient alternative to conventional approaches.

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

↑