DataMIL: Selecting Data for Robot Imitation Learning with Datamodels

Shivin Dass, Alaa Khaddaj, Logan Engstrom, Aleksander Madry, Andrew Ilyas, Roberto Martín-Martín

TL;DR

DataMIL is a novel framework that leverages the "datamodels" paradigm to select the most helpful demonstrations from massive, diverse robot datasets for specific target tasks. By moving beyond simple visual or semantic similarity and directly optimizing for policy performance, DataMIL achieves significant success rate improvements across over 60 tasks in both simulation and the real world.

What Problem Does This Paper Address?

In the quest to build "foundation models" for robotics, researchers have amassed enormous datasets like Open X-Embodiment (OXE), containing millions of trajectories across different robots and environments. While training on all available data creates "generalist" policies, these models often struggle with specific, specialized tasks and require further tuning.

The standard approach is to co-train the model on a small set of task-specific "target" data alongside a curated subset of the larger "prior" dataset. However, the critical question remains: Which data should we pick?

Conceptual comparison of heuristic data selection versus DataMIL.

Current methods typically rely on heuristics—selecting data that "looks" like the target (visual similarity) or has similar language descriptions. The problem is that visually similar data isn't always helpful; in fact, some data can be "harmful," confusing the policy and degrading downstream performance. We need a principled way to select data based on its actual impact on the policy's success, rather than relying on human notions of similarity.

Methods

To address this, the authors introduce DataMIL (Datamodels for Imitation Learning), which adapts the datamodels framework for end-to-end, performance-aware data selection in robotics.

The DataMIL framework and datamodel estimation techniques.

1. The Datamodels Paradigm

Instead of filtering data based on appearance, DataMIL focuses on the learning process. It treats the training algorithm as a black box and estimates an "influence score" for every trajectory in the prior dataset. If adding a specific trajectory to the training set improves the final model's performance on the target task, it receives a high score.

2. The Surrogate Metric

Normally, measuring "performance" in robotics requires expensive, time-consuming physical rollouts in the environment. Doing this thousands of times during data selection is intractable. DataMIL solves this by using a differentiable surrogate loss: the policy's validation loss on a small, held-out set of target demonstrations.

3. Scaling with Metagradients

To make this computationally feasible for large models (like the Octo transformer), the authors employ a metagradient-based estimator. Instead of retraining the model thousands of times on different data subsets, they use influence functions to estimate how a tiny change in a data point's weight would affect the final target loss. This allows them to score millions of frames efficiently.

4. Clustering and Co-training

To reduce noise, DataMIL scores data at the trajectory or sub-trajectory level rather than as individual frames. Once scored, the top percentage of the most "influential" data is combined with the target data to train the final specialized policy.

Datasets

The researchers evaluated DataMIL across a rigorous set of benchmarks:

  • MetaWorld: 50 distinct manipulation tasks in simulation.
  • LIBERO: 10 long-horizon tasks (LIBERO-10) using a prior dataset of 90 tasks (LIBERO-90).
  • Open X-Embodiment (OXE): The largest open collection of real-world robot datasets, testing on tasks involving Franka, Tiago, and Droid robots.

Key Insights and Ideas

  • Similarity $\neq$ Utility: A surprising finding is that "visually similar" data is often suboptimal. DataMIL frequently selects data from different robots or scenes that share the "essence" of the task (e.g., a specific tabletop interaction) while discarding similar-looking data that contains noisy or conflicting actions.
  • Identifying Harmful Data: DataMIL excels at identifying "harmful" samples—data points that actively increase the target loss. Heuristic methods often include these samples because they appear relevant, but DataMIL correctly learns to drop them.
  • Zero-Shot Embodiment Transfer: In a "Tiago-Sink" experiment, DataMIL successfully selected useful data for a robot (Tiago) that was never seen in the prior dataset, transferring knowledge from other embodiments by focusing on task-relevant dynamics.

Key Results

  • Simulation Mastery: In MetaWorld, DataMIL outperformed state-of-the-art similarity-based baselines by 10% in average success rate.
  • LIBERO Success: On the LIBERO-10 benchmark, DataMIL achieved a 37.76% success rate, surpassing the previous best method, STRAP (34.96%).
  • Real-World Gains: On the challenging real-world "Tiago-Sink" task, DataMIL reached a 64.1% success rate, while the best baseline (Bridge-based retrieval) only managed 46.2%.
  • Robustness: Across all evaluations, DataMIL demonstrated more consistent performance than heuristics, which often worked well on one task but failed completely on another.

Limitations and Future Work

  • Computational Overhead: While metagradients are faster than brute-force regression, estimating a datamodel still incurs roughly 3–5x the computational cost of a standard training run.
  • Hyperparameter Sensitivity: The method relies on choosing the right selection ratio (e.g., the top 10%) and cluster size, which currently requires some trial and error.
  • Scaling to Foundation Models: While successful with Octo-Small, applying this framework to the absolute largest foundation models (with billions of parameters) remains a significant engineering challenge.
  • Multi-task Selection: Most experiments focused on selecting data for a single target task. Extending this approach to curate a single dataset that optimizes a wide range of tasks simultaneously is a promising direction for future research.

Summary updated

BibTeX
@inproceedings{dass2026datamil,
  author = {Shivin Dass and Alaa Khaddaj and Logan Engstrom and Aleksander Madry and Andrew Ilyas and Roberto Martín-Martín},
  title = {{DataMIL: Selecting Data for Robot Imitation Learning with Datamodels}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=AcTsKglDdh},
}
Figure