alphaFeedback

WorksComputer Science

Self-Consistent Neural Control: Learning Trajectories for Implicit Equilibrium

AI contributions
Not recorded for this paper
View details

Abstract

One big challenge in physical AI is interacting with systems whose states are defined by implicit equilibrium. Learning in these systems is difficult because their responses can be multistable, path-dependent, and sensitive over long horizons. Adjoint learning provides an efficient way to optimize trajectories without unrolling iterative equilibrium solvers, but its gradient relies on the frozen-tangent approximation, which neglects higher-order sensitivity terms and can become inaccurate when the local equilibrium varies rapidly. In this work, we introduce Self-Consistent Neural Control (SCNC), optimizing trajectories along which sensitivity variations are explicitly controlled. We derive a mathematical bound on the resulting gradient error and develop a practical finite-difference approximation. We validate the framework on deformable objects, which are representative of implicit equilibrium systems, ranging from simple quadratic energy models such as elastic rods to complex systems including thin-walled tubes, measuring tapes, and Slinky-like structures. Compared with the adjoint learning and the gradient-free iCEM baselines, SCNC achieves faster convergence and more stable optimization by reducing switching to undesirable equilibrium branches, doubling the stable optimization rate over adjoint learning 83.3% vs. 41.7% and reducing the average loss by more than 1.5 orders of magnitude on thin-walled tubes, where sensitivity variations are pronounced.

Introduction

Physical AI aims to enable robots to perceive, reason, and interact with the physical world. For robots that manipulate compliant objects and structures, many interactions can be modeled through mechanical equilibrium rather than explicit state-transition equations. The system state is therefore obtained by solving an equilibrium problem subject to control-dependent boundary conditions. Efficient learning and control through such implicit models are important for complex robotic interactions and have attracted growing interest [28, 25].

Despite this progress, learning and long-horizon control through implicit equilibrium systems remain challenging, particularly when the equilibrium response varies strongly with the control input. Multiple stable equilibria may co-exist, and the equilibrium branch reached by the system can depend on its deformation history [25]. Deformable-object manipulation provides representative examples. As shown in Figure 1, elastic rods provide a relatively well-behaved, bending-dominated case, although the attained equilibrium branch can still depend on the deformation path. Measuring tapes and thin-walled tubes are more instability-prone: increasing curvature can induce cross-sectional deformation, kinking, and abrupt equilibrium changes through the Brazier effect [21] (Figure 1(B)–(C)). More complex structures, such as Slinky-like systems, exhibit strongly coupled bending, stretching, and large geometric reconfiguration (Figure 1(D)). Although these systems differ mechanically, they illustrate a more general computational challenge: the local sensitivity of an implicit state to control can vary rapidly along the optimization trajectory.

Representative implicit equilibrium systems with increasingly complex local responses

Figure 1. Representative implicit equilibrium systems with increasingly complex local responses. (A) Smooth bending-dominated deformation of an elastic rod. (B) Kink propagation during measuring-tape manipulation. (C) Kink formation in a thin-walled tube. (D) Large stretching and geometric reconfiguration of a Slinky-like structure. λ\lambda parameterizes the control trajectory.

Existing approaches differentiate such systems by unrolling iterative solvers, differentiating explicit learned surrogates, or applying implicit differentiation to converged equilibria or fixed points [24, 2] (Hu et al. 2020). Explicit surrogates provide direct gradients but require representative training data and may accumulate model error over long horizons [24, 17]. Implicit models are commonly evaluated through iterative solvers such as Newton–CG or fixed-point iteration. Differentiating through these iterations requires unrolling and backpropagating through the full solution process [27], resulting in deeply nested computational graphs and substantial computational and memory costs. These limitations motivate methods that differentiate directly through the converged implicit condition without unrolling the internal solver iterations.

Recently, adjoint learning was proposed to retain the implicit forward solve while avoiding costly solver unrolling [25]. Rather than differentiating through the internal iterations of the equilibrium solver, it constructs proxy dynamics whose gradients are determined by the sensitivity of the converged equilibrium state to controllable quantities. To improve computational efficiency over long horizons, adjoint learning further adopts a frozen-tangent approximation, in which higher-order variations of the implicit-state sensitivity along the trajectory are neglected [25].

The accuracy of this approximation, however, relies on the implicit-state sensitivity varying sufficiently slowly along the optimization trajectory. This condition can fail in strongly nonlinear regimes, where small changes in control may produce large variations in the local sensitivity or drive the system toward different solution branches [12] (Mróz and Haftka 1994). The neglected higher-order sensitivity variations can then introduce substantial gradient errors, producing poor search directions and driving optimization toward highly sensitive or undesirable regions of the implicit solution landscape. This exposes a fundamental inconsistency: the gradient approximation assumes locally smooth implicit-state sensitivity, yet the optimization trajectory itself is unconstrained from entering regions where this assumption becomes invalid.

