When a robot finger presses a block, the variables at rest form a loop. Normal force depends on how far the surfaces are pressed together, and that depth depends on the normal force. Friction depends on the normal force, and friction in turn decides whether the block sticks or slides. So the "who affects whom" graph among these resting variables is cyclic. Worse, the graph changes discontinuously when the contact changes regime: sticking, slipping, or lifting off.
Two literatures touch this problem and neither handles it. Cyclic causal discovery drops the usual no-loops (acyclicity) constraint and models data as the resting point of a feedback system. But it assumes a single graph with a single, unique resting point. Differentiable physics tries to smooth or differentiate through contact so gradients can flow. But the discontinuity is the very thing that carries the structural information. We propose to learn a mixture of cyclic causal graphs, one per contact regime, together with the rule that switches between them. The model is trained only on resting-state samples that a non-differentiable simulator produces under interventions, so it never backpropagates through the simulator at all.
Core Claim
Recent cyclic discovery methods model each sample as the equilibrium of $x = f(x) + \epsilon$, where $x$ is the vector of observed variables and $\epsilon$ is exogenous noise. They make $f$ contractive (Lipschitz constant below one) so that the equilibrium exists and is unique. This line includes NODAGS-Flow, which uses contractive residual flows with a relaxed edge mask, DCCD-CONF, which adds a sparse noise covariance for hidden confounders, and SCOUT, which adds spline noise models and learns unknown soft-intervention targets. All three were tested only on synthetic graphs and gene-expression data. Their shared contractivity assumption rules out multistability by construction. A block that can either stick or slip under the same applied load is exactly such a multistable system.
We keep contractivity, but only within each mode. The density of a resting sample $x$, given exogenous inputs $u$ (applied loads, actuator setpoints) and an intervention regime $I$, is written as
$$p(x \mid u, I) = \sum_{k=1}^{K} \pi_k(u, I)\, p_k(x \mid I),$$
The terms in this expression are as follows. Each $p_k$ is a contractive residual flow in the style of NODAGS-Flow, with its own cyclic adjacency mask $A_k$. The weight $\pi_k$ is a small gating network giving the probability of contact mode $k$. $K$ is the number of modes.
Each component still has a unique equilibrium. The mixture, however, can place several equilibria at the same input, which is how stick/slip bistability looks in data. Crucially, the simulator is used only as a sampler of interventional equilibria. Its non-differentiability, whether from a legacy code base or from hard contact, never enters the optimization.
The claim is falsifiable. On contact systems with known mode-dependent structure, this model should recover the per-mode graphs and the switching surface. Three approaches should not: single-graph contractive methods, gradient-based structure fitting through smoothed differentiable simulators, and finite-difference Jacobian inversion. Each should fail specifically near mode boundaries and when only actuated variables can be intervened on.
Research Program
The first deliverable is a benchmark that does not yet exist: quasi-static contact systems with ground-truth cyclic structure per mode. Ground truth is defined operationally in an instrumented simulator. Edge $i \to j$ exists in mode $k$ if clamping $i$ while holding all other internal variables fixed changes $j$ at equilibrium. This is a controlled direct effect, and we can compute it because we own the instrumentation.
The learner is denied this privilege. It may intervene only on quantities a real experimenter controls. These are hard or soft shifts to actuator setpoints and external forces, plus mechanism-level soft interventions such as changing a controller gain or a friction coefficient, with the target left unknown to the learner in the style of SCOUT. Internal contact forces, penetration depths, slip velocities, and sensor readings are observed but never clamped. Exogenous variation comes from randomized masses, friction coefficients, and initial conditions. Simulated sensor noise is added to address the measurement-noise limitation that NODAGS-Flow flags.
We will build four systems of increasing size. The first is a force-controlled finger pushing a block, with three modes: stick, slip, and lift-off. The second is a stack of three to five blocks with per-interface contact on/off, reusing the book-stacking setup validated in Efficient Differentiable Contact Model with Long-range Influence. The third is a gripper with a closed-loop force controller squeezing a compliant object. It is a direct analogue of the sensor–actuator feedback loops that Huegle et al. describe in manufacturing, where imposing acyclicity is known to fail. The fourth is a 7-DOF Franka pushing task with contact across many links, scaled to roughly 30–60 variables. Each system is simulated in MuJoCo, in a compliant engine (Brax or Warp), and in Dojo.
The model is trained by maximum likelihood with an expectation-maximization loop over mode responsibilities, using Gumbel-Softmax edge masks within each component. $K$ is chosen by held-out interventional likelihood. The simulator's own contact-mode log is withheld from training and used only to score mode recovery.
We are candid about identifiability. Identifiability of a single cyclic model rests on interventions and non-Gaussian noise, as in Mooij et al.. No such result exists for mixtures of cyclic models, and the file flags that identifiability already weakens once cycles are allowed (Chen et al.). We will state sufficient conditions empirically before attempting them formally. Specifically, we will measure how recovery degrades as interventions are restricted to fewer actuated variables and as noise becomes more Gaussian.
Baselines
The naive reference points are two. The first is an empty-graph predictor that treats variables as independent. The second is thresholded partial correlation computed on the pooled data. Any method that fails to beat these on interventional likelihood has learned nothing.
The strongest existing competitor is SCOUT, run as a single-graph model on the same interventional equilibrium data. It is the only cyclic method in the file that handles unknown soft-intervention targets and non-Gaussian noise, which is exactly our intervention setting. We will also run NODAGS-Flow and DCCD-CONF, because hidden confounding arises naturally when internal variables such as tangential contact stiffness go unobserved. For fairness, all methods receive identical samples, the same simulator-call budget, the same flow architecture per component, and the same hyperparameter search budget, with our mixture charged for its $K$ search.
The only reported number for SCOUT is near-perfect graph recovery, AUPRC ≈ 1.0, on synthetic Erdős–Rényi graphs of 10–70 nodes (SCOUT). For NODAGS-Flow and DCCD-CONF the file gives only qualitative comparisons. No reported result found on Lacuna for any cyclic method on physical contact equilibria. Beating SCOUT here means two things. The first is higher per-mode AUPRC and lower Structural Hamming Distance (the count of wrong edges) against per-mode ground truth. The second is lower interventional negative log-likelihood on held-out interventions, especially those that push the system across a mode boundary. Our method is not credited against the union graph, since SCOUT's natural output would be scored on that.
The acyclic reference is DCDI and NOTEARS applied to a time-unrolled version of short transient trajectories, as a dynamic Bayesian network. It tests the reviewer's claim that time ordering removes the loops. The gradient-through-physics competitor fits edge masks and parameters by backpropagating a trajectory-matching loss through Dojo. We sweep Dojo's central-path smoothing parameter and give it the same simulator budget in gradient evaluations.
The finite-difference competitor, described below, uses the same number of simulator calls. The key ablation sets $K=1$, which reduces our model to a NODAGS/SCOUT-style learner. A second ablation replaces the learned gate with the simulator's true mode label. This isolates how much error comes from mode inference versus structure learning within a mode.
Why not just…?
Why not just finite-difference the equilibrium and invert it? In the interior of a single mode, with interventions reaching every variable, the matrix of total effects $T$ determines direct structure through $T = (I - B)^{-1}$. This is a serious threat. We expect it to fail in three places. First, near switching surfaces, where a finite step crosses modes and the difference quotient mixes two graphs. Second, where internal variables cannot be perturbed, since that leaves $T$ rank-deficient. Third, under measurement noise, which the inversion amplifies. End-to-End Differentiable Physics already documents instability and poor scaling of finite differences over parameters. The experiment reports accuracy as a function of distance to the nearest mode boundary and of the fraction of actuated variables. If finite differences match us everywhere in the realistic intervention setting, the contribution shrinks to the benchmark and the multistability model, and we will say so.
Why not just differentiate through a smooth simulator like Dojo? Zhong et al. show that contact gradients flip sign without time-of-impact correction, disagree in sign between Brax and Warp, and vanish under position-based dynamics. Any edge orientation learned from such gradients inherits these errors. Even correct smoothing, via Dojo's central-path parameter, blurs the mode boundary that defines the structure. The central-path sweep directly shows the trade-off between gradient smoothness and structural accuracy.
Why not just use one cyclic graph (NODAGS-Flow or SCOUT)? A single contractive model has one equilibrium per input. It therefore cannot represent stick and slip at the same load, and it will average the two regimes into a union graph. The $K=1$ ablation on the bistable finger-block system tests this directly.
Why not just unroll time and keep a DAG? Quasi-static contact equilibria are reached faster than any sensor window. This is the temporal-aggregation situation in which Qiao et al. and Assaad et al. describe instantaneous feedback appearing as bidirectional dependence. The unrolled DAG baseline measures the cost of ignoring it.
Proposed Experiments
The first decisive check is on the finger-block system. The mixture should recover three distinct per-mode graphs and match the simulator's mode log on held-out samples, with high adjusted Rand index. SCOUT and NODAGS-Flow, by contrast, should produce a union graph and assign poor likelihood to the second equilibrium of bistable inputs. The same system also runs the boundary-distance analysis against finite differences.
The second check is cross-engine structural agreement. We learn graphs separately from MuJoCo, Brax/Warp, and Dojo data for the block stack and gripper. Zhong et al. found that these engines disagree on gradients. Whether they also disagree on learned structure is a new and useful measurement: agreement would suggest resting-state structure is a more stable target than gradients, and disagreement would localize which contact formulation distorts which edges.
The third check is scaling on the Franka pushing task. We measure per-mode AUPRC and simulator calls as variable count grows. Training time is compared against the reported speedup of NODAGS-Flow over DCDI as a sanity reference, not as a claim.
Finally, we rerun our model with $K=1$ on Perturb-CITE-seq under the IFN-gamma condition, where NODAGS-Flow, DCCD-CONF, and SCOUT all report best interventional likelihood. This confirms the method does not regress on the standard benchmark. We then test whether $K>1$ improves held-out likelihood there, since gene regulation is also plausibly multistable.
References
- NODAGS-Flow: Nonlinear Cyclic Causal Structure Learning
- Differentiable Cyclic Causal Discovery Under Unmeasured Confounders
- SCOUT: Cyclic Causal Discovery Under Soft Interventions with Unknown Targets
- Efficient Differentiable Contact Model with Long-range Influence
- Understanding unforeseen production downtimes in manufacturing processes using log data-driven causal reasoning
- Dojo: A Differentiable Physics Engine for Robotics
- On Causal Discovery with Cyclic Additive Noise Models
- Identification and Model Testing in Linear Structural Equation Models using Auxiliary Variables
- End-to-End Differentiable Physics for Learning and Control
- Differentiable Physics Simulations with Contacts: Do They Have Correct Gradients w.r.t. Position, Velocity and Control?
- Structural Hawkes Processes for Learning Causal Structure from Discrete-Time Event Sequences
- Entropy-based Discovery of Summary Causal Graphs in Time Series