SharpaDex · clean_plate_with_eraser · 6.72 M trainable parameters
A small policy that reads force, predicts force, and decides before it acts
At 30 Hz the model reads three cameras, the last 0.33 s of joint positions, fingertip forces and joint torques, and outputs the next 16 joint targets (0.53 s), the fingertip forces it expects over the same steps, and three short decisions about what comes next. Blue marks every place where force enters.
The model, top to bottom
Select a block to see what it does. The switches on the right are the same ones in configs/default.yaml; flipping them shows what changes in the network and the held-out error of that trained variant.
Force switches
How it was trained
Everything is trained together from scratch in one run of 8,000 steps (about 15 minutes on one GPU). Only the camera encoder is pretrained and frozen; its outputs are computed once and stored.
Action target: the operator's commanded joint position at each of the next 16 frames, minus the current joint position, divided by that joint's typical step size.
Batch 256 random frames, AdamW at 3e-4 with 500 warm-up steps and cosine decay, 16-bit mixed precision, dropout 0.1.
Input scaling uses training episodes only. The 10% held-out episodes are never seen.
Mixture of experts (action head)
Two small networks (256 → 256 → 58 joints each) read the same 16 action slots and each propose a full action chunk.
The three decision slots are joined and passed through one linear layer and a softmax. That gives two weights per frame, the same for all 16 steps.
The output is the weighted sum of the two proposals.
The only training signal is the action loss on that sum. There is no label for which expert to use, no balance penalty and no pretraining of either expert.
Because the gate reads the decision slots, and those slots are also trained to predict phase, contact and force level, the gate can split by those. Whether it does is measured below.
Residual force head
The plain head predicts the fingertip force vector (10 fingertips × 3 axes) at each of the next 16 frames, divided by 10 N.
The residual head predicts the same thing minus the force measured right now, so its target is zero whenever force does not change.
The measured force is added back to give newtons. Loss and weight are identical.
It needs the fingertip force input. With that input off, or zeroed at test time, it falls back to predicting from zero.
What is active for which input
Three measurements on the 19,079 held-out frames, split by whether a fingertip is in contact (above 1 N).
How much the action changes when one input is swapped for another frame's
in contactfree motion
Mean change of the 16-step prediction in mrad, averaged over 3 seeds. Larger means the model relies on that input more.
Where the query slots look
in contactfree motion
Share of decoder attention on each input group, model with force, seed 0, averaged over the 3 decoder layers. Attention shows where a slot reads from, not how much the output depends on it.