We address this inconsistency with Self-Consistent Neural Control (SCNC), a framework for learning control policies in implicit equilibrium systems with both smooth and rapidly varying equilibrium sensitivities (Figure 2). SCNC is self-consistent in the sense that it regularizes the optimization trajectory to satisfy the local smoothness condition on which its own gradient approximation relies. Rather than assuming that higher-order sensitivity variations are negligible, SCNC explicitly controls their magnitude along the trajectory. We derive a bound relating these variations to the resulting gradient error, making gradient validity a consequence of the optimization process rather than an external assumption. We further develop a practical finite-difference formulation that estimates these sensitivity variations using neighboring converged implicit states to avoid high computational cost.

Pipeline for the learning process

Figure 2. Pipeline for the learning process. The policy generates control signals, and the implicit model determines the corresponding equilibrium states. The task objective is evaluated on the resulting trajectory, and gradients are propagated to optimize the policy. SCNC regularizes the learned trajectory to maintain the reliability of the gradient approximation.

We validate SCNC across a range of implicit equilibrium systems, including elastic rods, thin-walled tubes, measuring tapes, and Slinky-like structures with neural-network-based energy models. The benchmarks span both smooth bending-dominated responses and strongly instability-prone regimes, with validation in simulation and real robotic manipulation experiments. Compared with adjoint learning and the gradient-free iCEM baseline, SCNC achieves lower task loss and higher optimization success rates while retaining computational efficiency comparable to adjoint learning.

In summary, the main contributions of this work are:

  • We characterize theoretically and numerically how rapidly varying implicit-state sensitivities can introduce substantial errors under the frozen-tangent approximation, leading to unreliable gradients along the optimization trajectory.

  • We develop Self-Consistent Neural Control (SCNC), derive a bound relating higher-order implicit-state sensitivity variations to gradient error, and introduce a practical finite-difference formulation that estimates and regularizes these variations along the optimization trajectory.

  • We validate SCNC across smooth and instability-prone implicit equilibrium systems, including elastic rods, thin-walled tubes, measuring tapes, and Slinky-like structures, demonstrating improved task performance and optimization robustness over adjoint learning and the gradient-free iCEM baseline in both simulation and real-world experiments.

Related Work

Learning and Long-Horizon Control of Implicit Equilibrium Systems

Learning-based control can rely on either explicit dynamics models or implicitly defined system responses. Explicit learned dynamics and differentiable simulators enable gradient-based trajectory optimization and physical rollouts [24] (Hu et al. 2020), but long-horizon optimization can suffer from accumulated model error [17].

For quasi-static systems, control instead induces sequences of nonlinear equilibria. Examples include energy-based shell and rod models [14, 3] and learned fixed-point models such as deep equilibrium networks [2]. With coexisting equilibria, warm-started solves can become path- and branch-dependent [6, 25]. Adjoint learning differentiates such sequences without unrolling the inner solver, but its gradient can become unreliable when local sensitivities vary rapidly [25], which motivates SCNC.

Differentiation and Gradient Reliability Through Implicit Equilibria

Gradients through equilibria can be obtained by unrolling the numerical solver or differentiating the converged optimality condition. Unrolling is general but incurs horizon-dependent memory cost and truncated-solve errors [9, 15]. Implicit differentiation instead solves a linear adjoint system, as used in optimization layers, deep equilibrium networks, and modular frameworks [1, 2, 4], but remains sensitive to Jacobian conditioning and solve accuracy [12]. Error guarantees for approximate implicit or one-step differentiation typically rely on contraction or local-convergence assumptions [13, 5].

In nonlinear mechanics, tangent stiffness can become singular near critical equilibria and continuation may switch branches, requiring specialized sensitivity treatments [20] (Mróz and Haftka 1994). Adjoint learning avoids solver unrolling with a frozen-tangent proxy, but does not control sensitivity variation along instability-prone paths [25]. SCNC instead treats gradient reliability as trajectory-dependent, regularizing the learned trajectory so that sensitivity variation remains controlled and gradient validity becomes an outcome of optimization.

Continuation and Branch Selection near Instabilities

Quasi-static manipulation can be viewed as planning over a manifold of equilibrium configurations [6], while direct parameter continuation fails at simple folds [8]. Arc-length and pseudo-arclength methods track response curves through limit points and snap-through [23, 7, 8]; near bifurcations, critical-point detection and branch-switching methods access secondary branches [11, 26], while deflation reveals additional coexisting solutions [10].

These methods primarily improve equilibrium-branch tracking. SCNC instead optimizes a task-driven control trajectory while regulating the sensitivity variation that governs gradient reliability. Thus, continuation targets forward branch tracking, whereas SCNC targets reliable gradient-based trajectory learning.

Methodology

Adjoint learning method

Consider an implicit equilibrium system whose free equilibrium state is denoted as xx and the controllable part is denoted as zz. λ\lambda is used to denote the continuation parameter. xx and zz are functions of λ\lambda. We will use x(λ)x(\lambda) or z(λ)z(\lambda) when we try to indicate the function itself, but xkx_k or zkz_k for the specific states at λ=k\lambda= k.

In a normal explicit system, state transitions can be easily expressed in the form of xk+1=T(xk,zk)x_{k+1} = \mathcal{T}(x_k, z_k). However, when it comes to implicit systems, we have

G(x(λ),z(λ))=0.(1)\mathcal{G}(x(\lambda), z(\lambda)) = 0. \tag*{(1)}

