When a neural network simulates a jointed body such as a robot arm, a rope of rigid links, or a human skeleton, every joint's orientation has to be advanced in time. That step can be done cheaply and sloppily, or expensively and carefully. Cheap methods take a straight-line step and then rescale the rotation back to valid form. Careful methods keep the rotation exactly valid and also conserve energy and momentum over long runs; these are geometric integrators, which build the curved geometry of rotations into the update itself. Prior work picks one method for the whole body by hand. We propose that the choice should be made per joint and searched automatically under a compute budget. The search becomes tractable once one checks long-horizon physical faithfulness with a cheap short-horizon test that existing architecture-search proxies do not provide.
Concretely, we represent each joint's orientation as a unit quaternion, a four-number encoding of 3D rotation that lives on a sphere and has no gimbal-lock singularities. We advance the whole body with a splitting scheme: one time step is a composition of per-joint sub-steps. For each joint, a discrete search chooses which integrator to use and how many sub-steps to take. The central technical claim is about the search signal. Ordinary one-step prediction error ranks integrators badly for long-horizon behaviour, because a non-conservative method can be locally accurate and still drift for thousands of steps. A time-reversibility defect measured on short rollouts should rank them correctly. If that holds, micro-to-macro search of the kind used for language models carries over to physical simulators. If it fails, we learn that proxy-based search is not safe for physics.
Core Claim
Composing symplectic maps (maps that preserve the phase-space structure of mechanics) gives another symplectic map. So if every per-joint sub-step in a Strang splitting is symplectic, the whole-body step keeps the long-term energy-boundedness guarantees of variational integration, whatever mix of cheap and expensive sub-steps is chosen. The mix then trades only local accuracy against compute. Letting the search also choose non-symplectic sub-steps tests a second, empirical claim: on noisy real data, small amounts of non-conservative error on low-energy joints are harmless.
The per-joint catalog has four entries:
- Euler stepping followed by quaternion renormalization, the cheapest option.
- QuaMo-style exact exponential-map kinematic updates, which stay on the sphere but are not symplectic.
- An explicit symplectic splitting of the rigid-body sub-flow.
- The implicit quaternion Lie-group variational step of Lie group variational integrators for rigid body problems using quaternions, which needs a Newton solve.
Each entry can be paired with 1, 2 or 4 sub-steps. A 24-joint skeleton therefore has $12^{24}\approx 8\times 10^{25}$ configurations, which is a combinatorial space in the sense the architecture-search literature cares about.
The search proxy is a reversibility defect. Write $\Phi_h$ for one composed step of size $h$ and $\Phi_{-h}$ for the step run backward in time. Starting from a state $z_0$, we roll forward $n$ steps, then backward $n$ steps, and measure
$$D_n(z_0)=d\big(\Phi_{-h}^{\,n}\circ\Phi_h^{\,n}(z_0),\,z_0\big),$$
where $d$ uses the antipodally invariant rotation distance $1-|\langle q,q'\rangle|$ for orientations and Euclidean distance for momenta. Symmetric symplectic compositions have $D_n$ near round-off. Non-structure-preserving parts produce defects that grow with $n$. That growth is the same mechanism that later shows up as secular energy drift, so ranking configurations by $D_n$ at small $n$ should predict their ranking by drift at large $n$.
Research Program
Learned components. The learned parts follow Lie Group Forced Variational Integrator Networks. That work learns inertia, potential energy and control forces inside a discrete variational step on matrix groups using a Cayley transform. We move the same small networks onto the quaternion sphere. For articulated systems we use the joint-as-node, bar-as-edge graph structure of the Lagrangian Graph Neural Network. That paper learns kinetic and potential energy with graph networks but integrates the resulting Euler-Lagrange accelerations with generic solvers; our contribution is to swap those solvers for per-joint geometric sub-steps.
Antipodal ambiguity. The quaternions $q$ and $-q$ describe the same rotation, which complicates training. We handle this only where it arises, in the losses, through $1-|\langle q,q'\rangle|$. We never restrict outputs to one hemisphere. Integrated trajectories stay continuous on the full sphere, so the hemisphere cuts discussed by Wu et al. never appear inside the integrator.
Search. The search adapts Composer. Composer runs Bayesian optimization over discrete layer arrangements at micro scale, clusters the top candidates into a consensus design, and extrapolates it to large models, reporting a 0.97 Spearman correlation between micro-scale and 1B-scale rankings on its MAD proxy tasks. Our analogue of micro scale is short horizons and reduced chains. Our analogue of extrapolation is going from 4-link chains to 16- and 100-link chains and from short to 1000× longer horizons, the same generalization regime LGNN evaluates.
Training every candidate from scratch is unaffordable. We therefore train the energy networks once with the most accurate catalog entry, then briefly fine-tune each candidate. For the final top five configurations we retrain from scratch, to check that sharing weights did not bias the ranking.
Questions. The program answers three questions in order. First, does $D_n$ predict long-horizon drift rank better than one-step error? Second, under a fixed per-step latency budget, does searched allocation beat every uniform assignment? Third, do the patterns the search finds generalize as interpretable rules, for example spending the implicit sub-steps on high-angular-velocity distal links?
Baselines
The naive reference point uses Euler steps with renormalization at every joint, with the same learned energy networks. It shows how much any structure preservation buys on each benchmark.
The kinematic reference uses QuaMo-style exact exponential-map updates at every joint, following QuaMo. QuaMo integrates a first-order quaternion differential equation online, with learned proportional-derivative gains. On motion capture we compare directly against its reported Human3.6M results: 46.7 mm MPJPE (mean per-joint position error) and acceleration error as low as 5.3 mm/frame², with roughly 50% less foot skating than earlier online methods. Beating it means matching its MPJPE while lowering acceleration error or foot skating at equal per-frame latency. For Fit3D, SportsPose and AIST there is no reported result on Lacuna for QuaMo, so we rerun it.
The quality ceiling is the implicit quaternion variational step applied uniformly. On the planar three-mass body it reports energy error near $10^{-7}$, unit-norm error near $10^{-14}$ and angular-momentum error near $10^{-11}$ over 1,000 time units (Lie group variational integrators for rigid body problems using quaternions). We first reproduce these numbers. The searched configuration must then come within an order of magnitude on energy at no more than half the wall-clock time.
The strongest cheap competitor is the explicit symplectic splitting applied uniformly. A heuristic allocation (implicit on the k fastest-moving joints, explicit elsewhere) and random search are run with identical evaluation budgets.
The learned-dynamics baselines are matrix-group LieFVIN on the quadrotor and pendulum, and LGNN on chains and tensegrity structures, where LGNN reports an energy violation of about $10^{-4}$.
The key ablation runs the same search with one-step error replacing $D_n$ as the proxy. This isolates the contribution of the proposed search signal.
All methods share data, the energy-network architecture and the training budget. Search methods share the number of proxy evaluations, and latency is measured on the same hardware.
Why not just…?
Why not just use the explicit symplectic splitting everywhere? This is the real threat. If explicit splitting is accurate enough on every joint at the target step size, search adds nothing. The experiments settle it by plotting the accuracy–latency Pareto front. If the uniform-explicit point sits on the searched front across 16- and 100-link chains and on the motion-capture data, we report that search is unnecessary and the contribution shrinks to the proxy study. We expect explicit splitting to lose on fast distal links at large step sizes, where implicit or sub-stepped updates matter, but that is a hypothesis.
Why not just use the implicit variational integrator everywhere? When compute is unconstrained it should win, and we treat it as the ceiling, not as something to beat. The question only exists under a latency budget. Section 2.3 of the research file identifies per-step implicit Newton solves across dozens of links as the bottleneck for online use. We report the budget at which uniform implicit becomes feasible, so readers can see where the proposal stops mattering.
Why not just run standard architecture search over attention and MLP layers? Composer searches only over Euclidean layers. No arrangement of those layers keeps a state on the unit sphere or preserves the symplectic form. Evidence in Variational Integrator Networks and LGNN shows that unstructured models drift or diverge over long rollouts. We include a Composer-style Euclidean search on chains as a check, but we expect it to inherit that drift.
Why not just use rotation matrices and avoid the double cover? Matrices remove the sign ambiguity but cost 27 multiplications per composition against 16 for quaternions, and about 55% more memory (Lie group variational integrators for rigid body problems using quaternions). That cost moves the latency budget in favour of quaternions. The matrix-group LieFVIN baseline measures what is gained or lost in practice.
Proposed Experiments
Proxy validity. This is the first decisive check. On simulated chains with 4, 16 and 100 links and on the three-mass body, we sample 500 random configurations and compute $D_n$ for $n\le 50$. We then compute the Spearman correlation with energy drift and angular-momentum drift at 1000× longer horizons. Success means the correlation for $D_n$ beats the correlation for one-step error by a clear margin, with Composer's 0.97 on language proxies as the aspirational reference. Failure means proxy-based search is unsafe for conservative dynamics, a negative result worth reporting in its own right.
Budgeted dynamics. On chains, tensegrity structures, the pendulum and the PyBullet quadrotor, we compare searched against uniform configurations. The metrics are energy error, unit-norm error, momentum error, rollout position error and wall-clock time per step, swept across three latency budgets. For the quadrotor we also report closed-loop tracking on LieFVIN's diamond trajectory.
Motion capture. We replace QuaMo's per-joint propagation with the searched mixture, keeping its observation pipeline and controller fixed. We report MPJPE, acceleration error and foot skating on Human3.6M, Fit3D, SportsPose and AIST at matched online latency. Because QuaMo's propagation is kinematic, here only the cost and accuracy of the sub-steps differ, so this experiment tests whether per-joint allocation helps on noisy real data even where conservation laws are only approximate.
References
- Lie group variational integrators for rigid body problems using quaternions
- Lie Group Forced Variational Integrator Networks for Learning and Control of Robot Systems
- Learning Articulated Rigid Body Dynamics with Lagrangian Graph Neural Network
- Real-Time Object Pose Estimation with Pose Interpreter Networks.
- Composer: A Search Framework for Hybrid Neural Architecture Design
- QuaMo: Quaternion Motions for Vision-based 3D Human Kinematics Capture
- Variational Integrator Networks for Physically Structured Embeddings