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

匹配特征而非标记:基于能量的语言模型微调

Matching Features, Not Tokens: Energy-Based Fine-Tuning of Language Models

Harvard University, Kempner Institute(哈佛大学凯普纳研究所);Microsoft Research New England(微软研究院新英格兰分部)

Samy Jelassi, Mujin Kwun, Rosie Zhao, Yuanzhi Li, Nicolo Fusi, Yilun Du, Sham M. Kakade, Carles Domingo-Enrich

AI总结:

本文提出基于能量的语言模型微调方法,通过匹配序列级统计信息提升模型表现,无需任务特定验证器或偏好模型,在多个任务中优于传统微调方法。

摘要:

交叉熵(CE)训练为语言模型提供密集且可扩展的监督,但其优化的是教师强制下的下一个标记预测而非模型展开下的序列级行为。我们引入了一个特征匹配目标用于语言模型微调,旨在优化完成分布的序列级统计信息,提供密集的语义反馈而无需任务特定的验证器或偏好模型。为了高效优化此目标,我们提出了基于能量的微调(EBFT),利用步进块并行采样生成多个展开式,同时批量提取这些展开式的特征,并使用得到的嵌入进行在线策略梯度更新。我们从理论角度将EBFT与KL正则化特征匹配和基于能量的建模联系起来。实验表明,在问答编程、无结构编程和翻译任务中,EBFT在下游准确性上与RLVR相当,并在验证交叉熵上优于SFT。

英文摘要:

Cross-entropy (CE) training provides dense and scalable supervision for language models, but it optimizes next-token prediction under teacher forcing rather than sequence-level behavior under model rollouts. We introduce a feature-matching objective for language-model fine-tuning that targets sequence-level statistics of the completion distribution, providing dense semantic feedback without requiring a task-specific verifier or preference model. To optimize this objective efficiently, we propose energy-based fine-tuning (EBFT), which uses strided block-parallel sampling to generate multiple rollouts from nested prefixes concurrently, batches feature extraction over these rollouts, and uses the resulting embeddings to perform an on-policy policy-gradient update. We present a theoretical perspective connecting EBFT to KL-regularized feature-matching and energy-based modeling. Empirically, across Q&A coding, unstructured coding, and translation, EBFT matches RLVR and outperforms SFT on downstream accuracy while achieving a lower validation cross-entropy than both methods.

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

↑