Consider the setting in Figure 1(A), zz represents the controllable DOF state, which is the state of the rod grabbed by the grippers, xx represents the free DOF state, and G\mathcal{G} is the implicit equilibrium. The robot should learn how to control zz to push xx to the target x∗x^* following the rule of G\mathcal{G}.

In adjoint learning [25], a neural controller parameterized by Θ\Theta takes λ\lambda as input and generates a sequence of control signals uΘ(λ)u_{\Theta}(\lambda). The controller drives zz through known dynamics f(z(λ),u(λ))f(z(\lambda), u(\lambda)), while the corresponding free state xx is obtained from the implicit equilibrium condition. Since each equilibrium may require many internal solver iterations, directly backpropagating through all solver steps becomes prohibitively expensive over a long horizon.

Sensitivity is defined as:

S(λ):=∂x∂z(λ),Gx(λ)S(λ)=−Gz(λ),(2)S(\lambda) := \frac{\partial x}{\partial z}(\lambda), \qquad G_x(\lambda)S(\lambda) = -G_z(\lambda), \tag*{(2)}

where Gx=∇xG(x,z)G_x = \nabla_x\mathcal{G}(x,z) and Gz=∇zG(x,z)G_z = \nabla_z\mathcal{G}(x,z). In specific dynamics, G\mathcal{G} is often defined as G(x,z)=∇xE(x,z)−Fext\mathcal{G}(x,z) = \nabla_x E(x,z) - F^{\mathrm{ext}} and thus GxG_x and GzG_z become tangent stiffness and mixed stiffness respectively. The sensitivity S(λ)S(\lambda) is never formed explicitly; instead, products STvS^{\mathsf{T}}v are computed via single adjoint linear solve.

The proxy dynamics described by sensitivity along the homotopy path are:

dxdλ=S(λ)dzdλ=S(λ)f(z(λ),u(λ)),(3)\frac{dx}{d\lambda} = S(\lambda)\frac{dz}{d\lambda} = S(\lambda)f(z(\lambda), u(\lambda)), \tag*{(3)}

and the gradient of the loss with respect to the neural network parameters follows from Eq. (3):

dLdΘ=∫01(∂uΘ(λ)∂Θ)TdLdu(λ)dλ,(4)\frac{d\mathcal{L}}{d\Theta} = \int_0^1 \left(\frac{\partial u_{\Theta}(\lambda)}{\partial\Theta}\right)^{\mathsf{T}}\frac{d\mathcal{L}}{du(\lambda)}d\lambda, \tag*{(4)}
dLdu(λ)=B(λ)T(g(λ)+S(λ)Ta(λ)).(5)\frac{d\mathcal{L}}{du(\lambda)} = \mathbf{B}(\lambda)^{\mathsf{T}}(g(\lambda) + S(\lambda)^{\mathsf{T}}a(\lambda)). \tag*{(5)}

where a(λ)=∂L∂x(λ)a(\lambda) = \frac{\partial\mathcal{L}}{\partial x}(\lambda) and g(λ)=∂L∂z(λ)g(\lambda) = \frac{\partial\mathcal{L}}{\partial z}(\lambda) are proxy system costates. A(λ)=∂f∂z(z(λ),u(λ))\mathbf{A}(\lambda) = \frac{\partial f}{\partial z}(z(\lambda), u(\lambda)) and B(λ)=∂f∂u(z(λ),u(λ))\mathbf{B}(\lambda) = \frac{\partial f}{\partial u}(z(\lambda), u(\lambda)) are two constants for fixed task describing how boundary DOF are updated by control signals. Deduction details of Eq. (3) (4) (5) can be found in technical supplement section 1 or adjoint learning paper [25].

Error from frozen-tangent approximation

Eq. (3) (4) (5) and the transition of costate rely on a frozen-tangent approximation: the equilibrium sensitivity S(λ)S(\lambda) is treated as locally constant during the backward pass. This amounts to neglecting the variation of S(λ)S(\lambda) along the homotopy trajectory:

dSdλ=−Gx−1(dGxdλS+dGzdλ),(6)\frac{dS}{d\lambda} = -G_x^{-1}\left(\frac{dG_x}{d\lambda}S + \frac{dG_z}{d\lambda}\right), \tag*{(6)}

where

dGxdλ=∇xxx3E⋅dxdλ+∇xxz3E⋅dzdλ,(7)\frac{dG_x}{d\lambda} = \nabla_{xxx}^{3}E \cdot\frac{dx}{d\lambda} + \nabla_{xxz}^{3}E \cdot\frac{dz}{d\lambda}, \tag*{(7)}

and

dGzdλ=∇xzx3E⋅dxdλ+∇xzz3E⋅dzdλ,(8)\frac{d\mathbf{G}_z}{d\lambda}=\nabla^3_{xzx}E\cdot\frac{d\mathbf{x}}{d\lambda}+\nabla^3_{xzz}E\cdot\frac{d\mathbf{z}}{d\lambda}, \tag*{(8)}

The frozen-tangent approximation claims that for the system with smoothly varying equilibrium – such as elastic rods with simple quadratic energy – these higher-order variations are often small. Thus these terms can be neglected to avoid calculating third-order derivatives of the energy functional which is really expensive.

