Standard policy gradients weight each sampled action by advantage alone, regardless of how likely that action was under the current policy. This creates two pathologies: within a single decision context (e.g. one image or prompt), a rare negative-advantage action can disproportionately distort the update direction; across many such contexts in a batch, the expected gradient over-allocates budget to contexts the policy already handles well. We introduce the Delightful Policy Gradient (DG), which gates each term with a sigmoid of delight, the product of advantage and action surprisal (negative log-probability). For K-armed bandits, DG provably improves directional accuracy in a single context and, across multiple contexts, shifts the expected gradient strictly closer to the supervised cross-entropy oracle. This second effect is not variance reduction: it persists even with infinite samples. Empirically, DG outperforms REINFORCE, PPO, and advantage-weighted baselines across MNIST, transformer sequence modeling, and continuous control, with larger gains on harder tasks.
Figure 2: MNIST classification error. Supervised CE requires labels; PG and DG do not.
Figure 3: Classification error at T=10k vs. samples per image S , faceted by baseline. Dashed line: error from the exact PG-oracle gradient gPG∗ , PG’s best achievable direction.
Figure 4: Gradient misalignment over training at S=1 (solid) and S=100 (dashed). (a) DG’s advantage diminishes with S (variance). (b) DG’s advantage persists at S=100 (directional).
Figure 6: N=100 independent contexts, K=10 actions, N(0,1) init, exact gradients. DG converges faster (a) by rebalancing gradient budget to hard contexts (b).
Figure 9: Scaling with task complexity. (a,b) Final sequence error after K=10k episodes; baselines degrade beyond a threshold while DG degrades more gracefully. (c,d) Log-log cumulative error reveals approximate power-law scaling; DG achieves a smaller exponent.
Figure 10: Average reward across 28 Control Suite environments. DG (red) is never the worst method.
Figure 13: Score weight ω vs. advantage U for common ( π=0.9 ) and rare ( π=0.01 ) actions. DG treats rare successes and rare failures asymmetrically; PG and PMPO are blind to action probability, while PPO clips both tails through importance-ratio constraints.
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 14: Generalization on MNIST. (a) Validation error tracks training error; DG achieves lower error on both. (b) The optimal temperature η≈1 is consistent across train and validation.
Figure 15: Entropy regularization vs. DG temperature. Large entropy coefficients degrade accuracy; DG is robust across η and consistently achieves lower error.
Figure 16: Learning rate sensitivity. DG (red) outperforms PG (blue) across all baselines and learning rates.
Figure 17: Batch size sensitivity. DG maintains its advantage across all batch sizes.
Figure 18: Network width sensitivity. DG outperforms PG across all capacity levels.
Figure 19: Alternative definitions of delight. (a) Additive mixtures underperform the multiplicative form (dotted). (b) The simple product ( β=1 ) is optimal.
Figure 20: Hyperparameter tuning for baselines. Neither PPO nor PMPO matches DG despite extensive sweeps.
Figure 21: DG’s advantage is robust to learning rate (a) and persists asymptotically (b) .
Figure 22: Reward structures. Bag-of-Tokens credits all correct tokens; Sequential stops at the first error.
Figure 23: Learning curves across 8 task variants. Top: Bag-of-Tokens. Bottom: Sequential. DG (red) achieves the lowest error in all configurations.
Figure 24: Additive mixtures (colored lines) vs. multiplicative DG (red dashed). No additive configuration matches DG.
Figure 25: Learning curves for 28 Control Suite environments. DG (red) consistently matches or exceeds the hedonic baseline (purple), PPO (blue), and MPO (green).
Figure 26: Hyperparameter sensitivity on cartpole:swingup . Default values (dashed) perform comparably to alternatives.
Figure 27: Aggregate regret against tuned SOTA baselines. DG (pink) outperforms tuned MPO (gold) and SAC (blue).
Figure 28: Per-environment regret at 10M steps. DG (pink) consistently achieves low regret across the suite.