Concept animation

Paper: 2604.06159 Authors: Jean Kaddour Categories: cs.LG

The Gap

Policy gradient methods (PG, PPO, GRPO) answer two questions simultaneously: which completions should gain probability mass, and how should parameters move to realize that change. This coupling creates a problem—the update can overshoot or undershoot depending on learning rate, clipping, and optimizer hyperparameters. When rewards are sparse, this becomes critical: you might take a tiny step toward a rare good completion, or overshoot and lose it entirely. Prior methods treat this as a hyperparameter tuning problem. This paper asks: what if we separate the two questions?

Sparse Reward Problem:
  |
  v
Hypothesis: Coupling target selection + parameter update
            causes instability
  |
  v
Method: Decouple via explicit target distribution
        q_i ∝ p_i^old * exp(u_i)
        then fit policy by cross-entropy
  |
  v
Evidence: Tabular bandits, transformers, billion-param LLMs
          TPO matches baselines on easy tasks
          substantially outperforms on sparse reward
  |
  v
Conclusion: Explicit target + supervised fitting
            is more stable than implicit PG updates

The Increment

One sentence: Before, RL updates entangled target selection with optimization dynamics; after, we construct an explicit target distribution and fit to it via supervised learning.

Core Mechanism

TPO operates in two clean phases. First, given a prompt, sample completions from the current policy and score them with a reward model. Use these scores to construct a target distribution: q_i is proportional to the old policy probability times the exponential of the utility (advantage). This target distribution explicitly encodes which completions should gain mass.

Second, fit the policy to this target via cross-entropy loss. The gradient on sampled-completion logits becomes p^θ - q, which vanishes when the policy matches the target. No clipping, no KL penalties in the loss—the target distribution already incorporates the old policy, so you’re not drifting arbitrarily far. The update is a supervised learning step, not a policy gradient step.

Phase 1: Construct Target          Phase 2: Fit Policy
                                   
prompt --> sample --> score        target q_i ∝ p_i^old * exp(u_i)
           |                                |
           v                                v
    [c1, c2, ..., cn]              minimize: -sum q_i log p_i^θ
           |                                |
           v                                v
    [u1, u2, ..., un]              gradient: p^θ - q --> 0

Think of it like adjusting a recipe. Standard policy gradient methods taste the dish (get rewards), then immediately adjust the heat and ingredients (update parameters) in one motion—easy to overshoot. TPO instead writes down the ideal flavor profile first (target distribution), then carefully adjusts the recipe to match that profile (supervised fitting). The target is your reference point; you stop when you’ve matched it, not when some learning rate schedule says to stop.

Key Concepts

  • Target Distribution as Reweighted Policy: The formula q_i ∝ p_i^old ** exp(u_i) is doing something subtle. It’s not just “make good things more likely”—it’s reweighting the old policy by exponentiating advantages. If a completion had 1% probability and high advantage, it might jump to 5% in the target. If it had 40% probability and low advantage, it might drop to 20%. The target is a concrete distribution you can sample from, visualize, and debug. Standard PG methods have an implicit target that emerges from the gradient; TPO makes it explicit.

  • Cross-Entropy Fitting vs Policy Gradient: Policy gradient computes ∇log p(a|s) ** A(s,a) and steps in that direction. The step size is controlled by learning rate, and you hope it lands somewhere good. Cross-entropy fitting computes p^θ - q and steps to minimize that gap. The “step size” is implicit—you stop when p^θ ≈ q. This is why TPO is more stable under sparse reward: you’re not taking blind steps scaled by a hyperparameter; you’re fitting to a fixed target.

Framework Shift

Before (Policy Gradient):           After (TPO):