However, for instability-prone systems like Slinky-like structures, measuring tapes and thin-walled tubes, both Gx(λ)G_x(\lambda) and Gz(λ)G_z(\lambda) can vary rapidly along the homotopy path. In these regimes, the neglected higher-order terms in sensitivity can be fatal. Numerical details for detecting dSdλ\frac{dS}{d\lambda} are included in technical supplement section 7.

Self-consistent learning

Our goal is to constrain the gradient error coming from the frozen-tangent approximation in an acceptable range without any expensive computation.

Note that throughout this paper, ∥⋅∥\|\cdot\| denotes the Euclidean norm when applied to vectors and the Frobenius norm when applied to matrices or tensors.

Define:

ϵ:=sup⁡λ∈[0,1](∥Gx(λ)−1dGxdλ∥+∥Gx(λ)−1dGzdλ∥)(9)\epsilon:= \sup_{\lambda\in[0,1]}\left(\left\|G_x(\lambda)^{-1}\frac{dG_x}{d\lambda}\right\|+\left\|G_x(\lambda)^{-1}\frac{dG_z}{d\lambda}\right\|\right) \tag*{(9)}

The quantity ϵ\epsilon measures the inverse-weighted stiffness variation along the realized homotopy trajectory. We claim that this quantity controls the error introduced by the frozen-tangent approximation up to condition-number constants.

Theorem 1. Assume that Gx(λ)G_x(\lambda) is nonsingular and that S(λ)S(\lambda), A(λ)A(\lambda), a(λ)a(\lambda), and B(λ)∂uΘ(λ)∂ΘB(\lambda)\frac{\partial u_\Theta(\lambda)}{\partial\Theta} are uniformly bounded. Then there exists a constant C>0C>0, independent of ϵ\epsilon, such that

∥∇ΘLp−∇ΘLe∥≤Cϵ.(10)\|\nabla_\Theta\mathcal{L}_p-\nabla_\Theta\mathcal{L}_e\|\le C\epsilon. \tag*{(10)}

Proof. Define

K(λ):=B(λ)∂uΘ(λ)∂Θ.(11)K(\lambda):=B(\lambda)\frac{\partial u_\Theta(\lambda)}{\partial\Theta}. \tag*{(11)}

Based on Eq. (4) (5), the exact and proxy gradients (gradient in adjoint learning method) are

∇ΘLi=∫01KT(gi+STai) dλ,(12)\nabla_\Theta\mathcal{L}_i=\int_0^1K^\mathsf{T}(\mathbf{g}_i+S^\mathsf{T}\mathbf{a}_i)\,d\lambda, \tag*{(12)}

where i=ei=e denotes exact gradient, i=pi=p denotes proxy gradient. Sˉ\bar{S} denotes the locally frozen sensitivity and ae(λ)=ap(λ)=aa_e(\lambda)=a_p(\lambda)=a (see in technical supplement section 2). Note that KK is determined by computation graph of neural network itself and the known dynamics ff. So KK has no difference between exact and proxy gradient. Therefore,

∇ΘLp−∇ΘLe=∫01KT[gp−ge+(Sˉ−S)Ta] dλ.(13)\nabla_\Theta\mathcal{L}_p-\nabla_\Theta\mathcal{L}_e=\int_0^1K^\mathsf{T}\left[\mathbf{g}_p-\mathbf{g}_e+(\bar{S}-S)^\mathsf{T}\mathbf{a}\right]\,d\lambda. \tag*{(13)}

Since uniformly bounded, we can assume ∥I(λ)∥≤MI\|I(\lambda)\|\le M_I, I∈{a,K,S}I\in\{a,K,S\}. Then

∥∇ΘLp−∇ΘLe∥≤MK(sup⁡λ∈[0,1]∥gp(λ)−ge(λ)∥+Masup⁡λ∈[0,1]∥Sˉ(λ)−S(λ)∥).(14)\|\nabla_\Theta\mathcal{L}_p-\nabla_\Theta\mathcal{L}_e\|\le M_K\left(\sup_{\lambda\in[0,1]}\|\mathbf{g}_p(\lambda)-\mathbf{g}_e(\lambda)\|+M_a\sup_{\lambda\in[0,1]}\|\bar{S}(\lambda)-S(\lambda)\|\right). \tag*{(14)}

From Eq. (6),

∥dSdλ∥≤CSϵ,CS:=max⁡{MS,1}.(15)\left\|\frac{dS}{d\lambda}\right\|\le C_S\epsilon,\qquad C_S:=\max\{M_S,1\}. \tag*{(15)}

Then

sup⁡λ∈[0,1]∥Sˉ−S∥≤ΔλCSϵ.(16)\sup_{\lambda\in[0,1]}\|\bar{S}-S\|\le\Delta\lambda C_S\epsilon. \tag*{(16)}

where Δλ:=λk+1−λk\Delta\lambda:=\lambda_{k+1}-\lambda_k. The transition equation of the costate g\mathbf{g} and sup⁡λ∈[0,1]∥A(λ)∥≤MA\sup_{\lambda\in[0,1]}\|A(\lambda)\|\le M_A, combined with Gronwall’s inequality give

∥gp−ge∥≤Cgϵ.(17)\|\mathbf{g}_p-\mathbf{g}_e\|\le C_g\epsilon. \tag*{(17)}

