martin76ec/counterfactual-push-t
Updated • 290
Frozen models, 8-step blind rollout from one frame. Disc = picks the true outcome among 5 action sequences (chance 20%). Err = latent error / "nothing moves" baseline (lower is better).
| Shape | blind Disc |
blind Err |
blind_touch Disc |
blind_touch Err |
|---|---|---|---|---|
| T (held-out train episodes) | 77.0% | 0.16 | 49.1% | 0.35 |
| T (unseen seeds) | 75.3% | 0.18 | 51.7% | 0.34 |
| small_tee | 71.1% | 0.22 | 47.7% | 0.40 |
| + | 73.8% | 0.19 | 50.7% | 0.44 |
| I | 73.4% | 0.26 | 49.4% | 0.71 |
| square | 71.4% | 0.27 | 46.2% | 0.57 |
| Z | 70.8% | 0.25 | 49.5% | 0.52 |
| L | 68.5% | 0.29 | 45.7% | 0.58 |
| All unseen shapes | 72.1% | 0.24 | 48.7% | 0.50 |
By contact (all shapes, blind): Disc 68.0% with pusher–block contact, 79.4% without.
State readout from real frames (MLP probe, error; arena 512 px):
| Model | Set | Pusher | Block | Angle |
|---|---|---|---|---|
blind |
T held-out | 6.5 px | 24.5 px | 40° |
blind |
other shapes | 9–14 px | 26–47 px | 79–92° (≈ chance) |
blind_touch |
T held-out | 20.8 px | 25.7 px | 42° |
All shapes: videos/imagined_shape_shift.mp4
Takeaways
LeWM-style JEPA trained from pixels: ViT encoder (64 px) + AdaLN predictor, next-embedding MSE + 0.1 SIGReg. Frameskip 4, 3-frame history, 30% of input frames hidden. blind_touch also gets the pusher's touch signal.
blind/, blind_touch/: model.pt, probe_mlp.pt (state readout), eval JSONs, training log. code/: the lewm package.
import torch
from lewm.model import Config, LeWM
ck = torch.load("blind/model.pt", map_location="cpu")
model = LeWM(Config(**ck["cfg"])).eval()
model.load_state_dict(ck["model"])