Introduction
Agentic large language models (LLMs) are increasingly post-trained with reinforcement learning fine-tuning (RFT) to act on software systems (Zhang et al., 2026; Wei et al., 2025b), where tasks range from writing or repairing code (Wei et al., 2025b), to investigating security incidents through logs and configurations (Wang et al., 2024; Roy et al., 2024), to discovering, reproducing, and autonomously patching security vulnerabilities [48 ] (Zhang et al. 2025; Wang et al. 2025a). But, when an agent trajectory spans many tool calls and reasoning chains, reproducibility and variance become increasingly problematic due to sparse verifiable outcomes, partial observability, or context compression. Even under deterministic rewards, the resulting trajectory returns exhibit high variance due to long horizons, partial observability, and state aliasing [42 , 67 ] (Spaan 2012; Yao et al. 2023). Policy-gradient methods such as PPO (Schulman et al., 2017) partly reduce variance with a learned critic, at the cost of GPU memory for a second model and possible bias depending on how we bootstrap (Schulman et al., 2016). Critic-free methods such as GRPO (Shao et al., 2024) instead compute a baseline from a group of repeated rollouts per prompt, which moves the cost to throughput and requires every rollout in the group to have identical initial states. This assumption is fine for static code-writing, but is unrealistic in live or production systems where agents operate in stateful sandboxes. Moreover, despite these variance-reduction methods, most policy gradient methods still concentrate aggressively on absolute returns [60 ] .
40th Conference on Neural Information Processing Systems (NeurIPS 2026). These costs compound when trajectories are expensive to collect, comparable rollouts are difficult to obtain, and returns depend on sparse or approximate verification. For instance, in a security workflow, an attack-chain investigation may yield a single useful trajectory whose initial sandbox state is costly or impractical to reconstruct to gather more data. Likewise, a long-horizon inspection of logs to locate a bug or vulnerability can drift, hallucinate, or reason incorrectly, so that two trajectories on similar incidents yield different returns. Such data and post-training considerations suggest that a practical critic-free RFT algorithm should update conservatively to reduce noise entrenchment while drawing variance reduction from sources without GRPO’s or PPO’s stringent constraints.
We propose Follow the Winners (FTW), a critic-free policy-learning algorithm that induces polynomial concentration in the order statistic of returns. This behavior stems from our trajectory filtering procedure, which adapts the cross-entropy method [12 ] (Rubinstein 1997; Rubinstein 1999) to deep RL through minibatched filtering over a replay-buffer proposal that amortizes data generation and serves as the alternative source of variance reduction. We show that the well-known post-training algorithm DPO (Rafailov et al., 2023) and FTW share a bounded risk-seeking offset, which we identify as inherent to reducing variance through ordinal filters on samples. Furthermore, we show that GRPO is risk-neutral and that FTW controls its risk offset through its selection pressure.
Our analysis is grounded in the Control-as-Inference (CAI) framework [50 , 44 ] (Ziebart 2010), which we extend by recasting critic-free RFT as inference over potentials defined on trajectory batches rather than individual trajectories. The resulting variational objective motivates the cross-entropy method as a simple sampling-and-projection scheme for optimization, from which we derive FTW. Under the same view, DPO emerges as the pairwise special case of a Plackett–Luce potential [56 , 71 ] (Rafailov et al. 2023), while GRPO (Shao et al., 2024) optimizes a Rao–Blackwellized upper bound on the evidence of a multinomial potential. This places GRPO, DPO, and FTW in a shared design space in which we can juxtapose their modelling decisions and risk offsets, a second theoretical axis of trade-offs next to the practical considerations.
We validate our theory predictions on diagnostic bandit problems and show that FTW extends as a general policy learning method in Brax continuous-control. Scaled to agentic LLM post-training, FTW trains more stably and with lower seed variance than REINFORCE++ [38 ] , and matches GRPO and PPO on Sokoban and the published Search-R1 baselines but with our alternative variance-reduction scheme, i.e., no value model, group rollouts or environment duplication. The LLM results show that the combined effect of FTW’s polynomially concentrating learning rule and replay-buffer proposal is a viable alternative to critics or group rollouts for counteracting variance.
Background
Large Language Models. A large language model (LLM) defines an autoregressive distribution over token sequences that typically uses an attention-based neural architecture (Vaswani et al., 2017). We write its as p θ ( X 1 : T ) = ∏ t = 1 T p θ ( X t ∣ X < t ) p_{\theta}(X_{1:T}) = \prod_{t=1}^{T} p_{\theta}(X_t \mid X_{<t}) p θ ( X 1 : T ) = ∏ t = 1 T p θ ( X t ∣ X < t ) , where X < t = ( X 1 , … , X t − 1 ) X_{<t} = (X_1, \ldots, X_{t-1}) X < t = ( X 1 , … , X t − 1 ) denotes the prefix of previously generated tokens, X t X_t X t denotes the next token, and θ \theta θ parameterizes the model. The parameters θ p r e ∗ \theta_{\mathrm{pre}}^{*} θ pre ∗ are fitted through supervised pre-training. Given a dataset of example sequences D = { x 1 : T ( i ) } i = 1 N \mathcal{D} = \{x_{1:T}^{(i)}\}_{i=1}^{N} D = { x 1 : T ( i ) } i = 1 N , this corresponds to solving θ p r e ∗ = arg max θ E x 1 : T ∼ μ D ln p θ ( X 1 : T = x 1 : T ) \theta_{\mathrm{pre}}^{*} = \mathop{\arg\max}_{\theta} \mathbb{E}_{x_{1:T} \sim\mu_{\mathcal{D}}} \ln p_{\theta}(X_{1:T} = x_{1:T}) θ pre ∗ = arg max θ E x 1 : T ∼ μ D ln p θ ( X 1 : T = x 1 : T ) . In practice, many additional techniques are used to stabilize and improve training, including positional encodings (Su et al., 2024), layer normalization [9 ] , gradient clipping, and tokenization.
Reinforcement Learning for Agentic LLMs. Agentic problems are partially observable Markov decision processes (POMDPs, Kaelbling et al., 1998; Spaan, 2012), specified by states s ∈ S s \in\mathcal{S} s ∈ S , observations o ∈ Ω o \in\Omega o ∈ Ω , actions a ∈ A a \in\mathcal{A} a ∈ A , a reward function R ( s t , a t ) ≜ R t R(s_t, a_t) \triangleq R_t R ( s t , a t ) ≜ R t , transition dynamics p ( S t + 1 ∣ S t = s , A t = a ) p(S_{t+1} \mid S_t = s, A_t = a) p ( S t + 1 ∣ S t = s , A t = a ) , observation kernel p ( O t ∣ S t = s ) p(O_t \mid S_t = s) p ( O t ∣ S t = s ) and a discount factor γ ∈ [ 0 , 1 ] \gamma\in[0, 1] γ ∈ [ 0 , 1 ] . In the LLM setting, observations and actions both occupy a textual medium, although the formulation naturally extends to mixed-modality settings. Given a pretrained LLM p θ ( x 1 : T ) p_{\theta}(x_{1:T}) p θ ( x 1 : T ) that maps histories to next-token predictions, we write it as a history-dependent policy π θ ( A t ∣ H t ) \pi_{\theta}(A_t \mid H_t) π θ ( A t ∣ H t ) , where H t = ( O 0 , A 0 , … , O t − 1 , A t − 1 , O t ) H_t = (O_0, A_0, \ldots, O_{t-1}, A_{t-1}, O_t) H t = ( O 0 , A 0 , … , O t − 1 , A t − 1 , O t ) denotes the interaction history available before taking action A t A_t A t . Observations O t O_t O t can be viewed as externally provided context tokens, which are masked in the output likelihood as they are not generated by the policy itself. The policy induces the marginal,
p π θ ( H T ) = ∫ d S 0 : T p ( S 0 ) p ( O 0 ∣ S 0 ) ∏ t = 0 T − 1 π θ ( A t ∣ H t ) p ( S t + 1 ∣ S t , A t ) p ( O t + 1 ∣ S t + 1 ) . (1) p_{\pi_\theta}(H_T) = \int dS_{0:T}\,p(S_0)\,p(O_0 \mid S_0)\prod_{t=0}^{T-1}\pi_\theta(A_t \mid H_t)p(S_{t+1} \mid S_t,A_t)p(O_{t+1} \mid S_{t+1}). \tag*{(1)} p π θ ( H T ) = ∫ d S 0 : T p ( S 0 ) p ( O 0 ∣ S 0 ) t = 0 ∏ T − 1 π θ ( A t ∣ H t ) p ( S t + 1 ∣ S t , A t ) p ( O t + 1 ∣ S t + 1 ) . (1)
The goal of reinforcement learning is then to find parameters θ R F T ∗ \theta_{\mathrm{RFT}}^* θ RFT ∗ that maximize expected return, initialized from pretrained weights θ p r e ∗ \theta_{\mathrm{pre}}^* θ pre ∗ , i.e., θ R F T ∗ = arg max θ E p π θ ( H T , S 0 : T ) [ ∑ t = 0 T γ t R ( S t , A t ) ] \theta_{\mathrm{RFT}}^* = \arg\max_\theta\mathbb{E}_{p_{\pi_\theta}(H_T,S_{0:T})}\left[\sum_{t=0}^{T}\gamma^t R(S_t,A_t)\right] θ RFT ∗ = arg max θ E p π θ ( H T , S 0 : T ) [ ∑ t = 0 T γ t R ( S t , A t ) ] . We write the returns starting at any t t t as G t = G ( H t : T ) ∼ Law ( ∑ i = t T R i ∣ H t : T ) G_t = G(H_{t:T}) \sim\operatorname{Law}\left(\sum_{i=t}^{T}R_i \mid H_{t:T}\right) G t = G ( H t : T ) ∼ Law ( ∑ i = t T R i ∣ H t : T ) . When rewards are immediately available they can also be absorbed in the observations for to enable adaptation.
Control-as-Inference. The Control-as-Inference (CAI) framework Levine [50 ] ; ); Kappen et al. [44 ] reframes the optimization of θ R F T ∗ \theta_{\mathrm{RFT}}^* θ RFT ∗ as a probabilistic inference problem. The central idea is to tilt a prior trajectory distribution p π θ p_{\pi_\theta} p π θ by an energy function Φ : H → R \Phi:\mathcal{H}\to\mathbb{R} Φ : H → R that biases towards the expected return. This is commonly written by introducing a binary optimality variable O t ∈ { 0 , 1 } O_t \in\{0,1\} O t ∈ { 0 , 1 } with conditional likelihood Φ 1 : T ≜ p ( O 1 : T = 1 ∣ H T ) ∝ exp E S 0 : T ∣ H T G ( H T ) = ∏ t = 1 T exp E S t ∣ H t R t \Phi_{1:T} \triangleq p(O_{1:T}=1\mid H_T)\propto\exp\mathbb{E}_{S_{0:T}\mid H_T}G(H_T)=\prod_{t=1}^{T}\exp\mathbb{E}_{S_t\mid H_t}R_t Φ 1 : T ≜ p ( O 1 : T = 1 ∣ H T ) ∝ exp E S 0 : T ∣ H T G ( H T ) = ∏ t = 1 T exp E S t ∣ H t R t , so that high return trajectories receive larger posterior mass. By Bayes’ rule, at any step t t t this induces a posterior policy, which is optimality-conditioned from t t t to T T T ,
p π θ ( A t ∣ H t , O t : T = 1 ) = π θ ( A t ∣ H t ) E H T ∼ p π θ ( ⋅ ∣ H t , A t ) [ Z ( H T , A t ) − 1 exp E S t : T ∣ H T G t ] E H T ∼ p π θ ( ⋅ ∣ H t ) [ Z ( H T ) − 1 exp E S t : T ∣ H T G t ] , (2) p_{\pi_\theta}(A_t\mid H_t,O_{t:T}=1)=\pi_\theta(A_t\mid H_t)\frac{\mathbb{E}_{H_T\sim p_{\pi_\theta}(\cdot\mid H_t,A_t)}\left[Z(H_T,A_t)^{-1}\exp\mathbb{E}_{S_{t:T}\mid H_T}G_t\right]}{\mathbb{E}_{H_T\sim p_{\pi_\theta}(\cdot\mid H_t)}\left[Z(H_T)^{-1}\exp\mathbb{E}_{S_{t:T}\mid H_T}G_t\right]}, \tag*{(2)} p π θ ( A t ∣ H t , O t : T = 1 ) = π θ ( A t ∣ H t ) E H T ∼ p π θ ( ⋅ ∣ H t ) [ Z ( H T ) − 1 exp E S t : T ∣ H T G t ] E H T ∼ p π θ ( ⋅ ∣ H t , A t ) [ Z ( H T , A t ) − 1 exp E S t : T ∣ H T G t ] , (2)
which reweights the prior policy π θ ( A t ∣ H t ) \pi_\theta(A_t\mid H_t) π θ ( A t ∣ H t ) according to the exponentiated expected return. The partition function Z Z Z normalizes the potential, and G G G is a deterministic function over the trajectories. A well known property of this posterior policy is that it is exactly the optimal policy for a KL-regularized augmentation of the base MDP (see Appendix § 13 ). In particular, it solves the variational optimization,
p π θ ( ⋅ ∣ O t : T = 1 ) = p q ∗ ( ⋅ ) = arg max q ∈ Π E p q [ ln p ( O t : T = 1 ∣ H t : T ) ] − E p q D K L ( q ∥ π θ ) , (3) p_{\pi_\theta}(\cdot\mid O_{t:T}=1)=p_{q^*}(\cdot)=\arg\max_{q\in\Pi}\mathbb{E}_{p_q}\left[\ln p(O_{t:T}=1\mid H_{t:T})\right]-\mathbb{E}_{p_q}D_{\mathrm{KL}}(q\parallel\pi_\theta), \tag*{(3)} p π θ ( ⋅ ∣ O t : T = 1 ) = p q ∗ ( ⋅ ) = arg q ∈ Π max E p q [ ln p ( O t : T = 1 ∣ H t : T ) ] − E p q D KL ( q ∥ π θ ) , (3)
where Π = { π ∣ π : H → Δ ( A ) } \Pi=\{\pi\mid\pi:\mathcal{H}\to\Delta(\mathcal{A})\} Π = { π ∣ π : H → Δ ( A )} denotes the set of admissible policies. This makes the framework especially useful in deep RL, where regularized policy improvement has proven effective in practice.
The Cross-Entropy Method. To solve Eq. (3) , algorithms such as MPO Abdolmaleki et al. [1 ] sample directly from Eq. (2) before projecting the resulting solution back onto a parametric model1 . This reflects a broader bootstrap-and-project scheme: trajectories are drawn from the proposal p π θ ( H T ) p_{\pi_\theta}(H_T) p π θ ( H T ) , reweighted by an unnormalized potential Φ ( ⋅ ) \Phi(\cdot) Φ ( ⋅ ) encoding the optimization direction, and the resulting Φ \Phi Φ -tilted empirical distribution is projected back onto the parametric family of π θ \pi_\theta π θ to define the next prior. A useful parallel can be drawn here to the cross-entropy method (CEM) for optimization Rubinstein (1997, 1999); ); Botey et al. [12 ] , see Algorithm 1. CEM similarly draws a batch { x i } i = 1 N ∼ q ψ t \{x_i\}_{i=1}^{N}\sim q_{\psi_t} { x i } i = 1 N ∼ q ψ t , scores each sample by S ( x i ) S(x_i) S ( x i ) , and iteratively concentrates q ψ t q_{\psi_t} q ψ t on high-scoring x i x_i x i in order to approach arg max x S ( x ) \arg\max_x S(x) arg max x S ( x ) . Concretely, it uses an indicator potential Φ ( x ) = 1 S ( x ) ≥ μ t \Phi(x)=\mathbf{1}_{S(x)\ge\mu_t} Φ ( x ) = 1 S ( x ) ≥ μ t , where μ t \mu_t μ t is the ( 1 − ρ ) (1-\rho) ( 1 − ρ ) -quantile of S S S under q ψ t q_{\psi_t} q ψ t for ρ ∈ ( 0 , 1 ) \rho\in(0,1) ρ ∈ ( 0 , 1 ) . In practice, μ t \mu_t μ t is estimated by the score of the ⌈ ρ N ⌉ \lceil\rho N\rceil ⌈ ρN ⌉ -th best-batch-sample. The indicator thus retains the top-quantile samples, and the parametric family is refit to this elite set by cross-entropy minimization, typically in closed-form. We adapt this for deep-RL in Section 3.
Follow the Winners: Model Derivation & Elite Filtering
We derive Follow the Winners (FTW) from a CAI problem in which optimality is specified through ordinal comparisons rather than cardinal returns. The idea is to perform inference not over a single trajectory, but over a finite batch of trajectories, and to then condition this batch on an ordinal observation which specifies trajectory preference. This yields an evidence lower bound whose optimization naturally suggests a sample-and-project method: tilt the sampling distribution toward trajectories that win local comparisons, then project the resulting distribution onto the policy class.
Algorithm 2: Follow the Winners (FTW).
Input: Policies π θ \pi_\theta π θ , π r e f \pi_{\mathrm{ref}} π ref , buffer size M M M , batch size C C C , winners K K K , batches J J J , KL weight λ \lambda λ .
Initialize FIFO queue B M ← ∅ \mathcal{B}_M \leftarrow\varnothing B M ← ∅ s.t. ∣ B M ∣ ≤ M |\mathcal{B}_M| \le M ∣ B M ∣ ≤ M
while not converged do
Collect (async) H 0 : T ∼ π θ t H_{0:T} \sim\pi_{\theta_t} H 0 : T ∼ π θ t and append to B M \mathcal{B}_M B M
for j = 1 , … , J j = 1,\ldots,J j = 1 , … , J do
Sample B C ( j ) = { H 0 : T ( i ) } i = 1 C ∼ Unif ( B M ) \mathcal{B}_C^{(j)} = \{H_{0:T}^{(i)}\}_{i=1}^{C} \sim\operatorname{Unif}(\mathcal{B}_M) B C ( j ) = { H 0 : T ( i ) } i = 1 C ∼ Unif ( B M )
Score each H 0 : T ( i ) ∈ B C ( j ) H_{0:T}^{(i)} \in\mathcal{B}_C^{(j)} H 0 : T ( i ) ∈ B C ( j ) by G ( H 0 : T ( i ) ) G(H_{0:T}^{(i)}) G ( H 0 : T ( i ) )
Elite-set E ( j ) ← \mathcal{E}^{(j)} \leftarrow E ( j ) ← top-K K K trajectories under G G G
∇ θ L ← E U j E ( j ) [ ∇ θ ln π θ ] − λ ∇ θ D K L \nabla_\theta\mathcal{L} \leftarrow\mathbb{E}_{U_j \mathcal{E}^{(j)}}[\nabla_\theta\ln\pi_\theta] - \lambda\nabla_\theta D_{\mathrm{KL}} ∇ θ L ← E U j E ( j ) [ ∇ θ ln π θ ] − λ ∇ θ D KL Eq. (4)
Project θ t + 1 ← θ t + α ∇ θ L \theta_{t+1} \leftarrow\theta_t + \alpha\nabla_\theta\mathcal{L} θ t + 1 ← θ t + α ∇ θ L
Return π θ \pi_\theta π θ
Model Derivation
Model Derivation. Standard CAI formulates policy optimization as inference over individual trajectories H T H_T H T , typically by conditioning on binary optimality variables O t ∈ { 0 , 1 } O_t \in\{0,1\} O t ∈ { 0 , 1 } . In agentic RFT, however, scalar trajectory returns can be sparse, noisy, and difficult to calibrate across tasks, while relative comparisons among sampled rollouts are often more reliable. We therefore replace inference over individual trajectories with inference over finite collections B N = ( H T 1 , … , H T N ) \mathcal{B}_N = (H_T^1,\ldots,H_T^N) B N = ( H T 1 , … , H T N ) . Under a base sampling policy π \pi π , a collection is distributed according to the product measure p π ( B N ) = ∏ n = 1 N p π ( H T n ) p_\pi(\mathcal{B}_N) = \prod_{n=1}^{N} p_\pi(H_T^n) p π ( B N ) = ∏ n = 1 N p π ( H T n ) . The collection B N \mathcal{B}_N B N provides a local comparison set for defining ordinal feedback.
To encode this feedback, let C ( B N ) = ( i 1 , … , i N ) \mathcal{C}(\mathcal{B}_N) = (i_1,\ldots,i_N) C ( B N ) = ( i 1 , … , i N ) denote the ranking induced over the collection, where H T i 1 ≻ ⋯ ≻ H T i N H_T^{i_1} \succ\cdots\succ H_T^{i_N} H T i 1 ≻ ⋯ ≻ H T i N . The binary optimality variable of standard CAI is then replaced by an ordinal observation variable O T O_T O T , whose support depends on the likelihood model. For instance, under a Plackett–Luce model, O T O_T O T denotes a full permutation σ \sigma σ of the trajectories, while for a multinomial model, O T ∈ { 1 , … , N } O_T \in\{1,\ldots,N\} O T ∈ { 1 , … , N } denotes the identity of a preferred trajectory. We write Φ T ( B N ) \Phi_T(\mathcal{B}_N) Φ T ( B N ) for the likelihood, or unnormalized potential, assigned to the batch B N \mathcal{B}_N B N under the ordinal observation.
For simplicity, we focus on the sparse final-reward setting and condition only on O T O_T O T , avoiding partial trajectory feedback through O t O_t O t for t ≠ T t \ne T t = T . We further assume that the ranking rule C \mathcal{C} C is consistent across subsets, satisfying independence of irrelevant alternatives (IIA), which implies a total ordering over the trajectory domain [59 , 56 ] . This assumption is important for our algorithmic construction: IIA ensures that the per-minibatch rankings used by FTW’s elite-filtering step are consistent with an underlying total ordering of conditional returns.
Under our ordinal CAI construction, the marginal is lower-bounded as (compare with Eq. (3) ):
ln p π θ ( O T ) = ln E p π θ ( B N ) Φ T ( B N ) ≥ E p q [ ln Φ T ( B N ) − N ⋅ D K L ( q ∥ π θ ) ] = L Φ ( q , π θ ) . (4) \ln p_{\pi_\theta}(O_T) = \ln\mathbb{E}_{p_{\pi_\theta}(\mathcal{B}_N)}\Phi_T(\mathcal{B}_N) \ge\mathbb{E}_{p_q}\left[\ln\Phi_T(\mathcal{B}_N) - N \cdot D_{\mathrm{KL}}(q \mathbin\Vert\pi_\theta)\right] = \mathcal{L}_\Phi(q,\pi_\theta). \tag*{(4)} ln p π θ ( O T ) = ln E p π θ ( B N ) Φ T ( B N ) ≥ E p q [ ln Φ T ( B N ) − N ⋅ D KL ( q ∥ π θ ) ] = L Φ ( q , π θ ) . (4)
The ELBO L Φ \mathcal{L}_\Phi L Φ has a direct (regularized) policy-improvement interpretation. The potential Φ T \Phi_T Φ T tilts the proposal q q q toward the preferred in-batch items, while the KL term constrains the update to the reference π θ \pi_\theta π θ . Optimizing the bound therefore alternates between two simple operations: filtering better trajectories and projecting the tilted distribution onto the policy class. This structure is exactly what underpins the cross-entropy method (CEM) for optimization, as shown in Algorithm 1.
Algorithm Construction. FTW instantiates an adaptation of CEM for agentic RFT. As motivated in Section 1, we highlight three desiderata on the choice of proposal and ordinal potential relevant for the RFT setting. First, updates should be conservative: trajectory returns are high variance, and poor intermediate updates should not destabilize subsequent learning by collapsing onto noisy locally-strong trajectories. Second, variance reduction should come from the samples alone, for example through batch-level baselines [38 ] , antithetic sampling, or rank transforms of returns, to avoid both a critic model and the environment duplication required for group rollouts. Third, the algorithm should reuse past trajectories to amortize data-collection costs and benefit from regularization and stability from replay [62 , 25 , 7 ] .
We show our FTW pseudocode in Algorithm 2 as our adaptation of CEM (Alg. 1). The proposal distribution q q q is the mixture of the h h h past policies, approximated in practice by the empirical occupancy of a FIFO replay buffer, q ^ = 1 min ( h , t + 1 ) ∑ i = max ( 0 , t − h + 1 ) t π θ i \hat{q} = \frac{1}{\min(h,t+1)} \sum_{i=\max(0,t-h+1)}^{t} \pi_{\theta_i} q ^ = m i n ( h , t + 1 ) 1 ∑ i = m a x ( 0 , t − h + 1 ) t π θ i , where h h h is the maximum age of samples retained in the buffer [19 ] . Then, the closed-form projection step of classical CEM is replaced by a gradient-based projection onto the policy class. The main departure from standard CEM is how FTW constructs the elite set (filtering). Rather than sorting the entire replay buffer and retaining a global top ( 1 − ρ ) (1-\rho) ( 1 − ρ ) -quantile, FTW instead samples J J J independent minibatches of size C C C from the buffer and retains the top K = ⌈ ρ C ⌉ K = \lceil\rho C \rceil K = ⌈ ρC ⌉ per batch. The resulting union of J ⋅ K J \cdot K J ⋅ K elites are then used in a cross-entropy gradient update. Thus, trajectories that are repeatedly preferred over other trajectories obtain larger weight in consecutive proposal distributions.
Filtering Probability. Our elite-filtering rule defines a combinatorial tilting distribution Φ \Phi Φ over the replay buffer without explicit evaluation (which would require sorting the buffer). For a N N N -size buffer B N B_N B N , let r r r denote the rank of an item under the buffer’s theoretical ordering (lower is better). Then, the probability that an item of rank r r r is selected as one of the K K K elites in a minibatch of size C C C ,
Pr ( r ∣ N , C , K ) = 1 K ( N C ) ∑ k = 1 K ( r − 1 k − 1 ) ( N − r C − k ) . (5) \Pr(r \mid N,C,K) = \frac{1}{K\binom{N}{C}}\sum_{k=1}^{K} \binom{r-1}{k-1}\binom{N-r}{C-k}. \tag*{(5)} Pr ( r ∣ N , C , K ) = K ( C N ) 1 k = 1 ∑ K ( k − 1 r − 1 ) ( C − k N − r ) . (5)
The derivation is given in Appendix D.2, Lemma 1. The induced potential Φ \Phi Φ , as shown in Figure 1 , is a degree-( C − 1 ) (C-1) ( C − 1 ) polynomial in r r r and is monotonically decreasing for all K ≥ 1 K \ge1 K ≥ 1 with K < C K < C K < C [31 , 20 ] . Increasing K K K spreads probability mass from the highest-ranked trajectories toward lower-ranked ones, softening selection pressure. The minibatch size C C C acts as a concentration parameter: C = K C = K C = K recovers uniform sampling over the buffer, while increasing C C C for fixed K K K sharpens concentration on high-ranked trajectories. Together, the ratio ρ = K / C \rho= K/C ρ = K / C controls the elite fraction and C C C controls how sharply that fraction is enforced. The limiting case C = N C = N C = N with J = 1 J = 1 J = 1 recovers standard CEM filtering exactly, but amortizes data-collection poorly since the N − K N-K N − K non-elite trajectories in the buffer are discarded each update. For intermediate K < C < N K < C < N K < C < N , the induced selection profile becomes smoother and more sigmoid-like, as illustrated for C = 6 C = 6 C = 6 and K = 3 K = 3 K = 3 in Figure 1 . The special case K = 1 , C = 2 K = 1, C = 2 K = 1 , C = 2 reduces to binary tournament selection, connecting FTW to classical selection mechanisms in genetic algorithms [30 , 31 ] . Thus, our polynomial profile meets two of the aforementioned desiderata, conservative updates and sample-only variance reduction, purely through the ( C , K ) (C,K) ( C , K ) filtering parameters.
Figure 1. Normalized marginal occupancy of rank r r r under FTW’s elite-filtering, Eq. (5), for N = 1000 N = 1000 N = 1000 and varying C C C , K K K . Larger C C C sharpens concentration on top-ranked trajectories; larger K K K softens it.
Theoretical Analysis
This section diagnoses the characteristics of our algorithm, specifically its risk profile relative to baselines. We first recover GRPO and DPO within our extension of the CAI framework (§ 3 ) as the multinomial and Plackett–Luce potentials over sampled batches. We then use this recovery to derive the implicit risk profile of each method through the certainty equivalent of its selection rule. We show that GRPO is risk-neutral and that its otherwise (non-Jensen bounded) exponential multinomial potential is unboundedly risk-seeking. Then we show that DPO and FTW are boundedly risk-seeking toward a selection threshold that varies by the selection ratio K / C K/C K / C . We assume reader familiarity with GRPO and DPO and provide a self-contained primer in Appendix C.
Recovering GRPO and DPO
We treat the two potentials mentioned in Section 3 in turn. The Plackett–Luce potential at ∣ B N ∣ = 2 |B_N| = 2 ∣ B N ∣ = 2 recovers DPO directly, while the multinomial potential admits a Jensen upper bound whose looser surrogate is exactly GRPO’s group-mean advantage. We close the subsection by noting that, within our framework, the remaining difference between the two methods is the choice of baseline normalizer.
We first recover DPO through our formalism simply by plugging in the Plackett–Luce model for N = 2 N=2 N = 2 , under minor technical assumptions. Note that the authors of DPO (Rafailov et al., 2023) also sketch a Plackett–Luce generalization in their Appendix § 9 .§ 5 , our result is complementary.
Corollary 1 (DPO from a N = 2 N=2 N = 2 PL). At ∣ B N ∣ = 2 |B_N|=2 ∣ B N ∣ = 2 with ordering H T ( 1 ) ≻ H T ( 2 ) H_T^{(1)} \succ H_T^{(2)} H T ( 1 ) ≻ H T ( 2 ) , the Plackett–Luce potential with weighting g ( H T ) = exp ( s θ ( H T ) / β ) g(H_T)=\exp(s_\theta(H_T)/\beta) g ( H T ) = exp ( s θ ( H T ) / β ) and log-ratio score s θ ( i ) ≜ log π θ ( H T ( i ) ) π r e f ( H T ( i ) ) s_\theta^{(i)} \triangleq\log\frac{\pi_\theta(H_T^{(i)})}{\pi_{\mathrm{ref}}(H_T^{(i)})} s θ ( i ) ≜ log π ref ( H T ( i ) ) π θ ( H T ( i ) ) reduces to p ( O T = ( 1 , 2 ) ∣ B 2 ) = σ ( 1 β ( s θ ( 1 ) − s θ ( 2 ) ) ) p(O_T=(1,2)\mid B_2)=\sigma\left(\frac{1}{\beta}(s_\theta^{(1)}-s_\theta^{(2)})\right) p ( O T = ( 1 , 2 ) ∣ B 2 ) = σ ( β 1 ( s θ ( 1 ) − s θ ( 2 ) ) ) , the Bradley–Terry sigmoid. The ELBO in Eq. (4) then recovers DPO’s objective, with the prior π θ \pi_\theta π θ in the KL term playing the role of DPO’s reference π r e f \pi_{\mathrm{ref}} π ref and temperature β \beta β matching DPO’s up to N = 2 N=2 N = 2 rescaling of our ELBO’s KL (derived in Appendix § 13 .§ 5 ).
The multinomial potential at general N N N requires more work. The log-partition ln ∑ k g k \ln\sum_k g_k ln ∑ k g k in the ELBO couples all trajectories in the batch, so its policy gradient is dense. This can be seen by plugging the multinomial potential into Eq. (4) and averaging across all indices i ∈ { 1 , … , N } i\in\{1,\ldots,N\} i ∈ { 1 , … , N } of B N B_N B N ,
∇ q L Φ ( q , π θ ) ∝ E p q [ 1 N ∑ n = 1 N ( ln g ( n ) − b n ) ⏟ ≜ α n ( B N ) ∑ m = 1 N ∇ q ln p q ( H T m ) − ∇ q D K L ( q ∥ π θ ) ] , (6) \nabla_q\mathcal{L}_{\Phi}(q,\pi_\theta)\propto\mathbb{E}_{p_q}\left[\frac{1}{N}\sum_{n=1}^{N}\underbrace{(\ln g(n)-b_n)}_{\triangleq\alpha_n(B_N)}\sum_{m=1}^{N}\nabla_q\ln p_q(H_T^m)-\nabla_qD_{\mathrm{KL}}(q\mathbin{\|}\pi_\theta)\right], \tag*{(6)} ∇ q L Φ ( q , π θ ) ∝ E p q N 1 n = 1 ∑ N ≜ α n ( B N ) ( ln g ( n ) − b n ) m = 1 ∑ N ∇ q ln p q ( H T m ) − ∇ q D KL ( q ∥ π θ ) , (6)
which produces the double-summation over coefficients α n \alpha_n α n and policy gradients. We sidestep this double-sum through a Rao–Blackwell argument that decouples the gradient into per-trajectory coefficients α n \alpha_n α n , upon which a Jensen upper bound on the log-partition reveals GRPO’s baseline.
Proposition 1 (GRPO as a Jensen upper bound). Under the multinomial potential with exponential weight g ( H T ) = exp G ( H T ) g(H_T)=\exp G(H_T) g ( H T ) = exp G ( H T ) , Rao–Blackwellization of Eq. (6) yields the per-trajectory form
∇ q L ^ Φ ( q , π θ ) ∝ E p q [ 1 N ∑ n = 1 N α n ( B N ) ∑ t = 1 T ∇ ln q ( A t n ∣ H t n ) ] − ∇ q D K L ( q ∥ π θ ) , (7) \nabla_q\widehat{\mathcal{L}}_{\Phi}(q,\pi_\theta)\propto\mathbb{E}_{p_q}\left[\frac{1}{N}\sum_{n=1}^{N}\alpha_n(B_N)\sum_{t=1}^{T}\nabla\ln q(A_t^n\mid H_t^n)\right]-\nabla_qD_{\mathrm{KL}}(q\mathbin{\|}\pi_\theta), \tag*{(7)} ∇ q L Φ ( q , π θ ) ∝ E p q [ N 1 n = 1 ∑ N α n ( B N ) t = 1 ∑ T ∇ ln q ( A t n ∣ H t n ) ] − ∇ q D KL ( q ∥ π θ ) , (7) with coefficients α n ( B N ) = ln g n − ln ∑ k g k \alpha_n(B_N)=\ln g_n-\ln\sum_k g_k α n ( B N ) = ln g n − ln ∑ k g k admitting the Jensen upper bound α n ≤ G ( H T n ) − 1 N ∑ k G ( H T k ) \alpha_n\le G(H_T^n)-\frac{1}{N}\sum_k G(H_T^k) α n ≤ G ( H T n ) − N 1 ∑ k G ( H T k ) , whose right-hand side is GRPO’s group-mean advantage.
Proof sketch (full proof in Appendix § 12 .§ 1 ). Rao–Blackwell. The multinomial potential applies symmetrically to any item in B N B_N B N , so we can hold one trajectory fixed and marginalize over the rest. This yields per-trajectory coefficients α n ( B N ) = ln g n − ln ∑ k g k \alpha_n(B_N)=\ln g_n-\ln\sum_k g_k α n ( B N ) = ln g n − ln ∑ k g k , recovering an advantage form with log-partition baseline. Jensen bound. By concavity of ln \ln ln , α n ≤ ln g n − 1 N ∑ k ln g k \alpha_n\le\ln g_n-\frac{1}{N}\sum_k\ln g_k α n ≤ ln g n − N 1 ∑ k ln g k . Where the right-hand side reduces to G ( H T n ) − 1 N ∑ k G ( H T k ) G(H_T^n)-\frac{1}{N}\sum_kG(H_T^k) G ( H T n ) − N 1 ∑ k G ( H T k ) , which is GRPO’s group-mean advantage. □
The Jensen bound comes at a cost: maximizing an upper bound does not guarantee maximization of the underlying objective. The gap is precisely the risk offset that the multinomial potential induces under uncertain returns, which we profile in the next subsection. More broadly, when viewed from this framework, the key difference between the multinomial and Plackett–Luce potentials, from which GRPO and DPO are positioned, is the choice of baseline normalizer. The multinomial potential applies a uniform group-mean across all items, while the Plackett–Luce model induces rank-dependent baselines that dampen updates at the extremes of the batch.
Implicit Risk Profiles of RFT Algorithms
The CAI posterior in Eq. (2) marginalizes the return G G G over the return law. In deterministic, perfectly observable settings this collapses to E S t : T ∣ H T exp G ( H t : T ) = exp G ( H t : T ) \mathbb{E}_{S_{t:T}\mid H_T}\exp G(H_{t:T})=\exp G(H_{t:T}) E S t : T ∣ H T exp G ( H t : T ) = exp G ( H t : T ) . Under aleatoric noise or epistemic uncertainty from partial observability, the marginalization on returns induces an implicit risk profile in the algorithm. In critic-based methods such as SAC, we learn a Q Q Q -function surrogate to move the expectation inside exp E S t : T ∣ H T G t : T \exp\mathbb{E}_{S_{t:T}\mid H_T}G_{t:T} exp E S t : T ∣ H T G t : T ; in critic-free RFT we have no such fallback.
To make this risk-profile precise, we reduce each potential Φ \Phi Φ to a per-entry selection weight w Φ ( H T ) = E G ∣ H T [ φ ( G ) ] w_\Phi(H_T)=\mathbb{E}_{G\mid H_T}[\varphi(G)] w Φ ( H T ) = E G ∣ H T [ φ ( G )] with an increasing utility φ \varphi φ through a Rao–Blackwellization. We then define the risk offset R φ ( H T ) = J φ ( H T ) − μ ( H T ) \mathcal{R}_\varphi(H_T)=J_\varphi(H_T)-\mu(H_T) R φ ( H T ) = J φ ( H T ) − μ ( H T ) , where J φ = φ − 1 ( w Φ ) J_\varphi=\varphi^{-1}(w_\Phi) J φ = φ − 1 ( w Φ ) is the certainty equivalent Pratt, [73 ] of the entry’s return (see the full setup in Appendix § 12 .§ 3 ). The offset illustrates the deviation from the conditional mean return μ = E [ G ∣ H T ] \mu=\mathbb{E}[G\mid H_T] μ = E [ G ∣ H T ] as a function of its spread σ 2 = Var [ G ∣ H T ] \sigma^2=\operatorname{Var}[G\mid H_T] σ 2 = Var [ G ∣ H T ] .
Proposition 2 (Risk profiles of RFT potentials under Gaussian noise). For Gaussian returns G ∣ H T ∼ N ( μ , σ 2 ) G \mid H_T \sim N(\mu,\sigma^2) G ∣ H T ∼ N ( μ , σ 2 ) and an assumed Gaussian buffer marginal F 0 = N ( μ 0 , σ 0 2 ) F_0 = N(\mu_0,\sigma_0^2) F 0 = N ( μ 0 , σ 0 2 ) , the risk offset R φ \mathcal{R}_\varphi R φ of each potential is as follows (proof and other return families in Appendix § 12 .§ 3 ):
(a) Multinomial potential & GRPO (CAI on cardinal returns): R = 1 2 σ 2 \mathcal{R} = \frac{1}{2}\sigma^2 R = 2 1 σ 2 exactly. The Jensen step that positions GRPO (Prop. 1) replaces ∑ k exp G k \sum_k \exp G_k ∑ k exp G k with 1 N ∑ k G k \frac{1}{N}\sum_k G_k N 1 ∑ k G k , which is an affine utility, so R = 0 \mathcal{R}=0 R = 0 for every return law. GRPO is risk-neutral.
(b) Bradley–Terry potential (DPO or Plackett–Luce at N = 2 N=2 N = 2 ): R = ( μ − μ 0 ) ( σ 0 σ 0 2 + σ 2 − 1 ) \mathcal{R} = (\mu-\mu_0)\left(\frac{\sigma_0}{\sqrt{\sigma_0^2+\sigma^2}}-1\right) R = ( μ − μ 0 ) ( σ 0 2 + σ 2 σ 0 − 1 ) exactly. The offset is bounded by ∣ μ − μ 0 ∣ |\mu-\mu_0| ∣ μ − μ 0 ∣ and J φ → μ 0 J_\varphi\to\mu_0 J φ → μ 0 as σ → ∞ \sigma\to\infty σ → ∞ .
(c) Rank-based potential (FTW, top-K K K of C C C ): R ≈ ( μ − t ) ( σ 0 s C , K σ 2 + σ 0 2 s C , K 2 − 1 ) \mathcal{R} \approx(\mu-t)\left(\frac{\sigma_0 s_{C,K}}{\sqrt{\sigma^2+\sigma_0^2s_{C,K}^2}}-1\right) R ≈ ( μ − t ) ( σ 2 + σ 0 2 s C , K 2 σ 0 s C , K − 1 ) , using a normal approximation of the K K K -th order statistic. The same as (b) with μ 0 \mu_0 μ 0 replaced by the threshold t = μ 0 + σ 0 a C , K t=\mu_0+\sigma_0a_{C,K} t = μ 0 + σ 0 a C , K , where a C , K a_{C,K} a C , K and s C , K s_{C,K} s C , K are the standardized mean and standard deviation of that order statistic. Aggressive filters K ≪ C K \ll C K ≪ C have a C , K > 0 a_{C,K}>0 a C , K > 0 and so t > μ 0 t>\mu_0 t > μ 0 , mild filters K ≥ C / 2 K\ge C/2 K ≥ C /2 have a C , K ≤ 0 a_{C,K}\le0 a C , K ≤ 0 and t ≤ μ 0 t\le\mu_0 t ≤ μ 0 , finally ( C , K ) = ( 2 , 1 ) (C,K)=(2,1) ( C , K ) = ( 2 , 1 ) recovers (b) exactly.
For the ordinal potentials (b) and (c), the offset is paid in how often noise swaps preference orderings within the batch rather than in the magnitude of the returns, which is also what makes it bounded. This can be desirable when σ \sigma σ is epistemic, since for returns with μ \mu μ below the attractor (μ 0 \mu_0 μ 0 or t t t ) the offset is positive and acts as an exploration term to encourage knowledge-seeking. However, when σ \sigma σ is aleatoric, the same offset biases the fixed point away from the mean-optimal policy, treating reward noise as if it were information [23 ] . GRPO’s risk-neutrality avoids both effects at the cost of neutrality. In FTW, the elite ratio K / C K/C K / C determines the attractor of FTW. Mild filters K ≥ C / 2 K\ge C/2 K ≥ C /2 place it at or below the buffer mean μ 0 \mu_0 μ 0 , it equals DPO at ( C , K ) = ( 2 , 1 ) (C,K)=(2,1) ( C , K ) = ( 2 , 1 ) , and aggressive filters K ≪ C K\ll C K ≪ C place it above μ 0 \mu_0 μ 0 . For both FTW and DPO, the offset is bounded by ∣ μ − t ∣ |\mu-t| ∣ μ − t ∣ .
A separate consequence is the cardinal treatment of returns, which can be sensitive to the tail of the return distribution. The offset in (a) requires the moment-generating function of the return to be finite, which fails for heavy-tailed returns (Pareto-α ≤ 1 \alpha\le1 α ≤ 1 , Student-t t t with ν ≤ 2 \nu\le2 ν ≤ 2 ). Although the Jensen bound that positions GRPO removes the offset itself, the same heavy tails destabilize GRPO’s cardinal-return baseline numerically. Rank-based potentials don’t suffer from this as they only depend on within-batch order statistics, which remain bounded for any continuous distribution.
Validation on Bandit & Deep Reinforcement Learning
We test the predictions of § 4 on a controlled testbed before scaling up to LLM post-training. The predictions are that GRPO is risk-neutral but numerically unstable under heavy-tailed returns and that DPO and FTW are boundedly risk-seeking toward an elite threshold set by the selection ratio K / C K/C K / C , coinciding at ( C , K ) = ( 2 , 1 ) (C,K)=(2,1) ( C , K ) = ( 2 , 1 ) . Furthermore, our FTW method is a general method that can be applied in the deep-RL setting, however its ordinal and conservative nature make it both slower and more stable in terms of the learning curves (compared to a baseline SAC).
Bandit settings. We construct three diagnostic tasks. The σ \sigma σ -trap is a multi-armed bandit in which a zero-mean distractor arm has much higher return variance than the optimal arm with mean 10, σ t r a p ≫ σ ∗ \sigma_{\mathrm{trap}}\gg\sigma^* σ trap ≫ σ ∗ . A risk-neutral learner commits to the optimal arm, while a sufficiently risk-seeking learner gets distracted by the noise of the suboptimal arm as σ \sigma σ grows. Secondly, the Pareto-α \alpha α bandit draws rewards from a truncated Pareto-α \alpha α distribution and sweeps the tail index α \alpha α to test whether each method’s fixed point remains well-defined as the moment-generating function diverges at α ≤ 1 \alpha\le1 α ≤ 1 . Finally, the state-aliasing task collapses two distinct latent states onto the same observation with a deterministic reward, so maintaining policy stochasticity is needed for low regret. This isolates the concentration rate from the risk profile. We describe the bandit setup in more detail in Appendix § 15 .§ 4 .
The results in Figure 2 agree with the theory on all three items. In the σ \sigma σ -trap (left), GRPO converges on the optimal arm so long as its update rule remains numerically stable given the increasing gradient magnitude, which is only achieved when we decrease the learning rate as σ − 1 / 2 \sigma^{-1/2} σ − 1/2 . We also see that DPO is distracted earlier by noise than FTW, but both degrade to the same uniform policy eventually. This is the coin-flip limit which Prop. 2 predicts for bounded operators once the distractor’s draws land above and below the optimal mean with equal probability (Appendix § 12 .§ 3 ). Although FTW at ( 2 , 1 ) (2, 1) ( 2 , 1 ) shares DPO’s risk offset, DPO’s earlier collapse is due to its more aggressive exponential concentration in the update rule, a dynamical entrenchment effect of DPO’s loss which our fixed-point theory does not capture. As expected, the exponential potential over the buffer (FTW-exp) collapses onto the trap arm the fastest, see also Appendix § 16 .§ 2 for more variations of the elite-ratio parameters (C , K C, K C , K ). On the Pareto-α \alpha α bandit (center), GRPO fails to identify the optimal arm in the heavy-tailed regime, while DPO and FTW remain stable. This matches the prediction that the rank-based potential has a well-defined fixed point for any continuous return distribution whereas the cardinal-exponential potential does not. On the aliasing task (right), FTW achieves lower L1 distance ∣ π ( a ) − π ∗ ( a ) ∣ \lvert\pi(a)-\pi^*(a)\rvert ∣ π ( a ) − π ∗ ( a )∣ between the learned and optimal action distributions compared to GRPO and DPO, when averaged over a learning-rate population. This is consistent with polynomial concentration retaining more stochasticity under partial observability. See Appendix § 16 for additional Bandit results and Appendix § 14 for a knowledge-seeking experiment left out of the main paper.
Figure 2. Diagnostic bandits isolating algorithm properties (§ 4 ). Left (σ \sigma σ -trap): asymptotic π ( a ∗ ) \pi(a^*) π ( a ∗ ) vs. distractor variance. GRPO is only stable for large σ \sigma σ when proportionally decreasing the learning rate. Center (Pareto-α \alpha α ): under heavy tail returns, GRPO learning destabilizes whereas rank-based FTW/DPO remain stable. Right (state-aliasing): FTW achieves lower L1 distance ∣ π ( a ) − π ∗ ( a ) ∣ \lvert\pi(a)-\pi^*(a)\rvert ∣ π ( a ) − π ∗ ( a )∣ between the learned and optimal action distributions in the POMDP. Left all lines show mean and 95% bootstrapped CIs over replay buffer sizes N ∈ { 16 , 64 , 256 , 1024 , 4096 } N \in\{16, 64, 256, 1024, 4096\} N ∈ { 16 , 64 , 256 , 1024 , 4096 } and 10 seeds. Center and right: bold lines are averages over sampled learning-rates, translucent lines show sample trajectories.
Deep RL. We also evaluate on Brax HalfCheetah ([27 ] ) to check that FTW functions as a more general deep-RL algorithm. Figure 3 compares FTW-K1-C64 and FTW-K4-C64 against SAC ([35 ] ). FTW is less sample-efficient than SAC in the early phase of training, as expected from the ordinal treatment of returns that discards return magnitude. By the end of the 10 9 10^9 1 0 9 -step budget, FTW-K4-C64 reaches mean return comparable to SAC with visibly tighter seed-to-seed variation. Thus, our conservative ordinal update also extends to deep-RL settings without a critic, which is the regime of LLM post-training.
Figure 3. Evaluation learning curves on HalfCheetah after 1B steps of training. Shaded regions are 95% Gaussian CIs over 10 seeds.
LLM Post-Training Experiments
We evaluate Follow the Winners (FTW) on two agentic LLM post-training benchmarks: Sokoban ((Schrader, 2018)), a visual box-pushing puzzle that requires multi-turn planning, and Search-R1 ([40 ] ), an open-domain question-answering task with a retrieval tool. We interleave chain-of-thought with tool or action outputs and use sparse terminal rewards together with a − 0.1 -0.1 − 0.1 penalty for formatting errors. We reuse the experimental setup of Feng et al. [26 ] , see Appendix § 15 .§ 4 .
We ablate the FTW filtering operator for C = 5 C = 5 C = 5 and K ∈ { 1 , 2 , 3 } K \in\{1, 2, 3\} K ∈ { 1 , 2 , 3 } against GRPO, PPO, and REINFORCE++ on Sokoban using the Qwen2.5 model-line (Qwen Team et al., 2025) with a replay buffer of size 2000. On Search-R1 we use FTW with C = 4 C = 4 C = 4 and K = 1 K = 1 K = 1 with a 10k replay buffer. GRPO uses n = 8 n = 8 n = 8 rollouts per prompt and is the only method that needs duplicated group rollouts.
Figure 4 (left) shows test success rate curves on Sokoban. For K ∈ { 1 , 2 } K \in\{1, 2\} K ∈ { 1 , 2 } FTW clusters with GRPO and PPO in learning speed and performance, showing that FTW performs competitively despite a much simpler update, without PPO’s value function model or GRPO’s duplicated rollouts. Notably, for K = 3 K = 3 K = 3 FTW collapses after peaking around 0.4. Proposition 2 shows that this filter is relatively mild, its elite threshold for selection sits exactly at the buffer mean. Under continuous returns this means that there should be monotonic improvement (cf. the K = 3 K=3 K = 3 , C = 4 C=4 C = 4 bandit in Appendix § 16 .§ 2 ). Under Sokoban’s binary returns, however, a minibatch with fewer than K K K successes fills its remaining elite slots with zero-return trajectories that the cross-entropy loss then imitates, whereas at K = 1 K = 1 K = 1 a single reward per minibatch would suffice. As the success rate falls this becomes more likely and the collapse reinforces itself. We attribute this to a finite-sample effect that larger batches and replay buffers dampen at the cost of slower learning (detailed in Appendix § 16 .§ 1 ). Finally, we also see that REINFORCE++, exhibits large seed variance and slower learning, implying that dropping group rollouts or a value function without some variance reduction replacement is insufficient on Sokoban.
Table 4.
Figure 4. Sokoban test success rate curves (left, 128 puzzles, mean ± one standard deviation over 5 seeds) and final exact-match accuracy ± one standard deviation on the Search-R1 test set over 3 seeds (right, 50k+ examples). PPO and GRPO results are from Jin et al. [40 ] .
The table in Figure 4 (right) reports average exact-match accuracy on the 50k+ Search-R1 test set from Jin et al. [40 ] . We see that our FTW variant matches (within noise) the published Search-R1 PPO and GRPO baselines reported by Jin et al. [40 ] . This again supports our claim that FTW is a viable alternative to PPO, which needs more than double the GPU resources, and to GRPO, which needs group duplication (Appendix § 15 .§ 2 ). However, we do caution that the bandit experiments isolate the theoretical mechanisms more cleanly than what the LLM post-training setting can provide.
Related Work
The CAI framework on which we build has a long history in stochastic optimal control (Kappen et al., [44 ] ; Todorov, 2009; Rawlik et al., 2012; Theodorou et al., 2010) and reinforcement learning (Levine, [50 ] ; Ziebart, 2010; Dayan and Hinton, [21 ] ; Toussaint, 2009), where it has motivated methods such as MPO (Abdolmaleki et al., [1 ] ), REPS (Peters et al., [68 ] ), and SAC (Haarnoja et al., [35 ] ). We extend this line by recasting the tilting potential as conditioning on permutations or winner indices over sampled batches, rather than on a binary variable for individual trajectories.
Beyond GRPO and DPO, our framework subsumes a broader family of bootstrap-and-project methods. RAFT (Dong et al., [24 ] ) corresponds to FTW with C = N C = N C = N , K = 1 K = 1 K = 1 , and a buffer refreshed every prompt. ReST (Gulcehre et al., [33 ] ) and ReST-EM (Singh et al., 2024) bootstrap toward an annealed threshold potential before projecting back onto the model parameters. Variational best-of-n n n (Amini et al., [5 ] ) shares the single-batch top-1 selection structure (C = N C = N C = N , K = 1 K = 1 K = 1 , no replay), though its KL-regularized variational objective differs from our cross-entropy projection, and STaR (Zelikman et al., 2022) is closely related as a hard top-1 selection criterion. Listwise preference methods such as LiPO (Liu et al., [52 ] ), PRO (Song et al., 2024), and RSO (Liu et al., [51 ] ) use the PL likelihood directly as a training objective on the policy. A complementary approach to damping concentration is generalized-entropy regularization through Tsallis entropy (Lee et al., [49 ] ) or general greedification operators [15 ] , which for the right choice of greedification can also achieves polynomial concentration through the regularizer rather than directly through the potential. Recent work by Wu et al. (2026) also reach a related GRPO/DPO correspondence in a bottom-up way by reframing GRPO’s group-relative advantage as a contrastive loss. Our derivation arrives at the same N = 2 N = 2 N = 2 Bradley–Terry limit top-down as the first-stage marginal of the PL model under CAI. We provide a more comprehensive discussion of the literature and its positioning to our work in Appendix B.
Conclusion
We introduced Follow the Winners (FTW), a critic-free policy-learning algorithm for agentic LLM post-training that is adapted from the cross-entropy method for optimization. FTW induces polynomial concentration to limit aggressive policy updates which can lead to entrenchment, and uses a replay-buffer proposal to reduce sample variance without the need for a critic model or group rollouts. On agentic LLM benchmarks, FTW matches GRPO and PPO on Sokoban and the published Search-R1 baselines, and trains more stably and faster than REINFORCE++ on Sokoban. This supports our algorithm motivation that FTW offers a viable trade-off, spending CPU memory in place of a value model or the environment duplication that group rollouts require. To derive the algorithm, we extended the Control-as-Inference framework to encompass contemporary critic-free RFT methods by reinterpreting the tilting potential as conditioning on permutations or winner indices over sampled batches. This recovers DPO exactly under the Plackett–Luce potential and positions GRPO as the Jensen upper bound on the corresponding multinomial objective, exposing GRPO as risk-neutral while DPO and FTW share a bounded risk offset that FTW controls through its selection pressure (Proposition 2). The framework places GRPO, DPO, and FTW on a common design axis, and provides a top-down basis for principled algorithm design in the critic-free RFT regime.
Limitations. FTW’s risk offset acts as an exploration term under epistemic uncertainty, but the same offset also biases the fixed point away from the mean-optimal policy under aleatoric noise (§ 4.2 ), making FTW (and DPO) less suited to environments with large irreducible noise. The replay-buffer-based proposal amortizes data-collection costs and provides additional regularization, but at the price of memory overhead. That said, CPU memory is often cheaper and more accessible than stricter GPU requirements. Finally, our IIA assumption (§ 3 ) underlying the elite-filtering interpretation requires a total ordering on the trajectory domain, and thus needs further adaptation for non-transitive settings such as optimizing for a Nash equilibrium.
Disclosure Statements
LLM Usage. LLMs were used for writing assistance (language and notation), literature search, and experiment infrastructure via agentic coding tools (Claude Code & Codex). All ideas, derivations, and results are solely the authors’.
Broader Impact. Our work contributes a general-purpose policy-learning algorithm for critic-free reinforcement fine-tuning of large language models. The contribution is methodological and is not tied to any specific deployed application, dataset, or released model.
As with most advances in LLM post-training, improvements in agentic capability can in principle support beneficial applications (such as research assistants, accessibility tooling, and scientific discovery) as well as harmful ones (such as automated disinformation, scam generation, or surveillance). The conservative, polynomially-concentrating update rule introduced by FTW does not differentially advantage either direction, and we clearly document limitations (namely the risk-seeking profile under aleatoric noise) that can cause unintended effects in practice. Our experiments use publicly available pre-trained models from the Qwen2.5 family and benchmarks intended for research, and we do not release post-trained model weights.
Relative to GRPO-style baselines, FTW incurs additional memory overhead from the replay buffer. This is partly offset by amortized data-collection costs, so the net compute footprint depends on the specific deployment regime; we compare the compute and memory footprints of FTW, GRPO, and PPO in Appendix § 15 .§ 2 . Running, debugging, and tuning large-scale RL experiments is computationally costly and carries a non-trivial environmental footprint, which we acknowledge as a known concern of this line of research.
Reproducibility. We provide full pseudocode for FTW in Algorithm 2 as the method is intentionally simple. Appendix § 15 documents the full experimental setup, covering hardware (Appendix § 15 .§ 1 ), software (Appendix § 15 .§ 3 ), exact environment and benchmark specifications (Appendix § 15 .§ 4 ), and all hyperparameters (Appendix § 15 .§ 5 ). All experiments build on publicly available components: the Qwen2.5 model family, known environments like Sokoban, Search-R1, and Brax. Our code is a fork of Feng et al. [26 ] . Additional results supporting the main-text claims are reported in Appendix § 16 . We do not release code, models, or data until the manuscript is accepted and internal legal procedures are completed.
Extended Related Work
We situate our method relative to four strands of work: control as inference; RLHF and preference optimization; policy improvement in the critic-free setting; and CEM methods, together with a brief discussion of order statistics and their implications for our hyperparameter choices.
Control as Inference.
The Control-as-Inference framework (Levine, [50 ] ; Ziebart, 2010; Ziebart et al., 2010; Kappen et al., [44 ] ; Toussainт, 2009; Attias, [8 ] ; Dayan and Hinton, [21 ] ; Rawlik et al., 2012; Todorov, 2007, 2009; Theodorou et al., 2010) recasts sequential decision-making as probabilistic inference in a graphical model. Under specific modelling assumptions, the posterior in this formulation coincides with the optimal or soft-optimal control law, making tools from probabilistic inference and stochastic optimal control directly applicable to the control problem. This dual formulation enables an interchange of methods between the two formalisms: examples include sequential Monte Carlo and particle filtering for planning (Piché et al., [69 ] ; Macfarlane et al., [57 ] ; de Vries et al., [22 ] ), expectation-maximization for policy search as used by REPS and MPO (Dayan and Hinton, [21 ] ; Abdolmaleki et al., [1 ] ; Peters et al., [68 ] ), and amortized variational inference for control (Zintgraf et al., 2021; de Vries et al., [23 ] ). A further merit is that the probabilistic interpretation extends naturally to the deep reinforcement learning setting with high data throughput, since the free-energy formulation yields natural regularization for approximate policy improvement (Haarnoja et al., [35 ] ; Chan et al., [15 ] ; Geist et al., [29 ] ).
The formalism usually builds on the idea of exponentiated reward potentials that tilt a prior trajectory distribution so that the resulting posterior concentrates on high-return trajectories. Under specific choices of potential and dynamics, this recovers maximum-entropy reinforcement learning (Ziebart et al., 2010) and, in the continuous-time setting with KL or quadratic control costs, a linearized form of the Hamilton–Jacobi–Bellman equation [44 ] (Todorov 2009; Theodorou et al. 2010). The framework is usually applied in the Markov decision process setting [50 ] ; we instead develop a formulation for the partially observable case, for which related treatments can be found in [2 , 23 ] . Our contribution differs from the standard single-trajectory exponential tilting view in two ways: we allow ordinal likelihoods over finite sets of sampled trajectories, and we replace exponential return-based tilting with a polynomial, order-statistic-based tilting mechanism. The combination with a tailored cross-entropy method for optimization yields the conservative, approximate, policy-iteration method from the main text.
Reinforcement Learning from Human Feedback (RLHF).
RLHF [17 , 67 ] (Stiennon et al. 2020) has driven much of the recent LLM post-training literature. The shift toward critic-free methods such as GRPO and its variants [53 , 54 ] (Shao et al. 2024; Yu et al. 2025), REINFORCE++ [38 ] , and RLOO [46 , 3 ] , and toward direct preference optimization without an explicit reward model such as DPO (Rafailov et al., 2023) and listwise extensions [52 ] (Song et al. 2024), has produced a fragmented landscape that our derivation seeks to unify. Methods specifically targeting multi-turn agentic settings such as StarPO (Wang et al., 2025b), Multi-Turn GRPO (Wang and Ammanabrolu, 2025; Wei et al., 2025a), or GiGPO [26 ] share our operational regime but treat the multi-turn structure through specialized advantage estimators or credit-assignment heuristics, rather than through a top-down probabilistic framework.
Within this landscape, our framework places GRPO-family and DPO-family methods on a common axis (subset size N N N and choice of likelihood) and identifies common heuristics such as group baselines, shared prefixes, and contrastive losses as consequences of specific top-down modelling choices rather than fundamental algorithmic differences. Although we discussed RAFT [24 ] and similar methods in the main text, the off-policy extension was introduced by RAFT++ (Xiong et al., 2025) which is parallel to our use of the replay buffer. A closely related thread is STaR (Zelikman et al., 2022), which bootstraps a reasoning policy by iteratively fine-tuning on self-generated rationales that lead to correct answers, and can be viewed as a degenerate form of bootstrap-and-project with a hard top-1 selection criterion. Recent work by Wu et al. (2026) reaches a related correspondence bottom-up by reframing GRPO’s group-relative advantage as a contrastive loss, and shows a gradient-level equivalence in the N = 2 N=2 N = 2 case. Our derivation arrives at the same N = 2 N=2 N = 2 Bradley-Terry limit top-down as the first-stage marginal of the PL model under CAI, and takes a broader perspective through the lens of tilting potentials (i.e., the Multinomial or Plackett-Luce).
Learning to Rank and Listwise Preference Optimization.
The Plackett-Luce (PL) family is one of several ordinal potentials our framework admits, and the one through which we recover DPO (Rafailov et al., 2023) as the N = 2 N=2 N = 2 special case. This places our work in contact with a long line of research on PL-based ranking outside of LLM alignment. Classical learning-to-rank [14 , 65 ] (Xia et al. 2008) fits a parameterized scoring function to observed rankings via maximum likelihood under PL or related listwise losses. Our formulation is closest to PL-Rank [65 ] , but differs in two ways. First, we do not parameterize the PL model on an external scoring function. Instead, our PL likelihood arises from the Control-as-Inference construction [50 ] over sampled trajectory collections, and the policy is updated through the resulting posterior rather than fit to PL labels directly. Second, the CAI derivation supplies a KL-regularization term against a reference policy that is absent in standard listwise learning-to-rank.
Preference-based policy learning [4 ] , and its deep RL version [17 ] , form another branch in reinforcement learning that learns a preference model on trajectory data as a surrogate for the reward. This surrogate is then optimized akin to a value function instead of the direct returns. DPO (Rafailov et al., 2023) collapses this two-stage procedure into a single objective under a Bradley-Terry model, and sketches a PL generalization in their Appendix A.3. Our derivation can be read as making their sketch more explicit. The PL likelihood is recovered down from CAI rather than imposed as a ranking loss, which yields the ELBO and its policy gradient for optimization as consequences rather than design choices.
Listwise preference optimization methods such as LiPO [52 ] and PRO (Song et al., 2024) use the same PL likelihood as a training objective directly on the LLM’s response distribution. Rather than fitting an external scoring function as in classical LTR, they treat the policy itself as the PL ranker over candidate responses, perhaps similar to standard learning-to-rank. The two methods differ in their loss construction. LiPO uses a rank-aware listwise loss inspired by LambdaRank [13 ] , which weights each pair by its contribution to a target ranking metric. PRO uses sequential elimination with a Bradley-Terry-style contrast at each rank position, which is one approach to sample from the standard PL factorization. RSO [51 ] is closely related and uses Boltzmann acceptance to source preference data closer to the optimal policy, which connects to our (ordinal) exponential-tilting view in § 2 but without the ELBO grounding.
Policy Improvement Operators for Critic-Free RL.
The classical policy improvement theorem [37 ] (Sutton and Barto 2018) states that replacing actions by those with higher Q Q Q -value under the current policy yields a non-degrading update. This guarantee is the foundation of approximate policy iteration, and it depends on having access to a Q Q Q -estimate against which to greedify. In conventional deep reinforcement learning that estimate comes from a parametric value function trained alongside the policy, and a substantial body of work studies how to effectively estimate Q Q Q [62 , 63 ] (van Hasselt et al. 2016) and how aggressively to move the policy toward its argmax [43 ] . For instance, Chan et al. [15 ] formalize greedification through forward and reverse KL projections, showing that the choice of divergence materially affects stability. Oren et al. [66 ] extend the view to actor-critic methods and show that more conservative greedification operators improve performance in the deep setting. Trust-region methods such as TRPO and PPO (Schulman et al., 2015, 2017), and relative-entropy policy search [68 ] , take a complementary route by constraining the magnitude of the per-step policy update against a reference policy. On the theoretical side, Mei et al. (2020a,b); Beirami et al. [10 ] show that softmax policy gradient and best-of-n n n methods concentrate exponentially fast on the argmax-action for the current value estimate, which can be desirable for swift convergence when the estimate is well-calibrated.
Critic-free RFT for LLMs breaks the assumption underlying this toolbox. Methods such as GRPO (Shao et al., 2024), REINFORCE++ [38 ] , and RAFT [24 ] discard the value function for compute reasons and replace it with batch-relative statistics: the group-mean baseline in GRPO, the global advantage normalization in REINFORCE++, the top-1 winner in RAFT. The estimate against which the policy is greedified is no longer a stable function approximator but a Monte Carlo statistic over N N N samples per prompt. For small N N N this estimate is high-variance, and the exponential concentration of softmax policy gradients amplifies that variance into the policy update. This can cause entrenchment , where one trajectory with large positive empirical advantage receives an outsized push, and the policy commits to it before subsequent samples can correct the estimate. KL-regularization slows this commitment but does not eliminate it [29 ] , since the asymptotic concentration profile of the soft-optimal policy is unchanged by the size of the KL coefficient. The view that conservative updates protect against estimator noise is well-established for value-based methods, where double Q Q Q -learning (van Hasselt et al., 2016) and clipped twin Q Q Q -targets [28 ] address overestimation bias from value-function noise. Our argument transposes this concern to the policy side and to the critic-free setting.
Our work proposes a different lever for controlling concentration in this critic-free regime through the shape of the tilting potential. Follow the Winners induces a polynomial concentration in the order statistic of returns rather than the exponential concentration of softmax-based methods (see § 3 ). In essence, our polynomial potential approach dampens the concentration target, and the KL regularizer bounds how quickly the policy moves toward it. A complementary mechanism for damping concentration is generalized-entropy regularization, where Tsallis entropy [49 ] replaces the standard KL or Shannon term and yields polynomial-tailed policies in the limit. This achieves polynomial concentration through the regularizer rather than the potential, and the two approaches are formally distinct: Tsallis-regularized policies are polynomial in the advantage relative to a reference, whereas our potential is polynomial in the order statistic of within-batch returns. The two could in principle be combined, although we leave that to future work.
One asymptotic benefit of the polynomial potential over the exponential is reduced sensitivity to noisy return estimations. Firstly, the update depends on within-batch ranking rather than on the magnitude of the empirical advantage. Secondly, the implicit risk preference induced by exponential tilting grows quadratically with the noise scale of the empirical mean, whereas under a rank-based potential it grows only linearly and saturates at the upper quantile of the noise distribution. We sketch this argument informally in Appendix D. This effect is less crucial in critic-augmented settings, where value estimation can absorb part of the noise, but it is directly relevant in critic-free RFT, where the only fallback is the batch average itself.
Cross-Entropy Method for Deep RL.
The cross-entropy method [12 ] (Rubinstein 1997; Rubinstein 1999) has been applied to reinforcement learning along two main lines, neither of which matches our usage. The first treats CEM as a black-box policy-search method, where the elite-filtering step operates over policy parameters directly. Mannor et al. [58 ] introduced this for fast policy search, and Pourchot and Sigaud [72 ] extend it by combining CEM with gradient-based actor-critic updates to obtain a population-based hybrid. The second uses CEM as a short-horizon planner over learned dynamics models, where the elite-filtering step operates over candidate action sequences rather than policy parameters. PETS [18 ] , PlaNet [36 ] , the differentiable CEM of Amos and Yarats [6 ] , and the sample-efficient iCEM of Pinneri et al. [70 ] all fall into this category.
Our usage differs from both lines: Follow the Winners instead applies CEM elite-filtering as an optimization step for an ELBO derived from a Control-as-Inference graphical model, where the optimization targets either an amortized variational inference or expectation-maximization scheme. Furthermore, we approximate the elite set for the projection step as a collection of trajectories drawn from the replay buffer rather than parameters or action sequences. The CEM step then acts as the bootstrap-and-project component of an approximate policy-improvement operator, with the empirical cross-entropy projection mapping the filtered trajectories back onto the policy parameters via SGD. This connects the CEM elite-filtering operator to the order-statistics analysis of § 3 , which are not present in any of the prior CEM-RL applications. A practical consequence is that our method does not require a learned dynamics model (unlike planner-style CEM) and does not maintain a population of policies (unlike CEM-RL), which keeps it compatible with the critic-free RFT setting.
Order Statistics, Subset Selection, and Genetic Algorithms. The tournament-selection scheme used by Follow the Winners (§ 3 , Lemma 1) draws on classical literature in order statistics and evolutionary computation. The marginal probability of selection by tournament rank is a standard order-statistics result [20 , 41 ] , and tournament selection itself is a foundational operator in genetic algorithms (GAs) [30 , 31 ] where the trade-off between tournament size and selection pressure has been studied extensively. The K = 1 K=1 K = 1 , C = 2 C=2 C = 2 case of our Eq. (13) recovers binary tournament selection exactly. Relative to the GA literature, our contribution is to embed tournament selection inside a probabilistic framework: the resulting empirical occupancy is shown in § 3 to act as an implicit tilting distribution that targets the upper quantile of returns without explicit potential evaluation. This connects the GA-style operator to the cross-entropy method for optimization [12 ] (Rubinstein 1997; Rubinstein 1999) discussed in the previous subsection. When C = N C=N C = N , our scheme reduces to standard CEM elite-filtering applied to the buffer, making the GA-style and CEM-style perspectives literally equivalent in this limit. A separate but adjacent thread is sampling without replacement from a Plackett-Luce distribution via the Gumbel-top-k k k trick [34 , 47 ] , which we use to sample full PL rankings efficiently.
GRPO and DPO Primer
For self-containedness, we shortly reintroduce the key components of GRPO and DPO in our notation, so that any reader jumping into our paper has them available.
GRPO. Group-Relative Policy Optimization (Shao et al., 2024) is a critic-free policy-gradient method built on PPO (Schulman et al., 2017). For each prompt it samples a group of N N N trajectories from the current policy, scores their returns G 1 , … , G N G_1,\ldots,G_N G 1 , … , G N , and replaces the learned value baseline of actor-critic methods with the group statistics through the advantage A i = ( G i − G ˉ ) / σ G A_i=(G_i-\bar{G})/\sigma_G A i = ( G i − G ˉ ) / σ G , where G ˉ \bar{G} G ˉ and σ G \sigma_G σ G are the group mean and standard deviation. The policy maximizes the PPO-style clipped objective with a KL penalty toward a reference policy,
L G R P O ( θ ) = E [ 1 N ∑ i = 1 N min ( r i ( θ ) A i , clip ( r i ( θ ) , 1 ± ϵ ) A i ) ] − λ D K L ( π θ ∥ π θ r e f ) , (8) \mathcal{L}_{\mathrm{GRPO}}(\theta)=\mathbb{E}\left[\frac{1}{N}\sum_{i=1}^{N}\min\left(r_i(\theta)A_i,\operatorname{clip}(r_i(\theta),1\pm\epsilon)A_i\right)\right]-\lambda D_{\mathrm{KL}}\left(\pi_\theta\mathbin\Vert\pi_{\theta_{\mathrm{ref}}}\right), \tag*{(8)} L GRPO ( θ ) = E [ N 1 i = 1 ∑ N min ( r i ( θ ) A i , clip ( r i ( θ ) , 1 ± ϵ ) A i ) ] − λ D KL ( π θ ∥ π θ ref ) , (8)
with importance ratio r i ( θ ) = π θ ( H ( i ) ) / π θ o l d ( H ( i ) ) r_i(\theta)=\pi_\theta(H^{(i)})/\pi_{\theta_{\mathrm{old}}}(H^{(i)}) r i ( θ ) = π θ ( H ( i ) ) / π θ old ( H ( i ) ) . Trajectories above the group mean are reinforced and those below are suppressed, which makes the update risk-neutral with respect to the return distribution but sensitive to its scale. The latter is also why variants like Dr. GRPO [53 ] remove the standard-deviation normalization, since it undercredits good trajectories in high-variance groups and overcredits nearly indistinguishable ones in low-variance groups. Many further GRPO variants exist, as covered in Appendix § 10 .
DPO. Direct Preference Optimization (Rafailov et al., 2023) learns from pairwise preferences instead of raw returns. It assumes a Bradley–Terry preference model (from the RLHF framework), in which a latent reward r r r generates preferences between two trajectories with probability Pr ( H ( w ) ≻ H ( l ) ) = σ ( r ( H ( w ) ) − r ( H ( l ) ) ) \Pr(H^{(w)}\succ H^{(l)})=\sigma\left(r(H^{(w)})-r(H^{(l)})\right) Pr ( H ( w ) ≻ H ( l ) ) = σ ( r ( H ( w ) ) − r ( H ( l ) ) ) . Substituting the closed-form solution of the KL-regularized RL objective, r ( H ) = β ln π θ ( H ) π θ r e f ( H ) r(H)=\beta\ln\frac{\pi_\theta(H)}{\pi_{\theta_{\mathrm{ref}}}(H)} r ( H ) = β ln π θ ref ( H ) π θ ( H ) , eliminates the reward model and yields the loss
L D P O ( θ ) = − E ( H ( w ) , H ( l ) ) [ ln σ ( β ln π θ ( H ( w ) ) π θ r e f ( H ( w ) ) − β ln π θ ( H ( l ) ) π θ r e f ( H ( l ) ) ) ] , (9) \mathcal{L}_{\mathrm{DPO}}(\theta)=-\mathbb{E}_{(H^{(w)},H^{(l)})}\left[\ln\sigma\left(\beta\ln\frac{\pi_\theta(H^{(w)})}{\pi_{\theta_{\mathrm{ref}}}(H^{(w)})}-\beta\ln\frac{\pi_\theta(H^{(l)})}{\pi_{\theta_{\mathrm{ref}}}(H^{(l)})}\right)\right], \tag*{(9)} L DPO ( θ ) = − E ( H ( w ) , H ( l ) ) [ ln σ ( β ln π θ ref ( H ( w ) ) π θ ( H ( w ) ) − β ln π θ ref ( H ( l ) ) π θ ( H ( l ) ) ) ] , (9)
which increases the likelihood of the preferred trajectory H ( w ) H^{(w)} H ( w ) relative to the dispreferred H ( l ) H^{(l)} H ( l ) , anchored to the reference policy π θ r e f \pi_{\theta_{\mathrm{ref}}} π θ ref . In our experiments, preferences are induced by comparing sampled returns, and Appendix § 13 .§ 5 recovers both objectives top-down from the CAI framework.
Proofs
Rao-Blackwell Argument and GRPO upper-bound
Proof of Proposition 1. Fix a trajectory H T n H_T^n H T n and consider the conditional law of B N \mathcal{B}_N B N under Q ( B N ) = ∏ j = 1 N q ( H T j ) Q(\mathcal{B}_N)=\prod_{j=1}^{N}q(H_T^j) Q ( B N ) = ∏ j = 1 N q ( H T j ) given that H T n H_T^n H T n is held fixed. Under this conditional law, the remaining N − 1 N-1 N − 1 batch elements are redrawn independently from q q q (or replay buffer). By definition,
β n ( H T n ) = E Q ( B N ) [ α n ( B N ) ∣ H T n ] . (10) \beta_n(H_T^n)=\mathbb{E}_{Q(\mathcal{B}_N)}[\alpha_n(\mathcal{B}_N)\mid H_T^n]. \tag*{(10)} β n ( H T n ) = E Q ( B N ) [ α n ( B N ) ∣ H T n ] . (10)
Now let B N ( 1 ) , … , B N ( M ) \mathcal{B}_N^{(1)},\ldots,\mathcal{B}_N^{(M)} B N ( 1 ) , … , B N ( M ) be i.i.d. conditional batch completions around the fixed trajectory H T n H_T^n H T n . Then α n ( B N ( m ) ) \alpha_n(\mathcal{B}_N^{(m)}) α n ( B N ( m ) ) is an i.i.d. sequence, so by the law of large numbers,
1 M ∑ m = 1 M α n ( B N ( m ) ) → M → ∞ E Q ( B N ) [ α n ( B N ) ∣ H T n ] = β n ( H T n ) . (11) \frac{1}{M}\sum_{m=1}^{M}\alpha_n(\mathcal{B}_N^{(m)})\xrightarrow[M\to\infty]{}\mathbb{E}_{Q(\mathcal{B}_N)}[\alpha_n(\mathcal{B}_N)\mid H_T^n]=\beta_n(H_T^n). \tag*{(11)} M 1 m = 1 ∑ M α n ( B N ( m ) ) M → ∞ E Q ( B N ) [ α n ( B N ) ∣ H T n ] = β n ( H T n ) . (11)
Hence α n ( B N ) \alpha_n(\mathcal{B}_N) α n ( B N ) is an unbiased Monte Carlo estimator of the per-sample Rao–Blackwell coefficient under conditional batch completion.
The Jensen bound follows by upper-bounding the coefficient α n \alpha_n α n ,
α n ( B N ) = ln g n − ln ∑ k = 1 N g k ≤ ln g n − 1 N ∑ k = 1 N ln g k − ln N ≤ ln g n − 1 N ∑ k = 1 N ln g k . (12) \alpha_n(\mathcal{B}_N)=\ln g_n-\ln\sum_{k=1}^{N}g_k\leq\ln g_n-\frac{1}{N}\sum_{k=1}^{N}\ln g_k-\ln N\leq\ln g_n-\frac{1}{N}\sum_{k=1}^{N}\ln g_k. \tag*{(12)} α n ( B N ) = ln g n − ln k = 1 ∑ N g k ≤ ln g n − N 1 k = 1 ∑ N ln g k − ln N ≤ ln g n − N 1 k = 1 ∑ N ln g k . (12)
Then, plugging in the exponential potential over the cardinal returns g n = exp G ( H T n ) g_n=\exp G(H_T^n) g n = exp G ( H T n ) , we obtain G ( H T n ) − 1 N ∑ k = 1 N G ( H T k ) G(H_T^n)-\frac{1}{N}\sum_{k=1}^{N}G(H_T^k) G ( H T n ) − N 1 ∑ k = 1 N G ( H T k ) for the right-hand side, which is exactly GRPO’s group averaged baseline.
Probability of Selection under Elite-Filtering
Lemma 1 (Elite-Filtering Marginal). Consider a buffer of N N N trajectories with a total ranking, where r = 1 r=1 r = 1 denotes the highest-return trajectory. An elite-filtering step draws a subset of size C C C uniformly without replacement from the buffer and retains the top-K K K ranked trajectories as elites. The normalized marginal occupancy of the trajectory at rank r r r among the retained elites is
Pr ( r ∣ N , C , K ) = 1 K ( N C ) ∑ k = 1 K ( r − 1 k − 1 ) ( N − r C − k ) , (13) \Pr(r\mid N,C,K)=\frac{1}{K\binom{N}{C}}\sum_{k=1}^{K}\binom{r-1}{k-1}\binom{N-r}{C-k}, \tag*{(13)} Pr ( r ∣ N , C , K ) = K ( C N ) 1 k = 1 ∑ K ( k − 1 r − 1 ) ( C − k N − r ) , (13)
*which sums to 1 over r ∈ { 1 , … , N } r\in\{1,\ldots,N\} r ∈ { 1 , … , N } .
Proof. Step 1: Decompose by elite position. Item r r r is retained iff it is included in the sampled subset and lies among the top-K K K ranks within that subset. It occupies exactly elite position k ∈ { 1 , … , K } k \in\{1,\ldots,K\} k ∈ { 1 , … , K } iff exactly k − 1 k-1 k − 1 of the other sampled items have rank < r <r < r and exactly C − k C-k C − k have rank > r >r > r . These events are mutually exclusive across k k k , so
Pr ( item r retained ) = ∑ k = 1 K Pr ( item r at elite position k ) . \Pr(\text{item }r\text{ retained})=\sum_{k=1}^{K}\Pr(\text{item }r\text{ at elite position }k). Pr ( item r retained ) = k = 1 ∑ K Pr ( item r at elite position k ) .
Step 2: Apply the multivariate hypergeometric distribution. The buffer is partitioned into three groups: { r } \{r\} { r } (size 1), the r − 1 r-1 r − 1 better items, and the N − r N-r N − r worse items. By the multivariate hypergeometric distribution (Johnson et al. [41 ] ), the probability of drawing exactly 1 item from { r } \{r\} { r } , exactly k − 1 k-1 k − 1 from the r − 1 r-1 r − 1 better items, and exactly C − k C-k C − k from the N − r N-r N − r worse items in a uniform draw of C C C items without replacement is,
Pr ( item r occupies position k ) = ( 1 1 ) ( r − 1 k − 1 ) ( N − r C − k ) ( N C ) = ( r − 1 k − 1 ) ( N − r C − k ) ( N C ) . \Pr(\text{item }r\text{ occupies position }k)=\frac{\binom{1}{1}\binom{r-1}{k-1}\binom{N-r}{C-k}}{\binom{N}{C}}=\frac{\binom{r-1}{k-1}\binom{N-r}{C-k}}{\binom{N}{C}}. Pr ( item r occupies position k ) = ( C N ) ( 1 1 ) ( k − 1 r − 1 ) ( C − k N − r ) = ( C N ) ( k − 1 r − 1 ) ( C − k N − r ) .
Summing over k = 1 , … , K k=1,\ldots,K k = 1 , … , K gives the unnormalized marginal ∑ k = 1 K ( r − 1 k − 1 ) ( N − r C − k ) / ( N C ) \sum_{k=1}^{K}\binom{r-1}{k-1}\binom{N-r}{C-k}/\binom{N}{C} ∑ k = 1 K ( k − 1 r − 1 ) ( C − k N − r ) / ( C N ) .
Step 3: Normalization. Summing over all buffer items and exchanging the order of summation,
∑ r = 1 N ∑ k = 1 K ( r − 1 k − 1 ) ( N − r C − k ) ( N C ) = ∑ k = 1 K ∑ r = 1 N ( r − 1 k − 1 ) ( N − r C − k ) ( N C ) = ∑ k = 1 K ( N C ) ( N C ) = K ( N C ) ( N C ) , \sum_{r=1}^{N}\sum_{k=1}^{K}\frac{\binom{r-1}{k-1}\binom{N-r}{C-k}}{\binom{N}{C}}
=\sum_{k=1}^{K}\sum_{r=1}^{N}\frac{\binom{r-1}{k-1}\binom{N-r}{C-k}}{\binom{N}{C}}
=\sum_{k=1}^{K}\frac{\binom{N}{C}}{\binom{N}{C}}
=K\frac{\binom{N}{C}}{\binom{N}{C}}, r = 1 ∑ N k = 1 ∑ K ( C N ) ( k − 1 r − 1 ) ( C − k N − r ) = k = 1 ∑ K r = 1 ∑ N ( C N ) ( k − 1 r − 1 ) ( C − k N − r ) = k = 1 ∑ K ( C N ) ( C N ) = K ( C N ) ( C N ) ,
where the inner sum follows from the Vandermonde identity ∑ r = 1 N ( r − 1 k − 1 ) ( N − r C − k ) = ( N C ) \sum_{r=1}^{N}\binom{r-1}{k-1}\binom{N-r}{C-k}=\binom{N}{C} ∑ r = 1 N ( k − 1 r − 1 ) ( C − k N − r ) = ( C N ) (Graham et al. [32 ] ). Hence the unnormalized marginal sums to K K K over all r r r , and dividing by K K K yields a proper probability distribution summing to 1, confirming our result in Eq. (13) .
Boundary Cases. A few boundary cases are immediate. For K = 1 K=1 K = 1 , only the k = 1 k=1 k = 1 term survives, giving Pr ( r ∣ N , C , 1 ) = ( N − r C − 1 ) / ( N C ) \Pr(r\mid N,C,1)=\binom{N-r}{C-1}/\binom{N}{C} Pr ( r ∣ N , C , 1 ) = ( C − 1 N − r ) / ( C N ) , which is strictly decreasing in r r r and satisfies Pr ( 1 ∣ N , C , 1 ) = C / N \Pr(1\mid N,C,1)=C/N Pr ( 1 ∣ N , C , 1 ) = C / N . For K = C K=C K = C , Vandermonde’s identity yields ∑ k = 1 C ( r − 1 k − 1 ) ( N − r C − k ) = ( N − 1 C − 1 ) \sum_{k=1}^{C}\binom{r-1}{k-1}\binom{N-r}{C-k}=\binom{N-1}{C-1} ∑ k = 1 C ( k − 1 r − 1 ) ( C − k N − r ) = ( C − 1 N − 1 ) , so Pr ( r ∣ N , C , C ) = 1 / N \Pr(r\mid N,C,C)=1/N Pr ( r ∣ N , C , C ) = 1/ N for all r r r , recovering uniform sampling.
Risk Offsets across Return Distributions
We compare the implicit risk preferences of the algorithms when the return G ( H T ) G(H_T) G ( H T ) is genuinely stochastic given the observable trajectory, rather than reduced to its conditional mean as in Eq. (2) . The noise may be aleatoric or epistemic, and the critic-free setting has no value function to fall back on as a surrogate for the mean return. We compute the risk offset of each algorithm for four concrete return families under a single recipe, summarized in Table 1 .
Table 1.
Setup. Each buffer entry carries a trajectory H T i H_T^i H T i and a return G i ∼ P ( ⋅ ∣ H T i ) G_i\sim P(\cdot\mid H_T^i) G i ∼ P ( ⋅ ∣ H T i ) , drawn independently across entries. Write μ ( H T ) = E [ G ∣ H T ] \mu(H_T)=\mathbb{E}[G\mid H_T] μ ( H T ) = E [ G ∣ H T ] and σ 2 ( H T ) = Var [ G ∣ H T ] \sigma^2(H_T)=\operatorname{Var}[G\mid H_T] σ 2 ( H T ) = Var [ G ∣ H T ] . When we resample data from the buffer, we treat sampled returns as i.i.d. from the population marginal F 0 F_0 F 0 induced by the buffer’s occupancy density f 0 f_0 f 0 where the return family is continuous. The buffer’s empirical distribution estimates F 0 F_0 F 0 up to finite-sample error, and we assume for methods like GRPO that the buffer is simply refreshed at each iteration to fit within this framing. The ordinal operators compare returns, and discrete families produce ties, which we break uniformly at random. This tie-breaking is captured by the randomized grade of a return value g g g , U ( g ) = Pr ( G ′ < g ) + V ⋅ Pr ( G ′ = g ) U(g) = \Pr(G' < g) + V \cdot\Pr(G' = g) U ( g ) = Pr ( G ′ < g ) + V ⋅ Pr ( G ′ = g ) with G ′ ∼ F 0 G' \sim F_0 G ′ ∼ F 0 and V ∼ Unif ( 0 , 1 ) V \sim\operatorname{Unif}(0,1) V ∼ Unif ( 0 , 1 ) refreshed at each comparison and U ( g ) ∈ [ 0 , 1 ] U(g) \in[0,1] U ( g ) ∈ [ 0 , 1 ] . In words, the grade is the fraction of buffer mass strictly below g g g , plus a uniformly random position within the tie mass at g g g , so comparing returns with tie coin-flips is the same as comparing grades. For continuous families the grade reduces to the buffer quantile F 0 ( g ) F_0(g) F 0 ( g ) , and the grade of a buffer draw is Unif ( 0 , 1 ) \operatorname{Unif}(0,1) Unif ( 0 , 1 ) .
Every batch-level potential Φ ( B N ) \Phi(B_N) Φ ( B N ) below reduces to a per-entry selection weight
w Φ ( H T ) = E G ∣ H T [ φ ( G ) ] , (14) w_\Phi(H_T) = \mathbb{E}_{G\mid H_T}[\varphi(G)], \tag*{(14)} w Φ ( H T ) = E G ∣ H T [ φ ( G )] , (14)
with φ \varphi φ an increasing single-return utility. The reduction holds one entry H T H_T H T fixed and marginalizes the remaining batch members over the buffer (exactly like the Rao–Blackwell conditioning of Proposition 1). For example take the MNL/softmax, the batch weight e G n / τ ∑ k e G k / τ \frac{e^{G_n/\tau}}{\sum_k e^{G_k/\tau}} ∑ k e G k / τ e G n / τ has a denominator shared by the whole batch that concentrates around its mean over batch completions, so to first order this reduces to w Φ w_\Phi w Φ with φ ( g ) = e g / τ \varphi(g) = e^{g/\tau} φ ( g ) = e g / τ . The induced utilities are:
MNL-exp (softmax on cardinal returns, temperature τ \tau τ ): φ ( g ) = e g / τ \varphi(g) = e^{g/\tau} φ ( g ) = e g / τ , and τ = 1 \tau= 1 τ = 1 recovers the potential g n = exp G g_n = \exp G g n = exp G of Proposition 1.
GRPO : The Jensen surrogate of the Rao-Blackwellized MNL-exp (Proposition 1) which scores each entry by the group-mean advantage, so φ ( g ) = g / τ \varphi(g) = g/\tau φ ( g ) = g / τ .
DPO (pairwise): the winner of a pair is the higher grade in randomly drawn comparisons. Thus, an entry with grade U ( g ) U(g) U ( g ) gives φ ( g ) = E V [ U ( g ) ] \varphi(g) = \mathbb{E}_V[U(g)] φ ( g ) = E V [ U ( g )] , the win rate averaged over ties.
FTW top-K / C K/C K / C (ranks): the entry is retained iff at most K − 1 K-1 K − 1 of its C − 1 C-1 C − 1 competitors beat it, and each does so independently with probability 1 − U ( g ) 1-U(g) 1 − U ( g ) , giving φ ( g ) = E V [ B C , K ( U ( g ) ) ] \varphi(g) = \mathbb{E}_V[B_{C,K}(U(g))] φ ( g ) = E V [ B C , K ( U ( g ))] with B C , K ( u ) = Pr ( Bin ( C − 1 , 1 − u ) ≤ K − 1 ) B_{C,K}(u) = \Pr(\operatorname{Bin}(C-1,1-u) \le K-1) B C , K ( u ) = Pr ( Bin ( C − 1 , 1 − u ) ≤ K − 1 ) , which matches Lemma 1 in the large-buffer limit up to the entry-independent inclusion factor.
FTW softmax-on-ranks (temperature τ \tau τ ): φ ( g ) = E V [ e U ( g ) / τ ] \varphi(g) = \mathbb{E}_V[e^{U(g)/\tau}] φ ( g ) = E V [ e U ( g ) / τ ] , the Boltzmann weight on ranks (determined through sorting returns).
Definition 1 (Certainty equivalent and risk offset). Let φ \varphi φ be an increasing utility. Define the certainty equivalent J φ ( H T ) ≜ φ − 1 ( E G ∣ H T [ φ ( G ) ] ) J_\varphi(H_T) \mathrel{\triangleq} \varphi^{-1}\!\left(\mathbb{E}_{G\mid H_T}[\varphi(G)]\right) J φ ( H T ) ≜ φ − 1 ( E G ∣ H T [ φ ( G )] ) and the risk offset as R φ ( H T ) ≜ J φ ( H T ) − μ ( H T ) R_\varphi(H_T) \mathrel{\triangleq} J_\varphi(H_T) - \mu(H_T) R φ ( H T ) ≜ J φ ( H T ) − μ ( H T ) .
A few remarks. First, R φ ≠ 0 R_\varphi\ne0 R φ = 0 requires a non-degenerate return law and a non-affine φ \varphi φ . Second, as the noise vanishes, G → μ ( H T ) G \to\mu(H_T) G → μ ( H T ) and every cell of Table 1 gives R = 0 R = 0 R = 0 . Third, an affine utility commutes with the expectation, so J φ = μ J_\varphi= \mu J φ = μ and R φ = 0 R_\varphi= 0 R φ = 0 exactly, which settles the GRPO row in every column of Table 1. Then finally, the score can be ambiguous. For example, take two buffers with values { 0 , 3 , 10 } \{0,3,10\} { 0 , 3 , 10 } and { 0 , 7 , 10 } \{0,7,10\} { 0 , 7 , 10 } : the grade would be equal for items 3 and 7 despite taking on different actual values. In words, ordinal operators resolve only the ordering of returns and not their values, so the inverse φ − 1 \varphi^{-1} φ − 1 covers an interval rather than a single number. In these cases, we write 0 † 0^\dagger 0 † whenever the operator still ranks entries properly by their mean return, to distinguish an inexpressible offset from a computed zero.
To derive generic risk profiles R \mathcal{R} R for the algorithms/method variations on varying noise distributions, we first layout a general starting point in the following lemma. This is followed by a proposition where we derive each risk profile of interest.
Lemma 2 (Theory recipe). Let w φ = E G ∣ H T [ φ ( G ) ] w_\varphi= \mathbb{E}_{G\mid H_T}[\varphi(G)] w φ = E G ∣ H T [ φ ( G )] and let σ 2 = Var [ G ∣ H T ] \sigma^2 = \operatorname{Var}[G\mid H_T] σ 2 = Var [ G ∣ H T ] as in the setup.
(i) For φ ( g ) = e g / τ \varphi(g) = e^{g/\tau} φ ( g ) = e g / τ , the certainty equivalent is the scaled log moment-generating function J φ = τ ln E G ∣ H T [ e G / τ ] J_\varphi= \tau\ln\mathbb{E}_{G\mid H_T}[e^{G/\tau}] J φ = τ ln E G ∣ H T [ e G / τ ] , exactly.
(ii) For φ \varphi φ twice differentiable near μ \mu μ and σ 2 → 0 \sigma^2 \to0 σ 2 → 0 we get the certainty-equivalent expansion,
J φ = μ + σ 2 2 φ ′ ′ ( μ ) φ ′ ( μ ) + o ( σ 2 ) , (15) J_\varphi= \mu+ \frac{\sigma^2}{2}\frac{\varphi''(\mu)}{\varphi'(\mu)} + o(\sigma^2), \tag*{(15)} J φ = μ + 2 σ 2 φ ′ ( μ ) φ ′′ ( μ ) + o ( σ 2 ) , (15) with Arrow–Pratt coefficient φ ′ ′ / φ ′ \varphi''/\varphi' φ ′′ / φ ′ ([73 ] ).
(iii) Grade utilities depend on returns only through U ( g ) U(g) U ( g ) , so both FTW and DPO are invariant to any strictly increasing transformation of returns.
Proof. (i) Simply invert the exponential. (ii) Take the Taylor expansion for φ ( G ) \varphi(G) φ ( G ) around μ \mu μ inside the expectation, the linear term vanishes since E [ G − μ ] = 0 \mathbb{E}[G-\mu]=0 E [ G − μ ] = 0 , leaving w Φ = φ ( μ ) + 1 2 σ 2 φ ′ ′ ( μ ) + o ( σ 2 ) w_{\Phi}=\varphi(\mu)+\frac{1}{2}\sigma^{2}\varphi''(\mu)+o(\sigma^{2}) w Φ = φ ( μ ) + 2 1 σ 2 φ ′′ ( μ ) + o ( σ 2 ) , which works when the higher central moments are o ( σ 2 ) o(\sigma^{2}) o ( σ 2 ) . Then recall that φ ( J φ ) = w Φ \varphi(J_{\varphi})=w_{\Phi} φ ( J φ ) = w Φ . For φ ′ ( μ ) ≠ 0 \varphi'(\mu)\ne0 φ ′ ( μ ) = 0 , expanding φ ( J φ ) \varphi(J_{\varphi}) φ ( J φ ) around μ \mu μ gives φ ( μ ) + φ ′ ( μ ) ( J φ − μ ) + o ( σ 2 ) \varphi(\mu)+\varphi'(\mu)(J_{\varphi}-\mu)+o(\sigma^{2}) φ ( μ ) + φ ′ ( μ ) ( J φ − μ ) + o ( σ 2 ) . Simple rearrangement, cancelling φ ( μ ) \varphi(\mu) φ ( μ ) and dividing by φ ′ ( μ ) \varphi'(\mu) φ ′ ( μ ) , gives the claim. (iii) U ( g ) U(g) U ( g ) depends on g g g only through the events { G ′ < g } \{G'<g\} { G ′ < g } and { G ′ = g } \{G'=g\} { G ′ = g } , which any strictly increasing transformation of returns preserves.
Proposition 3 (Risk offsets per return family). For each distribution (column) in Table 1, denote the conditional return law as Law ( G t ∣ H T ) \operatorname{Law}(G_t\mid H_T) Law ( G t ∣ H T ) and assume that the buffer marginal F 0 F_0 F 0 bootstraps from this parametric law, writing the buffer’s implicit parameters as the subscript ‘0’, so that F 0 = N ( μ 0 , σ 0 2 ) F_0=\mathcal{N}(\mu_0,\sigma_0^2) F 0 = N ( μ 0 , σ 0 2 ) in the Gaussian column, and likewise p 0 p_0 p 0 , λ 0 \lambda_0 λ 0 , θ 0 \theta_0 θ 0 for the other columns. Then the risk offset R φ ( H T ) R_{\varphi}(H_T) R φ ( H T ) of each operator is as given in Table 1. Cells are exact unless marked ≈ \approx ≈ (a normal approximation, of the Poisson family or of the elite threshold) or written with an explicit o ( σ 2 ) o(\sigma^2) o ( σ 2 ) remainder.
Table 1 : Risk offsets R = J − μ \mathcal{R}=J-\mu R = J − μ per operator (rows) and return family (columns) ordered from least aggressive (top) to most aggressive (bottom). Sparse rewards use scaled returns m m m and success rate p p p , such that μ = m p \mu=mp μ = m p allowing the mean to be invariant to larger or smaller p p p for properly chosen m m m . Similarly, counts use G = m ⋅ Poi ( λ ) G=m\cdot\operatorname{Poi}(\lambda) G = m ⋅ Poi ( λ ) , so μ = m λ \mu=m\lambda μ = mλ and σ 2 = m 2 λ \sigma^2=m^2\lambda σ 2 = m 2 λ . The exponential family has rate θ \theta θ and mean 1 / θ 1/\theta 1/ θ and requires the MNL-exp cell to satisfy θ τ > 1 \theta\tau>1 θ τ > 1 to be defined. GRPO’s zeros are exact, while 0 † 0^\dagger 0 † marks cells whose ranking is mean-consistent but whose offset is not expressible in return units (the certainty equivalent is interval-valued). The constants a C , K a_{C,K} a C , K and s C , K 2 s_{C,K}^2 s C , K 2 are the mean and variance of the K K K -th largest value among C − 1 C-1 C − 1 buffer returns standardized to mean 0 and variance 1, t = μ 0 + σ 0 a C , K t=\mu_0+\sigma_0a_{C,K} t = μ 0 + σ 0 a C , K denotes the elite threshold, H n H_n H n and H n ( 2 ) H_n^{(2)} H n ( 2 ) are the harmonic numbers of first and second order, and f 0 f_0 f 0 is the density of the population marginal F 0 F_0 F 0 .
Table 1 (PDF p. 26).
Proof. GRPO row. Conditioned on H T H_T H T , the batch mean averages the entry’s own return with its N − 1 N-1 N − 1 competitors, E [ G ‾ ∣ H T ] = 1 N μ ( H T ) + N − 1 N μ 0 \mathbb{E}[\overline{G}\mid H_T]=\frac{1}{N}\mu(H_T)+\frac{N-1}{N}\mu_0 E [ G ∣ H T ] = N 1 μ ( H T ) + N N − 1 μ 0 , so E [ G − G ‾ ∣ H T ] = ( 1 − 1 N ) ( μ ( H T ) − μ 0 ) \mathbb{E}[G-\overline{G}\mid H_T]=\left(1-\frac{1}{N}\right)(\mu(H_T)-\mu_0) E [ G − G ∣ H T ] = ( 1 − N 1 ) ( μ ( H T ) − μ 0 ) . This is linear in μ ( H T ) \mu(H_T) μ ( H T ) with a shared constant. Marginally over the buffer the advantage averages to zero, but the conditional average determines the ranking in again a linear fashion. Thus R = 0 \mathcal{R}=0 R = 0 .
(Sparse) Bernoulli column. On the support { 0 , m } \{0,m\} { 0 , m } any utility gives w Φ = ( 1 − p ) φ ( 0 ) + p φ ( m ) w_{\Phi}=(1-p)\varphi(0)+p\varphi(m) w Φ = ( 1 − p ) φ ( 0 ) + pφ ( m ) , which is affine in p p p . Thus, every operator ranks by the mean m p mp m p . The gap from the flat between any other value between the two payoffs and admit no unique J φ J_{\varphi} J φ , so their cells record the mean-rank as 0 † 0^\dagger 0 † rather than actually zero. The next step shows the only exception in the MNL-exp cell.
MNL-exp row. By Lemma 2(i), J φ = τ ln E G ∣ H T [ e G / τ ] J_{\varphi}=\tau\ln\mathbb{E}_{G\mid H_T}[e^{G/\tau}] J φ = τ ln E G ∣ H T [ e G / τ ] , this is the moment generating function and has a standard closed form for each of the considered distributions: Gaussian e μ / τ + σ 2 / 2 τ 2 e^{\mu/\tau+\sigma^2/2\tau^2} e μ / τ + σ 2 /2 τ 2 , scaled Bernoulli 1 − p + p e m / τ 1-p+pe^{m/\tau} 1 − p + p e m / τ , scaled Poisson e λ ( e m / τ − 1 ) e^{\lambda(e^{m/\tau}-1)} e λ ( e m / τ − 1 ) , exponential ( 1 − 1 θ τ ) − 1 (1-\frac{1}{\theta\tau})^{-1} ( 1 − θ τ 1 ) − 1 for θ τ > 1 \theta\tau>1 θ τ > 1 and infinite otherwise. Subtracting the means gives the cells. All four reduce to σ 2 / 2 τ \sigma^2/2\tau σ 2 /2 τ at small noise. The only difference for MNL-exp in the (sparse) Bernoulli column is the e m / τ e^{m/\tau} e m / τ factor, the weight is sensitive to the return’s value, whereas the ordinal operators depend only on its rank.
DPO row. At a sure return g g g , the utility is an independent average over opponents, φ ( g ) = E V [ U ( g ) ] = Pr ( G ′ < g ) + 1 2 Pr ( G ′ = g ) \varphi(g)=\mathbb{E}_{V}[U(g)]=\Pr(G'<g)+\frac{1}{2}\Pr(G'=g) φ ( g ) = E V [ U ( g )] = Pr ( G ′ < g ) + 2 1 Pr ( G ′ = g ) with G ′ ∼ F 0 G'\sim F_0 G ′ ∼ F 0 , i.e., the win rate of g g g against any one buffer draw. Then, averaging over the entry’s own return gives the win rate of the noisy variant, w Φ = E G ∣ H T [ φ ( G ) ] = Pr ( G ′ < G ) + 1 2 Pr ( G ′ = G ) w_{\Phi}=\mathbb{E}_{G\mid H_T}[\varphi(G)]=\Pr(G'<G)+\frac{1}{2}\Pr(G'=G) w Φ = E G ∣ H T [ φ ( G )] = Pr ( G ′ < G ) + 2 1 Pr ( G ′ = G ) with G ′ G' G ′ independent of G G G . For continuous values Pr ( G ′ = G ) = 0 \Pr(G'=G)=0 Pr ( G ′ = G ) = 0 .
Gaussian: The weight is equivalently w Φ = Pr ( G ′ < G ) = Pr ( G − G ′ > 0 ) w_{\Phi}=\Pr(G'<G)=\Pr(G-G'>0) w Φ = Pr ( G ′ < G ) = Pr ( G − G ′ > 0 ) . The difference of independent Gaussians is Gaussian, G − G ′ ∼ N ( μ − μ 0 , σ 2 + σ 0 2 ) G-G'\sim\mathcal{N}(\mu-\mu_0,\sigma^2+\sigma_0^2) G − G ′ ∼ N ( μ − μ 0 , σ 2 + σ 0 2 ) , so standardizing gives w Φ = Φ ( ( μ − μ 0 ) / σ 2 + σ 0 2 ) w_{\Phi}=\Phi\left((\mu-\mu_0)/\sqrt{\sigma^2+\sigma_0^2}\right) w Φ = Φ ( ( μ − μ 0 ) / σ 2 + σ 0 2 ) , with Φ \Phi Φ here the standard normal CDF. The certainty equivalent solves φ ( J φ ) = w φ \varphi(J_\varphi)=w_\varphi φ ( J φ ) = w φ , where for the sure return J φ J_\varphi J φ only the opponent’s draw is random. Thus, its utility is the quantile φ ( J φ ) = Φ ( ( J φ − μ 0 ) / σ 0 ) \varphi(J_\varphi)=\Phi((J_\varphi-\mu_0)/\sigma_0) φ ( J φ ) = Φ (( J φ − μ 0 ) / σ 0 ) . Applying Φ − 1 \Phi^{-1} Φ − 1 to both sides and solving for J φ J_\varphi J φ gives J φ = μ 0 + σ 0 ( μ − μ 0 ) / σ 2 + σ 0 2 J_\varphi=\mu_0+\sigma_0(\mu-\mu_0)/\sqrt{\sigma^2+\sigma_0^2} J φ = μ 0 + σ 0 ( μ − μ 0 ) / σ 2 + σ 0 2 , and subtracting μ \mu μ factors into the cell R = ( μ − μ 0 ) ( σ 0 / σ 0 2 + σ 2 − 1 ) \mathcal{R}=(\mu-\mu_0)(\sigma_0/\sqrt{\sigma_0^2+\sigma^2}-1) R = ( μ − μ 0 ) ( σ 0 / σ 0 2 + σ 2 − 1 ) .
Exponential: The Gaussian steps carry over with two substitutions, namely the expressions for the win rate and the CDF. The win rate becomes w Φ = Pr ( G > G ′ ) = ∫ 0 ∞ e − θ x θ 0 e − θ 0 x d x = θ 0 / ( θ + θ 0 ) w_\Phi=\Pr(G>G')=\int_0^\infty e^{-\theta x}\theta_0e^{-\theta_0x}\,dx=\theta_0/(\theta+\theta_0) w Φ = Pr ( G > G ′ ) = ∫ 0 ∞ e − θ x θ 0 e − θ 0 x d x = θ 0 / ( θ + θ 0 ) . At the sure return J φ J_\varphi J φ only the opponent is random, so the utility becomes the CDF, φ ( J φ ) = Pr ( G ′ < J φ ) = 1 − e − θ 0 J φ \varphi(J_\varphi)=\Pr(G'<J_\varphi)=1-e^{-\theta_0J_\varphi} φ ( J φ ) = Pr ( G ′ < J φ ) = 1 − e − θ 0 J φ . Setting this equal to w Φ w_\Phi w Φ gives e − θ 0 J φ = θ / ( θ + θ 0 ) e^{-\theta_0J_\varphi}=\theta/(\theta+\theta_0) e − θ 0 J φ = θ / ( θ + θ 0 ) , hence J φ = 1 θ 0 ln ( 1 + θ 0 / θ ) J_\varphi=\frac{1}{\theta_0}\ln(1+\theta_0/\theta) J φ = θ 0 1 ln ( 1 + θ 0 / θ ) , and subtracting the mean 1 / θ 1/\theta 1/ θ gives the table result.
Counts: Let G = m k G=mk G = mk with k k k the count. Averaging the win-and-tie probability over the opponents gives the exact weight w Φ = ∑ k Poi λ ( k ) [ F λ 0 ( k − 1 ) + 1 2 Poi λ 0 ( k ) ] w_\Phi=\sum_k\operatorname{Poi}_\lambda(k)\left[F_{\lambda_0}(k-1)+\frac{1}{2}\operatorname{Poi}_{\lambda_0}(k)\right] w Φ = ∑ k Poi λ ( k ) [ F λ 0 ( k − 1 ) + 2 1 Poi λ 0 ( k ) ] , where F λ 0 ( k − 1 ) = Pr ( G ′ < m k ) F_{\lambda_0}(k-1)=\Pr(G'<mk) F λ 0 ( k − 1 ) = Pr ( G ′ < mk ) is the Poisson CDF and the scale m m m cancels due to the invariance as per Lemma 2(iii). This sum has no closed form, and the utility is a step function. Thus the table only reports the Gaussian approximation with moment-matched laws N ( m λ , m 2 λ ) \mathcal{N}(m\lambda,m^2\lambda) N ( mλ , m 2 λ ) and N ( m λ 0 , m 2 λ 0 ) \mathcal{N}(m\lambda_0,m^2\lambda_0) N ( m λ 0 , m 2 λ 0 ) , which is valid for large λ \lambda λ and λ 0 \lambda_0 λ 0 .
FTW top-K K K /C row. An entry is retained iff its return exceeds the K K K -th largest of its C − 1 C-1 C − 1 competitors. To formalize this, we will standardize an entry’s returns according to its own law G = μ + σ Z G=\mu+\sigma Z G = μ + σ Z with Δ ≜ ( G − μ ) / σ \Delta\triangleq(G-\mu)/\sigma Δ ≜ ( G − μ ) / σ . This assumes nothing but gives us Z Z Z with mean 0, variance 1, while preserving the underlying family (Table 1). Each of the C − 1 C-1 C − 1 competitors are then also standardized but by the buffer’s ( μ 0 , σ 0 ) (\mu_0,\sigma_0) ( μ 0 , σ 0 ) . This holds exactly for the continuous columns, since every Gaussian standardizes to N ( 0 , 1 ) \mathcal{N}(0,1) N ( 0 , 1 ) . For the exponential law we know that the mean and standard deviation are both 1 / θ 1/\theta 1/ θ , so Z = ( G − 1 / θ ) / ( 1 / θ ) = θ G − 1 Z=(G-1/\theta)/(1/\theta)=\theta G-1 Z = ( G − 1/ θ ) / ( 1/ θ ) = θ G − 1 , and θ G ∼ Exp ( 1 ) \theta G\sim\operatorname{Exp}(1) θ G ∼ Exp ( 1 ) for any rate θ \theta θ . This recipe fails for the discrete columns since a linear standardization can only fix the first two moments and their third and higher moments will still depend on the parameter.
Now write the random threshold as T ≜ μ 0 + σ 0 Z ( K ) T\triangleq\mu_0+\sigma_0Z_{(K)} T ≜ μ 0 + σ 0 Z ( K ) , the K K K -th largest competitor return, where Z ( K ) Z_{(K)} Z ( K ) is the K K K -th largest of the C − 1 C-1 C − 1 standardized competitor draws. Retention is the event G ≥ T G\ge T G ≥ T , so the utility is the threshold’s CDF, φ ( g ) = Pr ( T ≤ g ) ≜ F T ( g ) \varphi(g)=\Pr(T\le g)\triangleq F_T(g) φ ( g ) = Pr ( T ≤ g ) ≜ F T ( g ) , and the certainty equivalent solves F T ( J φ ) = E G ∣ H T [ F T ( G ) ] F_T(J_\varphi)=\mathbb{E}_{G\mid H_T}[F_T(G)] F T ( J φ ) = E G ∣ H T [ F T ( G )] . For the pairwise case ( C , K ) = ( 2 , 1 ) (C,K)=(2,1) ( C , K ) = ( 2 , 1 ) where T T T is a single buffer draw we obtain exactly the DPO setting. In every other case we have that the law of T T T is known exactly, F T ( g ) = B C , K ( F 0 ( g ) ) F_T(g)=B_{C,K}(F_0(g)) F T ( g ) = B C , K ( F 0 ( g )) with B C , K ( u ) = Pr ( Bin ( C − 1 , 1 − u ) ≤ K − 1 ) B_{C,K}(u)=\Pr(\operatorname{Bin}(C-1,1-u)\le K-1) B C , K ( u ) = Pr ( Bin ( C − 1 , 1 − u ) ≤ K − 1 ) , but it is inconvenient and not Gaussian for large C C C . Moreover, J φ = F T − 1 ( E [ F T ( G ) ] ) J_\varphi=F_T^{-1}(\mathbb{E}[F_T(G)]) J φ = F T − 1 ( E [ F T ( G )]) has no closed form. For larger C C C we therefore approximate T T T by a Gaussian, and any residual error caused by the higher moments of Z ( K ) Z_{(K)} Z ( K ) (which is typically skewed with a longer tail on the high returns) is what the table’s ≈ \approx ≈ marks. Writing a C , K ≜ E [ Z ( K ) ] a_{C,K}\triangleq\mathbb{E}[Z_{(K)}] a C , K ≜ E [ Z ( K ) ] and s C , K 2 ≜ Var [ Z ( K ) ] s^2_{C,K}\triangleq\operatorname{Var}[Z_{(K)}] s C , K 2 ≜ Var [ Z ( K ) ] for the mean and variance of the K K K -th largest of C − 1 C-1 C − 1 standardized draws, we obtain t ≜ E [ T ] = μ 0 + σ 0 a C , K t\triangleq\mathbb{E}[T]=\mu_0+\sigma_0a_{C,K} t ≜ E [ T ] = μ 0 + σ 0 a C , K and sd ( T ) = σ 0 s C , K \operatorname{sd}(T)=\sigma_0s_{C,K} sd ( T ) = σ 0 s C , K . Approximating T T T by a Gaussian with these two exact moments allows us to reuse the DPO steps with ( μ 0 , σ 0 ) (\mu_0,\sigma_0) ( μ 0 , σ 0 ) replaced by ( t , σ 0 s C , K ) (t,\sigma_0s_{C,K}) ( t , σ 0 s C , K ) . The weight becomes w Φ = Pr ( G − T ≥ 0 ) = Φ ( ( μ − t ) / σ 2 + σ 0 2 s C , K 2 ) w_\Phi=\Pr(G-T\ge0)=\Phi((\mu-t)/\sqrt{\sigma^2+\sigma_0^2s_{C,K}^2}) w Φ = Pr ( G − T ≥ 0 ) = Φ (( μ − t ) / σ 2 + σ 0 2 s C , K 2 ) , since G − T ∼ N ( μ − t , σ 2 + σ 0 2 s C , K 2 ) G-T\sim\mathcal{N}(\mu-t,\sigma^2+\sigma_0^2s_{C,K}^2) G − T ∼ N ( μ − t , σ 2 + σ 0 2 s C , K 2 ) for independent Gaussians. At the sure return only the threshold is random, so φ ( J φ ) = Pr ( T ≤ J φ ) = Φ ( ( J φ − t ) / ( σ 0 s C , K ) ) \varphi(J_\varphi)=\Pr(T\le J_\varphi)=\Phi((J_\varphi-t)/(\sigma_0s_{C,K})) φ ( J φ ) = Pr ( T ≤ J φ ) = Φ (( J φ − t ) / ( σ 0 s C , K )) . Setting the two equal, applying Φ − 1 \Phi^{-1} Φ − 1 , and solving gives J φ = t + σ 0 s C , K ( μ − t ) / σ 2 + σ 0 2 s C , K 2 J_\varphi=t+\sigma_0s_{C,K}(\mu-t)/\sqrt{\sigma^2+\sigma_0^2s_{C,K}^2} J φ = t + σ 0 s C , K ( μ − t ) / σ 2 + σ 0 2 s C , K 2 , and subtracting μ \mu μ factors into
R = ( μ − t ) ( σ 0 s C , K σ 2 + σ 0 2 s C , K 2 − 1 ) . (16) \mathcal{R}=(\mu-t)\left(\frac{\sigma_0s_{C,K}}{\sqrt{\sigma^2+\sigma_0^2s_{C,K}^2}}-1\right). \tag*{(16)} R = ( μ − t ) σ 2 + σ 0 2 s C , K 2 σ 0 s C , K − 1 . (16)
This is the same shrinkage form as the DPO row, with the buffer mean μ 0 \mu_0 μ 0 attractor substituted by the elite threshold t t t . The remaining paragraphs show the ( a C , K , s C , K ) (a_{C,K},s_{C,K}) ( a C , K , s C , K ) pair for each distribution.
Gaussian: Due to standardization, we have that a C , K a_{C,K} a C , K and s C , K s_{C,K} s C , K are simply the mean and standard deviation of the K K K -th largest among C − 1 C-1 C − 1 independent N ( 0 , 1 ) \mathcal{N}(0,1) N ( 0 , 1 ) draws. Neither has a closed form, but both follow from one-dimensional quadrature against the order-statistic density, a C , K = ( C − 1 ) ! ( K − 1 ) ! ( C − 1 − K ) ! ∫ R z Φ ( z ) C − 1 − K ( 1 − Φ ( z ) ) K − 1 d Φ ( z ) a_{C,K}=\frac{(C-1)!}{(K-1)!(C-1-K)!}\int_{\mathbb{R}}z\,\Phi(z)^{C-1-K}(1-\Phi(z))^{K-1}\,d\Phi(z) a C , K = ( K − 1 )! ( C − 1 − K )! ( C − 1 )! ∫ R z Φ ( z ) C − 1 − K ( 1 − Φ ( z ) ) K − 1 d Φ ( z ) , where the same integral with z 2 z^2 z 2 in the integrand gives the second moment and s C , K 2 s^2_{C,K} s C , K 2 follows by subtracting a C , K 2 a^2_{C,K} a C , K 2 . Concretely, this gives example values ( a , s ) = ( 0 , 1 ) (a,s)=(0,1) ( a , s ) = ( 0 , 1 ) at ( 2 , 1 ) (2,1) ( 2 , 1 ) , ( 0.85 , 0.75 ) (0.85,0.75) ( 0.85 , 0.75 ) at ( 4 , 1 ) (4,1) ( 4 , 1 ) , ( 0 , 0.67 ) (0,0.67) ( 0 , 0.67 ) at ( 4 , 2 ) (4,2) ( 4 , 2 ) , ( − 0.85 , 0.75 ) (-0.85,0.75) ( − 0.85 , 0.75 ) at ( 4 , 3 ) (4,3) ( 4 , 3 ) , and ( 1.35 , 0.63 ) (1.35,0.63) ( 1.35 , 0.63 ) at ( 8 , 1 ) (8,1) ( 8 , 1 ) , which we verified numerically. Note that ( 4 , 2 ) (4,2) ( 4 , 2 ) shares the attractor t = μ 0 t=\mu_0 t = μ 0 with ( 2 , 1 ) (2,1) ( 2 , 1 ) , the median of three symmetric draws has mean zero, but its smaller s C , K s_{C,K} s C , K makes the shrinkage factor smaller at every σ \sigma σ , so the pull toward μ 0 \mu_0 μ 0 is stronger. At ( C , K ) = ( 2 , 1 ) (C,K)=(2,1) ( C , K ) = ( 2 , 1 ) the threshold is a single Gaussian buffer draw, so nothing is approximated, t = μ 0 t=\mu_0 t = μ 0 , s 2 , 1 = 1 s_{2,1}=1 s 2 , 1 = 1 , and the cell coincides with the DPO row exactly. For very large C C C the mean grows like 2 ln ( C / K ) \sqrt{2\ln(C/K)} 2 ln ( C / K ) , in the sense that a C , K / 2 ln ( C / K ) → 1 a_{C,K}/\sqrt{2\ln(C/K)}\to1 a C , K / 2 ln ( C / K ) → 1 as C → ∞ C\to\infty C → ∞ [20 Ch. 10] .
Exponential: Both constants are closed-form. The K K K -th largest of C − 1 C-1 C − 1 i.i.d. Exp ( 1 ) \operatorname{Exp}(1) Exp ( 1 ) variables has mean H C − 1 − H K − 1 H_{C-1}-H_{K-1} H C − 1 − H K − 1 and variance H C − 1 ( 2 ) − H K − 1 ( 2 ) H_{C-1}^{(2)}-H_{K-1}^{(2)} H C − 1 ( 2 ) − H K − 1 ( 2 ) , with H n ( 2 ) ≜ ∑ i = 1 n i − 2 H_n^{(2)}\triangleq\sum_{i=1}^{n}i^{-2} H n ( 2 ) ≜ ∑ i = 1 n i − 2 [20 Ch. 4] , so standardizing gives a C , K = H C − 1 − H K − 1 − 1 a_{C,K}=H_{C-1}-H_{K-1}-1 a C , K = H C − 1 − H K − 1 − 1 and s C , K 2 = H C − 1 ( 2 ) − H K − 1 ( 2 ) s_{C,K}^{2}=H_{C-1}^{(2)}-H_{K-1}^{(2)} s C , K 2 = H C − 1 ( 2 ) − H K − 1 ( 2 ) at any finite C C C . The cell plugs these into the Gaussian coefficient, and it stays approximate despite the exact constants because exponential order statistics are more strongly skewed than normal ones, so the Gaussian law of T T T is coarser here. At ( 2 , 1 ) (2,1) ( 2 , 1 ) the pair is again ( 0 , 1 ) (0,1) ( 0 , 1 ) which follows DPO.
Counts: As noted before, the standardized shape of m Poi ( λ ) m\operatorname{Poi}(\lambda) m Poi ( λ ) still depends on λ \lambda λ , so the location-scale step does not hold exactly for this family. We therefore replace the Poisson laws by their moment-matched normals, N ( m λ , m 2 λ ) \mathcal{N}(m\lambda,m^{2}\lambda) N ( mλ , m 2 λ ) for the entry and N ( m λ 0 , m 2 λ 0 ) \mathcal{N}(m\lambda_0,m^{2}\lambda_0) N ( m λ 0 , m 2 λ 0 ) for the buffer, which is accurate when λ \lambda λ and λ 0 \lambda_0 λ 0 are large. Under this substitution the Gaussian cell applies verbatim, with σ = m λ \sigma=m\sqrt{\lambda} σ = m λ and the Gaussian pair ( a C , K , s C , K ) (a_{C,K},s_{C,K}) ( a C , K , s C , K ) . Although it is possible to compute the exact moments of the Poisson elite threshold, the cell’s error comes from treating T T T as Gaussian rather than from the two constants, so plugging exact constants into the approximate formula would not make the result exact. For reference, this would give a C , K = ( E [ k ( K ) ] − λ 0 ) / λ 0 a_{C,K}=(\mathbb{E}[k_{(K)}]-\lambda_0)/\sqrt{\lambda_0} a C , K = ( E [ k ( K ) ] − λ 0 ) / λ 0 , where the mean follows from the tail sum E [ k ( K ) ] = ∑ j ≥ 0 Pr ( Bin ( C − 1 , q j ) ≥ K ) \mathbb{E}[k_{(K)}]=\sum_{j\ge0}\Pr(\operatorname{Bin}(C-1,q_j)\ge K) E [ k ( K ) ] = ∑ j ≥ 0 Pr ( Bin ( C − 1 , q j ) ≥ K ) with q j = Pr ( Poi ( λ 0 ) > j ) q_j=\Pr(\operatorname{Poi}(\lambda_0)>j) q j = Pr ( Poi ( λ 0 ) > j ) and k ( K ) k_{(K)} k ( K ) the K K K -th largest of C − 1 C-1 C − 1 i.i.d. Poi ( λ 0 ) \operatorname{Poi}(\lambda_0) Poi ( λ 0 ) draws.
FTW softmax-on-ranks row. Start from the utility ϕ ( g ) = E V [ e U ( g ) / τ ] \phi(g)=\mathbb{E}_V[e^{U(g)/\tau}] ϕ ( g ) = E V [ e U ( g ) / τ ] . In the continuous columns ties have probability zero, so the grade is the plain quantile U ( g ) = F 0 ( g ) U(g)=F_0(g) U ( g ) = F 0 ( g ) and ϕ ( g ) = e F 0 ( g ) / τ \phi(g)=e^{F_0(g)/\tau} ϕ ( g ) = e F 0 ( g ) / τ . For Lemma 2(ii) we differentiate, ϕ ′ = f 0 τ ϕ \phi'=\frac{f_0}{\tau}\phi ϕ ′ = τ f 0 ϕ and ϕ ′ ′ = ( f 0 2 τ 2 + f 0 ′ τ ) ϕ \phi''=\left(\frac{f_0^2}{\tau^2}+\frac{f_0'}{\tau}\right)\phi ϕ ′′ = ( τ 2 f 0 2 + τ f 0 ′ ) ϕ , so the Arrow–Pratt coefficient is ϕ ′ ′ / ϕ ′ = f 0 / τ + f 0 ′ / f 0 \phi''/\phi'=f_0/\tau+f_0'/f_0 ϕ ′′ / ϕ ′ = f 0 / τ + f 0 ′ / f 0 and the lemma gives R = σ 2 2 ( f 0 ( μ ) / τ + ( ln f 0 ) ′ ( μ ) ) + o ( σ 2 ) \mathcal{R}=\frac{\sigma^2}{2}\left(f_0(\mu)/\tau+(\ln f_0)'(\mu)\right)+o(\sigma^2) R = 2 σ 2 ( f 0 ( μ ) / τ + ( ln f 0 ) ′ ( μ ) ) + o ( σ 2 ) . We can then insert the PDFs. Gaussian: ( ln f 0 ) ′ ( μ ) = − ( μ − μ 0 ) / σ 0 2 (\ln f_0)'(\mu)=-(\mu-\mu_0)/\sigma_0^2 ( ln f 0 ) ′ ( μ ) = − ( μ − μ 0 ) / σ 0 2 , giving the cell. Exponential: f 0 ( μ ) = θ 0 e − θ 0 μ f_0(\mu)=\theta_0e^{-\theta_0\mu} f 0 ( μ ) = θ 0 e − θ 0 μ and ( ln f 0 ) ′ = − θ 0 (\ln f_0)'=-\theta_0 ( ln f 0 ) ′ = − θ 0 , giving the cell. Counts: the grade is a step function and the expansion cannot be applied directly. For the Poisson specifically, however, we can assume the normal limit N ( m λ 0 , m 2 λ 0 ) \mathcal{N}(m\lambda_0,m^2\lambda_0) N ( m λ 0 , m 2 λ 0 ) and reuse the Gaussian result, with the caveat that λ 0 \lambda_0 λ 0 must be large. □
Discussion. Read top to bottom, Table 1 orders the operators by risk sensitivity, GRPO exactly neutral, the three grade operators boundedly risk-seeking, MNL-exp unboundedly so. GRPO’s utility is affine, so it is exactly neutral in every column, this was also briefly shown empirically in Figure 2 . It says nothing about learning stability due to exploding variance however. One takeaway from Prop. 3 is that the grade-based operators are always boundedly risk-seeking due to being scale agnostic. For FTW the attractor is the elite threshold t = μ 0 + σ 0 a C , K t=\mu_0+\sigma_0a_{C,K} t = μ 0 + σ 0 a C , K . Mild filters with K K K near C C C have a C , K ≤ 0 a_{C,K}\le0 a C , K ≤ 0 and put it at or below the buffer mean μ 0 \mu_0 μ 0 , DPO and the half filters K = C / 2 K=C/2 K = C /2 have a C , K = 0 a_{C,K}=0 a C , K = 0 and put it at the buffer mean exactly, and aggressive filters with K ≪ C K\ll C K ≪ C have a C , K > 0 a_{C,K}>0 a C , K > 0 and raise it above. The pull grows with the entry’s own σ \sigma σ but saturates at the attractor, so no amount of noise scores an entry above t t t . MNL-exp uses the full return magnitude and is unboundedly risk-seeking, which also makes it fragile.
The Gaussian cell also predicts the σ \sigma σ -trap of Figure 2 (left). So long as both arms remain represented in the buffer, a noisy Gaussian distractor lands above or below the optimal mean with probability 1 2 \frac{1}{2} 2 1 as its variance grows. Therefore, every ordinal comparison converges towards a coin flip and the distilled policy should approach a uniform distribution. Aggressive filters with a C , K > 0 a_{C,K}>0 a C , K > 0 end before this regime, because the buffer spread σ 0 \sigma_0 σ 0 grows with the distractor’s noise, so already at moderate noise their threshold t = μ 0 + σ 0 a C , K t=\mu_0+\sigma_0a_{C,K} t = μ 0 + σ 0 a C , K rises above the optimal mean. This excludes the near-deterministic arm more and more often, and eventually the noisy arm crowds the buffer. We show this in the supplementary results in Figure 6 , where for aggressive ( C , K ) (C,K) ( C , K ) variants the recovered policy converges to the trap-arm.
Figure 6. σ \sigma σ -trap solutions for FTW selection variants (10 seeds; shaded: bootstrap 95% CIs).
We close with limitations of this theoretical section. Firstly, the Arrow-Pratt expansion behind the FTW softmax-on-ranks row holds in the small-noise regime σ ≪ σ 0 \sigma\ll\sigma_0 σ ≪ σ 0 , which is not typically realistic, whereas the other rows hold at every σ \sigma σ . Secondly, the elite threshold T T T is approximated by a normal to obtain a closed form, its exact law is skewed, so the FTW top-K / C K/C K / C cells are exact only in the pairwise Gaussian case. Thirdly, the buffer marginal is in general a mixture over conditional return laws, in practice these laws are not guaranteed homogenous. Our single-family assumption on F 0 F_0 F 0 is thus a homogeneity idealization. Lastly, on sparse or stepwise rewards the grade operators admit no unique certainty equivalent, the 0 1 0^1 0 1 cells. On these discrete rewards they are also jackpot-blind, at a fixed mean m p mp m p their weight for a rare large payoff collapses to that of a sure zero as p → 0 p \to0 p → 0 (which implies that the jackpot m m m must grow), whereas MNL-exp instead diverges.
Extended Derivation
Preliminaries
Let π θ \pi_\theta π θ be a history-dependent parametric policy acting in a partially observable Markov decision process. We write the observable history at time t t t as H t = ( O 0 , A 0 , … , O t − 1 , A t − 1 , O t ) H_t = (O_0, A_0, \ldots, O_{t-1}, A_{t-1}, O_t) H t = ( O 0 , A 0 , … , O t − 1 , A t − 1 , O t ) , and the full observable trajectory as H 0 : T = ( O 0 , A 0 , O 1 , A 1 , … , O T ) H_{0:T} = (O_0, A_0, O_1, A_1, \ldots, O_T) H 0 : T = ( O 0 , A 0 , O 1 , A 1 , … , O T ) . The policy induces a distribution over observable trajectories by marginalizing over latent states,
p π θ ( H 0 : T ) = ∫ p ( S 0 ) p ( O 0 ∣ S 0 ) ∏ t = 0 T − 1 π θ ( A t ∣ H t ) p ( S t + 1 ∣ S t , A t ) p ( O t + 1 ∣ S t + 1 ) d S 0 : T . (17) p_{\pi_\theta}(H_{0:T}) = \int p(S_0)p(O_0 \mid S_0) \prod_{t=0}^{T-1} \pi_\theta(A_t \mid H_t)p(S_{t+1} \mid S_t, A_t)p(O_{t+1} \mid S_{t+1})\,dS_{0:T}. \tag*{(17)} p π θ ( H 0 : T ) = ∫ p ( S 0 ) p ( O 0 ∣ S 0 ) t = 0 ∏ T − 1 π θ ( A t ∣ H t ) p ( S t + 1 ∣ S t , A t ) p ( O t + 1 ∣ S t + 1 ) d S 0 : T . (17)
Denote the set of admissible policies by Π ≜ { π ∣ π : H × Θ → P ( A ) } \Pi\triangleq\{\pi\mid\pi: \mathcal{H} \times\Theta\to\mathcal{P}(\mathcal{A})\} Π ≜ { π ∣ π : H × Θ → P ( A )} , so that π θ ∈ Π \pi_\theta\in\Pi π θ ∈ Π .
Since rewards depend on the latent state-action process, the return is defined as
G ( S 0 : T , A 0 : T − 1 ) ≜ ∑ t = 0 T r ( S t , A t ) ∈ R . (18) G(S_{0:T}, A_{0:T-1}) \triangleq\sum_{t=0}^{T} r(S_t, A_t) \in\mathbb{R}. \tag*{(18)} G ( S 0 : T , A 0 : T − 1 ) ≜ t = 0 ∑ T r ( S t , A t ) ∈ R . (18)
For notational convenience, we write G ( H 0 : T ) G(H_{0:T}) G ( H 0 : T ) for the return random variable induced by the latent state-action trajectory underlying H 0 : T H_{0:T} H 0 : T , i.e. G ( H 0 : T ) ∼ Law ( ∑ t = 0 T r ( S t , A t ) ∣ H 0 : T ) G(H_{0:T}) \sim\operatorname{Law}\left(\left.\sum_{t=0}^{T} r(S_t, A_t)\right|H_{0:T}\right) G ( H 0 : T ) ∼ Law ( ∑ t = 0 T r ( S t , A t ) H 0 : T ) . The objective is then
θ ∗ ≜ arg max θ E p π θ ( S 0 : T , H 0 : T ) [ G ( S 0 : T , A 0 : T − 1 ) ] . (19) \theta^* \triangleq\arg\max_\theta\mathbb{E}_{p_{\pi_\theta}(S_{0:T}, H_{0:T})}\left[G(S_{0:T}, A_{0:T-1})\right]. \tag*{(19)} θ ∗ ≜ arg θ max E p π θ ( S 0 : T , H 0 : T ) [ G ( S 0 : T , A 0 : T − 1 ) ] . (19)
For convenience, in the infinite-horizon setting T → ∞ T \to\infty T → ∞ , assume that the transition kernel satisfies Pr ( S t + 1 = s a b s o r b ∣ S t , A t ) > 0 \Pr(S_{t+1} = s_{\mathrm{absorb}} \mid S_t, A_t) > 0 Pr ( S t + 1 = s absorb ∣ S t , A t ) > 0 for all S t ∈ S S_t \in\mathcal{S} S t ∈ S , where s a b s o r b s_{\mathrm{absorb}} s absorb is an absorbing state that transitions to itself with probability 1 1 1 and yields zero reward. Equivalently, one may work with a discount factor γ ∈ [ 0 , 1 ) \gamma\in[0,1) γ ∈ [ 0 , 1 ) , which can be interpreted as an effective termination probability p t e r m = 1 − γ p_{\mathrm{term}} = 1 - \gamma p term = 1 − γ .
Define a binary optimality variable O T ∈ { 0 , 1 } O_T \in\{0,1\} O T ∈ { 0 , 1 } , which we use to condition the graphical model at the trajectory level. For simplicity, this corresponds to a sparse-reward setting in which rewards are evaluated only on completion. Most importantly, the optimality variable depends only on the return, so that
O T ⊥ ⊥ ( S 0 : T , H 0 : T ) ∣ G ( S 0 : T , A 0 : T − 1 ) . (20) O_T \perp\!\!\!\perp(S_{0:T}, H_{0:T}) \mid G(S_{0:T}, A_{0:T-1}). \tag*{(20)} O T ⊥ ⊥ ( S 0 : T , H 0 : T ) ∣ G ( S 0 : T , A 0 : T − 1 ) . (20)
We can then perform model selection by maximizing the evidence
max θ p π θ ( O T = 1 ) = max θ ∫ p π θ ( O T = 1 , S 0 : T , H 0 : T ) d S 0 : T d H 0 : T . (21) \max_\theta p_{\pi_\theta}(O_T = 1) = \max_\theta\int p_{\pi_\theta}(O_T = 1, S_{0:T}, H_{0:T})\,dS_{0:T}\,dH_{0:T}. \tag*{(21)} θ max p π θ ( O T = 1 ) = θ max ∫ p π θ ( O T = 1 , S 0 : T , H 0 : T ) d S 0 : T d H 0 : T . (21)
For brevity, we write Pr ( O T = 1 ) ≡ Pr ( O T ) \Pr(O_T = 1) \equiv\Pr(O_T) Pr ( O T = 1 ) ≡ Pr ( O T ) , since the case O T = 0 O_T = 0 O T = 0 is not of direct interest.
maximizing the marginal likelihood of optimality. The actual values of O T \mathcal{O}_T O T are never used directly; at optimality, π θ \pi_\theta π θ would generate only high-return trajectories, so the outcome vector collapses to [ 1 , 1 , … , 1 ] [1,1,\ldots,1] [ 1 , 1 , … , 1 ] , while a suboptimal policy produces a mixture of zeros and ones reflecting the proportion of good trajectories.
KL-Regularized Policy Gradient. To derive optimization objectives, let q ϕ ( H 0 : T ) ∈ Π q_\phi(H_{0:T}) \in\Pi q ϕ ( H 0 : T ) ∈ Π be a variational policy and lower-bound the log-evidence via Jensen’s inequality,
ln p π θ ( O T ) = ln ∫ p ( O T ∣ H 0 : T ) p π θ ( H 0 : T ) d H 0 : T ≥ E q ϕ [ ln p ( O T ∣ H 0 : T ) ] − D K L ( q ϕ ( H 0 : T ) ∥ p π θ ( H 0 : T ) ) ≜ L ( θ , ϕ ) . (22) \begin{aligned}
\ln p_{\pi_\theta}(\mathcal{O}_T)=\ln\int p(\mathcal{O}_T\mid H_{0:T})p_{\pi_\theta}(H_{0:T})\,\mathrm{d}H_{0:T} \\
&\geq\mathbb{E}_{q_\phi}\left[\ln p(\mathcal{O}_T\mid H_{0:T})\right]-D_{\mathrm{KL}}\left(q_\phi(H_{0:T})\mathbin\Vert p_{\pi_\theta}(H_{0:T})\right)\triangleq\mathcal{L}(\theta,\phi). \tag*{(22)}
\end{aligned} ln p π θ ( O T ) = ln ∫ p ( O T ∣ H 0 : T ) p π θ ( H 0 : T ) d H 0 : T ≥ E q ϕ [ ln p ( O T ∣ H 0 : T ) ] − D KL ( q ϕ ( H 0 : T ) ∥ p π θ ( H 0 : T ) ) ≜ L ( θ , ϕ ) . (22)
Assuming an exponential likelihood,
p ( O T ∣ H 0 : T ) = exp G ( H 0 : T ) Z ( π θ ) , Z ( π θ ) = E p π θ [ exp G ( H 0 : T ) ] , (23) p(\mathcal{O}_T\mid H_{0:T})=\frac{\exp G(H_{0:T})}{Z(\pi_\theta)},\qquad Z(\pi_\theta)=\mathbb{E}_{p_{\pi_\theta}}\left[\exp G(H_{0:T})\right], \tag*{(23)} p ( O T ∣ H 0 : T ) = Z ( π θ ) exp G ( H 0 : T ) , Z ( π θ ) = E p π θ [ exp G ( H 0 : T ) ] , (23)
and noting that Z ( π θ ) Z(\pi_\theta) Z ( π θ ) is constant with respect to the maximization over ϕ \phi ϕ , we obtain the KL-regularized objective and its gradient,
max ϕ L ( θ , ϕ ) = max ϕ E q ϕ [ G ( H 0 : T ) ] − D K L ( q ϕ ∥ p π θ ) , (24) \max_\phi\mathcal{L}(\theta,\phi)=\max_\phi\mathbb{E}_{q_\phi}\left[G(H_{0:T})\right]-D_{\mathrm{KL}}(q_\phi\mathbin\Vert p_{\pi_\theta}), \tag*{(24)} ϕ max L ( θ , ϕ ) = ϕ max E q ϕ [ G ( H 0 : T ) ] − D KL ( q ϕ ∥ p π θ ) , (24)
∇ ϕ L ( θ , ϕ ) = E q ϕ [ G ( H 0 : T ) ∇ ϕ ln q ϕ ] − ∇ ϕ D K L ( q ϕ ∥ p π θ ) , (25) \nabla_\phi\mathcal{L}(\theta,\phi)=\mathbb{E}_{q_\phi}\left[G(H_{0:T})\nabla_\phi\ln q_\phi\right]-\nabla_\phi D_{\mathrm{KL}}(q_\phi\mathbin\Vert p_{\pi_\theta}), \tag*{(25)} ∇ ϕ L ( θ , ϕ ) = E q ϕ [ G ( H 0 : T ) ∇ ϕ ln q ϕ ] − ∇ ϕ D KL ( q ϕ ∥ p π θ ) , (25)
which recovers a policy-gradient objective regularized by the KL divergence between the variational policy and the model. A locally optimal policy can then be recovered through coordinate ascent by alternating until convergence:
θ ∗ = arg max θ L ( θ , ϕ ∗ ) , ϕ ∗ = arg max ϕ L ( θ ∗ , ϕ ) . (26) \theta^*=\arg\max_\theta\mathcal{L}(\theta,\phi^*),\qquad\phi^*=\arg\max_\phi\mathcal{L}(\theta^*,\phi). \tag*{(26)} θ ∗ = arg θ max L ( θ , ϕ ∗ ) , ϕ ∗ = arg ϕ max L ( θ ∗ , ϕ ) . (26)
In our setting this can be implemented simply by setting θ ∗ ← ϕ ∗ \theta^*\leftarrow\phi^* θ ∗ ← ϕ ∗ , since both parameterize policies in Π \Pi Π . Under the assumptions that L \mathcal{L} L is bounded above, each coordinate update is exact, and G G G is bounded (ensuring Z ( π θ ) < ∞ Z(\pi_\theta)<\infty Z ( π θ ) < ∞ ), each step does not decrease L \mathcal{L} L , usually converging to a local optimum.
Gibbs identity. Maximizing the ELBO is equivalent to minimizing the KL divergence to the tilted posterior q ∗ q^* q ∗ , by the Gibbs identity
E q ϕ [ G ( H 0 : T ) ] − D K L ( q ϕ ∥ p π θ ) = ln Z ( π θ ) − D K L ( q ϕ ∥ q ∗ ) , (27) \mathbb{E}_{q_\phi}\left[G(H_{0:T})\right]-D_{\mathrm{KL}}(q_\phi\mathbin\Vert p_{\pi_\theta})=\ln Z(\pi_\theta)-D_{\mathrm{KL}}(q_\phi\mathbin\Vert q^*), \tag*{(27)} E q ϕ [ G ( H 0 : T ) ] − D KL ( q ϕ ∥ p π θ ) = ln Z ( π θ ) − D KL ( q ϕ ∥ q ∗ ) , (27)
q ∗ ( H 0 : T ) ≜ p π θ ( H 0 : T ) exp G ( H 0 : T ) Z ( π θ ) , (28) q^*(H_{0:T})\triangleq\frac{p_{\pi_\theta}(H_{0:T})\exp G(H_{0:T})}{Z(\pi_\theta)}, \tag*{(28)} q ∗ ( H 0 : T ) ≜ Z ( π θ ) p π θ ( H 0 : T ) exp G ( H 0 : T ) , (28)
so the evidence bound is tight exactly at q ∗ q^* q ∗ , provided the policy class contains it. Maximizing over ϕ \phi ϕ therefore projects q ∗ q^* q ∗ onto the policy class, from which we can observe an alternative optimization strategy. Draws from q ∗ q^* q ∗ are simply draws from p π θ p_{\pi_\theta} p π θ reweighted, or resampled, by the potential exp G \exp G exp G . The projection then becomes a cross-entropy fit on these tilted samples, which never needs a gradient of the potential. This duality between the policy gradient and the cross-entropy fit is what motivates FTW’s sample-and-project approach.
Batch-Level CAI and Ordinal Potentials
We now extend the trajectory-level CAI of Appendix E.1 to inference over finite collections of trajectories, conditioned on ordinal feedback. This section develops the framework abstractly, subsequent subsections instantiate it with the Plackett–Luce model and multinomial model.
Batch-level ELBO (Eq. 4). We modify the base graphical model, marginalizing not over the single trajectory H T H_T H T but a batch B N = ( H T 1 , … , H T N ) \mathcal{B}_N=(H_T^1,\ldots,H_T^N) B N = ( H T 1 , … , H T N ) and the binary O T ∈ { 0 , 1 } \mathcal{O}_T\in\{0,1\} O T ∈ { 0 , 1 } with an ordinal observation O T ∈ Z + \mathcal{O}_T\in\mathbb{Z}_+ O T ∈ Z + or O T ∈ S N \mathcal{O}_T\in S_N O T ∈ S N where S N S_N S N is the symmetric group of size N N N (overloading notation) supported on rankings or winner indices, the evidence becomes ln p π θ ( O T ) = ln E π θ ( B N ) [ Φ T ( B N ) ] \ln p_{\pi_\theta}(\mathcal{O}_T)=\ln\mathbb{E}_{\pi_{\theta}(\mathcal{B}_N)}[\Phi_T(\mathcal{B}_N)] ln p π θ ( O T ) = ln E π θ ( B N ) [ Φ T ( B N )] , where p π θ ( B N ) = ∏ n = 1 N p π θ ( H T n ) p_{\pi_\theta}(\mathcal{B}_N)=\prod_{n=1}^N p_{\pi_\theta}(H_T^n) p π θ ( B N ) = ∏ n = 1 N p π θ ( H T n ) by the i.i.d. batch construction § 3 . Introducing a variational q ∈ Π q \in\Pi q ∈ Π at the trajectory level and lifting it to the batch as p q ( B N ) = ∏ n p q ( H 0 : T ( n ) ) p_q(B_N)=\prod_n p_q(H_{0:T}^{(n)}) p q ( B N ) = ∏ n p q ( H 0 : T ( n ) ) , Jensen’s inequality gives
ln p π θ ( O T ) ≥ E p q ( B N ) [ ln Φ T ( B N ) ] − D K L ( p q ( B N ) ∥ p π θ ( B N ) ) . (29) \ln p_{\pi_\theta}(O_T) \ge\mathbb{E}_{p_q(B_N)}[\ln\Phi_T(B_N)] - D_{\mathrm{KL}}(p_q(B_N) \mathbin\Vert p_{\pi_\theta}(B_N)). \tag*{(29)} ln p π θ ( O T ) ≥ E p q ( B N ) [ ln Φ T ( B N )] − D KL ( p q ( B N ) ∥ p π θ ( B N )) . (29)
The KL between product measures factorizes as D K L ( ∏ n p q ∥ ∏ n p π θ ) = N ⋅ D K L ( p q ∥ p π θ ) D_{\mathrm{KL}}(\prod_n p_q \mathbin\Vert\prod_n p_{\pi_\theta}) = N \cdot D_{\mathrm{KL}}(p_q \mathbin\Vert p_{\pi_\theta}) D KL ( ∏ n p q ∥ ∏ n p π θ ) = N ⋅ D KL ( p q ∥ p π θ ) , recovering Eq. (4) from the main text. The factor N N N is not a tunable weight but a direct consequence of the i.i.d. batch construction, however, it can be absorbed into the KL coefficient λ \lambda λ in Algorithm 2 which is equivalent to adjusting the temperature of the likelihood ln Φ T ( B N ) \ln\Phi_T(B_N) ln Φ T ( B N ) .
Ordinal feedback. We consider two cases for ordinal feedback on a batch B N = { H 0 : T ( i ) } i = 1 N B_N = \{H_{0:T}^{(i)}\}_{i=1}^{N} B N = { H 0 : T ( i ) } i = 1 N :
Full ranking. O T = σ ∈ S N O_T = \sigma\in S_N O T = σ ∈ S N specifies a complete permutation of B N B_N B N . The likelihood is the Plackett–Luce (PL) model (§E.3), and methods such as DPO and LiPO operate in this regime.
Winner-only. O T = n ∈ { 1 , … , N } ⊂ Z + O_T = n \in\{1,\ldots,N\} \subset\mathbb{Z}_+ O T = n ∈ { 1 , … , N } ⊂ Z + identifies a single preferred trajectory. The likelihood is the multinomial (MNL) model (§E.4), which arises as the first-stage marginal of PL, and methods such as GRPO operate in this regime.
Both yield well-defined ordinal CAI problems. The substantive question is whether ordinal feedback elicited on a sampled batch B N B_N B N is globally consistent . In other words, whether the preference structure on B N B_N B N agrees with an underlying total order on H \mathcal{H} H . This is established by Luce’s choice axiom.
Consistency via Luce’s Choice Axiom. Both the full-ranking PL likelihood and the winner-only MNL marginal inherit independence of irrelevant alternatives (IIA) from the PL family. For any two trajectories a , b ∈ B N a,b \in B_N a , b ∈ B N , define the pairwise preference probability
p ( a ≻ b ∣ B N ) ≡ p ( O T = a ∣ O T ∈ { a , b } , B N ) . (30) p(a \succ b \mid B_N) \equiv p(O_T = a \mid O_T \in\{a,b\}, B_N). \tag*{(30)} p ( a ≻ b ∣ B N ) ≡ p ( O T = a ∣ O T ∈ { a , b } , B N ) . (30)
Proposition 4 (Luce’s choice axiom [56 ] ). Under the PL model with positive weights g g g , pairwise preferences are independent of the enclosing batch B N B_N B N : for any a , b ∈ B N a,b \in B_N a , b ∈ B N ,
p ( a ≻ b ∣ B N ) = g ( a ) g ( a ) + g ( b ) . (31) p(a \succ b \mid B_N) = \frac{g(a)}{g(a)+g(b)}. \tag*{(31)} p ( a ≻ b ∣ B N ) = g ( a ) + g ( b ) g ( a ) . (31)
Proof. By Bayes’ rule, and using that { O T = a } \{O_T = a\} { O T = a } and { O T = b } \{O_T = b\} { O T = b } are mutually exclusive,
p ( O T = a ∣ O T ∈ { a , b } , B N ) = p ( O T = a ∣ B N ) p ( O T = a ∣ B N ) + p ( O T = b ∣ B N ) (32) p(O_T = a \mid O_T \in\{a,b\}, B_N) = \frac{p(O_T = a \mid B_N)}{p(O_T = a \mid B_N) + p(O_T = b \mid B_N)} \tag*{(32)} p ( O T = a ∣ O T ∈ { a , b } , B N ) = p ( O T = a ∣ B N ) + p ( O T = b ∣ B N ) p ( O T = a ∣ B N ) (32)
= g ( a ) / Z g ( a ) / Z + g ( b ) / Z = g ( a ) g ( a ) + g ( b ) , (33) = \frac{g(a)/Z}{g(a)/Z + g(b)/Z} = \frac{g(a)}{g(a)+g(b)}, \tag*{(33)} = g ( a ) / Z + g ( b ) / Z g ( a ) / Z = g ( a ) + g ( b ) g ( a ) , (33)
where Z = ∑ i = 1 N g ( H 0 : T ( i ) ) Z = \sum_{i=1}^{N} g(H_{0:T}^{(i)}) Z = ∑ i = 1 N g ( H 0 : T ( i ) ) cancels.
Since the right-hand side is independent of B N B_N B N , ordinal feedback elicited on any batch is a consistent marginal of an underlying total ordering on H \mathcal{H} H . This has two operational implications.
For the PL likelihood (full ranking), IIA guarantees that the relative probability of any two rankings σ , σ ′ \sigma,\sigma' σ , σ ′ that agree on their top-k k k elements is independent of the remaining elements. Thus, subset rankings are consistent permutations of the full-domain ordering, so optimizing on any batch yields a gradient aligned with the full-domain objective.
For the MNL likelihood (winner-only), IIA guarantees that the winner identity is stable regardless of which other trajectories appear in B N B_N B N : if H 0 : T ( n ) H_{0:T}^{(n)} H 0 : T ( n ) is the best trajectory globally, it wins in any batch containing it. The winner-only model is thus a principled marginal of the full PL model.
Both guarantees mean that Monte Carlo approximation over sampled batches B N ( 1 ) , … , B N ( M ) ∼ p π θ B_N^{(1)},\ldots,B_N^{(M)} \sim p_{\pi_\theta} B N ( 1 ) , … , B N ( M ) ∼ p π θ is well-posed for either likelihood choice. This justifies the per-minibatch filtering operation of our algorithm FTW (§ 3 ) since per-batch rankings under either potential are consistent estimators of the full-domain ranking, IIA ensures the elite set is unbiased in expectation.
The Plackett–Luce Model
The Plackett–Luce (PL) model defines a probability distribution over rankings of a finite set of alternatives. Given a batch B N = { H 0 : T ( i ) } i = 1 N \mathcal{B}_N = \{H_{0:T}^{(i)}\}_{i=1}^{N} B N = { H 0 : T ( i ) } i = 1 N , each trajectory is assigned a positive weight g ( H 0 : T ( i ) ) > 0 g(H_{0:T}^{(i)}) > 0 g ( H 0 : T ( i ) ) > 0 through a weight function g : H → R > 0 g : \mathcal{H} \to\mathbb{R}_{>0} g : H → R > 0 (for instance, g ( H 0 : T ( i ) ) = exp G ( H 0 : T ( i ) ) g(H_{0:T}^{(i)}) = \exp G(H_{0:T}^{(i)}) g ( H 0 : T ( i ) ) = exp G ( H 0 : T ( i ) ) ). The probability of observing a complete ranking σ = ( σ ( 1 ) , σ ( 2 ) , … , σ ( N ) ) \sigma= (\sigma(1), \sigma(2), \ldots, \sigma(N)) σ = ( σ ( 1 ) , σ ( 2 ) , … , σ ( N )) is given by sequential elimination,
p ( O T = σ ∣ B N ) = ∏ n = 1 N g ( H 0 : T ( σ ( n ) ) ) ∑ k = n N g ( H 0 : T ( σ ( k ) ) ) . (34) p(\mathcal{O}_T = \sigma\mid\mathcal{B}_N) = \prod_{n=1}^{N} \frac{g\left(H_{0:T}^{(\sigma(n))}\right)}{\sum_{k=n}^{N} g\left(H_{0:T}^{(\sigma(k))}\right)}. \tag*{(34)} p ( O T = σ ∣ B N ) = n = 1 ∏ N ∑ k = n N g ( H 0 : T ( σ ( k )) ) g ( H 0 : T ( σ ( n )) ) . (34)
Here σ ( 1 ) \sigma(1) σ ( 1 ) denotes the top-ranked (winner) trajectory and σ ( N ) \sigma(N) σ ( N ) the bottom-ranked. The first-stage marginal, which is the probability that trajectory n n n is ranked first, follows by summing over all rankings consistent with σ ( 1 ) = n \sigma(1) = n σ ( 1 ) = n , yielding the familiar softmax form
p ( O T = n ∣ B N ) = g ( H 0 : T ( n ) ) ∑ i = 1 N g ( H 0 : T ( i ) ) . (35) p(\mathcal{O}_T = n \mid\mathcal{B}_N) = \frac{g\left(H_{0:T}^{(n)}\right)}{\sum_{i=1}^{N} g\left(H_{0:T}^{(i)}\right)}. \tag*{(35)} p ( O T = n ∣ B N ) = ∑ i = 1 N g ( H 0 : T ( i ) ) g ( H 0 : T ( n ) ) . (35)
If the generating policy is already optimal: p ( O T = n ∣ B N ) = 1 / N p(\mathcal{O}_T = n \mid\mathcal{B}_N) = 1/N p ( O T = n ∣ B N ) = 1/ N , and the ranking is uniform. The weight function g g g is a modeling choice that determines the inductive bias of the likelihood; independent of this choice, the PL model satisfies IIA (Proposition 4), so pairwise preferences are consistent across batches.
The Multinomial (Winner) Model
The winner-only model takes p ( O T = n ∣ B N ) p(\mathcal{O}_T = n \mid\mathcal{B}_N) p ( O T = n ∣ B N ) as the probability that H 0 : T ( n ) H_{0:T}^{(n)} H 0 : T ( n ) beats all others in B N \mathcal{B}_N B N ,
p ( O T = n ∣ B N ) ≡ p ( H 0 : T ( n ) ≻ H 0 : T ( k ) , ∀ k ≠ n ∣ B N ) = g ( n ) ∑ j = 1 N g ( j ) . (36) p(\mathcal{O}_T = n \mid\mathcal{B}_N) \equiv p\left(H_{0:T}^{(n)} \succ H_{0:T}^{(k)},\ \forall k \ne n \mid\mathcal{B}_N\right) = \frac{g^{(n)}}{\sum_{j=1}^{N} g^{(j)}}. \tag*{(36)} p ( O T = n ∣ B N ) ≡ p ( H 0 : T ( n ) ≻ H 0 : T ( k ) , ∀ k = n ∣ B N ) = ∑ j = 1 N g ( j ) g ( n ) . (36)
which is exactly the first-stage PL marginal (Eq. (35) ). The first-stage marginal of the full PL ranking model coincides with the standalone MNL choice model, so optimizing on winner-only feedback is principled and inherits the global consistency guarantees of PL.
Exchangeability. Since the batch construction p π θ ( B N ) = ∏ n p π θ ( H 0 : T ( n ) ) p_{\pi_\theta}(\mathcal{B}_N) = \prod_n p_{\pi_\theta}(H_{0:T}^{(n)}) p π θ ( B N ) = ∏ n p π θ ( H 0 : T ( n ) ) is permutation-invariant, the batch indices { 1 , … , N } \{1, \ldots, N\} { 1 , … , N } are a priori exchangeable. Conditioning on a specific winner index n n n is therefore arbitrary, and we instead work with the average over all N N N possible winner identities,
ℓ ( O T ∣ B N ) ≜ 1 N ∑ n = 1 N p ( O T = n ∣ B N ) , (37) \ell(\mathcal{O}_T \mid\mathcal{B}_N) \triangleq\frac{1}{N}\sum_{n=1}^{N} p(\mathcal{O}_T = n \mid\mathcal{B}_N), \tag*{(37)} ℓ ( O T ∣ B N ) ≜ N 1 n = 1 ∑ N p ( O T = n ∣ B N ) , (37)
which substitutes into the ELBO (Eq. (29) ) to give the averaged form,
L ^ ( θ , ϕ ∣ B N ) = 1 N ∑ n = 1 N E p q ( B N ) [ ln p ( O T = n ∣ B N ) ] − N ⋅ D K L ( p q ∥ p π θ ) . (38) \widehat{\mathcal{L}}(\theta, \phi\mid\mathcal{B}_N) = \frac{1}{N}\sum_{n=1}^{N}\mathbb{E}_{p_q(\mathcal{B}_N)}[\ln p(\mathcal{O}_T = n \mid\mathcal{B}_N)] - N \cdot D_{\mathrm{KL}}(p_q \Vert p_{\pi_\theta}). \tag*{(38)} L ( θ , ϕ ∣ B N ) = N 1 n = 1 ∑ N E p q ( B N ) [ ln p ( O T = n ∣ B N )] − N ⋅ D KL ( p q ∥ p π θ ) . (38)
This is the objective from which the per-trajectory MNL policy gradient is derived in §E.5.
Policy Gradients and Recovery of GRPO and DPO
We now derive the policy gradient under each likelihood with the Boltzmann weight function g ( H 0 : T ) = exp G ( H 0 : T ) g(H_{0:T}) = \exp G(H_{0:T}) g ( H 0 : T ) = exp G ( H 0 : T ) , and use these gradients to recover GRPO and DPO as special cases. The discussion below derives the gradient directly from the per-trajectory log-likelihood. Throughout, we adopt the convention that σ ( 1 ) \sigma(1) σ ( 1 ) denotes the top-ranked (winner) trajectory and σ ( N ) \sigma(N) σ ( N ) the bottom-ranked.
Policy gradient under the full PL model. Plugging the Boltzmann weight into the log-likelihood of a complete ranking σ \sigma σ ,
ln p ( O T = σ ∣ B N ) = ∑ n = 1 N [ G ( σ ( n ) ) − C n ( B N ) ] , C n ( B N ) ≜ ln ∑ k = n N exp G ( σ ( k ) ) . (39) \ln p(\mathcal{O}_T=\sigma\mid\mathcal{B}_N)=\sum_{n=1}^{N}\left[G^{(\sigma(n))}-C_n(\mathcal{B}_N)\right],\qquad C_n(\mathcal{B}_N)\triangleq\ln\sum_{k=n}^{N}\exp G^{(\sigma(k))}. \tag*{(39)} ln p ( O T = σ ∣ B N ) = n = 1 ∑ N [ G ( σ ( n )) − C n ( B N ) ] , C n ( B N ) ≜ ln k = n ∑ N exp G ( σ ( k )) . (39)
Substituting into the ELBO (29) and applying the log-derivative trick,
∇ ϕ L ( θ , ϕ ∣ B N ) = E p q ( B N ) [ ∑ n = 1 N ( G ( σ ( n ) ) − C n ( B N ) ) ∇ ϕ ln p q ( B N ) ] − N ∇ ϕ D K L ( q ϕ ∥ p π θ ) . (40) \nabla_\phi\mathcal{L}(\theta,\phi\mid\mathcal{B}_N)=\mathbb{E}_{p_q(\mathcal{B}_N)}\left[\sum_{n=1}^{N}\left(G^{(\sigma(n))}-C_n(\mathcal{B}_N)\right)\nabla_\phi\ln p_q(\mathcal{B}_N)\right]-N\nabla_\phi D_{\mathrm{KL}}(q_\phi\parallel p_{\pi_\theta}). \tag*{(40)} ∇ ϕ L ( θ , ϕ ∣ B N ) = E p q ( B N ) [ n = 1 ∑ N ( G ( σ ( n )) − C n ( B N ) ) ∇ ϕ ln p q ( B N ) ] − N ∇ ϕ D KL ( q ϕ ∥ p π θ ) . (40)
The baselines C n ( B N ) C_n(\mathcal{B}_N) C n ( B N ) shrink monotonically down the ranking, with C 1 ( B N ) ≥ C 2 ( B N ) ≥ ⋯ ≥ C N ( B N ) = G ( σ ( N ) ) C_1(\mathcal{B}_N)\geq C_2(\mathcal{B}_N)\geq\cdots\geq C_N(\mathcal{B}_N)=G^{(\sigma(N))} C 1 ( B N ) ≥ C 2 ( B N ) ≥ ⋯ ≥ C N ( B N ) = G ( σ ( N )) . This produces a non-uniform gradient signal across rank positions. At the bottom (n = N n=N n = N ), the baseline reduces to G ( σ ( N ) ) G^{(\sigma(N))} G ( σ ( N )) itself, so the advantage is exactly zero. At the top (n = 1 n=1 n = 1 ), the log-sum-exp is dominated by the largest return G ( σ ( 1 ) ) G^{(\sigma(1))} G ( σ ( 1 )) , so the advantage is non-zero but small in magnitude. Middle-ranked trajectories carry the largest advantages, since their returns are smaller than the log-sum-exp but the log-sum-exp itself remains dominated by the top of the ranking. Gradient signal is therefore diluted at both extremes and concentrated on the middle of the ranking.
Policy gradient under the MNL model. Starting from the averaged ELBO of Eq. (38) and plugging in the Boltzmann weight, the per-winner log-likelihood is
ln p ( O T = n ∣ B N ) = G ( H 0 : T ( n ) ) − C ( B N ) , C ( B N ) ≜ ln ∑ i = 1 N exp G ( H 0 : T ( i ) ) . (41) \ln p(\mathcal{O}_T=n\mid\mathcal{B}_N)=G\left(H_{0:T}^{(n)}\right)-C(\mathcal{B}_N),\qquad C(\mathcal{B}_N)\triangleq\ln\sum_{i=1}^{N}\exp G\left(H_{0:T}^{(i)}\right). \tag*{(41)} ln p ( O T = n ∣ B N ) = G ( H 0 : T ( n ) ) − C ( B N ) , C ( B N ) ≜ ln i = 1 ∑ N exp G ( H 0 : T ( i ) ) . (41)
Substituting and applying the log-derivative trick,
∇ ϕ L ( θ , ϕ ∣ B N ) = E p q ( B N ) [ 1 N ∑ n = 1 N ( G ( H 0 : T ( n ) ) − C ( B N ) ) ∇ ϕ ln p q ( B N ) ] − N ∇ ϕ D K L ( q ϕ ∥ p π θ ) . (42) \nabla_\phi\mathcal{L}(\theta,\phi\mid\mathcal{B}_N)=\mathbb{E}_{p_q(\mathcal{B}_N)}\left[\frac{1}{N}\sum_{n=1}^{N}\left(G\left(H_{0:T}^{(n)}\right)-C(\mathcal{B}_N)\right)\nabla_\phi\ln p_q(\mathcal{B}_N)\right]-N\nabla_\phi D_{\mathrm{KL}}(q_\phi\parallel p_{\pi_\theta}). \tag*{(42)} ∇ ϕ L ( θ , ϕ ∣ B N ) = E p q ( B N ) [ N 1 n = 1 ∑ N ( G ( H 0 : T ( n ) ) − C ( B N ) ) ∇ ϕ ln p q ( B N ) ] − N ∇ ϕ D KL ( q ϕ ∥ p π θ ) . (42)
Unlike typical policy gradient methods where the baseline allows advantages of both signs, our derivation yields C ( B N ) ≥ G ( H 0 : T ( n ) ) C(\mathcal{B}_N)\geq G\left(H_{0:T}^{(n)}\right) C ( B N ) ≥ G ( H 0 : T ( n ) ) for all n n n . All advantages are therefore non-positive, so the learning signal operates through repulsion, with the KL term anchoring q ϕ q_\phi q ϕ to p π θ p_{\pi_\theta} p π θ . In contrast to the full PL gradient, all N N N items share a single baseline C ( B N ) C(\mathcal{B}_N) C ( B N ) , so the relative magnitudes of the per-trajectory advantages are determined entirely by the spread of returns rather than by rank position.
Recovery of GRPO. Eq. (42) is structurally close to GRPO (Shao et al. (2024)) but differs in two ways. The baseline is the log-sum-exp C ( B N ) C(\mathcal{B}_N) C ( B N ) rather than the group mean μ G = 1 N ∑ i G ( i ) \mu_G=\frac{1}{N}\sum_i G^{(i)} μ G = N 1 ∑ i G ( i ) , and the KL coefficient carries an explicit factor of N N N . Both differences are addressed by results already established.
Baseline. Proposition 1 (Appendix § 12 .§ 1 ) shows that the per-trajectory coefficient α n = ln g n − ln ∑ k g k \alpha_n=\ln g_n-\ln\sum_k g_k α n = ln g n − ln ∑ k g k admits a Jensen upper bound. The right-hand side of this bound is exactly GRPO’s group-mean advantage G ( H T ( n ) ) − 1 N ∑ k G ( H T ( k ) ) G(H_T^{(n)})-\frac{1}{N}\sum_kG(H_T^{(k)}) G ( H T ( n ) ) − N 1 ∑ k G ( H T ( k ) ) . Applying this bound to Eq. (42) replaces C ( B N ) C(\mathcal{B}_N) C ( B N ) with μ G + ln N \mu_G+\ln N μ G + ln N and yields GRPO’s advantage. The Jensen slack is precisely the risk bonus profiled in Proposition 2.
KL scaling. The factor N N N on the KL term is a consequence of the i.i.d. batch construction (§E.2). It absorbs into the KL coefficient λ \lambda λ , equivalent to tuning GRPO’s β \beta β .
A residual structural difference is that GRPO assumes trajectories in B N \mathcal{B}_N B N share a common prompt prefix, corresponding to branched rollouts from a single state. Our derivation treats trajectories as fully independent draws from q ϕ q_\phi q ϕ , which is strictly weaker. The ln N \ln N ln N offset between the log-sum-exp and group-mean baselines is independent of ϕ \phi ϕ and does not affect the critical points of the optimization.
Recovery of DPO. At N = 2 N=2 N = 2 , the full PL and winner-only likelihoods coincide, since there is only one ranking consistent with trajectory 1 winning. The shared log-likelihood reduces to a single pairwise comparison,
ln p ( O T = σ ∣ B N ) ∣ N = 2 = ln p ( O T = n ∣ B N ) ∣ N = 2 = ln exp G ( 1 ) exp G ( 1 ) + exp G ( 2 ) . (43) \left.\ln p(\mathcal{O}_T=\sigma\mid\mathcal{B}_N)\right|_{N=2}=\left.\ln p(\mathcal{O}_T=n\mid\mathcal{B}_N)\right|_{N=2}=\ln\frac{\exp G^{(1)}}{\exp G^{(1)}+\exp G^{(2)}}. \tag*{(43)} ln p ( O T = σ ∣ B N ) ∣ N = 2 = ln p ( O T = n ∣ B N ) ∣ N = 2 = ln exp G ( 1 ) + exp G ( 2 ) exp G ( 1 ) . (43)
which is the Bradley–Terry log-likelihood. Under DPO’s own reparameterization g ( H T ) = exp ( s θ ( H T ) / β ) g(H_T)=\exp(s_\theta(H_T)/\beta) g ( H T ) = exp ( s θ ( H T ) / β ) with s θ = log π θ / π r e f s_\theta=\log\pi_\theta/\pi_{\mathrm{ref}} s θ = log π θ / π ref , the right-hand side becomes ln σ ( 1 β ( s θ ( 1 ) − s θ ( 0 ) ) ) \ln\sigma\left(\frac{1}{\beta}\left(s_\theta^{(1)}-s_\theta^{(0)}\right)\right) ln σ ( β 1 ( s θ ( 1 ) − s θ ( 0 ) ) ) , recovering DPO’s loss. The remaining bookkeeping concerns the role of the reparameterization, the factor of 2 absorbed into the KL coefficient, and the identification of π θ \pi_\theta π θ with π r e f \pi_{\mathrm{ref}} π ref via the EM coordinate-ascent argument of Appendix E.1.
Summary. Our derivation provides a holistic account of two prominent RFT objectives. Both GRPO and DPO optimize a KL-regularized ELBO over trajectory batches under a Boltzmann likelihood. They differ in batch size (N = 2 N=2 N = 2 vs. N > 2 N>2 N > 2 ) and choice of baseline (group-mean Jensen surrogate vs. exact pairwise normalizer). Within this framework, the apparent diversity of recent preference-optimization methods reduces to modeling choices on ℓ \ell ℓ , g g g , β \beta β , and the projection step, rather than to fundamentally different algorithmic principles. We do not claim a complete reduction of all such methods here. The framework is permissive enough to accommodate them, but the substantive recovery results are GRPO and DPO.
Belief-Policy Mirror Descent under Batch CAI
This section describes our graphical model extension for the contextual-bandit study (see also Appendix § 15 .§ 4 ). We extend our control-as-inference formulation for batch potentials to deal with uncertainty given past data, and use our FTW approach to perform mirror descent in policy-space with a Gaussian belief. This structure enables closed form policy iteration, where each mirror-descent step extracts maximum value from past data given what the learning operator allows.
Setup. We use an empirical Bayes type approach to fit a batch version of the variational distribution q ( a , W ) q(a,W) q ( a , W ) to approximate our batch-CAI posterior p ( a t ∣ H 1 : t − 1 , O t : T ) p(a_t\mid H_{1:t-1},O_{t:T}) p ( a t ∣ H 1 : t − 1 , O t : T ) from Eq. (4) . We write the policy as a linear softmax over bias-augmented features2 ^2 2 ϕ ˉ ( x ) = ( 1 , ϕ ~ ( x ) ) ∈ R d + 1 \bar{\phi}(x)=(1,\tilde{\phi}(x))\in\mathbb{R}^{d+1} ϕ ˉ ( x ) = ( 1 , ϕ ~ ( x )) ∈ R d + 1 that depend on some context x ∈ X x\in\mathcal{X} x ∈ X , that is π W ( a ∣ x ) ∝ exp ( ( W ϕ ˉ ( x ) ) a / τ ) \pi_W(a\mid x)\propto\exp((W\bar{\phi}(x))_a/\tau) π W ( a ∣ x ) ∝ exp (( W ϕ ˉ ( x ) ) a / τ ) with W ∈ R ∣ A ∣ × ( d + 1 ) W\in\mathbb{R}^{|\mathcal{A}|\times(d+1)} W ∈ R ∣ A ∣ × ( d + 1 ) and temperature τ \tau τ . Then, q ˉ \bar{q} q ˉ represents the posterior predictive q ˉ ( a t ∣ x t , H 1 : t − 1 ) = E q ( W ∣ H 1 : t − 1 ) [ π W ( a t ∣ x t ) ] \bar{q}(a_t\mid x_t,H_{1:t-1})=\mathbb{E}_{q(W\mid H_{1:t-1})}[\pi_W(a_t\mid x_t)] q ˉ ( a t ∣ x t , H 1 : t − 1 ) = E q ( W ∣ H 1 : t − 1 ) [ π W ( a t ∣ x t )] where q ( W ∣ H 1 : t − 1 ) q(W\mid H_{1:t-1}) q ( W ∣ H 1 : t − 1 ) is the variational belief state given a past history of interactions H 1 : t − 1 = { ( x i , a i , r i ) } i = 1 t − 1 ∪ { x t } H_{1:t-1}=\{(x_i,a_i,r_i)\}_{i=1}^{t-1}\cup\{x_t\} H 1 : t − 1 = {( x i , a i , r i ) } i = 1 t − 1 ∪ { x t } for some reward r i r_i r i (see also § 2 from the main text). Thus, sampling from q ˉ \bar{q} q ˉ works through posterior sampling where we first draw a hypothesis W W W from the belief q ( W t ∣ H 1 : t − 1 ) q(W_t\mid H_{1:t-1}) q ( W t ∣ H 1 : t − 1 ) , and then draw an action a t a_t a t from π W t \pi_{W_t} π W t given hypothesis W t W_t W t and context x t x_t x t . Write the batch B N = ( ( x 1 , a 1 ) , … , ( x N , a N ) ) \mathcal{B}_N=((x_1,a_1),\ldots,(x_N,a_N)) B N = (( x 1 , a 1 ) , … , ( x N , a N )) as one sample originating from one proposal policy over multiple contexts, or from multiple actions on the same context. This gives the batch joint q ˉ ( B N ∣ ⋅ ) = ∏ i q ˉ ( a i ∣ x i ) p ( x i ) \bar{q}(\mathcal{B}_N\mid\cdot)=\prod_i\bar{q}(a_i\mid x_i)p(x_i) q ˉ ( B N ∣ ⋅ ) = ∏ i q ˉ ( a i ∣ x i ) p ( x i ) where ‘⋅ \cdot ⋅ ’ implies any history and p ( x i ) p(x_i) p ( x i ) is some arbitrary context-process. We use a simple Gaussian belief for q ( W ∣ H 1 : t − 1 ) q(W\mid H_{1:t-1}) q ( W ∣ H 1 : t − 1 ) that factorizes independently over the actions q ( W ) ≜ ∏ a N ( w a ; μ a , Λ a − 1 ) q(W)\triangleq\prod_a\mathcal{N}(w_a;\mu_a,\Lambda_a^{-1}) q ( W ) ≜ ∏ a N ( w a ; μ a , Λ a − 1 ) such that epistemic uncertainty over actions is perfectly captured but there is no signal generalization across contexts. We initialize each w a w_a w a at μ a = 0 \mu_a=0 μ a = 0 , Λ a = I \Lambda_a=I Λ a = I , which induces a uniform q ˉ \bar{q} q ˉ since Law ( W 0 ) \operatorname{Law}(W_0) Law ( W 0 ) induces exchangeability across arms.
The evidence lower-bound splits in two penalties. Applying Eq. (4) to the joint q ( B N , W ) = q W ( B N ) q ( W ) q(\mathcal{B}_N,W)=q_W(\mathcal{B}_N)q(W) q ( B N , W ) = q W ( B N ) q ( W ) against the reference p ( B N , W ) = π W ( B N ) p ( W ) p(\mathcal{B}_N,W)=\pi_W(\mathcal{B}_N)p(W) p ( B N , W ) = π W ( B N ) p ( W ) , and splitting up the divergence gives the conditional ELBO,
ln p π ( O t ∣ H < t ) = ln E p π ( B N , W t ∣ H < t ) Φ t ( B N ) ≥ E q ( B N , W t ∣ H < t ) [ ln Φ t ( B N ) ] − K L ( q π ∥ p π ) (44) \ln p_\pi(O_t\mid H_{<t})=\ln\mathbb{E}_{p_\pi(\mathcal{B}_N,W_t\mid H_{<t})}\Phi_t(\mathcal{B}_N)\geq\mathbb{E}_{q(\mathcal{B}_N,W_t\mid H_{<t})}[\ln\Phi_t(\mathcal{B}_N)]-KL(q_\pi\|p_\pi) \tag*{(44)} ln p π ( O t ∣ H < t ) = ln E p π ( B N , W t ∣ H < t ) Φ t ( B N ) ≥ E q ( B N , W t ∣ H < t ) [ ln Φ t ( B N )] − K L ( q π ∥ p π ) (44)
L ( q , π ; H < t ) = E q ( W t ∣ H < t ) [ E q ( B N ∣ x t , W t ) [ ln Φ t ( B N ) ] − N ⋅ K L ( q W t ∥ π W t ) ] − K L ( q ( W t ∣ H < t ) ∥ p ( W t ∣ H < t ) ) (45) \mathcal{L}(q,\pi;H_{<t})=\mathbb{E}_{q(W_t\mid H_{<t})}\left[\mathbb{E}_{q(\mathcal{B}_N\mid x_t,W_t)}[\ln\Phi_t(\mathcal{B}_N)]-N\cdot KL(q_{W_t}\|\pi_{W_t})\right]
-KL(q(W_t\mid H_{<t})\|p(W_t\mid H_{<t})) \tag*{(45)} L ( q , π ; H < t ) = E q ( W t ∣ H < t ) [ E q ( B N ∣ x t , W t ) [ ln Φ t ( B N )] − N ⋅ K L ( q W t ∥ π W t ) ] − K L ( q ( W t ∣ H < t ) ∥ p ( W t ∣ H < t )) (45)
The history H < t H_{<t} H < t conditioning is important to emphasize since the contextual bandit assumes stationary transition dynamics, i.e., x t + 1 ⊥ x t x_{t+1}\perp x_t x t + 1 ⊥ x t . This setting implies episodic control for the actions B N \mathcal{B}_N B N . As a result, the optimality variables O t + 1 ⊥ O t O_{t+1}\perp O_t O t + 1 ⊥ O t so long as we also assume that the hypotheses W t ∼ q W_t\sim q W t ∼ q are also independent of O t O_t O t , this assumption is reasonable in a typical Bayesian filtering setting, it’s analogous to assuming that the dynamics of the world (world-model) are independent of rewards you may try to maximize. The resulting lower-bound L ( q , π ; H < t ) \mathcal{L}(q,\pi;H_{<t}) L ( q , π ; H < t ) then contains the typical potential and policy KL-term that tilts the prior policy π \pi π towards the batch-potential at a fixed hypothesis W t W_t W t .
The addition is the belief term that accumulates evidence about which hypotheses are plausible. We will optimize q q q per factor by coordinate ascent.
Ascent in q ( B N ∣ W ) q(\mathcal{B}_N \mid W) q ( B N ∣ W ) . The joint q ( B N , W ) q(\mathcal{B}_N, W) q ( B N , W ) splits into two factors for coordinate ascent, the policy q W q_W q W sits in an inner-optimization which is what we complete first. Assume we obtain some history H < t H_{<t} H < t which we use to sample a hypothesis W t ∼ q ( W t ∣ H < t ) W_t \sim q(W_t \mid H_{<t}) W t ∼ q ( W t ∣ H < t ) , then write the inner-ELBO as L ( q , π ; x t ) \mathcal{L}(q,\pi;x_t) L ( q , π ; x t ) . We solve the inner-optimization and explicitly write it as a function of W t W_t W t ,
q ∗ ( B N ∣ W ) ≜ π W Φ Z N ( W ) , Z N ( W ) ≜ E π W [ Φ ] , (46) q^*(\mathcal{B}_N \mid W) \triangleq\frac{\pi_W^\Phi}{Z_N(W)}, \qquad Z_N(W) \triangleq\mathbb{E}_{\pi_W}[\Phi], \tag*{(46)} q ∗ ( B N ∣ W ) ≜ Z N ( W ) π W Φ , Z N ( W ) ≜ E π W [ Φ ] , (46)
L ( q W , π W ; x t ) = E q ( B N ∣ W ) [ ln Φ ] − N ⋅ K L ( q W ( a t ∣ x t ) ∥ π W ( a t ∣ x t ) ) (47) \mathcal{L}(q_W,\pi_W;x_t) = \mathbb{E}_{q(\mathcal{B}_N\mid W)}\left[\ln\Phi\right] - N \cdot KL\left(q_W(a_t\mid x_t)\mathbin{\|}\pi_W(a_t\mid x_t)\right) \tag*{(47)} L ( q W , π W ; x t ) = E q ( B N ∣ W ) [ ln Φ ] − N ⋅ K L ( q W ( a t ∣ x t ) ∥ π W ( a t ∣ x t ) ) (47)
= E q ( B N ∣ W ) [ ln π W Φ q ( B N ∣ W ) ] = E q ( B N ∣ W ) [ ln Z N ( W ) q ∗ q ( B N ∣ W ) ] (48) = \mathbb{E}_{q(\mathcal{B}_N\mid W)}\left[\ln\frac{\pi_W^\Phi}{q(\mathcal{B}_N\mid W)}\right] = \mathbb{E}_{q(\mathcal{B}_N\mid W)}\left[\ln\frac{Z_N(W)q^*}{q(\mathcal{B}_N\mid W)}\right] \tag*{(48)} = E q ( B N ∣ W ) [ ln q ( B N ∣ W ) π W Φ ] = E q ( B N ∣ W ) [ ln q ( B N ∣ W ) Z N ( W ) q ∗ ] (48)
= ln Z N ( W ) − K L ( q ( B N ∣ W ) ∥ q ∗ ) (49) = \ln Z_N(W) - KL\left(q(\mathcal{B}_N\mid W)\mathbin{\|}q^*\right) \tag*{(49)} = ln Z N ( W ) − K L ( q ( B N ∣ W ) ∥ q ∗ ) (49)
⟹ max q ( B N ∣ W ) L ( q W , π W ; x t ) = ln Z N ( W ) , at q ( B N ∣ W ) = q ∗ . (50) \Longrightarrow\max_{q(\mathcal{B}_N\mid W)} \mathcal{L}(q_W,\pi_W;x_t) = \ln Z_N(W), \quad\text{at } q(\mathcal{B}_N\mid W)=q^*. \tag*{(50)} ⟹ q ( B N ∣ W ) max L ( q W , π W ; x t ) = ln Z N ( W ) , at q ( B N ∣ W ) = q ∗ . (50)
where the first line again uses the equivalence of Eq. (3) . This equivalence of ELBO maximization and analytical rewriting in terms of the posterior makes the last step seem somewhat trivial, but the important part is to write the optimization as a function of W t W_t W t which we need to perform ascent for the variational belief. This function is equal to the policy’s partition function.
The rewriting is valid whenever 0 < Z N ( W ) < ∞ 0 < Z_N(W) < \infty 0 < Z N ( W ) < ∞ , which holds even for potentials that assign zero to some batch-items (e.g., the tournament potential of Eq. (5) for some choices of C C C and K K K ). Such items receive q n o n - e l i t e ∗ = 0 q^*_{\mathrm{non\text{-}elite}}=0 q non - elite ∗ = 0 , which is fine as long as the per batch partition gives Z N ( W ) > 0 Z_N(W)>0 Z N ( W ) > 0 .
Ascent in q ( W ) q(W) q ( W ) . With the E-step solved, Eq. (45) reduces to a belief-optimization: maximize E q ( W t ∣ H < t ) [ ln Z N ( W t ) ] − K L ( q ( W t ∣ H < t ) ∥ p ( W t ∣ H < t ) ) \mathbb{E}_{q(W_t\mid H_{<t})}[\ln Z_N(W_t)] - KL(q(W_t\mid H_{<t})\mathbin{\|}p(W_t\mid H_{<t})) E q ( W t ∣ H < t ) [ ln Z N ( W t )] − K L ( q ( W t ∣ H < t ) ∥ p ( W t ∣ H < t )) over the belief. This maximization recovers the underlying objective,
E q ( W t ∣ H < t ) [ ln Z N ( W t ) ] − K L ( q ( W t ∣ H < t ) ∥ p ( W t ∣ H < t ) ) = ln p π ( O t ∣ H < t ) − K L ( q ( W t ∣ H < t ) ∥ p ( W t ∣ O t , H < t ) ) . (51) \mathbb{E}_{q(W_t\mid H_{<t})}\left[\ln Z_N(W_t)\right] - KL\left(q(W_t\mid H_{<t})\mathbin{\|}p(W_t\mid H_{<t})\right)
= \ln p_{\pi}(O_t\mid H_{<t}) - KL\left(q(W_t\mid H_{<t})\mathbin{\|}p(W_t\mid O_t,H_{<t})\right). \tag*{(51)} E q ( W t ∣ H < t ) [ ln Z N ( W t ) ] − K L ( q ( W t ∣ H < t ) ∥ p ( W t ∣ H < t ) ) = ln p π ( O t ∣ H < t ) − K L ( q ( W t ∣ H < t ) ∥ p ( W t ∣ O t , H < t ) ) . (51)
In other words, the belief-optimization minimizes divergence to the tilted Bayesian posterior. Therefore, if we look at the role of the posterior p ( W t ∣ O t , H < t ) p(W_t\mid O_t,H_{<t}) p ( W t ∣ O t , H < t ) we can conclude that coordinate ascent in the belief q ( W t ) q(W_t) q ( W t ) amounts to variational Bayesian filtering. To make this optimization tractable, we start with a simple uninformative prior q ( W 0 ) = p ( W 0 ) q(W_0)=p(W_0) q ( W 0 ) = p ( W 0 ) and perform iterative coordinate ascent (expectation-maximization). We iterate the ascent step for the belief q t + 1 q_{t+1} q t + 1 by setting the reference belief as the previous belief q t q_t q t and writing the loss as ℓ t ( W ) ≜ − ln Z N , t ( W ) \ell_t(W)\triangleq-\ln Z_{N,t}(W) ℓ t ( W ) ≜ − ln Z N , t ( W ) . This turns each ascent step into a proximal optimization step,
q t + 1 = arg max q { E q [ ln Z N , t ] − K L ( q ∥ q t ) } = arg min q { E q [ ℓ t ] + K L ( q ∥ q t ) } . (52) q_{t+1} = \arg\max_q\left\{\mathbb{E}_q[\ln Z_{N,t}] - KL(q\mathbin{\|}q_t)\right\}
= \arg\min_q\left\{\mathbb{E}_q[\ell_t] + KL(q\mathbin{\|}q_t)\right\}. \tag*{(52)} q t + 1 = arg q max { E q [ ln Z N , t ] − K L ( q ∥ q t ) } = arg q min { E q [ ℓ t ] + K L ( q ∥ q t ) } . (52)
stated equivalently as a minimization to match mirror-descent framing (which we need later for the implementation). When q q q is unrestricted, Eq. (52) has a closed-form solution, q t + 1 ∝ q t Z N , t q_{t+1}\propto q_t Z_{N,t} q t + 1 ∝ q t Z N , t , which uses Bayes’ rule to update the previous belief with the likelihood of O t O_t O t . This unrestricted closed-form solution is what motivates the variational coordinate-ascent update rule.
Solving Eq. (52) for a Gaussian. We will instead use a Gaussian belief for the variational posterior q ( W t ∣ H < t ) = ∏ a N ( w a ; μ a , t , Λ a , t ) q(W_t\mid H_{<t})=\prod_a\mathcal{N}(w_a;\mu_{a,t},\Lambda_{a,t}) q ( W t ∣ H < t ) = ∏ a N ( w a ; μ a , t , Λ a , t ) as in the Setup paragraph, for this we first write the Gaussian in terms of its exponential family form with sufficient statistics T ( w ) = ( w , w w ⊤ ) T(w)=(w,ww^\top) T ( w ) = ( w , w w ⊤ ) . Expanding the log-density shows what this form is,
ln N ( w ; μ , Λ − 1 ) = w ⊤ Λ μ − 1 2 w ⊤ Λ w + c o n s t = ⟨ Λ μ , w ⟩ + ⟨ − 1 2 Λ , w w ⊤ ⟩ + c o n s t , (53) \ln\mathcal{N}(w;\mu,\Lambda^{-1}) = w^\top\Lambda\mu- \frac{1}{2}w^\top\Lambda w + \mathrm{const} = \langle\Lambda\mu,w\rangle+ \left\langle-\frac{1}{2}\Lambda,ww^\top\right\rangle+ \mathrm{const}, \tag*{(53)} ln N ( w ; μ , Λ − 1 ) = w ⊤ Λ μ − 2 1 w ⊤ Λ w + const = ⟨ Λ μ , w ⟩ + ⟨ − 2 1 Λ , w w ⊤ ⟩ + const , (53)
a linear function of the two statistics. The coefficients multiplying the statistics w w w are called the natural parameters ν \nu ν , and the means of w w w under q q q are called the expectation parameters m m m ,
ν = ( Λ μ , − 1 2 Λ ) , m = ( E q [ w ] , E q [ w w ⊤ ] ) = ( μ , Λ − 1 + μ μ ⊤ ) . (54) \nu= \left(\Lambda\mu,-\frac{1}{2}\Lambda\right), \qquad m = \left(\mathbb{E}_q[w],\mathbb{E}_q[ww^\top]\right) = \left(\mu,\Lambda^{-1}+\mu\mu^\top\right). \tag*{(54)} ν = ( Λ μ , − 2 1 Λ ) , m = ( E q [ w ] , E q [ w w ⊤ ] ) = ( μ , Λ − 1 + μ μ ⊤ ) . (54)
Either pair identifies the same Gaussian and their normalizer links them. If we write A ( ν ) A(\nu) A ( ν ) for the log of the normalizer as a function of ν \nu ν (i.e., the log-partition function of the Gaussian under the natural parametrization), then we can use a standard exponential-family identity to obtain m = ∇ ν A ( ν ) \boldsymbol{m} = \nabla_{\nu}A(\nu) m = ∇ ν A ( ν ) .
This coordinate-system makes the proximal optimization step of Eq. (52) simple to perform for two reasons. First, between two Gaussians the KL penalty equals the Bregman divergence of A A A evaluated at their natural parameters. Eq. (52) thus takes the standard form of a mirror-descent step, which is gradient descent with the squared Euclidean penalty to some reference replaced by the Bregman divergence, here that of A A A (Khan and Rue, [45 ] , Sec. 2.2) to ν t \nu_t ν t . Second, gradients with respect to ν \nu ν reduce to gradients with respect to m \boldsymbol{m} m , which we can easily compute. Since all terms in Eq. (52) depend on the belief only through ν \nu ν , we can differentiate the objective in ν \nu ν .
Completing this gives ∇ ν K L ( q ν ∥ q ν t ) = ∇ ν 2 A ( ν ) ( ν − ν t ) \nabla_{\nu} KL(q_{\nu} \mathbin{\|} q_{\nu_t}) = \nabla_{\nu}^{2} A(\nu) (\nu-\nu_t) ∇ ν K L ( q ν ∥ q ν t ) = ∇ ν 2 A ( ν ) ( ν − ν t ) for the penalty, and the chain rule through m = ∇ A ( ν ) \boldsymbol{m} = \nabla A(\nu) m = ∇ A ( ν ) gives ∇ ν E q ν [ ℓ t ] = ∇ ν 2 A ( ν ) ∇ m E q ν [ ℓ t ] \nabla_{\nu}\mathbb{E}_{q_{\nu}}[\ell_t] = \nabla_{\nu}^{2} A(\nu)\nabla_{\boldsymbol{m}}\mathbb{E}_{q_{\nu}}[\ell_t] ∇ ν E q ν [ ℓ t ] = ∇ ν 2 A ( ν ) ∇ m E q ν [ ℓ t ] for the loss (negative log-likelihood). Setting the sum of the two gradients to zero gives ∇ ν 2 A ( ν ) ( ν − ν t + ∇ m E q ν [ ℓ t ] ) = 0 \nabla_{\nu}^{2}A(\nu)(\nu-\nu_t+\nabla_{\boldsymbol{m}}\mathbb{E}_{q_{\nu}}[\ell_t])=0 ∇ ν 2 A ( ν ) ( ν − ν t + ∇ m E q ν [ ℓ t ]) = 0 . We can then use another exponential-family identity that gives the second-order derivative of A A A as the covariance of the sufficient statistics, ∇ ν 2 A = Cov q ν [ T ( w ) ] \nabla_{\nu}^{2}A = \operatorname{Cov}_{q_{\nu}}[T(w)] ∇ ν 2 A = Cov q ν [ T ( w )] , which equals the Fisher information in natural coordinates. Since a covariance is positive definite it is invertible, so multiplying the stationarity condition by ( ∇ ν 2 A ) − 1 (\nabla_{\nu}^{2}A)^{-1} ( ∇ ν 2 A ) − 1 leaves ν − ν t + ∇ m E q ν [ ℓ t ] = 0 \nu-\nu_t+\nabla_{\boldsymbol{m}}\mathbb{E}_{q_{\nu}}[\ell_t]=0 ν − ν t + ∇ m E q ν [ ℓ t ] = 0 , and thus,
ν t + 1 = ν t − ∇ m E q [ ℓ t ] , i.e., \nu_{t+1}=\nu_t-\nabla_{\boldsymbol{m}}\mathbb{E}_{q}[\ell_t],\qquad\text{i.e.,} ν t + 1 = ν t − ∇ m E q [ ℓ t ] , i.e.,
( Λ μ ) t + 1 = ( Λ μ ) t − ∇ m 1 E q [ ℓ t ] , ( − 1 2 Λ ) t + 1 = ( − 1 2 Λ ) t − ∇ m 2 E q [ ℓ t ] . (55) (\Lambda\mu)_{t+1}=(\Lambda\mu)_t-\nabla_{m_1}\mathbb{E}_{q}[\ell_t],\qquad\left(-\frac{1}{2}\Lambda\right)_{t+1}=\left(-\frac{1}{2}\Lambda\right)_t-\nabla_{m_2}\mathbb{E}_{q}[\ell_t]. \tag*{(55)} ( Λ μ ) t + 1 = ( Λ μ ) t − ∇ m 1 E q [ ℓ t ] , ( − 2 1 Λ ) t + 1 = ( − 2 1 Λ ) t − ∇ m 2 E q [ ℓ t ] . (55)
Since ∇ m E q ν [ ℓ t ] \nabla_{\boldsymbol{m}}\mathbb{E}_{q_{\nu}}[\ell_t] ∇ m E q ν [ ℓ t ] depends on ν \nu ν , stationarity puts ν t + 1 \nu_{t+1} ν t + 1 on both sides (cross-dependence/ stationary-point). The implementation instead evaluates the gradient at the previous belief q ν t q_{\nu_t} q ν t .
Finally, we need to express ∇ m E q [ ℓ t ] \nabla_{\boldsymbol{m}}\mathbb{E}_{q}[\ell_t] ∇ m E q [ ℓ t ] in terms of ( μ , Λ ) (\mu,\Lambda) ( μ , Λ ) to unpack the learning rule. Inverting Eq. (54) gives μ = m 1 \mu=m_1 μ = m 1 and Λ − 1 = m 2 − m 1 m 1 ⊤ \Lambda^{-1}=m_2-m_1m_1^{\top} Λ − 1 = m 2 − m 1 m 1 ⊤ , so the chain rule yields ∇ m 1 E q [ ℓ t ] = ∇ μ E q [ ℓ t ] − 2 ( ∇ Λ − 1 E q [ ℓ t ] ) μ \nabla_{m_1}\mathbb{E}_{q}[\ell_t]=\nabla_{\mu}\mathbb{E}_{q}[\ell_t]-2(\nabla_{\Lambda^{-1}}\mathbb{E}_{q}[\ell_t])\mu ∇ m 1 E q [ ℓ t ] = ∇ μ E q [ ℓ t ] − 2 ( ∇ Λ − 1 E q [ ℓ t ]) μ and ∇ m 2 E q [ ℓ t ] = ∇ Λ − 1 E q [ ℓ t ] \nabla_{m_2}\mathbb{E}_{q}[\ell_t]=\nabla_{\Lambda^{-1}}\mathbb{E}_{q}[\ell_t] ∇ m 2 E q [ ℓ t ] = ∇ Λ − 1 E q [ ℓ t ] . Substituting into Eq. (55) , the second component gives Λ t + 1 = Λ t + 2 ∇ Λ − 1 E q [ ℓ t ] \Lambda_{t+1}=\Lambda_t+2\nabla_{\Lambda^{-1}}\mathbb{E}_{q}[\ell_t] Λ t + 1 = Λ t + 2 ∇ Λ − 1 E q [ ℓ t ] . The first component gives ( Λ μ ) t + 1 = Λ t μ t − ∇ μ E q [ ℓ t ] + 2 ( ∇ Λ − 1 E q [ ℓ t ] ) μ t = Λ t + 1 μ t − ∇ μ E q [ ℓ t ] (\Lambda\mu)_{t+1}=\Lambda_t\mu_t-\nabla_{\mu}\mathbb{E}_{q}[\ell_t]+2(\nabla_{\Lambda^{-1}}\mathbb{E}_{q}[\ell_t])\mu_t=\Lambda_{t+1}\mu_t-\nabla_{\mu}\mathbb{E}_{q}[\ell_t] ( Λ μ ) t + 1 = Λ t μ t − ∇ μ E q [ ℓ t ] + 2 ( ∇ Λ − 1 E q [ ℓ t ]) μ t = Λ t + 1 μ t − ∇ μ E q [ ℓ t ] , where the last equality collects the two terms in μ t \mu_t μ t into the new precision. Then, the theorems of Bonnet [11 ] and Price (1958) convert the parameter gradients into expectations of the derivatives of the loss with respect to the arm’s row w w w , ∇ μ ℓ t = E q [ ∇ w ℓ t ] \nabla_{\mu}\ell_t=\mathbb{E}_{q}[\nabla_w\ell_t] ∇ μ ℓ t = E q [ ∇ w ℓ t ] and ∇ Λ − 1 E q [ ℓ t ] = 1 2 E q [ ∇ w 2 ℓ t ] \nabla_{\Lambda^{-1}}\mathbb{E}_{q}[\ell_t]=\frac{1}{2}\mathbb{E}_{q}[\nabla_w^2\ell_t] ∇ Λ − 1 E q [ ℓ t ] = 2 1 E q [ ∇ w 2 ℓ t ] , which yields
Λ a , t + 1 = Λ a , t + E q [ ∇ w a 2 ℓ t ] , μ a , t + 1 = μ a , t − Λ a , t + 1 − 1 E q [ ∇ w a ℓ t ] , ∀ a ∈ A , (56) \Lambda_{a,t+1}=\Lambda_{a,t}+\mathbb{E}_{q}\left[\nabla_{w_a}^{2}\ell_t\right],\qquad\mu_{a,t+1}=\mu_{a,t}-\Lambda_{a,t+1}^{-1}\mathbb{E}_{q}\left[\nabla_{w_a}\ell_t\right],\qquad\forall a\in\mathcal{A}, \tag*{(56)} Λ a , t + 1 = Λ a , t + E q [ ∇ w a 2 ℓ t ] , μ a , t + 1 = μ a , t − Λ a , t + 1 − 1 E q [ ∇ w a ℓ t ] , ∀ a ∈ A , (56)
the Bayesian learning rule of Khan and Rue (2023, Sec. 1.3.2) derived through our bound, matching their online Newton update with unit learning rate and, as in their conjugate-Bayes setting (their Sec. 5.1), the previous belief acts as the prior. The increments to the precision are positive semi-definite (Eq. (60) ), so the precision only accumulates and the effective step Λ t + 1 − 1 \Lambda_{t+1}^{-1} Λ t + 1 − 1 anneals as evidence arrives.
Note that the natural-parameter derivation placed the updated precision Λ t + 1 \Lambda_{t+1} Λ t + 1 in front of the mean update by itself, so the mean step accounts for the most recent evidence. This would not naturally occur if we derived the update through ( μ , Λ ) (\mu,\Lambda) ( μ , Λ ) directly. It is also the correct choice, since with Λ t + 1 \Lambda_{t+1} Λ t + 1 the update reproduces the exact Gaussian posterior whenever the loss is quadratic in W W W , and with Λ t \Lambda_t Λ t it does not. The two derivatives of ℓ t \ell_t ℓ t we need for computing Eq. (56) are derived next.
Cross-entropy loss. Differentiating the log-partition with respect to W W W , we obtain,
∇ W ℓ t = − ∇ W ln Z N , t ( W ) = − E π W [ Φ ∇ W ln π W ( B N ) ] Z N , t ( W ) = − E q ∗ [ ∇ W ln π W ( B N ) ] , (57) \nabla_W\ell_t=-\nabla_W\ln Z_{N,t}(W)=-\frac{\mathbb{E}_{\pi_W}\left[\Phi\nabla_W\ln\pi_W(\mathcal{B}_N)\right]}{Z_{N,t}(W)}=-\mathbb{E}_{q^*}\left[\nabla_W\ln\pi_W(\mathcal{B}_N)\right], \tag*{(57)} ∇ W ℓ t = − ∇ W ln Z N , t ( W ) = − Z N , t ( W ) E π W [ Φ ∇ W ln π W ( B N ) ] = − E q ∗ [ ∇ W ln π W ( B N ) ] , (57)
with ln π W ( B N ) = ∑ i ln π W ( a i ∣ x i ) \ln\pi_W(\mathcal{B}_N)=\sum_i\ln\pi_W(a_i\mid x_i) ln π W ( B N ) = ∑ i ln π W ( a i ∣ x i ) and using the definitions of q ∗ q^* q ∗ and Z N ( W ) Z_N(W) Z N ( W ) from Eq. (50) . This is the gradient of the batch cross-entropy − E q ∗ [ ln π W ( B N ) ] -\mathbb{E}_{q^*}[\ln\pi_W(\mathcal{B}_N)] − E q ∗ [ ln π W ( B N )] against the fixed target q ∗ q^* q ∗ . The tilt Φ \Phi Φ also doesn’t need numerical evaluation and sampling is sufficient. The per arm gradients w a w_a w a split up from W W W .
Then we derive the Hessian needed for the precision update of Eq. (56) ,
∇ W 2 ℓ t = E q ∗ [ ∇ W 2 ( − ln π W ( B N ) ) ] − E q ∗ [ ( ∇ W ln q ∗ ) ( ∇ W ln π W ( B N ) ) ⊤ ] . (58) \nabla_W^2\ell_t=\mathbb{E}_{q^*}\left[\nabla_W^2(-\ln\pi_W(\mathcal{B}_N))\right]-\mathbb{E}_{q^*}\left[(\nabla_W\ln q^*)(\nabla_W\ln\pi_W(\mathcal{B}_N))^{\top}\right]. \tag*{(58)} ∇ W 2 ℓ t = E q ∗ [ ∇ W 2 ( − ln π W ( B N )) ] − E q ∗ [ ( ∇ W ln q ∗ ) ( ∇ W ln π W ( B N ) ) ⊤ ] . (58)
We use the generalized Gauss-Newton (GGN) approximation by keeping the first term only and dropping the second, so we essentially drop the derivative of q ∗ q^* q ∗ . This enforces that the second-order term is positive semi-definite, which cannot be guaranteed with the dropped term included. In other words, we differentiate as if q ∗ q^* q ∗ were fixed even though it technically varies with W W W .
The GGN term is available per arm in closed form for the softmax policy. Writing − ln π W ( a i ∣ x i ) = − z i , a i + logsumexp ( z i ) -\ln\pi_W(a_i \mid x_i)=-z_{i,a_i}+\operatorname{logsumexp}(z_i) − ln π W ( a i ∣ x i ) = − z i , a i + logsumexp ( z i ) with logits z i = W ϕ ˉ ( x i ) / τ z_i=W\bar{\phi}(x_i)/\tau z i = W ϕ ˉ ( x i ) / τ linear in W W W , the chain rule gives,
∇ w a w b 2 ( − ln π W ( a i ∣ x i ) ) = ( δ a b π W ( a ∣ x i ) − π W ( a ∣ x i ) π W ( b ∣ x i ) ) ϕ ˉ ( x i ) ϕ ˉ ( x i ) ⊤ τ 2 , (59) \nabla^2_{w_a w_b}\left(-\ln\pi_W(a_i \mid x_i)\right)=\left(\delta_{ab}\pi_W(a\mid x_i)-\pi_W(a\mid x_i)\pi_W(b\mid x_i)\right)\frac{\bar{\phi}(x_i)\bar{\phi}(x_i)^\top}{\tau^2}, \tag*{(59)} ∇ w a w b 2 ( − ln π W ( a i ∣ x i ) ) = ( δ ab π W ( a ∣ x i ) − π W ( a ∣ x i ) π W ( b ∣ x i ) ) τ 2 ϕ ˉ ( x i ) ϕ ˉ ( x i ) ⊤ , (59)
independent of the sampled action a i a_i a i . The factorized belief holds one precision per arm, so Eq. (56) uses only the a = b a=b a = b blocks, summed over the batch,
∇ w a 2 ℓ t = ∑ i = 1 N π W ( a ∣ x i ) ( 1 − π W ( a ∣ x i ) ) ϕ ˉ ( x i ) ϕ ˉ ( x i ) ⊤ τ 2 , (60) \nabla^2_{w_a}\ell_t=\sum_{i=1}^{N}\pi_W(a\mid x_i)(1-\pi_W(a\mid x_i))\frac{\bar{\phi}(x_i)\bar{\phi}(x_i)^\top}{\tau^2}, \tag*{(60)} ∇ w a 2 ℓ t = i = 1 ∑ N π W ( a ∣ x i ) ( 1 − π W ( a ∣ x i )) τ 2 ϕ ˉ ( x i ) ϕ ˉ ( x i ) ⊤ , (60)
which with non-negative coefficients guarantees precision increments of Eq. (56) that are positive semi-definite.
FTW’s variational optimization cannot condition on hypotheses. The derivation above solves the inner optimization for q ∗ q^* q ∗ separately at each hypothesis W t W_t W t , which is what makes ln Z N ( W ) \ln Z_N(W) ln Z N ( W ) a function of W W W . Our implementation for FTW however uses a replay buffer with ( x , a , r ) (x,a,r) ( x , a , r ) tuples whose generating hypotheses are implicitly marginalized out, and tournament selection ranks by observed reward. The tilt the implementation samples is therefore
q ~ ∗ ( B N ) ∝ Φ ( B N ) E q W [ π W ( B N ) ] , (61) \tilde{q}^*(B_N)\propto\Phi(B_N)\mathbb{E}_{q_W}\left[\pi_W(B_N)\right], \tag*{(61)} q ~ ∗ ( B N ) ∝ Φ ( B N ) E q W [ π W ( B N ) ] , (61)
the potential applied to the belief-mixture of policies: each step pushes actions rolled out from a fresh posterior draw W ∼ q t W\sim q_t W ∼ q t into the buffer, so uniform draws from the buffer sample the mixture over recent beliefs, and keeping tournament winners tilts those samples by Φ \Phi Φ without evaluating it. This tilt coincides with the pointwise q ∗ ( ⋅ ∣ W ) q^*(\cdot\mid W) q ∗ ( ⋅ ∣ W ) as the belief concentrates, and the update of Eq. (56) is unchanged. The restriction only affects the variational gradient on the policy and the belief step itself is still solved exactly as in Eq. (56) , just with a different tilt. It also strengthens the Gauss-Newton choice in Eq. (58) , since q ~ ∗ \tilde{q}^* q ~ ∗ carries no W W W at all, the GGN is the exact Hessian.
How GRPO, DPO, and FTW instantiate the Hessian. The three algorithms of main consideration in this manuscript correspond to different choices of the potential Φ \Phi Φ through our theoretical framework. Within this construction, only GRPO cannot be interpreted as a probabilistic graphical model, due to the Jensen upper bound of Proposition 1. This paragraph briefly summarizes how each potential produces its Hessian, and what decides it is not the potential itself but the route by which it enters the belief update: through the sampling of q ∗ q^* q ∗ alone, through a closed-form loss that itself depends on W W W , or through a bound that admits no likelihood. Throughout we apply the Gauss-Newton approximation, which guarantees positive semi-definite precision increments.
Filtered cross-entropy. The potential Φ \Phi Φ is the elite-filtering of Eq. (5) , and FTW follows the derivation above literally: the potential enters only through the sampling of q ∗ q^* q ∗ . The loss is therefore the cross-entropy against q ∗ q^* q ∗ regardless of which Φ \Phi Φ is in force, its exact Hessian is Eq. (60) , and the Gauss-Newton step is FTW’s only approximation.
Bradley-Terry. The potential compares one ∣ B N ∣ = 2 |B_N|=2 ∣ B N ∣ = 2 pair through the Plackett-Luce potential of Corollary 1, but DPO does not take the route above: its potential is available in closed form and depends on W W W itself, so DPO descends it directly rather than sampling q ∗ q^* q ∗ . That loss is a log-sigmoid of the delta, − ln σ ( β Δ ) -\ln\sigma(\beta\Delta) − ln σ ( β Δ ) with Δ = ln π W ( a w ∣ x w ) − ln π W ( a l ∣ x l ) \Delta=\ln\pi_W(a_w\mid x_w)-\ln\pi_W(a_l\mid x_l) Δ = ln π W ( a w ∣ x w ) − ln π W ( a l ∣ x l ) the log-probability gap between winner and loser (the uniform reference policy cancels). Since Δ \Delta Δ is nonlinear in W W W , its exact Hessian is indefinite, and the Gauss-Newton step keeps only the positive semi-definite part, making the belief the posterior of the Bradley-Terry model linearized about the current mean ([39 ] ).
Centred advantage. Proposition 1 explains why this case is different. The exact Rao-Blackwellized coefficients α n = ln g n − ln ∑ k g k \alpha_n=\ln g_n-\ln\sum_k g_k α n = ln g n − ln ∑ k g k are log-probabilities, hence α n ≤ 0 \alpha_n\leq0 α n ≤ 0 , and the resulting loss is a non-negative combination of cross-entropies with a positive semi-definite Hessian. The Jensen bound of Proposition 1 replaces them by centred advantages A n = G n − 1 N ∑ k G k A_n=G_n-\frac{1}{N}\sum_k G_k A n = G n − N 1 ∑ k G k of mixed sign, and as a consequence the Hessian directly becomes indefinite even for the GGN case. Thus, we hold Λ ≡ Λ 0 \Lambda\equiv\Lambda_0 Λ ≡ Λ 0 and update only the mean, μ t + 1 = μ t − η Λ 0 − 1 E q [ ∇ W ℓ t ] \mu_{t+1}=\mu_t-\eta\Lambda_0^{-1}\mathbb{E}_q[\nabla W\ell_t] μ t + 1 = μ t − η Λ 0 − 1 E q [ ∇ W ℓ t ] . This mean-only update with a swept step η \eta η is plain GRPO, and we additionally implement two controls.
These two controls are: GRPO-NPG which replaces the typical gradient-descent step by a natural-gradient preconditioned from the current batch, μ t + 1 = μ t − ( F t + Λ 0 ) − 1 E q [ ∇ W ℓ t ] \mu_{t+1}=\mu_t-(F_t+\Lambda_0)^{-1}\mathbb{E}_q[\nabla W\ell_t] μ t + 1 = μ t − ( F t + Λ 0 ) − 1 E q [ ∇ W ℓ t ] with F t F_t F t the per-arm softmax Fisher of Eq. (60) . Second, GRPO-ONG accumulates this same Fisher into Λ \Lambda Λ exactly as Eq. (56) would, i.e., we heuristically insert the GRPO loss into FTW’s belief learning rule.
Experimental Setup
Hardware
Experiments were conducted across two cloud providers. Bandit, Brax, and Search-R1 experiments ran on Google Cloud Platform (GCP) using a2-highgpu-1g (1 × 1 \times 1 × NVIDIA A100-40GB, 12 vCPUs, 85 GB RAM, Intel Xeon Cascade Lake), a2-ultragpu-1g (1 × 1 \times 1 × NVIDIA A100-80GB, 12 vCPUs, 170 GB RAM, Intel Xeon Cascade Lake), and a3-highgpu-1g (1 × 1 \times 1 × NVIDIA H100-80GB, 26 vCPUs, 234 GB RAM, Intel Xeon Sapphire Rapids), each with 500 GB SSD persistent disk. The 40GB A100s were sufficient only to host the Search-R1 retrieval server (our own simplified faiss-index implementation to sidestep a bug in the base implementation that caused VRAM overheads), all other agents ran on the 80GB A100s or the H100. Sokoban experiments required a larger vision-language model and were run on Lambda Cloud using a 2 × 2 \times 2 × NVIDIA H100-80GB instance (52 vCPUs, 442 GB RAM, Intel Xeon Platinum 8480+, 5.5 TB SSD). The Search-R1 seed repetitions ran on a Lambda 8 × 8 \times 8 × NVIDIA A100-80GB instance, one run per GPU with a shared retrieval server.
Reproducing the experiments in this paper requires roughly 6,000 GPU-hours, of which Sokoban (4 algorithms, 5 seeds, about 3 days per run on 1 to 4 GPUs) accounts for about 3,400, Brax (3 algorithms, 10 seeds, about 2 days per run) for about 1,400, and Search-R1 for the remainder, corresponding to an estimated operating cost of $25,000 to $35,000 (USD) at on-demand rates. This excludes setup, algorithm development, and debugging, which vary substantially with practitioner experience and were not separately tracked.
Compute and Memory Footprint
We briefly compare the computational footprint of FTW against GRPO, PPO, and REINFORCE++ on three items, data generation, the learning update, and memory. For data generation, all four methods consume the same number of rollouts per step in our Sokoban runs, but GRPO must obtain them as n n n rollouts of the same prompt, which requires resetting the environment to identical initial states, whereas FTW, PPO, and REINFORCE++ draw one rollout per prompt. Prefix caching can offset part of the group overhead, but the duplication requirement remains. The learning updates differ negligibly in cost apart from the critic. FTW performs a cross-entropy loss on the filtered samples plus a KL penalty, GRPO and REINFORCE++ add PPO-style clipping and advantage normalization, and PPO additionally trains a second model of the same size as the policy, which incurs a further forward and backward pass per update. In our Sokoban runs this meant 4 GPUs for PPO against 2 for GRPO and REINFORCE++ and 1 to 2 for FTW. In terms of storage, FTW is the most expensive because of the replay buffer of past rollouts, 2,000 trajectories on Sokoban and 10,000 on Search-R1, held in CPU memory, whereas the other three methods are on-policy. The overhead depends on the data modality, text environments such as Search-R1 have a far smaller footprint per trajectory than image-based ones such as Sokoban. GRPO extended with a replay buffer, as done by Arnal et al. [7 ] , would match FTW’s memory footprint, leaving the group duplication as the remaining difference. REINFORCE++ is the cheapest on every axis and is also the method that lags in Figure 4 , which is what motivates paying for one of the three variance-reduction sources.
Software Stack
Our experiments span four distinct environments: Bandits, Brax continuous control, Search-R1, and Sokoban. Each environment required a separate software stack and varying setup, for three main reasons. First, packaging conflicts : the verl-agent fork we build on (Feng et al. [26 ] ) lags upstream verl and pins torch 2.8.0+cu128/vLLM 0.11.0. Sokoban requires the legacy gym 0.26.2 API (via gym-sokoban), which conflicts with the gymnasium-based stack used elsewhere. Second, hardware heterogeneity across providers : we ran on a mix of A100-40GB, A100-80GB, and H100-80GB instances (see Appendix § 15 .§ 1 ), and VRAM size materially changed configuration. Third, model choices dictated by baseline parity and modality : Search-R1 uses Qwen2.5-3B-Instruct to match the scale reported in prior work, and Sokoban uses the vision-language Qwen2.5-VL-3B-Instruct to consume the RGB puzzle rendering directly. The Brax environments were fortunately much simpler, as they only required a small MLP provided by the reference implementation of Freeman et al. [27 ] . All cloud runs share Ubuntu 24.04.4 LTS, Python 3.12.3, NVIDIA driver 570.21.01, and set NCCL_NET=Socket. This socket setting made our runs slower, but it was required due to GCP-related issues. Table 2 lists the key package versions per environment. For more specific details, we advise the reader to look at the verl-agent documentation https://github.com/langfengQ/verl-agent which has extensive documentation for the environment setup.
Table 2. Key software versions per experimental environment. Top section: policy model. Bottom section: core framework (first row) and other critical pinned packages. All LLM-agent runs additionally use transformers 4.57.6 and ray 2.54.1. †flash-attn built from source to resolve ABI mismatch with torch 2.8.0+cu128. SearchR1 requires a separate server for the wiki retrieval, making it the most involved environment to set up.
Main Environments
We evaluated across seven environments: four feature-isolating bandit problems (the three diagnostic bandits of Figure 2 and a linear contextual bandit), continuous control (HalfCheetah), a text-based multi-turn LLM-agent task (Search-R1), and a vision-language grid puzzle (Sokoban).
σ \sigma σ -trap bandit (Figure 2 , left). A two-armed Gaussian bandit with an optimal arm (μ = 10 \mu= 10 μ = 10 , σ = 0.5 \sigma= 0.5 σ = 0.5 ) and a zero-mean distractor whose standard deviation is swept over σ t r a p ∈ [ 0.5 , 32768 ] \sigma_{\mathrm{trap}} \in[0.5, 32768] σ trap ∈ [ 0.5 , 32768 ] . A risk-neutral learner commits to the optimal arm at every noise level, while a risk-seeking learner is eventually drawn to the distractor as its variance grows. All methods draw N = 8 N = 8 N = 8 pulls per step for T = 10 6 T = 10^{6} T = 1 0 6 steps with a shared learning rate of 10 − 4 10^{-4} 1 0 − 4 , except for the GRPO lr-adjusted version which scales the learning rate by σ 1 / max a σ a \sqrt{\sigma_1/\max_a \sigma_a} σ 1 / max a σ a to compensate for increased gradient noise but has to train for a T ′ = 32 ⋅ T T^{\prime} = 32 \cdot T T ′ = 32 ⋅ T step budget to actually converge. FTW uses C = 2 C=2 C = 2 , K = 1 K=1 K = 1 , J = 8 J=8 J = 8 per step over a FIFO buffer of max age h h h , our DPO (β = 1 \beta= 1 β = 1 ) version samples pairs from this same buffer mechanism. Replay-buffered curves are averaged over h ∈ { 16 , 64 , 256 , 1024 , 4096 } h \in\{16, 64, 256, 1024, 4096\} h ∈ { 16 , 64 , 256 , 1024 , 4096 } . We report the asymptotic π ( a ∗ ) \pi(a^*) π ( a ∗ ) per noise level (10 seeds, bootstrap 95% CIs).
Truncated Pareto-α \alpha α bandit (Figure 2 , center). A ten-armed tabular bandit with multiplicative heavy-tailed returns r = c a ( 1 − u ) − 1 / α r = c_a(1-u)^{-1/\alpha} r = c a ( 1 − u ) − 1/ α , u ∼ Unif u \sim\operatorname{Unif} u ∼ Unif , truncated to [ 1 , 10 6 ] [1, 10^{6}] [ 1 , 1 0 6 ] so that all moments exist, with arm locations c a = 1 + 0.5 a c_a = 1 + 0.5a c a = 1 + 0.5 a . The tail index is swept over α ∈ { 0.05 , … , 1.7 } \alpha\in\{0.05, \ldots, 1.7\} α ∈ { 0.05 , … , 1.7 } , where smaller α \alpha α produces heavier upper tails and the untruncated moment-generating function diverges at α ≤ 1 \alpha\le1 α ≤ 1 . We report average (bold) and sample (transparent) learning curves of π ( a ∗ ) \pi(a^*) π ( a ∗ ) , see also Appendix § 16 .§ 3 for additional results on different reward distributions.
State-aliasing corridor (Figure 2 , right). The short-corridor task of Sutton and Barto (2018) (Ex. 13.1): states { s 0 , s 1 , s 2 } \{s_0, s_1, s_2\} { s 0 , s 1 , s 2 } with reward − 1 -1 − 1 per step, where the action effect in s 1 s_1 s 1 is reversed. The policy is a single global softmax over the two actions, which aliases all states and makes the optimal policy stochastic, π ( r i g h t ) = 2 − 2 \pi(\mathrm{right}) = 2 - \sqrt{2} π ( right ) = 2 − 2 . We plot the L1 distance ∣ π ( a ) − π ∗ ( a ) ∣ |\pi(a) - \pi^*(a)| ∣ π ( a ) − π ∗ ( a ) ∣ between the learned and optimal action distributions (represented as a 2D vector), averaged over a learning-rate population for 20k update steps (see also Appendix § 16 .§ 4 for additional results).
Linear contextual bandit. A contextual bandit with deterministic rewards and linear features that reports simple and cumulative regret to the optimal arm (all results report mean and 95% bootstrap CI over 30 seeds). We define the reward as r ( x , a ) = 1 / 2 + 1 / 2 θ a T ϕ ~ ( x ) r(x,a) = 1/2 + 1/2 \theta_a^\mathsf{T}\tilde{\phi}(x) r ( x , a ) = 1/2 + 1/2 θ a T ϕ ~ ( x ) with ∥ θ a ∥ = 1 \lVert\theta_a\rVert= 1 ∥ θ a ∥ = 1 and ∥ ϕ ~ ( x ) ∥ ≤ 1 \lVert\tilde{\phi}(x)\rVert\le1 ∥ ϕ ~ ( x )∥ ≤ 1 , which bounds r ∈ [ 0 , 1 ] r \in[0,1] r ∈ [ 0 , 1 ] without clipping and fixes the marginal E x [ r ( x , a ) ] = 1 / 2 \mathbb{E}_x[r(x,a)] = 1/2 E x [ r ( x , a )] = 1/2 . As a result, no action is better on average and only positional information allows exploitation. We achieve this by sampling for every task instance (i.e., one complete run for a given seed) the triple ( ω , b , θ ) (\omega, b, \theta) ( ω , b , θ ) , such that ϕ j ( x ) = 2 / d cos ( ω j x + b j ) \phi_j(x) = \sqrt{2/d}\cos(\omega_j x + b_j) ϕ j ( x ) = 2/ d cos ( ω j x + b j ) with ω j ∼ N ( 0 , ℓ − 2 ) \omega_j \sim\mathcal{N}(0,\ell^{-2}) ω j ∼ N ( 0 , ℓ − 2 ) , b j ∼ Unif [ 0 , 2 π ) b_j \sim\operatorname{Unif}[0,2\pi) b j ∼ Unif [ 0 , 2 π ) , and lengthscale ℓ = 0.1 \ell= 0.1 ℓ = 0.1 . The features are zero-meaned over the context grid and divided by the largest ℓ 2 \ell_2 ℓ 2 norm max x ′ ∥ ϕ ( x ′ ) ∥ 2 \max_{x'} \lVert\phi(x')\rVert_2 max x ′ ∥ ϕ ( x ′ ) ∥ 2 , so that ∥ ϕ ~ ( x ) ∥ 2 ≤ 1 \lVert\tilde{\phi}(x)\rVert_2 \le1 ∥ ϕ ~ ( x ) ∥ 2 ≤ 1 everywhere with feature dimensionality d = 16 d = 16 d = 16 . Contexts x x x are drawn uniformly over a linspace of 256 points in [ 0 , 1 ] [0,1] [ 0 , 1 ] . Finally, we sample each arm’s reward parameters uniformly from the unit-sphere: θ a ∼ N ( 0 , I d ) \theta_a \sim\mathcal{N}(0,I_d) θ a ∼ N ( 0 , I d ) then l 2 l_2 l 2 normalize to ∥ θ a ∥ = 1 \lVert\theta_a\rVert= 1 ∥ θ a ∥ = 1 . We keep one special “safe” arm with θ = 0 \theta= 0 θ = 0 such that the reward is 1 / 2 1/2 1/2 independent of context (safe but suboptimal).
All policy methods share the linear softmax policy π ( a ∣ x ) ∝ exp ( W ϕ ˉ ( x ) ) a \pi(a \mid x) \propto\exp(W\bar{\phi}(x))_a π ( a ∣ x ) ∝ exp ( W ϕ ˉ ( x ) ) a over the bias-augmented features ϕ ˉ ( x ) = ( 1 , ϕ ~ ( x ) ) \bar{\phi}(x) = (1,\tilde{\phi}(x)) ϕ ˉ ( x ) = ( 1 , ϕ ~ ( x )) , with W ∈ R ∣ A ∣ × ( d + 1 ) W \in\mathbb{R}^{|A|\times(d+1)} W ∈ R ∣ A ∣ × ( d + 1 ) . Appendix F describes the complete parametrization and derivation of the learning rule. We used ∣ A ∣ = 20 |A| = 20 ∣ A ∣ = 20 actions with a per-step batch-size (number of contexts) of 16. So, FTW and DPO draw N = 16 N = 16 N = 16 contexts and a single action, however, GRPO draws 4 contexts per step with an on-policy group of G = 4 G = 4 G = 4 actions for the group-mean baseline. As a baseline we use Thompson sampling [16 ] (Thompson 1933) via conjugate Bayesian linear regression per arm.
Brax continuous control [27 ] . HalfCheetah with the Brax spring backend, episode length 1,000, action repeat 1, observation normalization enabled. The policy is an MLP [256, 256] with ReLU activations and a NormalTanhDistribution head (brax SACNetworks).
Observations are continuous, with 18 dimensions.
The action space is a bounded continuous vector in [ − 1 , 1 ] D [-1,1]^D [ − 1 , 1 ] D , with D = 6 D = 6 D = 6 .
Rewards follow the standard Brax forward-velocity plus control-cost shaping (norm of the action).
Episodes terminate when the agent reaches an unhealthy joint configuration.
The key metric is the evaluation episode return, computed with a fixed policy at lower temperature.
Search-R1 [40 ] . Multi-turn open-domain QA with a retrieval tool, framed as a POMDP where the agent alternates between internal reasoning and tool invocation until it commits to an answer. At each turn the prompt contains the question and the interaction history, where prior search queries and the retrieved passages are interleaved as <search>...</search> and <information>...</information> blocks. The LLM emits chain-of-thought inside <think>...</think> and then chooses exactly one of two actions: a new query in <search>...</search> (control returns to the retriever) or a final answer in <answer>...</answer> (terminating the episode). Emitting both or neither consumes a turn. Retrieved passages are obtained by dense lookup against an E5 index of the Wikipedia-18 corpus (wiki-18.jsonl, 14 GB) compressed from a 61 GB flat index to an 815 MB IVF-PQ index (e5_IVFPQ.index) and served from a dedicated retrieval venv on port 8000, returning the top-3 passages per query. Reward is an exact-match indicator on the final answer against the gold label, with an additional − 0.1 -0.1 − 0.1 penalty for malformed emissions (missing or duplicate action tags). Train set: 169,615 questions from PeterJinGo/nq_hotpotqa_train (a mix of Natural Questions and HotpotQA). Test set, on which the main-text accuracies are computed, is the 51,713-question eval set bundled with the same release, drawn from NQ, TriviaQA, PopQA, HotpotQA, 2WikiMultihopQA, Musique, and Bamboogle. Training-time curves use a fixed 1,280-question slice of it. Max turns: 4. Prompt/response budgets: 4,096 / 512 tokens.
Sokoban (Schrader, 2018). Vision-language box-pushing puzzle (gym_sokoban) on a 6 × 6 6\times6 6 × 6 grid with one box and a generator search depth of 30 (the num_gen_steps parameter controlling puzzle complexity at instantiation, not the per-episode horizon). At each turn the environment’s rgb_array rendering is supplied to the policy as an image via data.image_key=images, alongside the textual task description and a short history of prior actions. The vision-language model emits chain-of-thought inside <think>...</think> followed by a single direction in <action>...</action>, with admissible set {up, down, left, right}. Each direction is dispatched as the corresponding Push action in gym_sokoban, and unparsable or illegal emissions consume a turn. Rewards follow the gym_sokoban defaults: − 0.1 -0.1 − 0.1 per step, ± 1 \pm1 ± 1 on pushing the box on/off its target, and + 10 +10 + 10 upon solving, with an additional − 0.1 -0.1 − 0.1 format penalty consistent with the main text. Train/validation split: 32 / 128 puzzles. Episode horizon: 15 turns. Prompt/response budgets: 1,024 / 512 tokens, with image tokens accounted for separately by the VLM processor and not counted against the prompt budget.
Hyperparameters
Hyperparameters are reported in two tables: Brax continuous control (Table 3) and the shared LLM-agent RL configuration (Table 4). For every baseline, SAC and the Brax network architecture from Freeman et al. [27 ] , and the GRPO defaults from verl-agent [26 ] , we retain the published values wherever possible to keep comparisons fair.
Brax continuous control. All methods share the same optimizer, replay buffer, observation normalization, and network architecture. Algorithm-specific differences (Table 3 ) concern the actor learning objective and the update-to-data (UTD) ratio.
Table 3. Brax HalfCheetah hyperparameters.
Table 3: Brax HalfCheetah hyperparameters. All methods share lr=3 × 10 − 4 3 \times10^{-4} 3 × 1 0 − 4 (Adam), γ = 0.99 \gamma=0.99 γ = 0.99 , replay size 2 × 10 6 2 \times10^{6} 2 × 1 0 6 , 64 parallel envs, batch size 256, episode length 1000, 10 9 10^{9} 1 0 9 total env steps, warmup 8192 transitions, and 10 seeds. Any parameters not mentioned are all kept at their default values from the Brax 0.14.2 [27 ] implementation of SAC [35 ] .
LLM-agent RL. For both Search-R1 and Sokoban, all settings in Table 4 are shared across all tested algorithms. The replay buffer size is listed at the bottom of Table 4. GRPO replaces FTW’s elite filtering with group-relative advantages over n n n rollouts per prompt, combined with a PPO-clip objective rather than the cross-entropy SFT loss. PPO replaces the group baseline with a learned critic, a second Qwen2.5-VL-3B-Instruct initialised from the base model and trained at lr 10 − 5 10^{-5} 1 0 − 5 with value clipping 0.5, using GAE with λ = 1 \lambda=1 λ = 1 and γ = 1 \gamma=1 γ = 1 so the advantage is the Monte-Carlo return minus the value estimate. REINFORCE++ [38 ] keeps a single rollout per prompt and normalises returns by the global batch mean and standard deviation, with the same PPO-clip objective, KL penalty, and entropy coefficient as GRPO. Both baselines run directly through the verl-agent implementation [26 ] by switching its advantage estimator, with all other settings held fixed. The FTW configurations differ only in the minibatch size C C C and the number of elites per minibatch K K K . On Search-R1 we use C = 4 C=4 C = 4 with K = 1 K=1 K = 1 , and on Sokoban C = 5 C=5 C = 5 with K ∈ { 1 , 2 , 3 } K \in\{1,2,3\} K ∈ { 1 , 2 , 3 } retained trajectories, sweeping from strong to weak selection pressure. The limiting case C = 2 C=2 C = 2 , K = 1 K=1 K = 1 is binary selection, which coincides with DPO’s pairwise potential and is not run here. For all FTW configurations, the number of minibatches per gradient step J J J is set proportional to K K K such that each update receives J ⋅ K J \cdot K J ⋅ K training targets at a fixed effective batch size. The cross-entropy differences in Table 4 (e.g. KL coefficient, discount γ \gamma γ ) are inherited from the published baseline settings for each benchmark rather than tuned for FTW. Default system prompts for the LLMs are kept at their default values as provided by the packages pinned in Table 2 .
Table 4. LLM-agent hyperparameters. All runs use bfloat16 rollouts and optimize with AdamW [55 ] . Unless otherwise stated, we use the exact hyperparameter defaults as described in the respective baselines as implemented by verl-agent 0.3.1.dev [26 ] . For FTW, the number of minibatches per update is J = 128 / K J = 128/K J = 128/ K , so every update uses J ⋅ K = 128 J \cdot K = 128 J ⋅ K = 128 training targets regardless of K K K .
Supplementary Results
This appendix collects results that complement the main paper. Section H.1 reports in-distribution learning curves for the LLM-agent experiments (test-time curves appear in the main text, Figure 4 ). Section H.2 dissects the FTW selection operator on the σ \sigma σ -trap, grading the polynomial filter by selection pressure and sweeping the temperature of an exponential-rank alternative. Section H.3 extends the Pareto-α \alpha α sweep of Figure 2 to four additional return distributions, isolating which features of the return distribution drive the failure mode of cardinal-exponential potentials. Section H.4 expands the state-aliasing experiment with a learning-rate sweep, showing that the polynomial-vs-exponential concentration gap is not an artifact of a single learning rate (which dampens learning instability). Section H.5 identifies a solution bias of elite filtering over the replay buffer when returns saturate and comparisons are dominated by ties, complementing the robustness results above with the adversarial regime of the rank-based potential.
Training-time Success Rates for Sokoban and Search-R1
Figure 5 shows success rates on training episodes that complement the test-time evaluations in the main text. On Sokoban (left), our FTW-K1-C5 and FTW-K2-C5 and the GRPO and PPO baselines cluster almost indistinguishably together, whereas REINFORCE++ trains markedly slower and with larger seed variance. In contrast, our FTW-K3-C5 peaks on average near 0.4 and then collapses to zero. This collapse can partly be attributed to Sokoban’s effectively binary returns. Whenever a group contains fewer than K K K successes the remaining elite slots are always filled with zeros, and such groups are far more common at K = 3 K=3 K = 3 than at K = 1 K=1 K = 1 , where one success out of C C C already suffices. Although the imitated elite threshold still averages above the buffer mean in expectation (Appendix § 3 ), the share of imitated zeros grows as the success rate falls and this drags each consecutive update further down. Ultimately this is a finite-sample effect rather than a flaw in the operator, a larger replay buffer would smooth the K3 curve out at the cost of slower learning. On Search-R1 (right), FTW-K1-C4 dips slightly during initial training, and then steadily improves. Note that the training success rate is not directly comparable to the test success rate, due to the validation set only covering NQ and HotpotQA questions.
Figure 5. Online episode success rate on Sokoban (left) and Search-R1 (right) with EMA-smoothed means and ± 1 \pm1 ± 1 standard deviation over seeds, individual seeds are drawn faintly. Note that, the Search-R1 training split covers only NQ and HotpotQA, so the right panel is not on the same question distribution as the main-text reported test accuracy.
Varying FTW Selection Operators for the noisy Bandit-trap
Extending upon Figure 2 (left) we provide more examples of the FTW filtering pressure on the σ \sigma σ -trap in Figure 6 . All variants share the identical backbone of FTW, they only differ in how the filtering (winner selection) is applied to the replay buffer. As in the main text, results are averaged over buffer sizes h ∈ { 16 , 64 , 256 , 1024 , 4096 } h \in\{16, 64, 256, 1024, 4096\} h ∈ { 16 , 64 , 256 , 1024 , 4096 } for FTW-polynomial and with h ∈ { 16 , 64 } h \in\{16, 64\} h ∈ { 16 , 64 } for the exponential filtering on the ranking, as FTW-exp requires sorting the entire replay buffer, which gets expensive. Note that the FTW-exp-marg from the main text (Figure 2 ) filtered using a softmax over the buffer returns, whereas this experiments uses a multinomial over their ordered rank (argsort index) for a given temperature τ \tau τ . This was done to eliminate the ordinal vs. marginal confounding argument of our FTW operator.
The polynomial selection (red lines, Figure 6 ) are determined by the selection pressure C / K C/K C / K . We see for a mild C = 4 C=4 C = 4 , K = 3 K=3 K = 3 filter that the risk-profile stays minimal, even at larger σ \sigma σ . In contrast the more aggressive C = 4 C=4 C = 4 , K = 1 K=1 K = 1 filter collapses onto the trap arm, as suspected. For the exponential-ordinal filter, we see that the greedy limit τ → 0 \tau\to0 τ → 0 (buffer argmax) collapses onto the trap even swifter than the aggressive polynomial configuration. Unsurprisingly, the other extreme τ → ∞ \tau\to\infty τ → ∞ stays constant to its 1 / 2 1/2 1/2 prior. The temperatures inbetween τ ∈ { 0.01 , 1.0 , 100.0 } \tau\in\{0.01, 1.0, 100.0\} τ ∈ { 0.01 , 1.0 , 100.0 } form a type of U-curve that finds the optimal arm for moderate or low noise (temp = 1.0) before interpolating back to uniform for large τ \tau τ or back to the overly aggressive τ = 0 \tau= 0 τ = 0 version.
Bandit Distribution Sweep
Figure 7 extends the Pareto-α \alpha α sweep of Figure 2 (center) to four additional return distributions. The five rows isolate distinct features of the return distribution and check whether the theoretical risk profile of Proposition 2 predicts the empirical failure modes correctly.
Figure 7. Bandit sweep across five return distributions (Beta, Binomial, scaled Binomial, Pareto, Student-t t t ). Left column shows the scale-regret max k μ k − E π [ μ k ] \max_k \mu_k-\mathbb{E}_{\pi}[\mu_k] max k μ k − E π [ μ k ] , right column shows the probability of selecting the optimal arm. Color encodes the distribution-shape parameter, and we use the same legend as our Pareto-α \alpha α result in the main text.
Beta (κ \kappa κ shape). Bounded support, where varying κ \kappa κ moves between U-shaped, uniform, and bell-shaped returns. All three methods solve the bandit, and FTW shows slightly faster scale-regret reduction in the early phase. As expected, no method is destabilized when returns are bounded, regardless of shape.
Binomial. The clean sparsity sweep. All three methods identify the optimal arm. GRPO converges visibly slower than the rank-based methods at low p p p , consistent with its cardinal treatment of returns under sparse signals.
Binomial scaled (× 1000 \times1000 × 1000 ). The same Bernoulli-rate sweep with rewards scaled by 1000, isolating magnitude robustness from sparsity. GRPO’s curves remain bounded but the slow-convergence gap at low p p p widens substantially under the scale. FTW and DPO are scale-invariant by construction (rank-based), and their curves overlap their unscaled counterparts. This confirms that magnitude (not sparsity per se) is the destabilizing factor for the cardinal baseline.
Pareto-α \alpha α . Reproduces the main-text result for the non-truncated version of the distribution. GRPO fails to identify the optimal arm at heavy-tail α ≤ 1 \alpha\le1 α ≤ 1 , where the moment-generating function diverges. FTW and DPO remain stable, as predicted by the rank-based potentials’ well-defined fixed point under any continuous return distribution.
Student-t t t (ν \nu ν ). Symmetric, polynomially-tailed distribution on R \mathbb{R} R . At ν ≤ 2 \nu\le2 ν ≤ 2 the variance of returns becomes undefined, and GRPO’s group-mean baseline destabilizes accordingly, with scale-regret curves drifting noticeably. FTW and DPO remain unaffected, since the rank-based potential depends
only on the order statistic. This confirms that the destabilization of GRPO under heavy tails is not specific to the one-sided support of Pareto.
Across all five rows, the rank-based potentials never destabilize, while GRPO destabilizes precisely in the regimes where the moment-generating function diverges. This matches the prediction of Proposition 2. The cardinal-exponential potential has an undefined fixed point under heavy tails, while rank-based potentials depend only on the order statistic and are insensitive to tail behavior.
State-Aliasing under Learning-Rate Variation
Figure 8. State-aliasing (corridor) task with a learning-rate sweep at horizon H = 16 H = 16 H = 16 . We plot average L1 distance ∣ π ( a ) − π ∗ ( a ) ∣ |\pi(a) - \pi^{*}(a)| ∣ π ( a ) − π ∗ ( a ) ∣ between the learned and optimal action distributions, averaged across learning rates within each method. Lower is better.
Figure 8 extends the state-aliasing result of Figure 2 (right) by sweeping the learning rate. The main text reports a single curve per method. Here we average across a learning-rate population to verify that FTW’s lower L1 distance is not a property of a favorable learning-rate choice. The ordering FTW < < < DPO, GRPO holds across the swept range, supporting the claim that polynomial concentration retains more useful stochasticity under partial observability than exponential concentration, independently of step-size tuning.
FTW under Tie-Saturated Rewards
This subsection briefly characterizes the effect of tie-breaking when returns frequently saturate around similar values, which is an important discussion item as it eliminates the discriminative signal that elite-filtering is supposed to provide. This is common under Binomial returns or sparse discrete reward settings, like our LLM post-training on SearchR1. We isolate the effect in a two-armed bandit with Bernoulli returns G ∈ { 0 , 1 } G \in\{0, 1\} G ∈ { 0 , 1 } and success probabilities p 1 = 0.999 p_1 = 0.999 p 1 = 0.999 and p 2 < p 1 p_2 < p_1 p 2 < p 1 , whose difference defines the gap δ ≜ p 1 − p 2 \delta\triangleq p_1 - p_2 δ ≜ p 1 − p 2 , swept over δ ∈ { 0.099 , 0.009 , 0.004 , 0.001 , 10 − 4 } \delta\in\{0.099, 0.009, 0.004, 0.001, 10^{-4}\} δ ∈ { 0.099 , 0.009 , 0.004 , 0.001 , 1 0 − 4 } . FTW is configured as in the main text with C = 2 C = 2 C = 2 , K = 1 K = 1 K = 1 , J = 32 J = 32 J = 32 , and we ablate the buffer’s maximum sample age h h h , where h = ∞ h = \infty h = ∞ never deletes data. On-policy GRPO is used as a reference.
Mechanism. Consider a single FTW update in this setting. When both arms succeed with probability close to one, the two sampled returns in a pairwise comparison are almost always 1 and 1, which makes the arms close to indistinguishable. To make this precise, let q ^ ( a ) \hat{q}(a) q ^ ( a ) denote the buffer-occupancy of arm a a a . The probability that arm a a a wins from under the sketched Bernoulli is p a ( 1 − p b ) p_a(1-p_b) p a ( 1 − p b ) , and suppose it wins half of the tied cases giving Pr ( a beats b ) = 1 2 ( 1 + p a − p b ) \Pr(a\text{ beats }b) = \frac{1}{2}(1 + p_a - p_b) Pr ( a beats b ) = 2 1 ( 1 + p a − p b ) . This gives the general tilting distribution as a special case of Eq. (5) .
Pr ( e l i t e = a ) ∝ q ^ ( a ) ( 1 + p a − E b ∼ q ^ [ p b ] ) . (62) \Pr(\mathrm{elite}=a) \propto\hat{q}(a)\left(1+p_a-\mathbb{E}_{b\sim\hat{q}}[p_b]\right). \tag*{(62)} Pr ( elite = a ) ∝ q ^ ( a ) ( 1 + p a − E b ∼ q ^ [ p b ] ) . (62)
Where E b ∼ q ^ [ p b ] = q ^ ( 1 ) p 1 + q ^ ( 2 ) p 2 \mathbb{E}_{b\sim\hat{q}}[p_b] = \hat{q}(1)p_1 + \hat{q}(2)p_2 E b ∼ q ^ [ p b ] = q ^ ( 1 ) p 1 + q ^ ( 2 ) p 2 is the average success probability of a random buffer sample. In expectation, the better arm receives the factor 1 + q ^ ( 2 ) δ 1+\hat{q}(2)\delta 1 + q ^ ( 2 ) δ and the worse arm the factor 1 − q ^ ( 1 ) δ 1-\hat{q}(1)\delta 1 − q ^ ( 1 ) δ .
Selection therefore prefers the better arm, but only by a factor of at most 1 + δ 1+\delta 1 + δ regardless of the buffer contents, so under saturation elite-filtering is almost indistinguishable from the buffer occupancy.
Under saturation, learning then entails imitating the buffer plus an O ( δ ) \mathcal{O}(\delta) O ( δ ) nudge toward the better arm. Thus, the policy can only improve as fast as the buffer itself moves. With a finite sample age h h h , old data expires, the buffer tracks the recent and improving policy, and the nudge compounds over updates. With h = ∞ h = \infty h = ∞ nothing expires. Each new batch is then a vanishing 1 / t 1/t 1/ t fraction of the buffer, so the policy is perpetually trained to imitate its own near-uniform early history.
GRPO does not inherit this property for a simple reason. Its advantage G i − G ˉ G_i-\bar{G} G i − G ˉ is exactly zero on a tied group, so where elite filtering must imitate, GRPO simply performs no update and waits for an informative batch. Thus, FTW’s learning dynamic is to oscillate around indistinguishable winners, whereas GRPO stays put.
Result. Figure 9 shows the population of solutions across buffer sizes, and Figure 10 shows the corresponding average learning curves. Under Bernoulli returns (top row), the never-delete buffer anchors FTW at chance for small δ \delta δ , and only the large gap δ = 0.099 \delta= 0.099 δ = 0.099 produces a marginal shift toward the optimal arm, as the tilt in Eq. (62) scales with δ \delta δ . Finite buffers avoid the anchor because dropping old samples lets the policy improvement compound, but smaller buffers turn tie-breaking into selection and update noise, whereas GRPO’s tied advantages vanish and its learning is noticeably more stable. Under Gaussian returns (bottom row), every finite buffer for FTW finds the optimal arm whereas GRPO’s learning signal seems to get stale for small δ \delta δ .
Figure 9. Population solutions after T = 8 × 10 5 T = 8 \times10^{5} T = 8 × 1 0 5 steps of training vs. maximum sample age h h h (100 seeds). Dashed line: on-policy GRPO mean and 95% CI. The top row shows results under Bernoulli returns and the bottom row under homoscedatic Gaussian noise N ( μ a , 0.01 ) \mathcal{N}(\mu_a, 0.01) N ( μ a , 0.01 ) returns.
Figure 10. Mean learning curves for Figure 9 (shaded: 95% CI). Evidently, convergence takes proportionally longer as δ \delta δ decreases.
The key takeaway is that tie-breaking is inherent to any RL algorithm on saturated rewards, but the ordinal tilting of methods like FTW induces different learning dynamics than typical marginal methods. The results present a buffer-size trade-off: larger buffers reduce selection noise and in expectation resolve ties through more accurate non-parametric estimation, at the cost of smoothing and slower policy movement.
Epistemic Contextual Bandit
This subsection is a case study in extracting the maximum policy improvement that a selection operator and replay buffer allow. The mirror-descent update of Eq. (56) sets the learning rate and the KL weight exactly as derived through our theory, eliminating the need for tuning. At least this goes for FTW and DPO, GRPO in contrast cannot be instantiated as a graphical model and its centred-advantage loss admits no posterior precision update rule that yields a positive-definite covariance (Appendix § 14 ). Thus, GRPO is run in three imperfect variants to approximate FTW’s and DPO’s learning rule, one version where normal GRPO is tuned for a learning rate, one where we assume that the covariance is learned through FTW’s update rule (ONG), and one where we use the local Fisher information as a gradient preconditioner (NPG). The environment is the linear contextual bandit of Appendix § 15 .§ 4 , rewards are deterministic and bounded, every arm has the same marginal E x [ r ( x , a ) ] = 1 / 2 \mathbb{E}_{x}[r(x,a)] = 1/2 E x [ r ( x , a )] = 1/2 , so all uncertainty is epistemic and positional structure needs to be exploited for low regret.
The reason why we structured the learning rule and policy for this case study in this particular way is because the explicit Gaussian belief and the bootstrapping from the replay buffer form an analogous stand-in to how data is generated and resampled in typical LLM post-training. The LLM predictive (policy) behaves like an amortized posterior predictive that inserts its samples into the buffer. Resampling from that buffer exposes implicitly what the model does and does not know, at least structurally. This case-study then tests: given an agent whose uncertainty is represented explicitly and changing over time, does elite filtering act on that uncertainty and reduce it over time? An affirmative answer would hint at the idea that our framework and instantiation through FTW induces knowledge-seeking in LLM post-training. This question is also different to plain in-context learning, as data shouldn’t only reduce posterior uncertainty, they should also concentrate on the optimal policy.
Results. Figure 11 shows the learning curves of the main configurations, we show regret-metrics alongside the belief and predictive diagnostics. Then Figure 12 sweeps each method’s concentration parameters (top row) and the buffer depth (bottom row).
Figure 11. Learning curves at h = 128 h = 128 h = 128 (30 seeds, mean and Gaussian 95% bands). Left to right: offline simple regret of the posterior predictive, cumulative regret divided by t t t , posterior width, and predictive entropy. Colors denote the method family and line styles its variants. Thompson sampling is an oracle handed the true linear-Gaussian structure whereas the policy methods must learn it through the variational learning rule.
Figure 12. Offline simple regret (30 seeds, Gaussian 95% bands). Top row: each method’s concentration knob at h = 128 h = 128 h = 128 . Bottom row: the buffer-depth ladder at each method’s best knob setting.
One somewhat obvious finding is that too little selection pressure never concentrates the policy, and too much prematurely converges on early winners before the belief has identified them, so regret decreases faster for intermediate selection pressure under each methodology (Figure 12 , top row). The effect is of similar size for FTW and DPO, roughly a fourfold spread in final regret across their knobs (Figure 12 , top row). In general, FTW and DPO are statistically indistinguishable at their best parameter-configurations.
What is also interesting is how the belief precision differs between FTW and DPO, despite achieving similar regret. The posterior width for FTW decreases more sharply than for DPO, and its predictive entropy ends lower as well (right of Figure 11 ). At equal regret, DPO thus retains a wider belief and a more diffuse predictive than FTW. GRPO’s belief metrics are either stale or overcontract due to the model misspecification or mismatch that prevents implementing a proper update rule in our framework.
Plain GRPO converges prematurely at every fixed step size, whereas the Fisher preconditioner of GRPO-NPG removes most of this gap in both simple and cumulative regret (Figure 11 ). The misspecified FTW precision update used by GRPO-ONG contracts the belief before the mean has moved, so its policy stays near uniform and it achieves the worst regret of all tested methods aside from the uniform upper bound. Finally, the buffer-depth ladder (Figure 12 , bottom row) shows FTW insensitive to h h h over three orders of magnitude, whereas DPO degrades sharply at h = 1024 h = 1024 h = 1024 and GRPO is flat at its higher regret level.