Details of evaluation on g\mathbf{g} are included in technical supplement section 3.

Therefore, Eq. (10) holds with

C:=MK(Cg+MaCSΔλ),(18)C:=M_K(C_g+M_aC_S\Delta\lambda), \tag*{(18)}

where CC is a constant independent of ϵ\epsilon.

The premises of theorem 1 are encouraged by the penalty below.

This bound motivates a self-consistent control framework: the controller is optimized not only to minimize the task objective, but also to select trajectories along which the approximation used to compute its gradient remains valid.

Finite-difference surrogate penalty

Theorem 1 suggests constraining the sensitivity variation through

Lreg=μx∫01∥Gx−1dGxdλ∥2 dλ+μz∫01∥Gx−1dGzdλ∥2 dλ,(19)\mathcal{L}_{\mathrm{reg}}=\mu_x\int_0^1\left\|G_x^{-1}\frac{dG_x}{d\lambda}\right\|^2\,d\lambda+\mu_z\int_0^1\left\|G_x^{-1}\frac{dG_z}{d\lambda}\right\|^2\,d\lambda, \tag*{(19)}

where μx\mu_x and μz\mu_z are regularization weights. However, directly evaluating and differentiating Eq. (19) is expensive because of the derivative and inverse matrix based on Eq. (7) (8).

We therefore construct a finite-difference approximation. Discretise the homotopy path into KK intervals with Δλ=1K\Delta\lambda=\frac{1}{K}. The stiffness derivatives can be approximated by

dGxdλ∣λk=Gx(λk+1)−Gx(λk)Δλ+O(Δλ),(20)\left.\frac{dG_x}{d\lambda}\right|_{\lambda_k}=\frac{G_x(\lambda_{k+1})-G_x(\lambda_k)}{\Delta\lambda}+\mathcal{O}(\Delta\lambda), \tag*{(20)}
dGzdλ∣λk=Gz(λk+1)−Gz(λk)Δλ+O(Δλ).(21)\left.\frac{dG_z}{d\lambda}\right|_{\lambda_k}=\frac{G_z(\lambda_{k+1})-G_z(\lambda_k)}{\Delta\lambda}+\mathcal{O}(\Delta\lambda). \tag*{(21)}

For any matrix QQ,

∥Q∥σmax⁡(Gx)≤∥Gx−1Q∥≤∥Q∥σmin⁡(Gx).(22)\frac{\|Q\|}{\sigma_{\max}(G_x)}\le\|G_x^{-1}Q\|\le\frac{\|Q\|}{\sigma_{\min}(G_x)}. \tag*{(22)}

where (σmin⁡)(\sigma_{\min}) and (σmax⁡)(\sigma_{\max}) denote the smallest and largest singular values, respectively. Therefore, as long as GxG_x is not strictly singular, the inverse-weighted quantities in Eq. (22) are controlled. Actually, it is in practical applications and is not only dependent on the configurations but also on Young’s modulus. Across all 24 experimental cases under SCNC, the smallest minimum singular value of GxG_x observed over all steps is 3.7×10−43.7 \times10^{-4}, occurring in the thin-walled tube scenario. At this scale, the effect associated with the near-singularity can still be effectively controlled by the μ\mu. We combined the finite-difference method in Eqs. (23)–(24), which motivates the following condition-number-dependent practical surrogate:

Lregpractical=μx∑k=0K−1∥Gx(λk+1)−Gx(λk)∥2Δλ2+μz∑k=0K−1∥Gz(λk+1)−Gz(λk)∥2Δλ2.(23)\mathcal{L}_{\mathrm{reg}}^{\mathrm{practical}} = \mu_x \sum_{k=0}^{K-1} \frac{\lVert G_x(\lambda_{k+1})-G_x(\lambda_k)\rVert^2}{\Delta\lambda^2} + \mu_z \sum_{k=0}^{K-1} \frac{\lVert G_z(\lambda_{k+1})-G_z(\lambda_k)\rVert^2}{\Delta\lambda^2}. \tag*{(23)}

The final training objective is

Ltotal=Ltask+Lregpractical.(24)\mathcal{L}_{\mathrm{total}} = \mathcal{L}_{\mathrm{task}} + \mathcal{L}_{\mathrm{reg}}^{\mathrm{practical}}. \tag*{(24)}

Unlike Eq. (19), Eq. (23) doesn’t contains a matrix inverse. It only penalizes the variation of the tangent and mixed stiffness matrices between consecutive equilibrium states, providing a practical approximation of the original regularization loss.

Pseudocode is included in technical supplement section 8.

Result

We evaluate SCNC using a set of 2D deformable manipulation testbeds spanning smooth and instability-prone implicit equilibrium regimes. The experiments include elastic rods, thin-walled tubes, and measuring tapes in both simulation and the real world, together with simulated Slinky-like structures governed by a learned neural energy model.

We use python jax library to realize our Newton iterative simulator combined with line search when minimizing the energy for implicit equilibrium.

We compare our SCNC with adjoint learning and iCEM. All the methods share the same forward rollout method described above but utilize different ways to calculate gradients.

Experimental setup

