This paper introduces Ranking Policy Gradient (RPG), a novel approach to reinforcement learning (RL) that shifts the focus from estimating absolute action values to learning the relative ranking of actions.
TL;DR
Instead of struggling to estimate exact "Q-values," Ranking Policy Gradient (RPG) learns to rank actions by their relative quality. By transforming reinforcement learning into a supervised ranking task on near-optimal trajectories, RPG achieves significantly better sample efficiency and training stability than state-of-the-art methods like Rainbow and IQN.
What Problem Does This Paper Address?
Reinforcement learning is notoriously "sample-hungry," often requiring millions of interactions with an environment to learn simple tasks. The authors identify two main culprits behind this inefficiency:
- High Variance: Standard policy gradient methods (like REINFORCE) rely on noisy estimates of future rewards, leading to unstable updates.
- The "Deadly Triad": Off-policy methods that use function approximation and bootstrapping (like DQN) often suffer from divergent or unstable learning because they are trying to hit a moving target (the value function).
Most current RL agents try to learn the absolute value of an action ($Q$-values). However, for decision-making, we don't actually need to know that Action A is worth exactly 10.5 points; we just need to know that Action A is better than Action B.
Methods
The authors propose two major innovations to address these issues:
1. Ranking Policy Gradient (RPG)
Instead of traditional value functions, the authors introduce $\lambda$-values (relative action values). These are scores that represent the rank of an action. They model the probability of one action being better than another using a pairwise relationship (similar to the Bradley-Terry model used in sports ranking).
- The Loss Function: They use a hinge loss (common in Support Vector Machines) to ensure the optimal action's $\lambda$-value is higher than all other actions by a specific "margin."
2. RL as Supervised Learning
The authors prove a theoretical equivalence: maximizing the lower bound of a return is equivalent to imitating a near-optimal policy via supervised learning.
- Trajectory Reward Shaping (TRS): They filter the agent's experience, keeping only "near-optimal" trajectories (those with rewards above a threshold $c$).
- Off-Policy Framework: The agent explores the environment to find these "good" trajectories. Once found, these trajectories are stored in a buffer, and the agent performs supervised learning to rank the actions taken in those successful runs. This bypasses the "deadly triad" because the target (the successful trajectory) is stationary.
Datasets
The researchers evaluated RPG using the Atari 2600 suite via the OpenAI Gym. They tested on a variety of games with different reward structures and complexities, including:
- Dense rewards: Pong, Breakout, and Boxing
- Sparse/Complex rewards: Pitfall and BankHeist
- Other dynamics: Robotank, Bowling, and DoubleDunk
They compared RPG against heavyweights in the field: DQN, C51, IQN, Rainbow, PPO, and Self-Imitation Learning (SIL).
Key Insights and Ideas
- Relative > Absolute: Learning the order of actions is a much easier optimization problem than learning their exact value. This leads to faster convergence.
- Variance Reduction: By treating the "good" trajectories as a supervised dataset, the gradient variance is reduced by an order of $O(T^2M^2)$ (where $T$ is the time horizon and $M$ is the reward scale). This makes training much more stable and predictable.
- Bypassing the Deadly Triad: Because the method doesn't rely on bootstrapping (using one estimate to update another estimate), it avoids the feedback loops that cause other off-policy methods to diverge.
Key Results
RPG demonstrated strong empirical performance across the tested environments:
- Superior Sample Efficiency: In games like Pong and Boxing, RPG reached near-optimal performance significantly faster than Rainbow or IQN.
- Higher Performance Ceilings: On Robotank and DoubleDunk, RPG didn't just learn faster; it eventually achieved higher average returns than the baseline algorithms.
- Stability: The training curves for RPG show much tighter confidence intervals across different random seeds, suggesting the method is less sensitive to initialization and "lucky" exploration.
- Ablation Success: The authors showed that the pairwise ranking policy specifically (using hinge loss) was more effective than standard softmax-based policy gradients when used within their off-policy framework.
Limitations and Future Work
- The Threshold $c$: The algorithm requires a threshold to define what a "near-optimal" trajectory looks like. In the paper, this is often treated as a task-specific hyperparameter. Finding a way to adaptively set this threshold during training would be a significant improvement.
- Exploration Bottleneck: RPG is an "exploitation-heavy" method. It relies on the agent eventually stumbling upon a good trajectory through random exploration or a separate exploration agent. If the environment is so complex that a "good" trajectory is never found, RPG has nothing to learn from.
- Discrete Actions: The current formulation is designed for discrete action spaces. Extending this ranking logic to continuous control (like robotics) remains an open challenge.
Summary updated