DOCI: Deployment-Time Online Imitation Learning from Corrective Demonstrations

Saleh Momeni, Bing LiuNeurIPS 2026

TL;DR

When a robot fumbles a task in the real world, you want to show it the right move once and have it learn on the spot—without shutting it down to retrain on terabytes of past memories. DOCI makes this real-time, post-deployment learning possible by trading slow, forgetful gradient descent for frozen random projections and closed-form linear algebra. The result is a robot policy that updates in 2.5 seconds, never forgets what it learned yesterday, and outperforms heavy-hitting deep learning baselines.

What Problem Does This Paper Address?

Teaching robots via Behavioral Cloning (BC)—essentially supervised learning from expert demonstrations—works great in the lab. However, once deployed into messy, dynamic homes or warehouses, static policies inevitably hit novel edge cases and fail.

To fix a failing robot after deployment, standard interactive frameworks like DAgger collect human corrections, toss them onto the pile of all historical data, and retrain the neural network from scratch. As the dataset grows, retraining takes longer and demands more compute and storage, interrupting the robot's operation.

What if we ditch the historical data and just fine-tune the model on the new corrections in real time? Enter catastrophic forgetting: updating a neural network via gradient descent on new scenarios overwrites the weights it needed for previously mastered ones. While Continual Learning (CL) usually studies how to learn new tasks sequentially, these authors tackle an underexplored cousin: continually improving a single task on the fly, strictly online, with zero replay of past demonstrations.

Methods

To dodge catastrophic forgetting, the authors introduce DOCI (Deployment-time Online Corrective Imitation). Their core realization is that online ridge regression can update a model incrementally using compact "sufficient statistics" matrices—producing the exact mathematical equivalent of training on all historical data simultaneously—provided the underlying feature space never changes.

Figure 1: Overview of the DOCI pipeline. The policy receives a visual observation o, processed by a ViT encoder, and a low-dimensional state vector s. These inputs are mapped into a fixed random feature space to form the current context representation, which is then integrated with the temporal context h encoded by an echo state network. The resulting latent representation z is mapped to an action sequence via a ridge regression layer.

Instead of learning features via backpropagation (which causes representations to drift and invalidates past statistics), DOCI builds a rich, completely frozen non-linear feature pipeline:

  • Current Context: Camera images pass through a frozen, pretrained DINOv2 Vision Transformer (ViT). Both the resulting visual embedding and the robot's low-dimensional state vector are projected into higher dimensions using fixed Gaussian random matrices with ReLU activations, then fused together.
  • Temporal Memory via Echo State Networks (ESNs): Because good decisions often depend on recent history, DOCI feeds past contexts and actions into an ESN—a recurrent network whose weights are randomly initialized, scaled for stability, and permanently frozen.
  • Closed-Form Policy Head: The current context and ESN memory merge via one final random projection into a 5,000-dimensional latent vector. A single trainable linear layer maps this vector to short sequences of future actions ("action chunking"). When new expert corrections arrive, DOCI simply adds the new feature correlations to two running matrices and solves for the globally optimal weights in closed form. No epochs, no learning rates, no gradients.

Datasets

Rather than introducing a new dataset, the authors formulate a new online evaluation protocol using the established Meta-World benchmark (in the MuJoCo simulator). They evaluate across six diverse manipulation tasks: pick-place, push, handle-pull, box-close, hand-insert, and shelf-place. Policies start with 10 scripted expert demonstrations; during deployment, failures trigger a corrective demonstration, and the policy updates after every 5 new corrections (up to 25).