We model the elastic rods, thin-walled tubes and measuring tapes as center lines with stretching and bending energy. The center lines are discretized into 101 nodes with each node including 2 DOF: xx and yy. For Slinky-like structures, we follow the Slinky model of (Li et al. 2023) whose energy is governed by a learned neural network. We choose one with 50 coils and each coils has 3 DOF: xx, yy and α\alpha which denotes the orientation of the coil. For all of these, the robot arm will grab the both ends. Models’ details are provided in the technical supplement sections 4 and 5.

Tasks and metrics

For all objects, we use the same node-targeting task, in which the robot manipulates both ends of the object to move a designated node to a target position. The control signal uΘ(λi)u_{\Theta}(\lambda_i)

varies from R2\mathbb{R}^2 to R4\mathbb{R}^4, including xx axis displacement for two ends and the in-plane rotation for two clamps.

Denote the coordinates of chosen node as n\mathbf{n} which is a function of λ\lambda and target position as n∗\mathbf{n}^*. The task loss is defined as:

Ltask=12∥n(1)−n∗∥2.(25)\mathcal{L}_{task} = \frac{1}{2}\lVert\mathbf{n}(1)-\mathbf{n}^* \rVert^2. \tag*{(25)}

Besides, we define a optimization is stable if the equilibrium doesn’t switch to the bad branch – kink doesn’t propagate (change the relative position on the object), disappear and no new kink occurs for tapes and tubes; stiffness of Slinky-like structures doesn’t vary too fast (the final distance between left end and right end is less than 1.5 times its original distance).

Each object contains six evaluation cases for every method.

Simulation results

We reported some representative simulation results in Figure 3. The rendered figure shows the stability of our method. As described before, our method is less prone to switching to undesirable equilibrium branches. For case A, adjoint learning gives a bad final equilibrium, where the two initial kinks merge into one and the whole tape twists. While SCNC translates the tape as a whole and preserves the stability of the kink when trying to move the controlled point to the target. For case B, adjoint learning propagates a kink initially near the left end toward the right end of the tape while SCNC keeps the relative position of the kink. Similar things happen on tube cases. For cases C and D, adjoint learning’s trajectories have new kink occurring while SCNC maintains the original configurations and realizes the target at the same time.

Partial numerical result showing controlled nodes, target positions, trajectories, and examples for tape, tube, rod, and Slinky

Figure 3. Partial numerical result. Two cases for each object. The boundary conditions are controlled to drive the user-specified nodes to targets. Cases from tape, tube and Slinky shows the stability of SCNC than adjoint learning.

When it comes to the Slinky-like structures, SCNC still shows advantages. For case G, adjoint learning primarily moves only the right end of the Slinky, resulting in a substantial increase in its length. This significantly changes the stiffness and sensitivity of the system, making control much more challenging. In contrast, SCNC again learns to translate the entire Slinky toward the target while avoiding excessive stretching. Similar behaviors can be observed in case H.

For elastic rods (cases E and F), the policies learned by adjoint learning and SCNC are nearly indistinguishable, which is consistent with our expectations. Owing to the simple quadratic energy form, elastic rods exhibit smooth and well-behaved sensitivity variations. As a result, the frozen-tangent approximation underlying adjoint learning remains sufficiently accurate, allowing it to achieve performance comparable to that of SCNC.

Baselines comparison

In addition to adjoint learning, we choose iCEM as another baseline because it is widely used for trajectory optimization. [22] We select population size P=10P = 10, which already imposes a substantial computational burden. All other parameters needed are included in technical supplement section 6.

Convergence Figure 4(A) shows the score (log⁡10\log_{10}(best loss)) vs. epoch loss history. Each thin curve corresponds to the average loss trajectory of a method for one object, whereas the thick curve represents the overall mean loss trajectory. The results show that both adjoint learning and SCNC substantially outperform iCEM, while SCNC exceeds adjoint learning by 0.601 points in score and achieves an approximately 4×4\times lower average loss at epoch 30.

Loss score versus epoch and stable optimization count for different methods and objects

Figure 4. (A) Loss score vs. epoch for different methods and objects. (B) Stable optimization count for different methods and objects.

The largest performance gap between SCNC and adjoint learning is observed for thin-walled tubes, where the average loss differs by more than 1.5 orders of magnitude. Technical Supplement section 7 further shows that this system exhibits the largest sensitivity variations, together with the largest difference in sensitivity variation between the two methods, supporting the effectiveness of explicitly controlling sensitivity variations in instability-prone systems.

In contrast, for elastic rods with relatively small sensitivity variations, adjoint learning already performs well. Consequently, the gap between SCNC and adjoint learning is much smaller, as expected.

Statistical significance analysis is included in technical supplement section 9.

Stability Figure 4(B) compares the stability of each method across different objects according to the stable optimization criterion defined in § 4.2. Among the 24 evaluation cases, SCNC achieves stable optimization in 20 cases (83.3%), substantially outperforming iCEM with 12 cases (50.0%) and adjoint learning with 10 cases (41.7%). In particular, SCNC remains stable on several instability-prone tape and tube tasks where both baselines fail, demonstrating its improved robustness to abrupt equilibrium transitions and rapidly varying sensitivities.

