NIST Assembly Competition
NIST Assembly Competition
Getting a peg to the hole is not the same as seating it. The last millimetre is the hard part: with 0.20 to 0.68 mm of radial clearance, the contact that completes an insertion is the same contact that jams it. A peg still held in the gripper has not been assembled, and on a full board each seated peg is one more thing the gripper can knock out on the way to the next.
The NIST Assembly competition asks miners to drive a parallel 2-finger gripper on a Cartesian stage (x, y, z, yaw) through compound assembly tasks on a board modelled on the NIST Assembly Task Board #1, simulated in MuJoCo on CPU. Miners submit an ONNX policy that outputs incremental stage and gripper commands at 25 Hz. The setup borrows from AlphaNIST (Zhang et al., arXiv 2610.13354): the ATB-1 board, the 1 mm success criterion, 25 Hz control, diverse start states and free-order multi-part episodes. It is much smaller: primitive geometry, a 4-DoF stage instead of a 7-DoF arm, and noisy state estimates instead of point clouds.
Since v0.7 ("Assembly III"), every episode is a random assembly graph of seven kinds of step. Most of the score sits in three hard kinds: keys, stacks and rework. Scoring gives weighted credit per step so that a ranked competition has a gradient. An evaluation's cost is bounded by the simulation horizon only, so the same policy and seed always score the same, however busy the machine is.
What changed in v0.7.3
Adaptive mid-episode events. New between-step events can move an unfinished key's window (
retarget), add a precedence edge between unfinished steps (reorder), or reverse an unfinished twist or screw and reset its progress (flip_twist). After a peg is inserted, its key is often retargeted too. A fixed plan no longer works; the policy has to keep re-reading the observation.Touch-gated reveals. Many key and twist parameters stay hidden until the gripper has touched that peg, and almost every hard step now has a late reveal.
Keys need their prerequisites. A key can't count, or even earn partial progress, until every step it depends on is done, so an out-of-order key scores 0. Stacks often have to be finished before the key on the same peg.
New weights. Stack 5.00, key 2.60, rework 1.60; every other kind 0.06 or less.
Retuned tiers. Denser precedence, more events and more time slack (see the tier table). The stack mate zone is slightly wider (3.4 mm across, 3.2 mm in height).
What changed in v0.7.2
Stacks can be completed. Stack rings are now a slight interference fit, so a ring placed on a peg top can rest there. A stack completes through a place-and-release latch (see the step table). In v0.7.1, no policy could complete a stack through its own actions.
Twist and screw steps now appear. Each eligible round peg gets a twist or screw with the tier's probability. In v0.7.1 their counts rounded to zero.
Harder weights and tolerances. The weights move further to the hard steps (key 5.20, rework 3.60, stack 1.70; every other kind 0.10 or less). The key tolerance is tighter (0.05 – 0.09 rad), as is the stack mate zone (3 mm), and rework pegs sit deeper.
Retuned tiers. There are more rework, stack and key steps, fewer collars, denser precedence, more events and reveals, and less time slack (see the tier table).
What changed in v0.7.1
Fixes to v0.7.0, which never went live: the referee image now runs the v0.7 task (
nist_profile: v07in every result and record), and there are no wall-clock cuts inside the referee. Stack hold counting, key yaw sampling and the completion latch were also fixed, so a completed hard step stays completed.
What changed in v0.7.0 (Assembly III, breaking)
Four new step kinds:
rework,screw,stackandkey(see below).Denser graphs and late reveals. More precedence edges, and some step parameters stay hidden until a prerequisite is done.
Stronger between-step events, plus two new kinds:
swap_biasandmisseat.Different weights. Keys, stacks and rework carry most of the score, so a policy that only inserts pegs and drops collars scores about 0.2.
Same interface. The observation is still 288 floats with the v0.6 layout, and the first 184 are still the v0.5 layout. Policies built for v0.6 load and run, but scores aren't comparable with v0.6.x.
Evaluation Overview
Each live evaluation runs 64 episodes: 8 strata (number of pegs K ∈ {3, 4, 5, 6} × clutter low/high) with 8 episodes each. Inside each stratum, the physical conditions are drawn by Latin hypercube. Each episode gets a sensing difficulty tier (about 25% easy, 35% medium, 40% hard). Each stratum gets 3 c1, 3 c2, 1 c3 and 1 c4 episodes, which is 24 / 24 / 8 / 8 per evaluation.
The seven step kinds
insert
Seat a peg in its own hole.
0.04
collar
Drop a ring over a peg that is already seated, so it rests on the slot block.
0.04
twist
Turn a seated round peg past a target angle in a given direction.
0.04
screw
A twist that only counts while the gripper presses down on the peg; done at 80% of a target of 0.30 – 0.55 rad.
0.06
rework
A peg starts seated 4.5 mm deep in the wrong empty slot. Pull it out, then seat it in its own hole.
1.60
stack
A second-level ring that must end up on the top of a seated peg, not on the block. Bring the ring, still gripped, to within about 3 mm of the peg top for at least 2 control steps. Then release it (open the jaws or lift clear) and let it stay there for 5 more steps.
5.00
key
A seated peg only counts while its yaw is inside a key window (tolerance 0.05 – 0.09 rad), relative to the slot, and only once every prerequisite step is done. The window can move mid-episode.
2.60
Extra pegs
0
0
+1
+1
Rework / stack / key share
18% / 40% / 36%
20% / 42% / 38%
22% / 42% / 42%
24% / 44% / 46%
Keys per episode (max)
2
2
2
2
Collar share
6%
6%
5%
5%
Screw / twist chance per round peg
6% / 3%
7% / 3%
7% / 2%
6% / 2%
Waves
1 – 2
1 – 2
2
2
Extra precedence edges
18%
22%
24%
28%
Between-step event chance
30%
36%
40%
46%
Hidden-parameter reveals (after a prerequisite / after touching the peg)
90% / 85%
95% / 90%
100% / 92%
100% / 95%
Key retarget after its peg is inserted
60%
65%
70%
75%
Time slack
× 1.85
× 1.70
× 1.58
× 1.48
A key never shares a peg with a twist or screw.
Between-step events
after a completed step, with the per-tier chance above. Mostly adaptive: retarget (an unfinished key's window moves), misseat (a seated peg is lifted 6 – 14 mm and has to be re-seated), reorder (a new precedence edge between unfinished steps), swap_bias (peg-vs-slot residuals reshuffled), flip_twist (an unfinished twist or screw reverses and loses its progress). Less often: friction × 0.30 – 2.2, gain × 0.35 – 1.75, part mass × 0.45 – 2.6, actuation delay 0 – 4 steps, estimate re-bias 2 – 8 mm, or a shove
Clutter blocks
0 – 1 (low) or 2 – 3 (high); often placed near a hole approach
Board layout
8 holes per board; positions, yaw, family and size drawn per episode
Board pose
±30 mm in x and y, ±0.15 rad yaw, per episode
Radial clearance
0.20 – 0.68 mm, with a variable entry chamfer
Friction / peg mass / controller gain
0.3 – 1.3 / 5 – 50 g / × 0.6 – 1.4
Pose estimates
Same structure as v0.6 (per-hole and per-peg biases, noise, drift, dropout, glitch bursts), with the biases, glitch rate and drift scaled to about 0.40 – 0.45× the v0.6 values
Control / physics
25 Hz control, 500 Hz physics (20 substeps per action). Fixed.
Horizon
Sum of per-step budgets (insert 140, collar 100, twist 80, screw 160, stack 160, key 140, rework 260; +140 for a lying start) × the tier's time slack, + 40 per extra wave, capped at 1,400 steps (56 s). Most episodes hit the cap.
The difficulty does not drift between rounds. Strata, tier mix and ranges are fixed; only the draw inside them changes.
Within a round, every submission faces the same episodes, and the incumbent is re-scored on them.
The round seed never enters the player sandbox. Every episode is derived inside the referee from the platform seed plus private build entropy. Local runs use the same distribution but cannot reproduce a live round.
Start States
Each peg gets its own start type. Easy-tier episodes use grasped and near-hole starts; medium and hard tiers mix all five. Pegs in a later wave arrive as loose or lying at a free spot. Rework pegs start seated in a wrong empty slot. Collars and stack rings start lying flat on the board, away from the holes.
grasped
already in the gripper, 10 – 40 mm above and within 10 mm of its hole (at most one per episode)
near_hole
standing on the board just beside its hole
loose
standing upright on the board, 40 – 70 mm from its hole
lying
toppled on its side, 50 – 70 mm away. Seating it takes a re-orienting regrasp, and a lying seat has not been demonstrated on the multi-peg board.
tray
standing in a ring with the other tray pegs, in a tray area near one edge of the board
Step by Step
At each control step the policy receives a 288-float observation, with the same blocks as v0.6:
Proprioception
16
hand position relative to the board (×10, m); sin/cos of hand yaw; hand velocity (3); finger gap (×50); wrist force (3); wrist torque (3); finger-pad force (1)
Last action
5
the previous action
Peg table
8 × 17
one row per active peg, paired with its target hole; unused rows are zero. Per row: presence (1); estimated peg position relative to the estimated hole (×10, 3); estimated peg quaternion (4); estimated hole yaw as sin, cos (2); peg outer (circumscribed) size (×50, 1); a zero (1); peg inscribed size (×50, 1); estimated hole position relative to the board (×10, 3); seated flag (1)
Clutter table
3 × 9
presence; estimated position relative to the board (×10, 3); quaternion (4); size (×50)
Task table
8 × 6
per peg row, six channels (see below)
Collar table
4 × 13
presence (0 until it arrives; 2 for a stack ring); estimated ring position relative to the estimated target hole (×10, 3); quaternion (4); inner and outer radius (×100, 2); target peg row / 8; done; blocked
Globals
4
elapsed fraction of the horizon; fraction of steps done; fraction of waves arrived; number of steps / 16
v0.7 reuses the six task-table channels per peg row:
0, 1
step done, step blocked (insert or rework)
2
twist direction ±1, screw direction ±2, or sin(key yaw) for a key; 0 if none or not yet revealed
3
twist or screw progress (0 – 1), cos(key yaw) for a key, or the "extracted" flag for a rework peg
4
twist / screw / key blocked
5
1 = has a collar, 2 = has a stack ring; on a key peg with neither, the key tolerance × 10
Hidden parameters read as 0 until revealed. On most hard steps, the twist or screw direction or the key yaw only appears once a prerequisite step is done, and often only after the gripper has touched that peg.
Exact peg and hole poses are never given. Every pose in the table is an estimate with the biases and noise listed above. A peg is aligned when its yaw matches the hole yaw, up to the cross-section's own symmetry, which the policy has to work out from the sizes and from contact.
Clearance, friction, mass, gain and the bias values are not observed. The wrist force/torque and pad force channels are what a policy can use to find a hole it cannot see precisely.
There is no recurrent state. The policy is called once per step on the current observation; only the previous action is fed back.
Rows for parts that haven't arrived yet are zero.
The exact encoding is AssemblyIIIEpisode.observe in referee/nist_sim/compound_v07.py.
The policy returns 5 floats in [−1, 1]: dx, dy, dz (±4 mm per step), dyaw (±0.08 rad per step), and gripper (+1 open, −1 close). These are incremental position targets tracked by a PD loop. Stage travel is ±250 mm in x and y, −3 to 250 mm in z, and ±3.1 rad in yaw.
Constraints
Terminal reasons, reported per episode:
assembled: every step is done and the gripper is clear. The episode ends early.time_limit: the horizon ran out.unstable: non-finite state, or a part moving faster than 4 m/s.A part that leaves the board area (|x| or |y| beyond 300 mm) or falls below the surface is removed; its unfinished steps score what they have, and the episode continues.
invalid_action: that episode's action was not a finite 5-vector. Ends that episode.player_fault: the/actcall errored, missed its deadline, or returned a batch of the wrong shape. Ends every episode still running.
One batched
/actcall per control step covers every episode still running, with a 500 ms deadline per call.Timeouts: 1800 s for the referee and for the player. A full live evaluation (64 episodes) takes about 8 – 20 minutes, depending on the policy and on how many evaluations run at once.
Player and referee each run on 2 CPU / 2 GiB / no GPU.
Scoring
A peg is inserted when, for 5 consecutive control steps, it is in its own hole with its bottom within 1 mm of fully inserted, its centre within the hole radius, its tilt within 10° of vertical, and the gripper is not touching it. The other kinds are done as described in the step table above. Once done, a screw, stack or key stays done. An insert, collar or twist is undone if its part is knocked out. A misseat event lifts a seated peg and undoes its insert or rework step, which then has to be earned again.
Each step k has a weight w_k (table above) and a credit c_k:
Stacks, keys and rework are almost the whole score. A stack is worth 5.00; every kind other than stack, key and rework weighs 0.06 or less.
Order matters. Doing a step early earns 0.30; the blocked flags say what is open.
The denominator is fixed: every episode counts, including ones ended by a fault.
To take the lead, a challenger must beat the current top raw score by more than 1%. The incumbent is re-scored at the start of each round on the same episodes, so the comparison is like-for-like; results that finish before the incumbent's re-score are re-judged against the new bar once it lands.
baseline_raw_scoreis 0.0.The
score_to_beatis displayed in the Apex CLI dashboard under competition information.Per-step
step_results[].creditin the records shows raw partial progress even for key, stack and rework steps, which score 0 unless done. Usescorefor the episode's actual result.
Reference numbers (v0.7.3)
zero (no-op), live images
about 0.0005
leading v0.7.1 policies (round 22), run on v0.7.3
about 0.10 – 0.23
the author's privileged reference, using the same rules as miners
about 0.43 – 0.47
On the live v0.7.3 images, the top round-22 policy (0.490 on v0.7.1) scored 0.213. It completed:
195 of 246 inserts and 37 of 58 rework steps;
36 of 110 keys and 15 of 132 stacks;
2 of 3 screws and 1 of 3 twists.
The mid-episode events fired often: 113 key retargets, 24 reorders, 15 misseats and 14 twist flips across the 64 episodes. Fixed plans lose most key and stack credit, while every step kind is still completed by a policy acting on its own.
Miner Submissions
A single ONNX graph with one input and one output:
input
[batch, 288]float32 (a static[batch, 184]input gets the v0.5 prefix)output
[batch, 5]float32the batch dimension must be dynamic.
Opset 13 – 21, standard operators only, one self-contained file (no external data).
Maximum size 50 MB. The architecture is not constrained.
Submission fee: $10.00 USD.
Default round length: 1 day. Submissions are revealed 1 day after evaluation.
The submission rate limit is 4 submissions per hotkey within 24 hours, across all competitions.
After each round, every evaluation's records are available. Each episode has a record (
nist_lite_record/4) with:the score, terminal reason and per-peg outcomes;
the full task graph (
task.steps, wave times). Key steps addkey_yawandkey_tol, rework steps addwrong_slot, and some steps carryreveal_after.conditions.collars, where stack rings are marked"kind": "stack";per-step
step_results, events, credit by step kind and parts lost;nist_profile;the exact conditions drawn, including the board layout (
conditions.slots) and peg sizes.
Every 8th episode also has a full trajectory, including ring poses and parked flags. The website replay viewer draws each episode's own layout.
Tips for Miners
The hard steps are where the score is. An insert is worth 0.30; a key is worth 3.40. A policy that only inserts pegs, however well, scores about 0.2.
Every kind is reachable, but plans have to adapt. Re-read the key window after every insert and event, touch a peg to reveal its hidden parameters, finish a peg's stack before its key, and for a stack, hold the ring on the peg top before letting go.
Watch for reveals and misseats. A 0 in the twist/key channels can mean "not revealed yet"; a peg you seated can be lifted by a
misseatevent and needs re-seating.Expect the physics to change mid-episode. After a step completes, friction, gain, mass, latency or the estimate bias may shift. Force/torque and the effect of your own actions are the only signals.
Train against the real simulator.
referee/nist_simimports directly; withNIST_PROFILE=v07,nist_sim.compound_v07.sample_compound_v07(seed, per_stratum)draws a round's episodes, and the episode class in the same module is the exact simulator used for scoring.Don't overfit the dev seeds. Live rounds add private build entropy, and some families and condition ranges are held out entirely.
The full environment is public at apex-competition-nist-assembly.
Last updated
