arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.07559cs.CLcs.AIquant-ph
收藏

语言模型微调中的幻影相变

Phantom Transitions in Language Model Fine-Tuning: A Density-Matrix Analysis

Mahindra University(马恒达大学)

Vaibhav Prakash, Jayasri Dontabhaktuni

AI总结:

本文研究语言模型微调时,正确补全被近义词竞争而失败的现象,通过序参量分解信号与背景拖拽,发现两种失败模式,并揭示相变为幻影,源于softmax读出而非几何相变。

摘要:

在上下文中微调语言模型,当正确补全存在近义词竞争者时,常常无声地失败。交叉熵损失单调递减,而正确token在排名上从未超越竞争者。我们研究了跨越两个系列和五倍参数范围的五种Transformer架构,在十个精心挑选的近义词上下文中。我们用一个结合预测分布和成对嵌入重叠的序参量来测量这些失败。它可加性地分解为一个信号(跟踪模型对正确token相对于其最近竞争者的承诺)和一个背景拖拽(由嵌入整体向分数泄漏概率的方式决定)。这分离出两种失败模式:运动学失败中信号保持较小;结构失败中拖拽随着微调进行而主动恶化。我们观察到序参量中类似相变的弹弓状跳跃。一个核心负面结果组织了本文:这些相变是幻影。直接测量排除了自发对称破缺的解释。在LoRA微调下,当token嵌入矩阵在训练期间完全不变时,弹弓状跳跃仍然出现,而此处不可能存在几何相变。不连续性完全存在于softmax读出中。少量无量纲量组织跨架构的轨迹。其中一个在所有五种架构的全微调下保持一致。第二个根据整体嵌入分布将架构分为两类,并预测LoRA的充分性。作为盲测,该框架预测了一个未用于拟合任何参数的保留架构的临界学习率,与后续学习率扫描的误差在2.1%以内。研究结果仅涉及近义词机制,未经重新校准不应外推。

英文摘要:

Language models fine-tuned where the correct completion must outrank a near-synonym competitor often fail silently. The cross-entropy loss falls monotonically while the correct token never overtakes the competitor in the model's ranking. We study this across five transformer architectures from two families spanning a sixfold parameter range, on ten contexts whose correct and competing completions share substantial embedding overlap. We build an order parameter combining the predicted distribution with embedding overlap, as a density matrix because that distribution lives over a non-orthogonal basis. It decomposes additively into a signal term tracking commitment to the correct token and a drag term set by how the embedding bulk leaks probability into the score. This isolates two failure modes. In kinematic failure the signal stays too small and the model never commits. In structural failure the drag worsens during fine-tuning, so the model degrades geometrically as its loss falls. The order parameter also shows sharp jumps resembling phase transitions. We test the spontaneous-symmetry-breaking reading by tracking it after every gradient step, and rule it out. The jumps persist under LoRA even though the token embedding matrix never changes. No geometric phase transition is possible when that geometry cannot move, so the discontinuity lies entirely in the softmax readout. A few dimensionless quantities organize the trajectory across architectures. One is consistent across all five models under full fine-tuning. A second sorts architectures into two classes by their bulk embedding distribution and predicts whether LoRA alone can make a sentence commit. As a blind test, the framework predicts a held-out architecture's critical learning rate to within 2.1% of a later sweep. These results characterize this near-synonym mechanism and need recalibration before extrapolation.

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

↑