Computational cost As Table 1 reports, SCNC incurs almost no additional overhead compared with adjoint learning, with the average time per epoch increasing by only about 8%. Nevertheless, it remains substantially more efficient than iCEM. This demonstrates the practicality of our finite-difference surrogate, which significantly improves optimization performance while introducing only a marginal computational overhead.

MethodTapeTubeRodAverage
Time[s]Mem.[MB]Time[s]Mem.[MB]Time[s]Mem.[MB]Time[s]Mem.[MB]
Adjoint learning11.561834.82.851865.92.001680.35.471793.7
SCNC(ours)11.771849.03.261873.52.761762.55.931828.3
iCEM113.081846.421.401871.017.091761.550.521826.3

Table 1. Computational efficiency comparison across different physical systems. Each system contains six node-targeting tasks. Time denotes time per epoch, and Mem. denotes peak memory usage.

Peak memory consumption is comparable across all three methods because the libraries occupy the majority of memory needed. Finally, the computational cost for the Slinky-like structure is reported separately in the Technical Supplement section 6.4 because its energy is represented by a neural network.

Real world experiments

As shown in Figure 5, the real-world experiments follow the simulation setup in Figure 3, except that the Slinky-like structure is excluded and only SCNC results are shown for the elastic rod, where SCNC and adjoint learning perform comparably. Matching subfigure labels denote the same experimental cases.

Real world experiments

Figure 5. Real world experiments. Opacity increases over time.

Consistent with § 4.2.1, the real-world experiments show that SCNC substantially outperforms adjoint learning on thin-walled tubes and measuring tapes, where instability-induced transitions are more pronounced, while achieving comparable performance on elastic rods. This confirms that the advantages of SCNC extend to real-world robotic manipulation.

Additionally, a complete video of each real-world experimental case is provided in the media supplement, using the same label as in Figure 3 and Figure 5.

Discussion

Our results suggest that optimization stability in implicit equilibrium systems is closely tied to the validity of the gradient approximation. When local equilibrium sensitivities vary rapidly, the frozen-tangent approximation can produce inaccurate search directions, leading to unstable optimization and degraded task performance. Rather than recovering the neglected higher-order derivatives, SCNC steers optimization toward trajectories where the approximation remains reliable, resulting in more stable learning and improved performance across instability-prone regimes.

Although demonstrated on energy-based mechanics systems, the proposed framework is not restricted to any particular constitutive model. The derivation only assumes an implicitly defined equilibrium together with differentiable local equilibrium sensitivities, making the idea potentially applicable to a broader class of implicit physical systems. The experiments on neural-network energy models provide an indication of this generality.

The current work nevertheless has several limitations. First, although the proposed theory is generally applicable to implicit equilibrium systems, the experimental evaluation is currently limited to node-targeting manipulation tasks. While these tasks capture the optimization challenges caused by rapidly varying equilibrium sensitivities, they do not fully represent the diversity of practical robotic manipulation problems. Future work will evaluate SCNC on more challenging scenarios, including shape control, 3D manipulation and contact-rich interaction. Second, the regularization weights are currently selected empirically based in the Young’s modulus of the material (See technical supplement section 7). Developing adaptive regularization strategies that automatically adjust the penalty according to the sensitivity variation is another promising direction for future research.

Conclusion

We presented Self-Consistent Neural Control (SCNC), a learning framework for implicit equilibrium systems that improves optimization by explicitly controlling the variation of local equilibrium sensitivity. Unlike adjoint learning, which applies the frozen-tangent approximation with high risk, SCNC regularizes the trajectory to maintain the reliability of the approximation. We further derived a theoretical bound relating sensitivity variation to gradient error and proposed an efficient practical finite-difference surrogate. Experimental results on both physical and learned equilibrium models demonstrate that SCNC achieves more stable optimization and better task performance than existing gradient-based and gradient-free baselines, particularly in instability-prone regimes. We hope this work provides a useful perspective for scalable learning and control in implicit physical systems and inspires future research on robust optimization for physical AI.

