Verifying Hyperbolic Controllers Through Their Symmetry Invariants

Reinforcement learning agents increasingly route their internal features through hyperbolic space, a curved geometry in which volume grows exponentially with radius, much as the number of nodes in a tree grows with depth. Such agents generalize better and compress more: hyperbolic Rainbow agents roughly double the Atari 100K score of their flat counterparts (Hyperbolic Deep Reinforcement Learning), and a stabilized recipe raises ProcGen test returns by 52.3% (Understanding and Improving Hyperbolic Deep Reinforcement Learning). No one can currently certify such a controller as safe. Safety verification of neural feedback loops relies on reachability analysis, which pushes a set of possible states forward through the plant and the controller and wraps the result in a simple shape such as a box or zonotope (a linearly transformed box). That wrapping adds states that cannot actually occur. Because each step starts from the previous step's wrapper, the extra volume compounds. This is the "wrapping effect", and it is what makes long-horizon certificates vacuous (DRIP; Sparse Polynomial Zonotopes).

Hyperbolic layers are a bad case for the wrapping effect. Their outputs lie on a curved surface (the hyperboloid) that has zero volume in the space around it. They are computed with coupled norms, square roots, divisions and hyperbolic cosines and sines. A generic verifier abstracts each of these operations separately and loses the correlations between them. Our observation is that these layers are invariant under rotations and permutations of the latent coordinates, and this symmetry means they depend on their input only through a few invariants, chiefly the squared norm. The squared norm is a quadratic polynomial, and polynomial zonotopes represent quadratics exactly. If sets are propagated through the invariant rather than through each coordinate, the curved geometry enters the analysis only through one or two one-dimensional scalar functions with sound error bounds. We propose to build this propagation rule, test it on standard closed-loop benchmarks, and find out whether hyperbolic controllers can be verified at a cost comparable to ordinary ones.

Core Claim

Consider the hyperboloid model used by HYPER++. Its exponential map at the origin sends a tangent (flat) vector $v \in \mathbb{R}^n$ onto the curved surface. It can be rewritten exactly in terms of $s = \|v\|^2$:

$$\exp_0(v) = \big(\cosh\|v\|,\ \tfrac{\sinh\|v\|}{\|v\|}\,v\big) = \big(C(s),\ S(s)\,v\big),\qquad C(s)=\cosh\sqrt{s},\quad S(s)=\tfrac{\sinh\sqrt{s}}{\sqrt{s}}.$$

Both $C$ and $S$ are entire, well-behaved functions of $s$. The square-root singularity at the origin disappears. The RMSNorm layer that HYPER++ places before the map, $x \mapsto x/\sqrt{s/n}$, has the same structure. Downstream Lorentz inner products with fixed directions $a$ reduce to $S(s)\langle v,a\rangle$ minus a multiple of $C(s)$.

Our claim is that a polynomial zonotope should carry $s$ symbolically. Polynomial zonotopes, introduced for verification in Open- and Closed-Loop Neural Network Verification Using Polynomial Zonotopes, are sets written as polynomials of shared uncertainty factors, and $s$ is an exact quadratic in those factors. The verifier then only needs to enclose $C$ and $S$ as scalar polynomials with rigorous remainder intervals. This keeps the dependency between the "depth" coordinate $C(s)$ and the "direction" coordinates $S(s)v$, which is exactly the dependency whose loss produces the off-surface empty volume. We expect flowpipes that are much tighter than those from coordinate-wise abstraction, and the gap should widen with the prediction horizon, because the saved volume compounds.

Permutation symmetry plays two roles here. First, the rotation group of the latent space, which contains the permutations of latent coordinates, is the structural reason the reduction to invariants is exact. Second, we use invariance as a diagnostic. Git Re-Basin and GeoMerge show that a network corresponds to a whole orbit of equivalent weight settings. A sound analysis of a function should not depend on which member of the orbit it is given. Interval bounds and box-based order reduction are not invariant to rotating the latent frame. How much a verifier's bound changes under such rotations therefore directly measures how much wrapping it adds.

We state one negative point up front. Hidden-neuron permutations and positive ReLU rescalings leave interval, zonotope and CROWN-style bounds unchanged. The appealing idea of "choosing the best permutation gauge to reduce wrapping" is therefore empty for exact symmetries, and we do not pursue it. An analyzer can also rotate its own internal coordinates freely, so a gauge choice alone adds nothing new. What is new is propagating sets through invariants.

Relation to Prior Work

Several papers supply the method we extend. Polynomial zonotopes and their sparse variant (Sparse Polynomial Zonotopes) are closed under polynomial maps. The neural-network version abstracts each neuron (including tanh and sigmoid) with a quadratic plus an error interval. We reuse that machinery. The difference is that we abstract a multivariate geometric layer through its scalar invariant rather than neuron by neuron. The "hyperbolic" in that paper refers only to the tanh activation, and its spaces remain flat.

The hyperbolic RL papers motivate the work, and HYPER++ also constrains the design. Its instability analysis of the Poincaré ball tells us to target the hyperboloid model with RMSNorm, and the Poincaré ball is tested only as an ablation.

Symmetry has been used in verification before. CacheReach and SceneChecker use hand-specified rigid-body symmetries of physical agents to reuse reach tubes. They exploit symmetries of the plant for caching. We exploit symmetries inside a controller layer for tightness, and those symmetries follow automatically from the architecture.

GeoMerge and A Compact Representation for Bayesian Neural Networks By Removing Permutation Symmetry quotient weight space by symmetries in order to merge or summarize models. They supply the orbit viewpoint behind our invariance diagnostic, but they never propagate state sets.

Research Program

