← All projectsLearning by implementation · updated October 2026
PushT · Imitation learning · PyTorch
Learning to push.
One task. Four ways to learn an action.
Four standalone models, three LeRobot integrations, and one contact task. The latest recordings connect what the demonstrations teach, how the policies act, and why a completed training run can still miss the goal.
A policy’s world
See it. Push it. Align it.
Move the T-shaped block onto its target using contact with a circular pusher.
01 / An actual policy rolloutgym-pusht simulation · Diffusion · seed 1002
01 / Learning through a complete system
From an equation to an episode.
What changes when a policy predicts actions directly, denoises them, decodes a latent action chunk, or follows a learned flow?
This project studies those mechanisms through four readable standalone implementations. Each includes its own data loader, visual encoder, policy, training loop, checkpoint, and inference path. Three LeRobot integrations add a second route through established training and evaluation infrastructure.
PushT keeps the task small enough to inspect. The policy sees an image and the pusher’s position, then issues absolute position targets. Contact moves and rotates the block. A good-looking action prediction only becomes useful if repeated execution brings the block onto its goal.
Project focus
Model implementation, training & evaluation
Core tools
PyTorch · LeRobot · gym-pusht · Docker
Source data
Local PushT v2 · 206 demonstrations · 25,650 frames
Latest evidence
22 October 2026 · ten shared starts per policy
Completed training paths7
Four standalone + three LeRobot integrations
Best native success count3/10
Both Diffusion tracks · shared-start snapshot
Demonstration endings above 95%0/206
The success target exceeds the demonstrated endings
The snapshot combines newly recorded standalone rollouts with LeRobot’s retained final training checks. The planned 100-episode evaluation across all seven paths has not been run.
02 / Inspect what the policy learns from
The demonstration stops short.
The 206 human demonstrations end at 77.2–90.1% target coverage. The simulator requires more than 95%.
The median ending covers 85.0% of the goal. This creates a useful question for imitation learning: can a policy trained to reproduce those actions place the block more precisely than the demonstrated endpoints? The mismatch helps interpret the results, but it does not establish the cause of a policy’s failures.
02 / Recorded demonstration & the policy’s viewPose replay · original dataset images · 1× · silentRead a description of the demonstration
A blue disc pushes and rotates the gray T toward the green target. The larger scene is reconstructed from recorded body poses; the neighboring low-resolution view contains the original 96 × 96 training images. Both show the same demonstration frames. This is a dataset replay, not a newly simulated policy or a camera recording.
03 / Demonstrated endpoints and the evaluation target use different levels of precision.
The dataset contains 25,650 frames. Demonstrations range from 49 to 246 frames, with a median of 122. Coverage was checked from the recorded poses with polygon intersection; no image-based alignment estimate is used.
03 / Four action representations
Change how an action takes shape.
All four standalone paths consume visual observations and pusher coordinates. Their objectives, temporal windows, parameter counts, and feedback schedules differ. The study compares complete configured policies.
01 / Behavior cloning→
Regress the chunk.
A ResNet-18 encoder and MLP map the observation directly to eight actions. Training minimizes mean squared error against demonstration actions.
Image + state→MLP→8 actions
Read the inference behavior
One observation produces a chunk. All eight actions execute before the next prediction. The trained policy is deterministic in evaluation mode.
02 / Diffusion policy≈
Denoise a sequence.
A conditional temporal UNet learns to predict added noise. At inference, 100 reverse steps turn Gaussian noise into a 16-action sequence.
Noise→100 denoising steps→Actions
Read the inference behavior
Two observations condition the prediction. Observations update every simulator step; eight selected actions execute before the next action prediction. The evaluated checkpoint uses the saved 100-step DDPM schedule.
03 / ACT▥
Decode a longer plan.
A Transformer predicts 100 actions using a conditional variational autoencoder objective: action reconstruction plus a penalty on the latent distribution.
Image + state + z→Transformer→Chunk
Read the inference behavior
The training-time latent encoder sees demonstration actions. Inference sets the latent to zero. This implementation executes the full 100-action chunk; it does not use overlapping temporal ensembling.
04 / Pi0-style teaching model∫
Follow a learned flow.
A small action expert learns the velocity along a path between demonstration actions and noise. Ten Euler steps generate a 50-action chunk.
Noise→10 flow steps→Actions
Read the model’s scope
This is an educational visual flow-matching model with a ResNet encoder. It has no pretrained language model or language understanding. The separate LeRobot Pi0 integration uses pretrained vision-language-action weights.
The mechanisms build on published methods. The contribution of this study is implementing, connecting, and examining them on PushT. Original method references appear below.
04 / The interfaces are part of the experiment
Keep the meaning of the data.
The source Zarr archive stores images, five state values, actions, and episode boundaries. The visual policy input uses only the first two state values—the pusher’s position. Block position and orientation remain in the dataset but are not passed as extra state features.
From demonstrations to control206 episodes · 10 Hz
LeRobot dataset format · policy-specific processors · model directories
↓
Rollout boundaryImage & state → policy → position targets
Execute the configured chunk, then predict again using fresh observations.
↓
gym-pushtContact, motion & target coverage
Record the scenario, every episode, threshold, and checkpoint.
The two training paths preserve a common task interface while retaining different model and preprocessing contracts.
01 / Format conversion
Preserve episode boundaries.
The converter maps raw demonstrations into LeRobot’s dataset structure, including image, state, action, timestamp, and episode metadata. A format conversion must preserve which observations and actions belong together.
02 / Normalization
Match training and rollout.
Each standalone checkpoint travels with its normalizer. LeRobot has separate pre/postprocessors. The integration uses identity dataset image normalization on [0, 1] pixels, with state/action normalization selected for each policy.
03 / Feedback timing
A chunk is a control choice.
At 10 Hz, eight executed actions span 0.8 seconds; 100 span ten seconds. BC and Diffusion refresh more often than the configured ACT and flow policies. That difference can affect behavior alongside the learning objective.
04 / Pretrained integration
Pi0 changes the scale.
The retained LeRobot Pi0 experiment trains the action expert and projections while freezing the vision-language backbone. Its saved configuration records batch size 8, 30,000 updates, and gradient checkpointing.
The LeRobot Pi0 run has about 578 million trainable parameters out of 4.03 billion total. Its pretraining, architecture, and update budget make it a separate integration experiment within this project.
What changed in the October implementation review
Seeds reach the code.
The standalone trainers now apply the requested PyTorch seed. Inference accepts a starting seed and resets episode i with seed + i. Diffusion and flow sampling are seeded at the start of the evaluation call. The retained training runs predate this change.
Keypoints match the environment.
The keypoint observation mode now derives the T’s corners from recorded block position and angle. The raw archive’s keypoint array describes a different set of points. The visual experiments on this page continue to use only the image and pusher position.
Resume restores training state.
Standalone Diffusion resume now loads optimizer and learning-rate scheduler state alongside the weights and update count. The data defaults and documentation also identify the v2 archive, absolute position actions, and each model’s real dimensions.
Media has a repeatable path.
The new rollout recorder wraps each policy’s existing inference function, records coverage, and writes clips plus episode summaries. The README media builder combines those records with LeRobot’s saved checks; a supplied rerun reproduced the scratch clips byte for byte.
05 / Seven paths, the same ten starting states
Partial progress. Occasional success.
The 22 October snapshot brings all seven trained policies onto seeds 1000–1009. The four standalone checkpoints were recorded again with the updated inference scripts. The LeRobot columns use the final checks retained from training, which already used those same starting seeds.
22 October collection · seeds 1000–1009 · success means raw coverage >95%
Policy
Standalone solved
LeRobot solved
Standalone best reward
LeRobot best reward
BC
2 / 10
—
0.4342
—
Diffusion
3 / 10
3 / 10
0.8457
0.9246
ACT
0 / 10
0 / 10
0.2720
0.5743
Flow / pretrained Pi0
0 / 10
0 / 10
0.0910
0.1185
Best reward is each episode’s maximum of min(raw coverage ÷ 0.95, 1), averaged across all ten episodes. It is a normalized reward, not a raw coverage percentage. BC has no LeRobot run. Standalone flow is the small teaching model; LeRobot Pi0 uses pretrained weights with its vision-language backbone frozen.
A good partial placement can still miss the target
LeRobot Diffusion averages 0.9246 best reward, yet solves only 3 of 10 starts. The continuous score and the strict success count answer different questions.
04 / Report successful placement and partial progress together. Whiskers show 95% Wilson intervals for ten episodes, excluding variation across training runs.Read the evaluation conditions and limits
Retained checkpoints
Each standalone model uses its final 100,000-update checkpoint. LeRobot Diffusion and ACT use 200,000 updates; pretrained Pi0 uses 30,000. Training was not repeated for this media collection.
Shared starts, different training
Every result covers seeds 1000–1009 with a 300-action limit at 10 Hz. Architecture, pretraining, batch size, normalization, action chunks, and training budgets still differ. Shared starts do not isolate the learning objective.
Ten episodes leave uncertainty
A 3/10 success count has an approximate 95% Wilson interval of 11–60%, under a binomial model. It does not establish a reliable ranking or measure variation across training runs. These LeRobot seeds were also used for monitoring during training.
Two thresholds remain in the source
The standalone evaluator’s printed summary still uses >90% coverage. The recording script and this comparison count the simulator’s native >95% condition. BC reaches >90% in 3/10 starts; Diffusion in 6/10.
Inspect the earlier 50-seed standalone evaluation
The 14 October collection used source revision 969cf7a and seeds 10000–10049. Its adapter reseeded policy sampling at each episode; the current inference path seeds sampling once per evaluation call. The seed range, collection code, and reporting metric differ from the new snapshot. These records remain a separate archive, with no before-and-after performance claim.
14 October archive · seeds 10000–10049 · final 100,000-update checkpoints
Standalone policy
Mean max. coverage ↑
Coverage >90%
Native success >95%
BC
43.5%
9 / 50
4 / 50
Diffusion
75.3%
28 / 50
17 / 50
ACT
25.4%
0 / 50
0 / 50
Flow matching · teaching model
9.3%
0 / 50
0 / 50
This table reports raw coverage and both strict thresholds. It covers 50 starts per standalone checkpoint, rather than the planned 100-start evaluation across all seven paths.
Earlier collection / All 200 standalone episodes remain available.
Seed 1002 shows both Diffusion tracks succeeding: the standalone policy after 139 actions, LeRobot after 152. The other five policies reach the 300-action limit. This illustrative start was selected to show a behavioral contrast; the table above retains all ten starts.
05 / Same reset state · standalone above, LeRobot below3× simulation playback · silent
Models: BC · Diffusion · ACT · flow / Pi0Empty cell: no LeRobot BC run
Read a description of the comparison
Seven blue pushers start beside the same gray T and green target. Both Diffusion policies align the block successfully. Their saved last frames remain visible while the unsuccessful policies continue. Labels identify each track, outcome, and frame hold. LeRobot’s recorder can omit the exact terminal observation; the logs retain the outcome, and its saved frame count identifies the episode length. The video is accelerated three times and contains no audio.
More training does not guarantee the same behavior.
On seed 1003, LeRobot Diffusion solves the task at 120,000 updates, misses it at 140,000–180,000, and solves it again at 200,000. The three clips below show the 120k, 140k, and 200k checkpoints. This is one starting state from the repeated training checks.
06 / A success, a miss, and a later successRetained LeRobot checks · 3× · silent
The final 200k check has the highest mean best reward, 0.9246, but 3/10 successes. The 120k and 180k checks each reach 5/10. Best reward, success count, and the behavior of one seed can move differently.
07 / What the study can establish
Learn from the gap between loss and control.
A completed training run establishes that the pipeline ran. Rollouts establish how that checkpoint behaved under specific conditions.
01
The policies see different training windows.
All use the same archive, but their sequence lengths change which windows fit. The retained training logs report 24,208 BC windows, 22,354 Diffusion windows, 6,184 ACT windows, and 15,556 flow windows. ACT skips 53 short episodes; flow skips one.
02
Code fixes do not retrain a checkpoint.
The four standalone checkpoint hashes still match the October 14 collection. Their original training runs ignored the configuration’s seed field; the current trainers apply it. BC and Diffusion use random visual initialization, while ACT and flow start from ImageNet weights. These retained models do not measure the effect of the new training fixes.
03
Training loss is not a shared scoreboard.
Regression, noise prediction, latent regularization, and flow matching optimize different quantities. Their raw loss values cannot rank control quality. There is also no separate held-out demonstration loss in the retained standalone training runs.
04
Complete the broader evaluation.
The workflow specifies 100 starts, seeds 10000–10099, across all seven paths. That evaluation is still pending. Keep native success and partial progress explicit, then repeat training and vary one factor—such as the number of actions executed before predicting again—to investigate a cause.
These are results in a planar simulator. Physical manipulation, robustness to new objects, and language-conditioned behavior are outside this evaluation.
Inspect the recorded training objectivesRecorded optimization · 500-update averages · separate scales
08 / Follow the evidence
Keep the result inspectable.
The latest material connects the 22 October standalone recordings, LeRobot’s retained training checks, and the demonstration geometry audit. Current source is revision 05bc832; the capture ran at 5dd55a4 and was reproduced by the added recording script. The original 14 October evaluation remains available with its own protocol.