References

  1. [1]Amos, B.; and Kolter, J. Z. 2017. OptNet: Differentiable Optimization as a Layer in Neural Networks. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, 136–145. PMLR.arxiv.org/abs/1703.00443
  2. [2]Bai, S.; Kolter, J. Z.; and Koltun, V. 2019. Deep Equilibrium Models. In Advances in Neural Information Processing Systems, volume 32.arxiv.org/abs/1909.01377
  3. [3]Bergou, M.; Wardetzky, M.; Robinson, S.; Audoly, B.; and Grinspun, E. 2008. Discrete Elastic Rods. ACM Transactions on Graphics, 27(3): 63:1–63:12.
  4. [4]Blondel, M.; Berthet, Q.; Cuturi, M.; Frostig, R.; Hoyer, S.; Llinares-López, F.; Pedregosa, F.; and Vert, J.-P. 2022. Efficient and Modular Implicit Differentiation. In Advances in Neural Information Processing Systems, volume 35, 5230–5242.arxiv.org/abs/2105.15183
  5. [5]Bolte, J.; Pauwels, E.; and Vaiter, S. 2023. One-Step Differentiation of Iterative Algorithms. In Advances in Neural Information Processing Systems, volume 36.arxiv.org/abs/2305.13768
  6. [6]Bretl, T.; and McCarthy, Z. 2014. Quasi-Static Manipulation of a Kirchhoff Elastic Rod Based on a Geometric Analysis of Equilibrium Configurations. The International Journal of Robotics Research, 33(1): 48–68.DOI
  7. [7]Crisfield, M. A. 1981. A Fast Incremental/Iterative Solution Procedure That Handles “Snap-Through”. Computers & Structures, 13(1): 55–62.
  8. [8]Dickson, K. I.; Kelley, C. T.; Ipsen, I. C. F.; and Kevrekidis, I. G. 2007. Condition Estimates for Pseudo-Arclength Continuation. SIAM Journal on Numerical Analysis, 45(1): 263–276.arxiv.org/abs/math/0603716
  9. [9]Domke, J. 2012. Generic Methods for Optimization-Based Modeling. In Proceedings of the 15th International Conference on Artificial Intelligence and Statistics, volume 22 of Proceedings of Machine Learning Research, 318–326. PMLR.
  10. [10]Farrell, P. E.; Birkisson, Á.; and Funke, S. W. 2015. Deflation Techniques for Finding Distinct Solutions of Nonlinear Partial Differential Equations. SIAM Journal on Scientific Computing, 37(4): A2026–A2045.arxiv.org/abs/1410.5620
  11. [11]Fujii, F.; and Choong, K.-K. 1992. Branch Switching in Bifurcation of Structures. Journal of Engineering Mechanics, 118(8): 1578–1596.DOI
  12. [12]Geng, Z.; Zhang, X.-Y.; Bai, S.; Wang, Y.; and Lin, Z. 2021. On Training Implicit Models. In Advances in Neural Information Processing Systems, volume 34, 24247–24260.arxiv.org/abs/2111.05177
  13. [13]Grazzi, R.; Franceschi, L.; Pontil, M.; and Salzo, S. 2020. On the Iteration Complexity of Hypergradient Computation. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, 3748–3758. PMLR.
  14. [14]Grinspun, E.; Hirani, A. N.; Desbrun, M.; and Schröder, P. 2003. Discrete Shells. In Proceedings of the 2003 ACM SIGGRAPH/Eurographics Symposium on Computer Animation, 62–67. Eurographics Association.
  15. [15]Gruslys, A.; Munos, R.; Danilheka, I.; Lanctot, M.; and Graves, A. 2016. Memory-Efficient Backpropagation Through Time. In Advances in Neural Information Processing Systems, volume 29, 4125–4133.arxiv.org/abs/1606.03401
  16. [17]Janner, M.; Fu, J.; Zhang, M.; and Levine, S. 2019. When to Trust Your Model: Model-Based Policy Optimization. In Advances in Neural Information Processing Systems, volume 32.arxiv.org/abs/1906.08253
  17. [20]Parente Junior, E.; and de Sousa Junior, J. B. M. 2008. Design Sensitivity Analysis of Nonlinear Structures Subjected to Thermomechanical Loads. Computers & Structures, 86(13–14): 1369–1384.DOI
  18. [21]Pastrana, C. L.; Qiu, L.; Hutchinson, J. W.; Amir, A.; and Gerland, U. 2025. Mechanics and Wrinkling Patterns of Pressurized Bent Tubes. Physical Review E, 111(1): L013502.DOI
  19. [22]Pinneri, C.; Sawant, S.; Blaes, S.; Achterhold, J.; Stückler, J.; Rölínek, M.; and Martius, G. 2021. Sample-Efficient Cross-Entropy Method for Real-Time Planning. In Proceedings of the 2020 Conference on Robot Learning, volume 155 of Proceedings of Machine Learning Research, 1049–1065. PMLR.arxiv.org/abs/2008.06389
  20. [23]Riks, E. 1979. An Incremental Approach to the Solution of Snapping and Buckling Problems. International Journal of Solids and Structures, 15(7): 529–551.DOI
  21. [24]Sanchez-Gonzalez, A.; Godwin, J.; Pfaff, T.; Ying, R.; Leskovec, J.; and Battaglia, P. W. 2020. Learning to Simulate Complex Physics with Graph Networks. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, 8459–8468. PMLR.
  22. [25]Tong, D.; Wang, J.; Zhou, H.; Shen, Y.; Huang, X.; and Jawed, M. K. 2026. Neural Control: Adjoint Learning Through Equilibrium Constraints. In Proceedings of the 43rd International Conference on Machine Learning. PMLR.arxiv.org/abs/2605.03288
  23. [26]Uecker, H.; Wetzel, D.; and Rademacher, J. D. M. 2014. pde2path: A Matlab Package for Continuation and Bifurcation in 2D Elliptic Systems. Numerical Mathematics: Theory, Methods and Applications, 7(1): 58–106.
  24. [27]Williams, R. J.; and Peng, J. 1990. An efficient gradient-based algorithm for on-line training of recurrent network trajectories. Neural computation, 2(4): 490–501.DOI
  25. [28]Yin, H.; Varava, A.; and Kragic, D. 2021. Modeling, Learning, Perception, and Control Methods for Deformable Object Manipulation. Science Robotics, 6(54): eabd8803.DOI

Paper details

vlnc:W_emfm8mxd
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 7

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents