重新思考GSPO:困惑度-熵等价性
Rethinking GSPO: The Perplexity-Entropy Equivalence
AI总结:
本文揭示GSPO序列级权重等价于逆困惑度比率和指数交叉熵变化,提供信息论视角解释其方差缩减与混合专家训练稳定性,并通过数学推理实验验证。
摘要:
我们对GSPO的长度归一化重要性比率提供了新的视角,通过建立它们与信息论量之间的联系。我们证明,GSPO的序列级权重 $s(θ) = (π_θ/π_{θ_{\text{old}}})^{1/|y|}$ 可以等价地表示为逆困惑度比率 $\text{PPL}_{θ_{\text{old}}}/\text{PPL}_θ$,以及指数交叉熵变化 $\exp(ΔH)$。虽然困惑度-熵关系源于标准定义,但这一观察为理解GSPO提供了一个有用的视角:该算法通过困惑度比率对策略梯度更新进行加权,从而为重要性权重提供了信息论解释。这一视角有助于解释GSPO的经验特性,包括通过几何平均实现的log域方差缩减,以及在训练混合专家模型时的稳定性。我们通过数学推理任务上的受控实验验证了数学等价性和方差预测。
英文摘要:
We provide a new perspective on GSPO's length-normalized importance ratios by establishing their connection to information-theoretic quantities. We show that GSPO's sequence-level weight $s(θ) = (π_θ/π_{θ_{\text{old}}})^{1/|y|}$ can be equivalently expressed as the inverse perplexity ratio $\text{PPL}_{θ_{\text{old}}}/\text{PPL}_θ$ and as the exponential cross-entropy change $\exp(ΔH)$. While the perplexity-entropy relationship follows from standard definitions, this observation provides a useful lens for understanding GSPO: the algorithm weights policy gradient updates by perplexity ratios, offering an information-theoretic interpretation of the importance weights. This perspective helps explain GSPO's empirical properties, including log-domain variance reduction through geometric averaging and stability in training mixture-of-experts models. We validate the mathematical equivalences and variance predictions through controlled experiments on mathematical reasoning tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。