Nielsen Quaternionic Hyperbolic Latent Layer
Implementation & benchmark of arXiv:2608.08252 — Quaternionic Extensions of Hyperbolic Toral Automorphisms
Source paper: Quaternionic Extensions of Hyperbolic Toral Automorphisms arXiv:2608.08252 ⓘ · analyzed Sep 1, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Represent each recurrent latent state as a pair of unit quaternions \((q_1,q_2)\in\mathrm{SU}(2)^2\), and evolve it with a composition of elementary Nielsen maps corresponding to a chosen hyperbolic matrix \(A\in\mathrm{SL}(2,\mathbb{Z})\). The layer exactly preserves the group manifold and Haar volume, preserves the commuting locus \(q_1q_2=q_2q_1\), and reproduces toral hyperbolic dynamics there, giving a structured long-horizon prior instead of an unconstrained matrix recurrence.
Formulas
Mathematical statement
Identify \(\mathrm{SU}(2)\) with unit quaternions. For \(A=\begin{pmatrix}a&b\\c&d\end{pmatrix}\in\mathrm{SL}(2,\mathbb{Z})\), with \(|\operatorname{tr}A|>2\), the abelian toral action is \((z_1,z_2)\mapsto(z_1^a z_2^b,z_1^c z_2^d)\). Direct quaternionic exponentiation is not compositionally valid because \(q_1q_2\neq q_2q_1\). Instead factor \(A\) into elementary Nielsen generators and compose their group automorphisms, such as \(N_1(q_1,q_2)=(q_1q_2,q_2)\) and \(N_2(q_1,q_2)=(q_1,q_1q_2)\), together with inverses and coordinate swaps as needed. Each map is a real-analytic diffeomorphism preserving product Haar measure. The commuting locus \(\mathcal{C}=\{(q_1,q_2):q_1q_2=q_2q_1\}\) is invariant, and on every maximal torus \(T\times T\subset\mathcal{C}\) the composed map is conjugate to \(A\). If \(\lambda_+>1\) and \(\lambda_-\in(0,1)\) are the eigenvalue moduli of \(A\), tangent perturbations in unstable and stable eigendirections scale asymptotically as \(\lambda_+^n\) and \(\lambda_-^n\).
Implementation notes
1. Integration point: use this map as the transition operator of a recurrent state-space model. Store each latent slot as two normalized 4-vectors representing unit quaternions \(q_1,q_2\); use an encoder to initialize them from an input window and a decoder to predict observations. Start with fixed \(A=\begin{pmatrix}2&1\\1&1\end{pmatrix}\), and learn only the encoder, decoder, and optionally a small residual observation-dependent perturbation. 2. Pseudocode: factor \(A\) offline into Nielsen generators. At every recurrent step, apply each factor \((q_1,q_2)\leftarrow N_{i_j}^{\varepsilon_j}(q_1,q_2)\), using quaternion multiplication and normalization after each product. For inverse generators use quaternion inverses, \(q^{-1}=\bar q\). Decode the resulting pair. 3. Computed exactly: group multiplication, normalization, generator composition, the commuting residual \(r_c=\|q_1q_2-q_2q_1\|\), and \(\lambda_\pm\). Estimated empirically: whether the encoder places data near a common maximal torus, prediction error, and tangent growth rates. If residual forcing is added, constrain its norm so the analytical signature remains measurable. 4. First cheap experiment: train this model and same-size GRU, linear SSM, and unconstrained 8-dimensional MLP recurrence on synthetic sequences generated by the quaternionic map, using one-step training and 100- to 1000-step rollout evaluation. Initialize perturbations inside a common torus and project them onto the eigenvectors of \(A\). The falsifiable prediction is that log-distance versus time has slopes \(\log\lambda_+\) and \(\log\lambda_-\) within 10 percent before saturation, while the unconstrained baseline has no fixed slope and larger long-horizon drift. Also verify that commuting pairs remain commuting to numerical precision and quaternion norms remain within \(10^{-6}\) of one.
Verification
This idea has not been verified yet.
Verification happens in two stages: Stage 1 — a mechanism check on a toy system confirms the claimed mathematical phenomenon reproduces; Stage 2 — a benchmark implements the idea on a real (small) neural network task and compares it against a tuned baseline over 8 paired seeds with a permutation test.
Artifacts
Artifacts unavailable.