SARM reward model -- HumanoidMimicGen G1 LMBoxTableToShelf
Stage-aware reward model (lerobot.rewards.sarm) trained on Pick up the box from the table and place it on the shelf.
Trained on chomeed/hmg-g1-box-table-to-shelf-reward-train-success (490 success episodes)
for 2000 steps at batch 64, lr 5e-5 (SARM's own optimizer preset).
Configuration
Stock SARM defaults -- n_obs_steps=8, frame_gap=30, rewind_probability=0.8,
max_rewind_steps=4, language_perturbation_probability=0.2, CLIP ViT-B/32 frozen
image+text encoders -- with two overrides forced by this data:
| override | default | used | why |
|---|---|---|---|
image_key | observation.images.top | observation.images.ego_view | the only camera in this dataset |
max_state_dim | 32 | 43 | G1 state is 43-dim; the default silently truncates to the first 32, which drops the entire right hand -- the joints doing the task |
observation.state is 43 G1 joint angles (12 legs, 3 waist, 7+7 arms, 7+7 Dex3-1
hands) and carries no object information.
Important caveats
Only the progress term trains. With num_sparse_stages=1 the stage
cross-entropy is identically zero (sparse_stage_loss: 0.000 throughout), so the
sole gradient comes from sparse_subtask_loss, an MSE on progress. In single-stage
mode that target is linear progress by frame position, which a model can fit by
counting elapsed frames. Low training loss alone does not show the model understands
the task -- judge it on success-vs-failure separation on held-out episodes.
The architecture is not causal. Tokens are flattened stream-major and masked
with triu, so the language and state streams attend across the whole window,
future frames included. Perturbing the last frame of an 8-frame window measurably
changes the prediction at every earlier timestep. It is therefore valid for offline
scoring of complete trajectories, not as a streaming reward during execution.
For causal use, feed only frames up to the anchor and read the last position.
Trained against cached CLIP features. Frames were encoded once with CLIP ViT-B/32 (resize 224, center crop 224) and cached; the features match a live HF-processor forward at cosine 0.986-0.997, differing only through fp16 GPU resampling. Evaluate with the same cached pipeline for exact consistency.
Companion artifacts
Datasets and the other models are in the HumanoidMimicGen Reward Modeling collection.