NeIO on Newton's examples
Neural Intrinsic Optimizer in place of SolverVBD inside Newton's own examples. 2026-11-25 (Pacific time).
Summary
- What this is. 33 examples of
python -m newton.examplesthat have aSolverVBDpath. Each example runs unchanged; where it constructsSolverVBD, it gets aSolverNeIO. The scene, the time step, the substeps, the controls and the camera are the example's own. - Three runs per example. The example as it ships; NeIO with the iteration count of the example; NeIO with 30 iterations.
- Networks. NeIO rigid uses the checkpoint
rigid_eat 270,000 steps (it reads the last three iterations). NeIO deformable uses the cloth checkpoint of stage 1, also for tets. - These examples are outside the training of the networks in several ways: the time step (often 1/600 s), the iteration counts (1 to 20), the materials and the masses. The page shows what happens; it is not a tuned result.
How to read the page
- The scene of an example is not changed. Margins, contact stiffness, friction, materials, masses and the time
step are the example's. On the solver side: joints are a plain penalty with the stiffness the example gives
SolverVBD(which treats them as hard joints); options that onlySolverVBDhas are dropped; one normalisation group per world; the cubic contact law has a band length of 5 mm for body-body contact, a default ofSolverNeIO. - Error left: for every time step, the gradient norm at the final iterate divided by the gradient norm at the first iteration; the median over the steps, in percent. 100 % means no progress.
- Mean distance to the shipped run: over all frames and all particles (or bodies), in the length unit of the example. Some examples use metres, some centimetres; compare the distance with the scene size given under the example name. The shipped run is not a converged reference, and it uses another contact law, so a distance is not an error. A distance that is large against the scene size means another motion.
- Time per frame is the wall time of one frame of 1/60 s on a shared GPU. An example that does not capture its step runs NeIO eagerly and is slow.
Runs that reached the end: 29 of 33 with the example's iteration count, 32 of 33 with 30 iterations. A run that reaches the end is not always a correct motion: see the note of each example.
Rigid bodies
basic_joints
2 iterations: one link hangs off its joint. 30 iterations: as the shipped run. (6 bodies, scene size 6.13 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 2 iterations | ran to the end | bodies 114 % | 0.0685 | 17 |
| NeIO, 30 iterations | ran to the end | bodies 0.7 % | 0.00367 | 218 |
| Newton example as shipped | ran to the end | n/a | 0 | 4 |
basic_shapes
Both NeIO runs throw the shapes around; the shipped run keeps them where they land. (7 bodies, scene size 12 length units; 5 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 5 iterations | ran to the end | bodies 5.7 % | 2.58 | 19 |
| NeIO, 30 iterations | ran to the end | bodies 0.4 % | 30.2 | 124 |
| Newton example as shipped | ran to the end | n/a | 0 | 4 |
basic_urdf
2 iterations: blow-up. 30 iterations: the quadrupeds stand as in the shipped run. (1300 bodies, scene size 0.754 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 2 iterations | blow-up at 0.47 s | bodies 184 % | 0.217 | 29 |
| NeIO, 30 iterations | ran to the end | bodies 0.2 % | 0.0693 | 375 |
| Newton example as shipped | ran to the end | n/a | 0 | 13 |
basic_conveyor
1 iteration: blow-up. 30 iterations: the belt carries the bodies as in the shipped run. (19 bodies, scene size 5.23 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 1 iterations | blow-up at 0.10 s | bodies 662812 % | 8.63e+03 | 19 |
| NeIO, 30 iterations | ran to the end | bodies 0.6 % | 0.0307 | 270 |
| Newton example as shipped | ran to the end | n/a | 0 | 5 |
newton_cradle
Both NeIO runs swing as the shipped run. (5 bodies, scene size 1.14 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 10 iterations | ran to the end | bodies 0.1 % | 0.00915 | 90 |
| NeIO, 30 iterations | ran to the end | bodies 0.1 % | 0.00922 | 228 |
| Newton example as shipped | ran to the end | n/a | 0 | 13 |
balance_bird
Both NeIO runs balance the bird. With 10 iterations it has turned on the cone at the end. (1 bodies; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 10 iterations | ran to the end | bodies 0.1 % | 0.000868 | 78 |
| NeIO, 30 iterations | ran to the end | bodies 0.0 % | 0.000657 | 223 |
| Newton example as shipped | ran to the end | n/a | 0 | 11 |
domino_spiral
Both NeIO runs topple the spiral as the shipped run. (30 bodies, scene size 1.56 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 10 iterations | ran to the end | bodies 8.8 % | 0.00713 | 96 |
| NeIO, 30 iterations | ran to the end | bodies 0.9 % | 0.00731 | 232 |
| Newton example as shipped | ran to the end | n/a | 0 | 12 |
vbd_rigid_rigid_contact
Both NeIO runs keep the bodies in the box; the capsule ends at another place. (6 bodies, scene size 0.734 length units; 5 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 15 iterations | ran to the end | bodies 0.2 % | 0.062 | 64 |
| NeIO, 30 iterations | ran to the end | bodies 0.0 % | 0.043 | 114 |
| Newton example as shipped | ran to the end | n/a | 0 | 12 |
Cables (rigid bodies on cable joints)
cable_twist
Both NeIO runs are close to the shipped run. (192 bodies, scene size 8.23 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 5 iterations | ran to the end | bodies 29.3 % | 0.0094 | 43 |
| NeIO, 30 iterations | ran to the end | bodies 5.5 % | 0.00995 | 190 |
| Newton example as shipped | ran to the end | n/a | 0 | 12 |
cable_pile
Both NeIO runs throw the pile out of view. (4000 bodies, scene size 2.78 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 5 iterations | ran to the end | bodies 62.1 % | 36.7 | 94 |
| NeIO, 30 iterations | ran to the end | bodies 71.2 % | 33.4 | 482 |
| Newton example as shipped | ran to the end | n/a | 0 | 20 |
cable_y_junction
Both NeIO runs let the junction sag flat; the shipped run holds its shape. (60 bodies, scene size 1.34 length units; 20 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 5 iterations | ran to the end | bodies 38.3 % | 0.245 | 63 |
| NeIO, 30 iterations | ran to the end | bodies 12.7 % | 0.276 | 377 |
| Newton example as shipped | ran to the end | n/a | 0 | 24 |
cable_bundle_hysteresis
Both NeIO runs are close to the shipped run. (284 bodies, scene size 3.94 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 5 iterations | ran to the end | bodies 59.8 % | 0.0933 | 46 |
| NeIO, 30 iterations | ran to the end | bodies 5.8 % | 0.163 | 285 |
| Newton example as shipped | ran to the end | n/a | 0 | 23 |
cable_plectoneme
Both NeIO runs form the loop; it is larger than in the shipped run. (80 bodies, scene size 1.48 length units; 8 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 20 iterations | ran to the end | bodies 4.1 % | 0.0425 | 136 |
| NeIO, 30 iterations | ran to the end | bodies 2.6 % | 0.043 | 183 |
| Newton example as shipped | ran to the end | n/a | 0 | 43 |
cable_twist_buckling
Both NeIO runs are close to the shipped run. (64 bodies, scene size 4.73 length units; 6 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 10 iterations | ran to the end | bodies 4.3 % | 0.0732 | 53 |
| NeIO, 30 iterations | ran to the end | bodies 1.4 % | 0.0733 | 141 |
| Newton example as shipped | ran to the end | n/a | 0 | 12 |
cable_cross_slide_table
5 iterations: blow-up. 30 iterations: as the shipped run. (115 bodies, scene size 0.606 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 5 iterations | blow-up at 0.08 s | bodies 45.1 % | 115 | 69 |
| NeIO, 30 iterations | ran to the end | bodies 37.0 % | 0.00148 | 283 |
| Newton example as shipped | ran to the end | n/a | 0 | 38 |
Deformables
cloth_hanging
10 iterations: the cloth is thrown up and twists. 30 iterations: it hangs, crumpled at the ground. (2145 particles, scene size 7.16 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 10 iterations | ran to the end | particles 18.9 % | 4.13 | 120 |
| NeIO, 30 iterations | ran to the end | particles 4.7 % | 1.36 | 315 |
| Newton example as shipped | ran to the end | n/a | 0 | 26 |
cloth_bending
Both NeIO runs keep the folds; the sheet comes to rest in another pose. (14 particles, scene size 4.43 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 10 iterations | ran to the end | particles 14.3 % | 2.02 | 73 |
| NeIO, 30 iterations | ran to the end | particles 1.5 % | 1.67 | 196 |
| Newton example as shipped | ran to the end | n/a | 0 | 32 |
cloth_twist
Both NeIO runs twist the cloth; 4 iterations leave a rough surface. (2500 particles, scene size 1.8 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 4 iterations | ran to the end | particles 97.9 % | 0.0564 | 90 |
| NeIO, 30 iterations | ran to the end | particles 93.6 % | 0.0679 | 436 |
| Newton example as shipped | ran to the end | n/a | 0 | 60 |
cloth_rollers
Both NeIO runs keep the cloth on the rollers. (5824 particles, scene size 159 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 12 iterations | ran to the end | particles 72.5 % | 10.9 | 413 |
| NeIO, 30 iterations | ran to the end | particles 71.1 % | 11.4 | 957 |
| Newton example as shipped | ran to the end | n/a | 0 | 328 |
cloth_stiff_material_hanging
Both NeIO runs crumple the stiff cloth; the shipped run hangs flat. (2500 particles, scene size 1.8 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 10 iterations | ran to the end | particles 25.6 % | 0.463 | 129 |
| NeIO, 30 iterations | ran to the end | particles 8.0 % | 0.498 | 355 |
| Newton example as shipped | ran to the end | n/a | 0 | 26 |
cloth_stiff_material_stretch
Both NeIO runs match the shipped run. (2205 particles, scene size 7.47 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 20 iterations | ran to the end | particles 4.1 % | 7.39e-05 | 234 |
| NeIO, 30 iterations | ran to the end | particles 4.0 % | 0.000291 | 316 |
| Newton example as shipped | ran to the end | n/a | 0 | 30 |
softbody_hanging
Both NeIO runs match the shipped run. (1300 particles, scene size 2.54 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 10 iterations | ran to the end | particles 7.7 % | 0.0702 | 110 |
| NeIO, 30 iterations | ran to the end | particles 1.8 % | 0.0655 | 292 |
| Newton example as shipped | ran to the end | n/a | 0 | 87 |
softbody_gift
Both NeIO runs keep the stack; it rests in another pose. (1512 particles, scene size 5.77 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 15 iterations | ran to the end | particles 41.3 % | 1.24 | 215 |
| NeIO, 30 iterations | ran to the end | particles 25.6 % | 1.25 | 379 |
| Newton example as shipped | ran to the end | n/a | 0 | 250 |
softbody_dropping_to_cloth
The block bounces off the cloth to another place in each run. (1877 particles, scene size 3.11 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 10 iterations | ran to the end | particles 25.8 % | 0.18 | 127 |
| NeIO, 30 iterations | ran to the end | particles 3.8 % | 0.283 | 347 |
| Newton example as shipped | ran to the end | n/a | 0 | 43 |
softbody_franka
The robot is not integrated by NeIO here. The soft body is moved in both NeIO runs. (9 bodies, 2734 particles, scene size 0.703 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 5 iterations | ran to the end | particles 30.8 % | 0.118 | 80 |
| NeIO, 30 iterations | ran to the end | particles 10.5 % | 0.069 | 363 |
| Newton example as shipped | ran to the end | n/a | 0 | 38 |
Coupling
rigid_soft_contact
Both NeIO runs are close to the shipped run. (1 bodies, 2541 particles, scene size 3.39 length units; 32 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 10 iterations | ran to the end | particles 2.6 %, bodies 147 % | 0.00849 | 650 |
| NeIO, 30 iterations | ran to the end | particles 2.6 %, bodies 110 % | 0.00538 | 1637 |
| Newton example as shipped | ran to the end | n/a | 0 | 297 |
vbd_dat_rigid_soft
8 iterations: only the ball stays on the cloth. 30 iterations: the cloth holds the bodies. (6 bodies, 2357 particles, scene size 2.59 length units; 4 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 8 iterations | ran to the end | particles 30.6 %, bodies 1.3 % | 0.093 | 98 |
| NeIO, 30 iterations | ran to the end | particles 4.1 %, bodies 2.9 % | 0.089 | 295 |
| Newton example as shipped | ran to the end | n/a | 0 | 97 |
vbd_soft_rigid_contact
Both NeIO runs blow up. (6 bodies, 3126 particles, scene size 0.572 length units; 5 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 15 iterations | blow-up at 0.25 s | particles 18.6 %, bodies 343 % | 1.09e+03 | 335 |
| NeIO, 30 iterations | blow-up at 0.27 s | particles 13.2 %, bodies 205 % | 0.00397 | 639 |
| Newton example as shipped | ran to the end | n/a | 0 | 96 |
vbd_soft_rigid_mix_contact
Both NeIO runs are close to the shipped run. (5 bodies, 2041 particles, scene size 0.313 length units; 5 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 15 iterations | ran to the end | particles 38.9 %, bodies 32.1 % | 0.0108 | 335 |
| NeIO, 30 iterations | ran to the end | particles 27.3 %, bodies 12.6 % | 0.0118 | 639 |
| Newton example as shipped | ran to the end | n/a | 0 | 97 |
vbd_gripper_soft_grid
5 iterations: the sheet leaves the view. 30 iterations: the sheet stays flat. (4 bodies, 4 particles, scene size 0.296 length units; 20 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 5 iterations | ran to the end | particles 56.5 %, bodies 47.9 % | 0.466 | 457 |
| NeIO, 30 iterations | ran to the end | particles 15.4 %, bodies 12.1 % | 0.14 | 2499 |
| Newton example as shipped | ran to the end | n/a | 0 | 127 |
proxy_joint_gripper
Both NeIO runs hold the soft body between the fingers. (3 bodies, 32 particles, scene size 0.256 length units; 6 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 30 iterations | ran to the end | particles 7.6 %, bodies 0.0 % | 0.0138 | 265 |
| NeIO, 30 iterations | ran to the end | particles 11.4 %, bodies 0.0 % | 0.0323 | 250 |
| Newton example as shipped | ran to the end | n/a | 0 | 104 |
cloth_franka
The robot is not integrated by NeIO here. The cloth folds in both NeIO runs. (9 bodies, 6436 particles, scene size 126 length units; 10 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 5 iterations | ran to the end | particles 97.1 % | 1.5 | 114 |
| NeIO, 30 iterations | ran to the end | particles 98.1 % | 1.76 | 509 |
| Newton example as shipped | ran to the end | n/a | 0 | 55 |
cloth_poker_cards
10 iterations: the cards stay in a pile at the block. 30 iterations: the cards scatter. (2 bodies, 1820 particles, scene size 0.446 length units; 20 steps per frame of 1/60 s)
| Run | Result | Error left, median | Mean distance to the shipped run [length units] | Time per frame [ms] |
|---|---|---|---|---|
| NeIO, 10 iterations | ran to the end | n/a | 0.218 | 952 |
| NeIO, 30 iterations | ran to the end | n/a | 0.864 | 2606 |
| Newton example as shipped | ran to the end | n/a | 0 | 317 |