Key Insights and Ideas

  • Randomness isn't arbitrary; it's a kernel trick: Multiplying inputs by fixed random Gaussian weights and applying ReLUs sounds suspiciously simple, but mathematically, inner products in this space approximate the deterministic arc-cosine kernel. Linear regression on top of these frozen features acts as a powerful non-linear predictor in the original space—giving DOCI deep-learning expressivity with linear-algebra stability.
  • Exact equivalence to full retraining: Because the feature extractor, random projections, and ESN never drift, updating DOCI's two summary matrices on a new batch of 5 demonstrations yields the identical policy to running ridge regression on the entire history of demonstrations from day one. Catastrophic forgetting isn't just mitigated; it is structurally impossible.
  • Reservoir computing shines in robotics: Standard RNNs or Transformers require backpropagation through time, which breaks replay-free online learning. Using an Echo State Network gives the robot trajectory memory for free, proving crucial in ablations (dropping ESN on hand-insert slashes initial success from 47.1% to 39.5%).

Key Results

Tested against five state-of-the-art BC baselines—including Diffusion Policy (DP), Action Chunking with Transformers (ACT), Behavior Transformer (BeT), Implicit BC (IBC), and R3M—adapted for sequential fine-tuning:

Figure 3: Comparison of the online setting (Left) and DAgger-style joint training on all accumulated demonstrations (Right). Results are averaged over all tasks. Top: success rate (↑). Bottom: action deviation from the expert (↓), measured as mean Euclidean distance. All methods are initially trained on 10 expert demonstrations, and the x-axis denotes the number of additional demonstrations collected through expert intervention.
  • Consistent Online Improvement: DOCI is the only method that steadily improves across updates. On hand-insert, DOCI starts behind Diffusion Policy (46.5% vs. 65% success), overtakes every baseline after just 5 interventions, and hits 96% success after 25 interventions while baselines thrash and degrade due to forgetting.
  • Beats Full-Dataset Retraining: Averaged across all six tasks after 25 interventions, DOCI's lightweight online updates reach an 88.9% success rate—not only crushing online baselines, but even edging out full DAgger-style joint retraining of ACT (86.0%).
  • Massive Speedups: Updating DOCI on 5 corrective demonstrations takes just 2.5 seconds (mostly spent running images through the ViT), making it >7× faster than the quickest online fine-tuning baseline (R3M at 18.9s) and >170× faster than the quickest full-retraining baseline (DP at 429.1s; IBC takes ~36 minutes). Full-trajectory inference is also fastest at 0.85 seconds.

Limitations and Future Work

The authors note three primary trade-offs:

  1. Expressivity ceiling: Fixed random features can be less expressive than end-to-end learned, task-specific representations in certain complex scenarios (and dimensions above 5,000 hit diminishing returns while increasing memory).
  2. Pretrained backbone dependency: DOCI leans heavily on a frozen vision encoder (DINOv2) already knowing how to extract meaningful task features.
  3. Passive querying: Currently, an expert automatically steps in on every failed episode. In the real world, human attention is scarce; figuring out when the robot should actively query a human for help remains an open avenue for future work.

Summary updated

Abstract

Behavioral cloning (BC) is a powerful paradigm for learning robotic policies from demonstrations. However, most existing approaches operate in an offline setting and do not address a critical requirement for real-world deployment: the ability to continually improve policies after deployment. While interactive imitation learning methods such as DAgger enable improvement by collecting additional data, they rely on repeated retraining over an ever-growing dataset, leading to increasing computational cost and limited scalability. In practice, robotic systems must adapt continuously during deployment while remaining operational, making retraining on all accumulated data impractical. In this work, we introduce an online formulation of interactive BC, where the policy is updated in real time with expert corrections to address failure cases, with no access to past data. This setting presents a fundamental challenge due to catastrophic forgetting, which degrades previously acquired behaviors when learning from new data. To address this, we propose DOCI (Deployment-time Online Corrective Imitation), a novel method based on online ridge regression and random projections that enables efficient policy updates without gradient-based retraining. We evaluate our approach on a range of manipulation tasks and show that it enables continuous and stable improvement after deployment, outperforming state-of-the-art BC baselines.
BibTeX
@inproceedings{momeni2026doci,
  author = {Saleh Momeni and Bing Liu},
  title = {{DOCI: Deployment-Time Online Imitation Learning from Corrective Demonstrations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=C1sXJuHXuz},
}
Figure