sample --> reward --> gradient      sample --> reward --> target dist
              |                                    |
              v                                    v
         ∇log p * A                    q ∝ p^old * exp(u)
              |                                    |
              v                                    v
      θ += lr * gradient              fit p^θ to q via CE
              |                                    |
              v                                    v
      (hope it's good)                (stop when p ≈ q)

Implicit target, explicit step      Explicit target, implicit step

From gradient-driven exploration to target-driven fitting, the core shift is replacing a scaled gradient step with a supervised learning objective.

Expert Assessment

Problem choice: Real gap. Sparse reward instability is a known pain point in RLHF and RL fine-tuning. The coupling of target selection and optimization has been discussed informally, but rarely formalized as a design choice to revisit. This sits at the intersection of practical LLM training and foundational RL theory—good positioning.

Method maturity: Elegant insight, not brute force. The exponential reweighting q ∝ p^old ** exp(u) is borrowed from control-as-inference literature, but applying it as an explicit intermediate target is clever. The simplicity is a strength—no new hyperparameters beyond what you’d already tune in PPO. However, the paper doesn’t deeply explore failure modes: what if the target distribution is multimodal and hard to fit? What if exp(u) creates extreme weights?

Experimental integrity: Baselines are fair (PG, PPO, GRPO, DG). The billion-parameter LLM experiments are convincing—sparse reward tasks show clear wins. But the paper leans heavily on “substantially outperforms” without error bars or significance tests in some plots. The tabular bandit results are clean, but those are toy problems. I’d want to see more ablation on the target construction—what if you use q ∝ p^old ** u instead of exp(u)?

Writing quality: The abstract and intro are crisp. The method section could use a diagram showing the two-phase structure more explicitly. The related work is thin—missing connections to KL-regularized RL, DPO, and other recent RLHF methods that also construct implicit targets. The conclusion is a missed opportunity to discuss when TPO might fail or when PG is preferable.

Verdict: weak accept — Solid idea with convincing evidence on a real problem, but needs deeper analysis of failure modes and stronger statistical rigor in experiments.

Takeaways

Steal the two-phase structure: separate “what should the model do” from “how do I update parameters to get there.” This applies beyond RL—any time you’re optimizing with noisy signals, consider constructing an explicit intermediate target. The exponential reweighting trick (q ∝ p * exp(u)) is a clean way to turn advantages into a distribution without clipping or thresholding. If you’re training LLMs with sparse feedback, TPO’s cross-entropy fitting is worth trying—it’s a drop-in replacement for PPO with potentially better stability.

论文: 2604.06159 作者: Jean Kaddour 分类: cs.LG

缺口

策略梯度方法(PG、PPO、GRPO)同时回答两个问题:哪些补全应该获得更高概率,以及参数应该如何移动来实现这一变化。

这种耦合带来问题——更新可能过冲或欠冲,取决于学习率、裁剪和优化器超参数。

当奖励稀疏时,这变得关键:你可能朝着罕见的好补全迈出微小一步,或者过冲而完全失去它。

先前方法将此视为超参数调优问题。

本文提问:如果我们分离这两个问题会怎样?

稀疏奖励问题:
  |
  v
假设: 目标选择+参数更新的耦合
      导致不稳定
  |
  v
方法: 通过显式目标分布解耦
      q_i ∝ p_i^old * exp(u_i)
      然后用交叉熵拟合策略
  |
  v
证据: 表格赌博机、transformer、十亿参数LLM
      TPO在简单任务上匹配基线
      在稀疏奖励上显著优于基线
  |
  v
结论: 显式目标+监督拟合
      比隐式PG更新更稳定

增量

一句话: 之前,强化学习更新将目标选择与优化动力学纠缠在一起;之后,我们构造显式目标分布并通过监督学习拟合它。

核心机制

TPO分两个清晰阶段运作。

首先,给定提示,从当前策略采样补全并用奖励模型打分。

用这些分数构造目标分布:q_i正比于旧策略概率乘以效用(优势)的指数。

这个目标分布显式编码了哪些补全应该获得概率质量。

其次,通过交叉熵损失将策略拟合到这个目标。

采样补全logits上的梯度变成p^θ - q,当策略匹配目标时梯度消失。

没有裁剪,损失中没有KL惩罚——目标分布已经包含了旧策略,所以你不会任意漂移太远。

更新是监督学习步骤,而非策略梯度步骤。

阶段1: 构造目标                阶段2: 拟合策略
                                   
提示 --> 采样 --> 打分          目标 q_i ∝ p_i^old * exp(u_i)
         |                                |
         v                                v
  [c1, c2, ..., cn]              最小化: -sum q_i log p_i^θ
         |                                |
         v                                v
  [u1, u2, ..., un]              梯度: p^θ - q --> 0

把它想象成调整食谱。

标准策略梯度方法品尝菜肴(获得奖励),然后立即在一个动作中调整火候和配料(更新参数)——容易过冲。

TPO则先写下理想的风味轮廓(目标分布),然后仔细调整食谱以匹配该轮廓(监督拟合)。

目标是你的参考点;当你匹配它时停止,而非某个学习率调度说停止时停止。

关键概念

  • 目标分布作为重加权策略: 公式q_i ∝ p_i^old ** exp(u_i)在做一件微妙的事。

它不只是”让好东西更可能”——它通过对优势取指数来重加权旧策略。

如果一个补全有1%概率和高优势,它可能在目标中跳到5%。

如果它有40%概率和低优势,它可能降到20%。

目标是一个具体的分布,你可以从中采样、可视化和调试。

标准PG方法有一个从梯度中涌现的隐式目标;TPO让它显式化。

  • 交叉熵拟合vs策略梯度: 策略梯度计算∇log p(a|s) ** A(s,a)并朝那个方向步进。

步长由学习率控制,你希望它落在某个好地方。

交叉熵拟合计算p^θ - q并步进以最小化该差距。

“步长”是隐式的——当p^θ ≈ q时停止。

这就是为什么TPO在稀疏奖励下更稳定:你不是迈出由超参数缩放的盲目步伐;你在拟合一个固定目标。

框架转变

之前(策略梯度):                 之后(TPO):

采样 --> 奖励 --> 梯度          采样 --> 奖励 --> 目标分布
            |                                  |
            v                                  v
       ∇log p * A                  q ∝ p^old * exp(u)
            |                                  |
            v                                  v
    θ += lr * 梯度                 用CE拟合p^θ到q
            |                                  |
            v                                  v
      (希望它好)                      (p ≈ q时停止)

隐式目标,显式步长                显式目标,隐式步长

从梯度驱动探索到目标驱动拟合,核心转变是用监督学习目标替换缩放梯度步。

专家评审

选题眼光: 真实缺口。

稀疏奖励不稳定性是RLHF和强化学习微调中的已知痛点。

目标选择与优化的耦合已被非正式讨论,但很少被形式化为可重新审视的设计选择。

这处于实用LLM训练与基础强化学习理论的交叉点——定位良好。

方法成熟度: 优雅洞见,非蛮力。

指数重加权q ∝ p^old * exp(u)借鉴自控制即推理文献,但将其应用为显式中间目标很巧妙。

简洁性是优势——除了你在PPO中已经调优的参数外没有新超参数。

然而,论文没有深入探索失败模式:如果目标分布是多峰且难以拟合怎么办?如果exp(u)创建极端权重怎么办?

实验诚意: 基线公平(PG、PPO、GRPO、DG)。

十亿参数LLM实验令人信服——稀疏奖励任务显示明显优势。

但论文在某些图中严重依赖”显著优于”而没有误差条或显著性检验。

表格赌博机结果干净,但那些是玩具问题。

我想看到更多关于目标构造的消融——如果你用q ∝ p^old * u而非exp(u)会怎样?

写作功力: 摘要和引言简洁。

方法部分可以用图更明确地展示两阶段结构。

相关工作单薄——缺少与KL正则化强化学习、DPO和其他也构造隐式目标的最新RLHF方法的联系。

结论是错失的机会,未讨论TPO何时可能失败或何时PG更可取。

判决: 弱接收 — 在真实问题上有令人信服证据的扎实想法,但需要更深入的失败模式分析和实验中更强的统计严谨性。

要点总结

偷走两阶段结构:分离”模型应该做什么”与”我如何更新参数以达到目标”。

这超越了强化学习——任何时候你用噪声信号优化,考虑构造显式中间目标。

指数重加权技巧(q ∝ p * exp(u))是将优势转化为分布的干净方式,无需裁剪或阈值化。

如果你在用稀疏反馈训练LLM,TPO的交叉熵拟合值得尝试——它是PPO的即插即用替代品,可能有更好的稳定性。