Abstract
Learning from Demonstrations (LfD) via Behavior Cloning (BC) works well on multiple complex tasks. However, a limitation of the typical LfD approach is that it requires expert demonstrations for all scenarios, including those in which the algorithm is already well-trained. The recently proposed Learning from Interventions (LfI) overcomes this limitation by using an expert overseer. The expert overseer only intervenes when it suspects that an unsafe action is about to be taken. Although LfI significantly improves over LfD, the state-of-the-art LfI fails to account for delay caused by the expert's reaction time and only learns short-term behavior. We address these limitations by 1) interpolating the expert's interventions back in time, and 2) by splitting the policy into two hierarchical levels, one that generates sub-goals for the future and another that generates actions to reach those desired sub-goals. This sub-goal prediction forces the algorithm to learn long-term behavior while also being robust to the expert's reaction time. Our experiments show that LfI using sub-goals in a hierarchical policy framework trains faster and achieves better asymptotic performance than typical LfD.
Introduction
Traditional Learning from Demonstrations (LfD) is data-hungry and inefficient because experts must demonstrate tasks the agent may already know. Learning from Interventions (LfI) offers a more efficient alternative: the agent performs the task, and a human expert only intervenes when an unsafe action is imminent. However, current LfI models suffer from two major flaws: human reaction delay, which leads to training on "bad" states, and short-sightedness, where models only learn immediate reactive moves rather than long-term intent.
Methodology
To address these limitations, we propose a hierarchical approach to LfI that combines sub-goal prediction with a backtracking mechanism.
Hierarchical Policy and Sub-goals
Instead of a single network mapping images directly to actions, the policy is split into two levels:
- Top-level Policy: Predicts a "sub-goal" embedding representing the desired state $k$ steps in the future.
- Bottom-level Policy: Maps the current state and the predicted sub-goal to specific control actions (e.g., steering).
Sub-goals are naturally more robust to momentary reaction delays than raw actions. To train these without ground-truth labels, we utilize a Triplet Network and Hindsight Experience Replay logic, forcing the model to align predicted sub-goals with states actually reached in successful trajectories.
Backtracking for Reaction Delay
To mitigate human reaction time, we introduce a "Backtracking" trick. When an expert intervenes at time $t$, the algorithm looks back at the previous $M$ time steps. It interpolates actions between the last safe state and the expert's correction, effectively rewriting history to show how the agent should have acted to avoid the danger entirely.
Experimental Evaluation
The approach was evaluated in two distinct environments:
- CARLA Simulator: A high-fidelity 3D driving environment where the agent navigated a town with 80 other vehicles using ResNet-50 features.
- Real-World RC Truck: A 1/10 scale truck equipped with Nvidia TX2 and multiple cameras, testing the model's robustness to sensor noise and pedestrian-rich environments.
Key Results and Insights
- Superior Performance: The combined sub-goal and backtracking model allowed agents to travel significantly further without intervention compared to standard behavior cloning baselines.
- Data Efficiency: As the agent improved, the frequency of required interventions dropped sharply, achieving high autonomy with much less expert time than standard LfD.
- The $k$ Trade-off: We found a "sweet spot" for sub-goal prediction at $k=5$ (approx. 1.25 seconds ahead). Smaller values lead to reactive behavior, while larger values make sub-goals difficult for the low-level policy to reach.
- Real-World Viability: The system successfully transitioned from simulation to physical hardware, proving its robustness in complex human-robot interaction scenarios.
Conclusion and Future Work
While effective, the current backtracking method relies on heuristic interpolation. Future work could explore more principled ways to approximate an expert's true intended policy. Additionally, integrating discrete logical constraints, such as traffic lights and stop signs, into the hierarchical framework remains an important next step for full-scale autonomous driving.
Summary updated