Phase VI · Days 85–91 · ~18 hours Prerequisites: 13-imitation-learning Learning Objectives: Understand robot data collection, simulation, evaluation metrics, DROID/Bridge/Open X-Embodiment
| Previous | 13-imitation-learning | Next | 15-vla-architectures |
|---|---|---|---|
Models are only as good as their data. In NLP, internet text provides virtually unlimited training data. In computer vision, billions of images are available online. But for robot learning, data is scarce, expensive, and fragmented across different robots, environments, and task definitions. This note covers the data infrastructure that enables modern robot learning: collection methods, open datasets, simulation, evaluation metrics, and the LeRobot library.
The data bottleneck: while LLMs train on trillions of tokens and vision models train on billions of images, the largest robot datasets have only hundreds of thousands of demonstrations. This scarcity drives the VLA approach: transfer knowledge from internet-scale pretraining to compensate for limited robot data.
| Method | Equipment | Quality | Speed | Embodiment |
|---|---|---|---|---|
| VR controller | Meta Quest, HTC Vive | High | Moderate | Any arm |
| Spacemouse | 3DConnexion device | Good | Slow | Any arm |
| Joint teaching | Physical robot guidance | Good | Slow | Specific robot |
| Puppet arm | Leader-follower arms | Best | Fast | Matched kinematics |
| Mobile phone | Smartphone + IMU | Moderate | Fast | Limited |
| Eye tracking | Gaze + gesture | Low | Moderate | Any arm |
Puppet arm (used in ALOHA, ACT): a leader arm physically identical to the follower. The human moves the leader → the follower mirrors in real time → record the follower’s trajectory. This gives the highest quality demonstrations because the kinematic mapping is exact.
A typical robot demonstration contains:
Demonstration d = {
observations: {
images: [cam1_t0, cam1_t1, ..., cam1_tT, # wrist camera
cam2_t0, cam2_t1, ..., cam2_tT], # external camera
robot_state: [q_t0, q_t1, ..., q_tT], # joint positions
ee_pose: [p_t0, p_t1, ..., p_tT], # end-effector pose
gripper: [g_t0, g_t1, ..., g_tT], # gripper state
},
actions: [a_t0, a_t1, ..., a_tT], # commanded actions
language: "pick up the red cup", # task description
metadata: {
robot: "Franka Panda",
fps: 10,
scene: "kitchen_counter_1",
success: true,
}
}
| Domain | Dataset Size | Collection Cost | Diversity |
|---|---|---|---|
| NLP | ~15T tokens | Free (internet) | Very high |
| Vision | ~5B images | Free (internet) | Very high |
| Robotics | ~2M demos (total) | $10-100/demo | Low |
Each robot demonstration requires: - Physical setup time (minutes) - Human teleoperator (skilled) - Task-specific environment - Real-time recording infrastructure - Quality filtering (remove failed demos)
Cost estimate: collecting 1000 demonstrations ≈ $10K–$100K depending on complexity.
| Quality Factor | Effect on Learning | Mitigation |
|---|---|---|
| Demonstration quality | Bad demos → bad policy | Filter failures, use skilled operators |
| Camera placement | Missing info → wrong actions | Multiple cameras, wrist + external |
| Action recording rate | Low fps → jerky behavior | 10-30 Hz typical |
| Scene diversity | Low diversity → poor generalization | Vary objects, backgrounds, lighting |
| Language annotation | Vague instructions → confusion | Structured, specific descriptions |
The largest cross-embodiment robot dataset initiative:
| Metric | Value |
|---|---|
| Robots | 60+ different robot platforms |
| Skills | 527 distinct skills |
| Demonstrations | ~2M episodes |
| Institutions | 20+ labs worldwide |
| Format | RLDS (Reinforcement Learning Datasets) |
Key insight: training on data from many different robots improves generalization, even to new robots not seen during training (cross-embodiment transfer).
Embodiment diversity: - Franka Panda, Sawyer, UR5, KUKA iiwa (arms) - Google Robot, Bridge Robot (custom platforms) - Stretch RE-1, Hello Robot (mobile manipulation) - Bimanual setups (ALOHA, dual arms)
| Metric | Value |
|---|---|
| Robot | WidowX 250 6DOF arm |
| Demonstrations | 60,096 across 13 skills |
| Environments | 24 different environments |
| Language labels | ✓ (for all demonstrations) |
| Camera | Third-person + wrist camera |
| Cost | ~$1K robot, community-collected |
Why Bridge matters: low-cost robot → community data collection at scale.
| Metric | Value |
|---|---|
| Demonstrations | 76,000 |
| Scenes | 564 unique scenes |
| Buildings | 52 buildings |
| Cities | Multiple cities |
| Robot | Franka Panda |
| Cameras | 3 cameras (2 external + 1 wrist) |
| Language | Crowd-sourced annotations |
Why DROID matters: unprecedented scene diversity. Most datasets are collected in a single lab — DROID spans hundreds of real-world environments.
Training on data from multiple robots (using Open X-Embodiment):
| Model | Single Robot Data | Multi-Robot Data | Improvement |
|---|---|---|---|
| RT-1 | 70% success | - | baseline |
| RT-2-X | - | 76% success | +6% absolute |
| Octo | 45% (single) | 52% (multi) | +7% absolute |
Key finding: cross-embodiment training helps even when the target robot has substantial data of its own. Different robots in different environments provide complementary learning signals.
Current (2024): ~2M robot demonstrations total (across all datasets)
LLM equivalent: ~15T text tokens
Vision equivalent: ~5B images
Gap: ~1000x fewer data points in robotics
Strategies to bridge the gap: 1. VLM pretraining: leverage internet-scale vision-language data 2. Simulation: generate unlimited synthetic demonstrations 3. Cross-embodiment: share data across different robots 4. Foundation models: one model for many tasks (amortize data cost) 5. Data augmentation: geometric transforms, color jitter, etc. 6. Active data collection: only collect demos where the policy struggles
| Dataset | Robot(s) | Demos | Scenes | Language | Year |
|---|---|---|---|---|---|
| RoboNet | 7 robots | 162K | 113 | ✗ | 2020 |
| Bridge V1 | WidowX | 7,200 | 10 | ✓ | 2022 |
| Bridge V2 | WidowX | 60K | 24 | ✓ | 2023 |
| RT-1 Dataset | Google Robot | 130K | Lab | ✓ | 2023 |
| Open X-Emb. | 60+ robots | ~2M | Many | Partial | 2023 |
| DROID | Franka | 76K | 564 | ✓ | 2024 |
| RH20T | Various | 110K | 100+ | ✓ | 2023 |
| Simulator | Physics Engine | GPU Parallel | Rendering | Robotics Focus |
|---|---|---|---|---|
| MuJoCo | MuJoCo | ✓ (MJX) | Basic → improving | Manipulation, locomotion |
| Isaac Gym/Lab | PhysX | ✓✓✓ | High quality | All robotics |
| SAPIEN | PhysX | ✓ | Excellent | Manipulation |
| PyBullet | Bullet | ✗ | Basic | Manipulation, locomotion |
| Gazebo | Multiple | ✗ | Good | ROS ecosystem |
| RLBench | CoppeliaSim | ✗ | Good | Manipulation benchmarks |
Advantages: - Unlimited, free data collection - Parallel environments (1000s simultaneously) - Automatic success labeling - Safe exploration - Perfect state information available - Instant reset
Disadvantages: - Sim-to-real gap (physics, rendering, sensors) - Modeling real-world complexity is hard - Objects, textures, lighting differ from reality - Contact dynamics (friction, deformation) are approximate
1. Domain Randomization: Randomize simulation parameters during training so the policy becomes robust:
| Parameter | Randomization Range | Effect |
|---|---|---|
| Object mass | 0.5× – 2× | Robust to weight variation |
| Friction | 0.3 – 1.0 | Handles different surfaces |
| Camera position | ±5cm, ±10° | Robust to camera mounting |
| Lighting | Random color/intensity | Works under different lights |
| Object texture | Random textures | Appearance robustness |
| Action delay | 0–2 steps | Handles control latency |
Philosophy: if the policy works across thousands of simulated variations, the real world is “just another variation.”
2. System Identification: Measure real-world physics parameters and match them in simulation: - Friction coefficients (measure with force sensors) - Object masses and inertias - Camera intrinsics and extrinsics - Control delays and actuator dynamics
3. Progressive Transfer:
1. Train in simulation with domain randomization
2. Evaluate on real robot with frozen policy
3. Collect real-world correction data
4. Fine-tune with combined sim + real data
Generating demonstrations in simulation: - Script expert policies for simple tasks - Use motion planning for complex tasks - Human teleoperation in VR → simulation - RL-trained policies as “experts” in sim
For VLA pretraining: simulation provides unlimited paired (language, image, action) data, which can be mixed with real data during training.
The primary metric: did the robot complete the task?
Practical considerations: - Evaluate over ≥100 episodes (statistical significance) - Report mean ± standard error - Define “success” precisely (e.g., object lifted >10cm for >2s) - Use automated success detection when possible
| Level | Description | Example | Difficulty |
|---|---|---|---|
| In-distribution | Same objects, same scene | Train and test on kitchen A | Easy |
| Novel objects | Unseen objects, same category | New mugs, trained on other mugs | Medium |
| Novel arrangements | Same objects, different positions | Objects in new configurations | Medium |
| Novel scenes | Completely new environments | Different kitchen entirely | Hard |
| Novel instructions | Unseen language commands | “Stack the blue one on the red one” | Hard |
| Cross-embodiment | Different robot | Train on Franka, test on UR5 | Very hard |
| Metric | What It Measures | When Important |
|---|---|---|
| Completion rate | Partial task progress | Multi-step tasks |
| Path efficiency | Trajectory length / optimal | Navigation tasks |
| Smoothness | Jerk in action trajectory | Real-world deployment |
| Inference latency | Time per action prediction | Real-time control |
| Safety violations | Collisions, joint limits hit | Always |
| Grasp stability | Object held through task | Manipulation |
| Language grounding | Correct object selected | Language-conditioned tasks |
There is no universally accepted benchmark for robot manipulation:
| Benchmark | Tasks | Real/Sim | Standardized? |
|---|---|---|---|
| RLBench | 100 tasks | Sim | ✓ |
| MetaWorld | 50 tasks | Sim | ✓ |
| CALVIN | 34 tasks, language | Sim | ✓ |
| SIMPLER | 4 Google Robot tasks | Sim (→ real) | ✓ |
| Real-world | Varies | Real | ✗ |
The core issue: success on simulated benchmarks doesn’t guarantee real-world performance. But real-world evaluation is expensive and not reproducible across labs.
1. Define success criteria precisely (height, duration, orientation)
2. Randomize initial conditions (object positions, robot start pose)
3. Use ≥100 evaluation episodes
4. Report: mean success rate, std error, 95% confidence interval
5. Separate in-distribution from generalization evaluation
6. Include failure analysis (common failure modes)
7. Video recording for all episodes (for human verification)
LeRobot is HuggingFace’s open-source library for robot learning:
| Feature | Description |
|---|---|
| Datasets | Standardized format, hosted on HuggingFace Hub |
| Pretrained policies | ACT, Diffusion Policy, TDMPC |
| Training scripts | End-to-end training pipelines |
| Simulation | Integration with gym environments |
| Real robot support | ALOHA, Koch v1.1, SO-100, Moss |
| Visualization | Dataset exploration, trajectory plotting |
LeRobot uses a standardized format based on HuggingFace Datasets:
from lerobot.common.datasets.lerobot_dataset import LeRobotDataset
# Load a dataset
dataset = LeRobotDataset("lerobot/pusht")
# Each item contains:
item = dataset[0]
# item["observation.image"] → camera image (C, H, W)
# item["observation.state"] → robot state vector
# item["action"] → action vector
# item["episode_index"] → which episode this belongs to
# item["frame_index"] → timestep within episode
# item["timestamp"] → wall-clock time
| Dataset | Robot | Tasks | Episodes | Source |
|---|---|---|---|---|
lerobot/pusht |
2D sim | Push T-shape | 206 | LeRobot |
lerobot/aloha_sim_* |
ALOHA sim | Bimanual tasks | Varies | ACT |
lerobot/xarm_* |
xArm sim | Manipulation | Varies | Community |
lerobot/umi_cup_in_the_wild |
UMI | Cup manipulation | 1000+ | UMI |
| Community datasets | Various | Various | Varies | HF Hub |
# Train ACT on PushT
from lerobot.scripts.train import train
train(
dataset_repo_id="lerobot/pusht",
policy="act",
env="pusht",
training_steps=100_000,
batch_size=64,
lr=1e-4,
action_chunk_size=100,
# ...
)
# Train Diffusion Policy on PushT
train(
dataset_repo_id="lerobot/pusht",
policy="diffusion",
env="pusht",
training_steps=200_000,
batch_size=64,
lr=1e-4,
num_diffusion_steps=100,
num_inference_steps=10, # DDIM steps at inference
# ...
)
from lerobot.scripts.eval import eval_policy
results = eval_policy(
policy_path="outputs/pusht_act/checkpoints/last",
env="pusht",
n_episodes=100,
)
# results["success_rate"], results["mean_reward"], ...
from lerobot.common.datasets.lerobot_dataset import LeRobotDataset
# Create a new dataset
dataset = LeRobotDataset.create(
repo_id="your-username/your-dataset",
fps=10,
robot_type="koch",
features={
"observation.image": {"dtype": "video", "shape": (3, 480, 640)},
"observation.state": {"dtype": "float32", "shape": (6,)},
"action": {"dtype": "float32", "shape": (6,)},
},
)
# Add episodes from teleoperation
for episode_data in recorded_episodes:
for frame in episode_data:
dataset.add_frame(frame)
dataset.save_episode()
# Push to Hub
dataset.push_to_hub()
See Project 06 for the full capstone.
Summary: 1. Select a manipulation task from LeRobot datasets 2. Train BC baseline, ACT, and Diffusion Policy 3. Evaluate all three on 100 episodes 4. Compare: success rate, trajectory quality, multimodality 5. Write comparison report with visualizations
| Topic | Minimum Competency | Target Competency |
|---|---|---|
| RL foundations | Explain MDP, PPO | Implement REINFORCE, use PPO library |
| Diffusion models | Explain DDPM training/sampling | Implement simple DDPM |
| Flow matching | Explain the concept | Compare with diffusion |
| Behavioral cloning | Implement BC | Analyze failure modes |
| Action chunking | Explain why it helps | Implement and compare chunk sizes |
| ACT | Explain architecture | Implement simplified version |
| Diffusion Policy | Explain architecture | Train on real dataset |
| Robot datasets | Know major datasets | Use LeRobot to load and train |
| Evaluation | Know metrics | Run proper evaluation protocol |
Robot data is the bottleneck: orders of magnitude less data than NLP/vision. This scarcity drives the VLA approach of leveraging pretrained VLMs.
Open datasets (Open X-Embodiment, DROID, Bridge V2) are enabling cross-embodiment learning, where data from different robots contributes to a shared model.
Simulation provides unlimited data but with a reality gap. Domain randomization and progressive transfer help bridge this gap.
Evaluation in robotics is harder than in NLP/vision: no standard benchmarks, success criteria vary by task, and real-world evaluation is expensive.
LeRobot provides a practical, standardized framework for training and evaluating robot policies on open datasets.
| Paper | Year | Key Contribution |
|---|---|---|
| Open X-Embodiment Collaboration | 2023 | Cross-embodiment dataset and transfer |
| Khazatsky et al., “DROID” | 2024 | Large-scale diverse robot data |
| Walke et al., “Bridge V2” | 2023 | Low-cost community data collection |
| Brohan et al., “RT-2-X” | 2024 | Cross-embodiment VLA evaluation |
| Cadene et al., “LeRobot” | 2024 | Open-source robot learning library |
| Todorov et al., “MuJoCo” | 2012 | Physics simulation for robotics |
| Makoviychuk et al., “Isaac Gym” | 2021 | GPU-parallel robot simulation |
| James et al., “RLBench” | 2020 | Standardized manipulation benchmarks |
| Tobin et al., “Domain Randomization” | 2017 | Sim-to-real via randomization |
| Li et al., “SIMPLER” | 2024 | Simulated evaluation for real policies |
More diverse data = better compression of the robot-world interaction. Each demonstration teaches the model about objects, physics, and task structure. Cross-embodiment data teaches it that the underlying skills (grasping, placing, pushing) are shared across different robot bodies — the model compresses what is invariant across embodiments.
The data challenge explains the VLA architecture: since robot data is scarce, we compensate by pretraining on internet-scale language and vision data. The VLM backbone compresses billions of images and text documents into a world model that only needs a few thousand demonstrations to connect to physical action.
Cross-embodiment = compressing knowledge that transfers across robot bodies. This is the ultimate compression: what’s universal about manipulation, regardless of whether you have a 6-DOF arm or a humanoid hand?
Phase VI is complete! You now understand: - RL foundations and why pure RL struggles in robotics - Diffusion models and flow matching for generative action prediction - Imitation learning: BC, ACT, Diffusion Policy - Robot data ecosystems and evaluation
In Phase VII (Study Note 15), we’ll finally study the VLA architectures that unify all of these components: RT-2, Octo, π₀, and OpenVLA. You’ll see how everything we’ve learned — transformers, vision encoders, VLMs, diffusion, imitation learning — comes together into a single model that reads language, sees images, and outputs robot actions.