Abstract
Training Large Language Model (LLM) agents for long-horizon tasks is challenging due to a "granularity mismatch" in feedback. Trajectory-level feedback suffers from poor credit assignment, while step-level feedback is often noisy and lacks context. This paper introduces Hierarchical Preference Learning (HPL), a framework that bridges this gap by optimizing agents across trajectory, step, and an intermediate "action-group" level. Guided by a dual-layer curriculum that scales sub-task complexity and sample difficulty, HPL demonstrates significant performance gains across diverse benchmarks including ALFWorld, WebShop, and InterCode-SQL.
Introduction: The Granularity Mismatch
Direct Preference Optimization (DPO) has become a standard for aligning LLMs with human preferences. However, when applying DPO to autonomous agents performing complex, multi-step tasks (like "clean the kitchen"), researchers face a fundamental granularity mismatch:
- Trajectory-level DPO: Compares entire successful vs. failed paths. While stable, it suffers from poor credit assignment—it is difficult for the model to identify which specific action in a 30-step sequence caused the eventual failure.
- Step-level DPO: Evaluates every single action. While fine-grained, it is statistically noisy and data-inefficient. Many actions only make sense when viewed as part of a larger sub-task (e.g., "opening the fridge" is only valuable if the agent is "retrieving an item").
To address this, the authors propose a "Goldilocks" level of supervision: Action Groups. By grouping actions into semantically meaningful units, the agent can learn the relationship between sequences of actions and their intermediate goals.
Hierarchical Preference Learning (HPL)
The HPL framework introduces a multi-granularity optimization approach that combines Behavior Cloning (BC) with DPO losses at the trajectory, step, and group levels. This ensures the agent stays grounded in expert behavior while learning from preferences at every scale.
Action Group Segmentation
HPL partitions expert trajectories into action groups using three primary strategies:
- Fixed Heuristics: Splitting by a fixed number of steps.
- Uncertainty-Based: Splitting when the model’s entropy (uncertainty) spikes, typically at sub-task boundaries.
- Semantic Segmentation: Using a teacher model (like GPT-4o) to identify semantically coherent sub-goals (e.g., "Find the tomato," "Clean the tomato"). Semantic segmentation was found to be the most effective strategy.
Dual-Layer Curriculum
Instead of training on all data simultaneously, HPL uses a 3-phase curriculum based on a 2D matrix of difficulty:
- Sub-task Complexity (Group Length): Shorter groups are introduced first as they are easier to master than long, multi-step sequences.
- Sample Discriminability (Difficulty): Pairs with a large reward gap (clear winner vs. clear loser) are shown before subtle, hard-to-distinguish pairs.
Experimental Evaluation
The framework was evaluated on three diverse, long-horizon benchmarks: ALFWorld (embodied AI), WebShop (e-commerce navigation), and InterCode-SQL (interactive code generation).
Key Results
HPL consistently outperformed state-of-the-art methods like ETO (trajectory-level) and IPR (step-level) across all benchmarks:
- Generalization: On unseen ALFWorld scenarios, HPL (Semantic) achieved a success rate of 84.08%, a nearly 6-point lead over the previous best method.
- Model Scaling: The benefits held true for both Qwen2.5-1.5B and 7B models, with the 7B variant reaching an average score of 67.28 across all tasks.
- Ablation: Removing the group-level DPO caused the most significant performance drop, proving it is the most critical component of the hierarchical stack.
Conclusion
Group-level DPO acts as a crucial bridge in agent training. It provides a "structural prior" by focusing on reusable skills (sub-tasks) and offers a "statistical benefit" by averaging out the noise found in single-step rewards. While the reliance on a teacher model for semantic segmentation is a limitation, HPL demonstrates that aligning agent learning with human-centric sub-goals is far more effective than arbitrary mathematical splits.
Summary updated