Deep Reinforcement Learning from Hierarchical Preference Design

Alexander Bukharin, Yixiao Li, Pengcheng He, Tuo Zhao

TL;DR

HERON (Hierarchical prEference-based ReinfOrcement learNing) simplifies the "dark art" of reward engineering by replacing tedious numerical weight tuning with a simple importance ranking of feedback signals. By using a hierarchical decision tree to automatically generate trajectory preferences, HERON trains reward models that are more robust, more efficient to tune, and more effective than hand-crafted functions across tasks ranging from traffic management to code generation.

The Challenge of Reward Engineering

In Reinforcement Learning (RL), the "reward function" acts as the North Star guiding an agent's behavior. However, designing this function for complex, real-world tasks is notoriously difficult.

Practitioners usually resort to reward engineering: manually combining multiple feedback signals (e.g., for a self-driving car: speed, lane-keeping, and fuel efficiency) into a single number using weighted sums. This approach suffers from three major flaws:

  1. Scale Sensitivity: Signals often have wildly different units (e.g., meters vs. liters), making weights incredibly hard to balance.
  2. Intricate Dependencies: Changing one weight often requires retuning all others because the signals are correlated.
  3. Sparse Rewards: In tasks like coding, agents often get a "zero" reward unless the code is perfect, providing no "breadcrumb" signals to help the agent learn incrementally.

The authors address these gaps by asking a fundamental question: What if we stop trying to find the perfect numerical weights and just tell the agent which signals matter most?

Methods: The HERON Framework

The authors introduce HERON, a framework that leverages the natural hierarchy found in many problems. Instead of assigning arbitrary weights, a human expert simply ranks feedback signals by importance (e.g., in traffic management: Queue Length > Wait Time > Delay).

Hierarchical decision tree for trajectory comparison.

The core of HERON is a Hierarchical Decision Tree used for preference elicitation:

  1. Trajectory Comparison: To compare two agent attempts (trajectories $\tau_1$ and $\tau_2$), the system evaluates the most important signal first.
  2. The Margin ($\delta$): If the difference between the two attempts on that top signal is larger than a specific margin ($\delta$), a winner is declared.
  3. Falling Back: If the top signal results in a "tie" (the difference is within the margin), the system moves down the tree to the next most important signal in the hierarchy.
  4. Reward Modeling: These automatically generated "preferences" are used to train a neural reward model using the Bradley-Terry model.
  5. Policy Learning: Finally, the agent is trained using standard RL algorithms (like PPO or Q-learning) against this learned reward model.

The paper also explores an extension using Direct Preference Optimization (DPO) to train the policy directly from these hierarchical preferences, bypassing the reward model entirely to save on computation.

Key Insights

  • Ranking is more "Human" than Weighting: Humans find it much easier to state that "Safety is more important than speed" than to quantify that "Safety is exactly 3.4 times more important than speed." HERON aligns the RL training process with this natural human intuition.
  • Scale Invariance equals Robustness: Because HERON relies on relative comparisons (is A better than B?) rather than absolute values, it is naturally robust. If the environment changes—for example, if car speeds double—the ranking of what's important stays the same, whereas a hand-tuned weighted sum would likely break.
  • Smoothing the Sparse Reward: In code generation, HERON provides a "smoother" reward signal. Instead of a binary "pass/fail," the reward model learns to value programs that are closer to passing based on surrogate signals (like AST similarity), providing better gradients for learning.

Key Results

The authors evaluated HERON across four distinct domains: Multi-Agent Traffic Light Control, Code Generation (APPS and MBPP datasets), Language Model Alignment (HelpSteer dataset), and Robotic Control (PyBullet).

HERON outperforms traditional reward engineering and matches ground truth performance.
  • Superior Performance: In traffic control, HERON-trained policies significantly outperformed those trained with manual reward engineering and even beat the "ground-truth" reward developed in prior literature.
  • Coding Excellence: On the APPS dataset, HERON achieved a Pass@50 score of 10.19, outperforming state-of-the-art baselines like CodeRL (9.81).
  • LLM Alignment: HERON-DPO achieved a 64.57% average win rate against supervised fine-tuning (SFT) models, outperforming standard reward engineering baselines across multiple LLM judges (Claude-3, Eurus-7B, etc.).
  • Tuning Efficiency: HERON is much faster to set up. The authors found that traditional Bayesian optimization for reward weights required 5 to 15 times more iterations to reach the same performance level as HERON.

Limitations and Future Work

The primary limitation acknowledged is the requirement for a strict hierarchy. In some scenarios, two feedback signals might be equally important, or their importance might change depending on the context.

Future work includes exploring Soft Hierarchies (allowing for "ties" in the importance ranking or using randomized decision trees), incorporating Preference Strength (moving beyond binary "A is better than B" to quantify how much better), and developing Dynamic Hierarchies where the importance ranking can be learned or adapted during the training process itself.

Summary updated

BibTeX
@inproceedings{bukharin2025deep,
  author = {Alexander Bukharin and Yixiao Li and Pengcheng He and Tuo Zhao},
  title = {{Deep Reinforcement Learning from Hierarchical Preference Design}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=pw5ySjY11s},
}
Figure