NeIO stage 1: first results
Neural Intrinsic Optimizer on Newton. Rigid bodies, deformables and their coupling, inference only. 2026-11-24 (Pacific time).
Summary
- What this is.
SolverNeIOis a Newton solver for rigid bodies and particles. It runs the step ofSolverVBD: the same detection points, the same initialization, the same truncation, the same velocity update. One thing differs.SolverVBDsolves one small linear system per body and per particle, colour by colour.SolverNeIOevaluates the forces of all bodies and particles once per iteration, and two trained networks turn those forces into the update: NeIO rigid for the bodies, NeIO deformable for the particles. - The networks are unchanged. Both checkpoints load as they are. The ported network reproduces tensors recorded from the original code to a relative error of about 2e-6, which is float32 rounding.
- Nine scenes run to the end, with 10 and with 30 iterations: three rigid, three deformable (cloth and tets), three coupled. The coupled scenes use both networks in the same step, with contact forces on both sides.
- One network for cloth and tets. The deformable checkpoint was trained on cloth. It also drives the tet blocks, soft and stiff, with no change.
- The step is capturable. Every run on this page replays a CUDA graph of one video frame of solver steps. Captured, a step with 10 iterations takes 9 to 17 ms on these scenes, on one shared L40.
- Contact uses Newton's collision detection, the cubic contact law of the training, and the friction and
damping terms of
SolverVBD. All contact numbers come from the model. Every shape has a margin of 2.5 mm.
How to read the page
- Each scene shows three videos:
SolverVBDwith 30 iterations (compliant ALM, its recommended mode), NeIO with 10 iterations, NeIO with 30 iterations. All three use the same model and the same time step. SolverVBDis a reference for the look only. In scenes with contact it uses another contact law (quadratic, not cubic), so the two solvers do not minimise the same objective there and the motion can differ.- The NeIO runs on this page use one normalisation group per world, the grouping of the training. The ablation table compares it with the code default (one group per articulation and per deformable).
- Error left is the convergence number of NeIO. For every time step: the norm of the gradient at the final iterate, divided by the norm of the gradient at the first iteration. The table gives the median and the 90th percentile over all steps, in percent. 100 % means no progress in that step. Lower is better.
- Gradient left (ablation table) is the same final gradient norm in newtons, without the division. It is the number to use when two arms start a step at different points.
- Time per step is the wall time of a captured step, video and state readback excluded.
Rigid bodies (NeIO rigid)
Rigid chain
Six links on revolute joints with alternating axes, released from the horizontal. No contact. (6 bodies, 6 joints; time step 1/240 s)
| Run | Particles: error left, median [%] | 90th percentile [%] | Bodies: error left, median [%] | 90th percentile [%] | Time per step [ms] |
|---|---|---|---|---|---|
| NeIO, 10 iterations | n/a | n/a | 10.1 | 20.8 | 8.8 |
| NeIO, 30 iterations | n/a | n/a | 3.1 | 6.8 | 21.8 |
Box stack
Five free boxes fall onto each other and come to rest. Body-body contact with friction. (5 bodies, 5 joints; time step 1/240 s)
| Run | Particles: error left, median [%] | 90th percentile [%] | Bodies: error left, median [%] | 90th percentile [%] | Time per step [ms] |
|---|---|---|---|---|---|
| NeIO, 10 iterations | n/a | n/a | 11.6 | 33.9 | 8.8 |
| NeIO, 30 iterations | n/a | n/a | 1.1 | 4.2 | 21.2 |
Chain on the ground
A free chain of six capsules on ball joints starts as a zig-zag in the air, falls on the ground and settles. One articulation with contact and friction. (6 bodies, 6 joints; time step 1/240 s)
| Run | Particles: error left, median [%] | 90th percentile [%] | Bodies: error left, median [%] | 90th percentile [%] | Time per step [ms] |
|---|---|---|---|---|---|
| NeIO, 10 iterations | n/a | n/a | 8.3 | 27.9 | 12.2 |
| NeIO, 30 iterations | n/a | n/a | 0.1 | 0.5 | 20.0 |
Deformables (NeIO deformable)
Hanging cloth
A cloth of 1089 particles held along one edge swings down. Membrane and bending, no contact. (1089 particles, 2048 triangles; time step 1/300 s)
| Run | Particles: error left, median [%] | 90th percentile [%] | Bodies: error left, median [%] | 90th percentile [%] | Time per step [ms] |
|---|---|---|---|---|---|
| NeIO, 10 iterations | 12.8 | 16.8 | n/a | n/a | 12.1 |
| NeIO, 30 iterations | 0.3 | 0.5 | n/a | n/a | 17.0 |
Cloth on a sphere
A cloth of 2401 particles falls on a fixed sphere and drapes. Body-particle contact and self-contact. (2401 particles, 4608 triangles; time step 1/300 s)
| Run | Particles: error left, median [%] | 90th percentile [%] | Bodies: error left, median [%] | 90th percentile [%] | Time per step [ms] |
|---|---|---|---|---|---|
| NeIO, 10 iterations | 2.7 | 3.0 | n/a | n/a | 15.3 |
| NeIO, 30 iterations | 0.1 | 0.2 | n/a | n/a | 20.1 |
Tet blocks
Two tet blocks of 343 particles each fall on the ground: a soft one (30 kPa) and a stiff one (600 kPa). (686 particles, 2160 tets; time step 1/300 s)
| Run | Particles: error left, median [%] | 90th percentile [%] | Bodies: error left, median [%] | 90th percentile [%] | Time per step [ms] |
|---|---|---|---|---|---|
| NeIO, 10 iterations | 24.8 | 43.7 | n/a | n/a | 11.7 |
| NeIO, 30 iterations | 1.8 | 7.2 | n/a | n/a | 17.1 |
Coupling: both in one step
Cloth over free bodies
A cloth falls over two free boxes and a free ball. Rigid and deformable are solved in the same step; the contact acts on both sides. (3 bodies, 3 joints; 2025 particles, 3872 triangles; time step 1/300 s)
| Run | Particles: error left, median [%] | 90th percentile [%] | Bodies: error left, median [%] | 90th percentile [%] | Time per step [ms] |
|---|---|---|---|---|---|
| NeIO, 10 iterations | 3.3 | 5.4 | 0.6 | 2.0 | 17.2 |
| NeIO, 30 iterations | 0.1 | 0.1 | 0.0 | 0.0 | 22.7 |
Rigid box on a soft block
A rigid box of 0.8 kg falls flat on a soft tet block (50 kPa), sinks in and comes to rest on it. Two-way rigid-soft contact. (1 bodies, 1 joints; 605 particles, 2000 tets; time step 1/300 s)
| Run | Particles: error left, median [%] | 90th percentile [%] | Bodies: error left, median [%] | 90th percentile [%] | Time per step [ms] |
|---|---|---|---|---|---|
| NeIO, 10 iterations | 3.9 | 6.6 | 4.2 | 15.1 | 17.1 |
| NeIO, 30 iterations | 0.1 | 0.8 | 0.2 | 2.6 | 18.1 |
Coupled grasp
A gripper on three driven prismatic joints lowers, closes on a soft tet cube and lifts it. Drives, friction and two-way rigid-soft contact in one step. (3 bodies, 3 joints; 216 particles, 625 tets; time step 1/300 s)
| Run | Particles: error left, median [%] | 90th percentile [%] | Bodies: error left, median [%] | 90th percentile [%] | Time per step [ms] |
|---|---|---|---|---|---|
| NeIO, 10 iterations | 20.7 | 140 | 14.3 | 128 | 16.3 |
| NeIO, 30 iterations | 2.5 | 160 | 1.7 | 127 | 18.3 |
Difference to SolverVBD without contact
Where no contact acts, SolverVBD minimises the same objective as NeIO: the same inertia term, the same
elastic energies, the same joint penalty with the stiffness of the model. Two comparisons were made.
Against a converged reference, over one second. In two separate tests SolverVBD ran with 100 to
200 iterations, so that it is close to the exact minimiser of every step.
| Test | NeIO iterations | Mean difference [mm] | Largest difference [mm] |
|---|---|---|---|
| Chain of 4 links, one joint axis, 240 steps | 10 | 3.77 | 15.29 |
| Chain of 4 links, one joint axis, 240 steps | 30 | 0.02 | 0.09 |
| Hanging cloth, 625 particles, 300 steps | 10 | 3.95 | 40.40 |
| Hanging cloth, 625 particles, 300 steps | 30 | 0.04 | 2.72 |
Against the videos of this page, over four seconds. Here SolverVBD runs 30 iterations and is not
converged either, and the chain of this page has alternating joint axes and moves chaotically. The differences are
therefore much larger, and they do not say which solver is closer to the exact motion.
| Scene | Run | Mean difference [mm] | Largest difference [mm] |
|---|---|---|---|
| Rigid chain | NeIO, 10 iterations | 107.48 | 823.79 |
| Rigid chain | NeIO, 30 iterations | 149.58 | 655.58 |
| Hanging cloth | NeIO, 10 iterations | 15.26 | 154.05 |
| Hanging cloth | NeIO, 30 iterations | 4.73 | 52.17 |
Ablations
Each arm changes one option against the configuration of this page and runs 30 iterations. The page configuration
is: the iterate starts at the inertial target, which includes gravity (as SolverVBD); one normalisation
group per world; the optimizer history is carried from one time step to the next (as the checkpoints trained).
- Group per articulation and per deformable: each articulation, each free body and each cloth piece or tet body has its own gradient scale and its own step scale. This is the default in the code today. The checkpoints trained with one group per world.
- Start at x + dt v: the iterate starts without the gravity part, as in the training of the checkpoints. The objective is the same.
- History cleared each step: last gradient, last update and step scale restart at every time step.
- Vectors cleared, scale kept: only the step scale survives a time step.
| Scene | Arm (30 iterations) | Result | Particles: gradient left, median [N] | Bodies: gradient left, median [N] | Particles: error left, median [%] | Bodies: error left, median [%] |
|---|---|---|---|---|---|---|
| Box stack | page configuration | ran to the end | n/a | 0.495 | n/a | 1.1 |
| Box stack | group per articulation and per deformable | ran to the end | n/a | 3.675 | n/a | 8.4 |
| Box stack | start at x + dt v | ran to the end | n/a | 0.457 | n/a | 1.9 |
| Box stack | history cleared each step | ran to the end | n/a | 0.812 | n/a | 1.7 |
| Box stack | vectors cleared, scale kept | ran to the end | n/a | 0.017 | n/a | 0.0 |
| Chain on the ground | page configuration | ran to the end | n/a | 0.023 | n/a | 0.1 |
| Chain on the ground | group per articulation and per deformable | ran to the end | n/a | 0.023 | n/a | 0.1 |
| Chain on the ground | start at x + dt v | ran to the end | n/a | 0.011 | n/a | 63.0 |
| Chain on the ground | history cleared each step | ran to the end | n/a | 0.013 | n/a | 0.1 |
| Chain on the ground | vectors cleared, scale kept | ran to the end | n/a | 0.025 | n/a | 0.1 |
| Cloth on a sphere | page configuration | ran to the end | 0.000 | n/a | 0.1 | n/a |
| Cloth on a sphere | group per articulation and per deformable | ran to the end | 0.000 | n/a | 0.1 | n/a |
| Cloth on a sphere | start at x + dt v | ran to the end | 0.000 | n/a | 7.1 | n/a |
| Cloth on a sphere | history cleared each step | ran to the end | 0.000 | n/a | 0.2 | n/a |
| Cloth on a sphere | vectors cleared, scale kept | ran to the end | 0.000 | n/a | 0.1 | n/a |
| Tet blocks | page configuration | ran to the end | 0.071 | n/a | 1.8 | n/a |
| Tet blocks | group per articulation and per deformable | ran to the end | 0.042 | n/a | 1.1 | n/a |
| Tet blocks | start at x + dt v | ran to the end | 0.036 | n/a | 2.6 | n/a |
| Tet blocks | history cleared each step | ran to the end | 0.153 | n/a | 4.0 | n/a |
| Tet blocks | vectors cleared, scale kept | ran to the end | 0.045 | n/a | 1.1 | n/a |
| Cloth over free bodies | page configuration | ran to the end | 0.000 | 0.010 | 0.1 | 0.0 |
| Cloth over free bodies | group per articulation and per deformable | ran to the end | 0.000 | 0.031 | 0.1 | 0.1 |
| Cloth over free bodies | start at x + dt v | ran to the end | 0.000 | 0.008 | 4.3 | 18.7 |
| Cloth over free bodies | history cleared each step | ran to the end | 0.000 | 0.009 | 0.1 | 0.0 |
| Cloth over free bodies | vectors cleared, scale kept | ran to the end | 0.000 | 0.012 | 0.1 | 0.0 |
| Rigid box on a soft block | page configuration | ran to the end | 0.003 | 0.011 | 0.1 | 0.2 |
| Rigid box on a soft block | group per articulation and per deformable | ran to the end | 0.003 | 0.011 | 0.1 | 0.2 |
| Rigid box on a soft block | start at x + dt v | ran to the end | 0.000 | 0.001 | 43.0 | 13.0 |
| Rigid box on a soft block | history cleared each step | ran to the end | 0.009 | 0.027 | 0.4 | 0.4 |
| Rigid box on a soft block | vectors cleared, scale kept | ran to the end | 0.002 | 0.009 | 0.1 | 0.1 |
| Coupled grasp | page configuration | ran to the end | 0.016 | 0.171 | 2.5 | 1.7 |
| Coupled grasp | group per articulation and per deformable | ran to the end | 0.035 | 0.215 | 4.7 | 2.1 |
| Coupled grasp | start at x + dt v | ran to the end | 0.005 | 0.017 | 49.2 | 6.0 |
| Coupled grasp | history cleared each step | ran to the end | 0.020 | 0.371 | 2.5 | 2.2 |
| Coupled grasp | vectors cleared, scale kept | ran to the end | 0.047 | 0.286 | 3.7 | 1.9 |
Findings
- All 55 runs ran to the end: 9 scenes with three solvers each, and 28 ablation runs. No NeIO run blew up.
- Convergence. With 30 iterations the median error left is between 0.02 % and 3.1 % over the nine scenes. With 10 iterations it is between 0.6 % and 25 %. The motion at 10 iterations is close to the motion at 30 in every video.
- Grasp. The gripper lifts the cube in all runs. The median error left is 2.5 % (particles) and 1.7 % (bodies) at 30 iterations, but the 90th percentile is above 100 %: in some steps the iterations make no progress. These are the steps in which the drive targets move while the fingers press the cube.
- Normalisation group. One group per world is the robust choice when free bodies touch each other. On the box stack, the gradient left is 0.51 N with one group per world and 3.7 N with one group per body. On the cloth over free bodies it is 0.010 N against 0.031 N for the bodies. In a separate test with 10 iterations the box stack blew up with one group per body and stood with one group per world; the original code, which groups per world, gives the same rest heights. In scenes with one articulation or one deformable the two rules are the same thing.
- Start of the iterate. Starting at x + dt v leaves an equal or smaller gradient than starting at the inertial target, in all seven scenes (for example 0.011 N against 0.023 N on the ground chain, 0.0005 N against 0.003 N on the particles of the soft block). The error left in percent is larger for that arm only because its first gradient is small: a body at rest starts at its rest position. Compare the two start options by the gradient left in newtons.
- History. Clearing the whole history at every step is equal or worse in six of seven scenes. Keeping only the step scale is mixed: much better on the box stack (0.017 N against 0.51 N), better on the tet blocks, worse on the grasp. No option wins everywhere; carrying the history stays the default.
- Speed. A captured NeIO step takes 9 to 17 ms with 10 iterations and 17 to 23 ms with 30.
SolverVBDwith 30 iterations takes 3 to 17 ms on the same scenes. On the cloth scenes with contact, NeIO with 10 iterations costs about as much asSolverVBDwith 30. Nothing is optimised yet, and the GPU was shared. - A bug of the first port, now fixed. A free body at rest blew up after tens of steps. The cause: the rigid optimizer rebuilt its last update from world coordinates, and that round trip added rounding noise to a component whose step scale had collapsed. The history now keeps the network's own body-frame step. A resting box then rests where the original code rests it, to five digits.
- Deep starting overlap is violent. The cubic contact force grows with the square of the overlap. A chain that started inside the floor (a scene error, since fixed) was thrown tens of metres. Scenes must start without deep overlap.
Open decisions
- Default group. The code default is one group per articulation and per deformable. The results favour one group per world, which is also what the checkpoints trained with. This page uses one group per world.
- Default start. The code default is the inertial target with gravity, as
SolverVBD. The results favour x + dt v slightly. - Base class.
SolverNeIOderives fromSolverVBDto reuse its setup, detection, truncation and velocity update unchanged. The cost: a model must still be coloured, although NeIO does not use the colours. The alternative is to copy those parts.
What stage 1 does not have
- No training code. The solver exposes the phases a trainer needs; nothing more.
- No ALM for joints. A joint is a plain penalty with the stiffness of the model, so its error grows with load over stiffness.
- No fused inference kernels. The networks run as plain torch modules.
- No two-way attachment between a particle and a body. A held particle is a kinematic particle.
- The two optimizer passes run in sequence. Running them as two branches of one captured graph is a reserved option.
- The truncation of body updates (
rigid_soft_enable_dat) is wired but has no test and no demo yet.
Code: branch ankac/neio-port-impl, package experiments/neio. Design:
pull request 12 of the repository. Eighteen unit tests cover checkpoint loading, network parity, frame equivariance, the
force pass, the options, the guards and the capture.