关于分数函数的重参数化
On Reparameterizing the Score Function
AI总结:
针对自回归序列模型策略梯度的信用分配瓶颈,提出历史重参数化策略梯度及最优控制变元估计器,在多个基准模型上验证其方差减少效果。
摘要:
自回归序列模型的策略梯度在固定条件历史的同时对每个 token 的对数概率求导,这会丢弃早期决策如何塑造后续条件分布的信息,在奖励稀疏时造成信用分配瓶颈。我们提出历史重参数化(History-Reparameterized, HR)策略梯度,它将分数函数中的冻结前缀替换为可微的重参数化或松弛历史,使下游对数概率的梯度能通过生成轨迹反向传播。直接添加得到的历史路径项通常存在偏差,因此我们推导了最优 HR(Optimal HR, OHR),这是一种带闭式系数的中心化控制变元估计器,可在总体水平最小化梯度方差的迹。方差减少受策略动态的时间结构支配:随机或弱结构化策略几乎无收益,而具有学习到的序列依赖的策略能产生有价值的历史路径修正。对于离散 token,松弛的选择至关重要:嵌入级松弛可产生随时间范围增长的显著方差减少,而直通 Gumbel-Softmax 在我们的诊断中几乎无效果。我们在高斯线性马尔可夫模型、带循环策略的稀疏奖励 T 迷宫以及用于小型旅行商问题(Traveling Salesman Problem, TSP)实例的自回归 Transformer 模型上验证了该方法。
英文摘要:
Policy gradients for autoregressive sequence models differentiate each token's log-probability while holding the conditioning history fixed. This discards information about how earlier decisions shape later conditional distributions, creating a credit-assignment bottleneck when rewards are sparse. We introduce History-Reparameterized (HR) policy gradients, which replace the frozen prefix in the score function with a differentiable reparameterized or relaxed history, allowing gradients of downstream log-probabilities to propagate backward through the generated trajectory. The resulting history-pathwise term is generally biased when added directly, so we derive Optimal HR (OHR), a centered control-variate estimator with a closed-form coefficient that minimizes the trace of the gradient variance at the population level. The variance reduction is governed by temporal structure in the policy dynamics: random or weakly structured policies provide little benefit, while policies with learned sequential dependencies yield informative history-pathwise corrections. For discrete tokens, the choice of relaxation is crucial: embedding-level relaxation yields substantial variance reduction that grows with horizon, whereas straight-through Gumbel-Softmax yields essentially none in our diagnostics. We validate the method on a Gaussian linear Markov model, a sparse-reward T-maze with a recurrent policy, and an autoregressive Transformer model for small Traveling Salesman Problem (TSP) instances.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。