Deep Reinforcement Learning from Hierarchical Weak Preference Feedback

Alexander Bukharin, Yixiao Li, Pengcheng He, Weizhu Chen, Tuo Zhao · DOI

Abstract

Designing reward functions for Reinforcement Learning (RL) often involves "reward engineering"—the tedious manual tuning of numerical weights for multiple, often conflicting, feedback signals. This paper introduces HERON (Hierarchical prEference-based ReinfOrcement learNing), a framework that replaces numerical weights with a simple importance ranking. By employing a hierarchical decision tree to establish preferences between agent trajectories, HERON learns robust reward models that outperform traditional hand-crafted functions across diverse domains including traffic management, code generation, and Large Language Model (LLM) alignment.

Introduction: The Pitfalls of Reward Engineering

In Reinforcement Learning, the reward function serves as the primary signal guiding an agent's behavior. However, defining this function for real-world applications is notoriously difficult. Standard practice involves manually picking weights for various signals (e.g., in traffic control, balancing vehicle throughput against waiting time). This "black art" of reward engineering suffers from three major flaws:

  1. Scale Sensitivity: Signals with different magnitudes are difficult to balance.
  2. Intricate Dependencies: Correlated signals mean changing one weight often requires retuning all others.
  3. The Drowning Effect: A large improvement in a minor signal can mathematically outweigh a failure in a critical one.

HERON seeks to move away from these "magic numbers" toward a more intuitive, hierarchical approach based on human-like decision-making.

The HERON Framework

HERON treats reward design as a preference-elicitation problem. Instead of a weighted sum, it utilizes a Hierarchical Decision Tree based on a predefined importance ranking (e.g., Signal A > Signal B > Signal C).

To compare two trajectories, the system first evaluates the primary signal. If the difference exceeds a margin ($\delta$), a preference is established. If the trajectories are roughly equivalent within that margin, the system moves down the hierarchy to the next signal. This automated process generates a dataset of pairwise comparisons without requiring exhaustive human labeling.

Performance of HERON under different hierarchical rankings of feedback signals.

The resulting preferences are used to train a neural reward model ($R_\phi$) using the Bradley-Terry model. Finally, the agent is trained using standard RL algorithms (like PPO) or Direct Preference Optimization (DPO), guided by this learned reward model.

Experimental Evaluation

The researchers evaluated HERON across four diverse domains:

  • Multi-Agent Traffic Light Control: Optimizing vehicle throughput and wait times in a 2x2 grid.
  • Code Generation: Testing on the APPS and MBPP datasets to evaluate problem-solving and generalization.
  • Language Model Alignment: Aligning the Phi-2 model using the HelpSteer dataset for correctness and helpfulness.
  • Robotic Control: Standard PyBullet environments (Ant, Half-Cheetah, etc.).

Key Results

HERON demonstrated significant improvements over traditional methods across all benchmarks. In traffic control simulations, it consistently achieved higher ground-truth rewards than both manual reward engineering and ensemble-based preference methods.

Evaluation curve showing HERON's superior ground truth reward compared to traditional reward engineering and ensemble methods.

In code generation, HERON achieved a Pass@50 score of 10.19 on the APPS dataset, surpassing state-of-the-art models like CodeRL (9.81). For LLM alignment, HERON-DPO achieved a 64.57% win rate against supervised fine-tuning baselines, significantly outperforming reward engineering approaches.

Discussion and Insights

The success of HERON highlights several key advantages of hierarchical preferences. Ranking signals by importance is significantly easier for experts than assigning precise numerical values. Furthermore, because HERON relies on relative comparisons, it is robust to shifts in data scale (e.g., doubling the number of cars in a simulation). In domains like code generation, HERON allows secondary "surrogate" signals (like syntax similarity) to guide learning even when the primary success signal (passing tests) is sparse.

Limitations and Future Work

Currently, HERON assumes a strict hierarchy. Future research may explore randomized trees to handle ties between equally important signals or using the "depth" of the decision in the tree to weight the strength of the preference.

Summary updated

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