TubeDAgger: Reducing the Number of Expert Interventions with Stochastic Reach-Tubes

Julian Lemmel, Manuel Kranzl, Adam Lamine, Philipp Neubauer, Radu Grosu, Sophie A. Neubauer · DOI

Abstract

Imitation learning (IL) often suffers from covariate shift, where small errors lead agents into unfamiliar states, requiring frequent expert intervention. Traditional interactive IL methods like DAgger rely on learned "doubt models" to trigger interventions, which are often difficult to tune and lead to unstable control switching. We introduce TubeDAgger, an algorithm that utilizes stochastic reach-tubes—a tool from formal verification—to define safe corridors for agent behavior. By querying the expert only when these pre-computed tubes are violated, TubeDAgger significantly reduces the number of expert interventions and context switches while maintaining high performance across complex continuous control tasks.

Introduction

Imitation Learning is a powerful paradigm for teaching autonomous agents through expert demonstrations. However, it is fundamentally limited by covariate shift: if a novice agent deviates slightly from the expert's path, it enters states not covered in its training data, often leading to catastrophic failure.

To mitigate this, algorithms like DAgger (Dataset Aggregation) involve an expert in the training loop to provide corrective labels. While effective, constant expert oversight is expensive. Subsequent variants like SafeDAgger and LazyDAgger introduced "doubt models"—secondary neural networks trained to predict when the primary agent might fail. Unfortunately, these models are notoriously hard to train, require extensive environment-specific tuning, and often result in "jittery" behavior where control rapidly oscillates between the human and the machine.

Methodology

TubeDAgger replaces learned doubt models with a principled approach based on Stochastic Reachability Analysis. The workflow consists of three primary stages:

  1. Pre-computation: Before the novice agent begins training, a small set of expert trajectories is collected. These are processed using GoTube to construct a "reach-tube"—a high-dimensional safe corridor representing the probabilistic bounds of expert behavior over time.
  2. Tube-Based Intervention: During training, the novice agent is allowed to act as long as its state remains within the reach-tube.
  3. Hysteresis Control: To prevent rapid switching (jitter), TubeDAgger employs two thresholds. Control is handed to the expert when the agent exceeds an outer threshold ($\beta_+$). Control is only returned to the novice once the system is safely back within an inner threshold ($\beta_-$).
The three-stage TubeDAgger process: expert trajectory collection, reach-tube construction, and agent training with tube-based intervention.

Experimental Evaluation

The researchers evaluated TubeDAgger against state-of-the-art baselines across several continuous control benchmarks, including a 2D Navigation task and high-dimensional MuJoCo/Brax environments such as Ant, Halfcheetah, and Humanoid.

2D navigation reach-tube visualization alongside the agent's learning progress.

In the 2D navigation task, the reach-tube effectively guides the agent around obstacles. As training progresses, the agent's reward increases steadily, eventually matching the expert's performance while requiring significantly fewer interventions than traditional DAgger variants.

Key Insights and Results

  • Significant Reduction in Expert Burden: In the Halfcheetah environment, TubeDAgger reduced the number of context switches from approximately 536 (with LazyDAgger) to just 84. In simpler tasks like the Inverted Double Pendulum, the agent achieved success with zero context switches after initial data collection.
  • Hyperparameter Robustness: Unlike doubt models that require precise tuning for every new environment, TubeDAgger proved remarkably robust. The same threshold settings often worked across different tasks, reducing the manual overhead for researchers.
  • Principled Safety: By establishing the safety boundary before training begins, the criteria for intervention remain stable, providing a more formal guarantee of safety compared to the "moving target" of a learned doubt model.

Conclusion and Future Work

TubeDAgger demonstrates that formal verification tools like reach-tubes can drastically improve the efficiency of interactive imitation learning. By providing a stable, pre-defined safety corridor, it minimizes the expert's workload and eliminates the instability common in previous methods.

The primary limitation currently is temporal alignment; the reach-tube is indexed by time, which can cause issues if an agent's progress speed varies. Future work will explore dynamic time alignment using particle filtering and the application of TubeDAgger to real-world robotic platforms where expert time and safety are of paramount importance.

Summary updated

BibTeX
@misc{lemmel2025tubedagger,
  author = {Julian Lemmel and Manuel Kranzl and Adam Lamine and Philipp Neubauer and Radu Grosu and Sophie A. Neubauer},
  title = {{TubeDAgger: Reducing the Number of Expert Interventions with Stochastic Reach-Tubes}},
  year = {2025},
  eprint = {2510.00906},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.00906},
}
Figure