Abstract
Inverse Reinforcement Learning (IRL) aims to recover an expert's reward function from observed behavior. However, traditional IRL often ignores task structure, assumes reward homogeneity, and neglects causal dependencies between subtasks. We present Context-Hierarchy IRL (CHIRL), a framework that organizes complex behaviors into a hierarchical Directed Acyclic Graph (DAG). By mapping this hierarchy to a modular neural network, CHIRL enables efficient data sharing and state abstraction. Evaluations on grid-world benchmarks and the CARLA autonomous driving simulator demonstrate that CHIRL significantly improves learning performance and scalability compared to standard "flat" IRL methods.
Introduction
Learning from demonstrations has seen success in various domains, yet scaling IRL to complex, multi-stage tasks remains challenging. Standard methods typically learn from scratch without leveraging prior knowledge and assume a single, uniform reward function across all demonstrations. In reality, expert behavior often changes based on context—such as a driver's intention to turn or a taxi driver's current sub-goal. CHIRL addresses these limitations by modeling context hierarchically, allowing for a "divide and conquer" approach to reward learning.
Methodology: Context Hierarchies and Modular Rewards
The core of CHIRL is the representation of the reward function as a composition of neural network modules rather than a monolithic block.
Context Hierarchy (DAG)
CHIRL models the environment's context as a Directed Acyclic Graph (DAG). Each node in this graph represents a context variable or a specific subtask, while edges denote dependencies. For example, in a taxi domain, the tasks of picking up a passenger (GET) and dropping them off (PUT) both rely on a shared navigation (NAV) capability.
Modular Reward Representation
Instead of a single large network, CHIRL associates each node in the DAG with a specific neural network module. To compute the reward for a given context, the system traverses the path from the root to the corresponding leaf node, concatenating the outputs of the modules encountered along that path.
This structure facilitates data sharing: a module shared by multiple paths (like navigation) receives training signals from all relevant demonstrations, regardless of the high-level goal. Furthermore, it enables state abstraction, as individual modules can be designed to ignore state features irrelevant to their specific subtask, making the learning process faster and more stable.
Experimental Evaluation
The authors evaluated CHIRL against baselines like DeepIRL and MaxEnt IRL across several benchmarks:
- GoalNav & JctNav: Grid-world tasks requiring navigation to specific goals while following traffic rules (e.g., left/right side) and intentions (e.g., straight/turn).
- Taxi Domain: A classic hierarchical task where an agent must navigate, pick up, and drop off passengers.
- CARLA Simulator: A high-fidelity environment where the agent learns cost maps from raw RGB images for autonomous driving.
Key Results
- Superior Performance: CHIRL consistently achieved lower Expected Value Difference (EVD) than flat baselines, indicating a more accurate recovery of the true reward function.
- Efficiency: In the Taxi domain, CHIRL reduced the number of learnable parameters from 120,000 to just 1,250, leading to significantly faster convergence.
- Scalability to Vision: In CARLA, CHIRL successfully handled high-dimensional visual inputs, outperforming baselines in log-likelihood and path similarity metrics (Modified Hausdorff Distance).
Discussion and Conclusion
CHIRL demonstrates that incorporating structural prior knowledge through context hierarchies is a powerful way to scale IRL. By decomposing rewards into modular components, the algorithm gains the benefits of state abstraction and efficient data reuse. While the current approach relies on a pre-defined hierarchy and tabular inner-loop solvers, future work aims to extend CHIRL to continuous spaces and automated hierarchy discovery, potentially bridging the gap between low-level control and high-level task planning.
Summary updated