We will build three things. The first is a propagation rule for "invariant layers". It takes a polynomial zonotope over latent coordinates and forms $s$ exactly. It computes a tight interval for $s$: the minimum is a convex quadratic program over the factor box, and the maximum is bounded by the polynomial's own range bound. It fits Taylor or Chebyshev polynomials to $C$, $S$ and $s^{-1/2}$ on that interval, each with a sound remainder, and then multiplies these polynomials back into the direction coordinates. The rule covers RMSNorm, the hyperboloid exponential map at the origin, Lorentz linear layers, and output heads based on Lorentz inner products. It will be implemented as an extension of an existing polynomial-zonotope reachability engine, so that plant dynamics and order reduction are shared with the baselines.

The second is a set of verification targets. The ARCH-COMP neural-network control benchmarks (ARCH-COMP23 AINNCS report) ship only Euclidean controllers, so we will train our own. For adaptive cruise control (ACC), TORA and the 12-state quadrotor, we will train pairs of matched controllers: a Euclidean MLP, and a controller with the same trunk followed by RMSNorm, the exponential map, and a Lorentz head, following HYPER++. Each pair is fit either by imitating the reference ARCH controller or by PPO on the plant, and the pair members are matched in closed-loop task performance. Latent dimensions will range from 2 to 32. This lets us test whether the small hyperbolic bottlenecks reported to rival 256-dimensional flat ones also make verification cheaper.

The third is an analysis of how the error of the invariant rule grows with the latent radius. $C$ and $S$ grow exponentially in $\sqrt{s}$, so their polynomial remainders grow quickly at large radius. Controllers whose latents sit far from the origin should therefore be harder to verify. We will measure this dependence and test learnable-scale clipping as a training-time fix.

Baselines

The naive reference is interval bound propagation through the unrolled hyperbolic operations, run inside the same plant integrator. It shows how bad the wrapping effect gets when nothing is done about it.

The strongest competitor is generic polynomial-zonotope verification in the style of Open- and Closed-Loop Neural Network Verification Using Polynomial Zonotopes, with every square root, division, cosh and sinh abstracted as its own quadratic-plus-error node. It is the strongest because it is the same representation family, uses the same order reduction, and is already fast. The file reports that on TORA with a sigmoid controller it finishes in 1 second against more than 2,000 seconds for JuliaReach. We found no reported result on Lacuna for any verifier on hyperbolic-latent controllers, so all hyperbolic comparisons will be run fresh.

The second strong competitor is Taylor-model verification in the style of POLAR and JuliaReach, which propagate sets as polynomials with rigorous remainder terms. The ARCH-COMP reports credit these tools with the fastest results on several nonlinear plants.

For fairness, every method gets the same plants, initial sets, horizons, integration step, polynomial-order cap, order-reduction settings, and wall-clock budget per benchmark. Tunable parameters, such as the approximation degree and splitting depth, get the same tuning budget on held-out initial sets. To count as beating these baselines, the invariant rule must verify ARCH specifications they fail within the same budget, or reduce the final-step flowpipe width, measured relative to the hull of 10,000 simulated trajectories, by at least a factor of two at matched runtime.

Two further comparisons complete the picture. Input-set partitioning, with the partition count set to exhaust the budget, tests whether splitting alone closes the gap. The Euclidean twin controller, verified by the strongest baseline, gives the cost floor any hyperbolic controller must approach.

Ablations isolate the key ingredient. We apply the invariant rule to RMSNorm only, then to the exponential map only, then to both. We also replace exact $s$ with an interval enclosure of $s$, which keeps the scalar approximation but discards the dependency tracking.

Why not just…?

Why not just use a generic polynomial zonotope or Taylor-model tool on the unrolled operations? This is the real threat. If our method's tightness at matched runtime is within about 10% of the generic tool, the contribution reduces to engineering and we will report it that way. We expect a larger gap for a structural reason. Generic tools enclose $\|v\|$, $1/\|v\|$ and $\sinh\|v\|$ as separate nodes with independent error intervals, and that independence is precisely the dependency loss that polynomial zonotopes were designed to avoid. The fixed-budget comparison, and its growth over the horizon, will settle the question.

Why not just distill the hyperbolic policy into a Euclidean network and verify that? A certificate for the student says nothing about the deployed teacher unless the gap between them is soundly bounded over the whole reachable set. Bounding that gap requires verifying the teacher anyway. We will still report distill-then-verify as an unsound reference, which shows how much of any hyperbolic verification overhead is intrinsic.

Why not just partition the initial set more finely? HyBReach-LP+ shows that partitioning helps. It also proves that backreachable-set partitioning has a fundamental lower bound on error, and partition counts grow exponentially with state dimension. On the low-dimensional ACC and TORA plants, partitioning could plausibly match us, and we will say so if it does. The 12-state quadrotor is where we expect partitioning to break down.

Why not just avoid hyperbolic controllers where safety matters? On small ARCH plants that may well be the right engineering choice. The purpose here is to measure the verification cost of the geometry so that the choice is informed. If verified hyperbolic controllers cost no more than their Euclidean twins, and their compact latents shorten verification, the trade-off changes.

Decisive Checks

The first check is tightness. On matched controller pairs, the invariant rule should close most of the gap between hyperbolic and Euclidean flowpipe widths that the generic polynomial-zonotope baseline leaves open. Its advantage should grow with the horizon. If the advantage is flat or shrinking, compounding wrapping is not the mechanism.

The second is the gauge-invariance diagnostic. We will apply random rotations of the latent frame and random hidden-neuron permutations and record how much each verifier's bounds change. Our rule should be invariant by construction. The variance of box-based baselines under rotation should predict their excess volume.

The third is the radius dependence. Verification success should fall as the latent radius grows, in line with the exponential growth of $C$ and $S$. If radius-limited training restores verifiability without losing task return, that supports a concrete design recommendation for safe hyperbolic control.