# Braid-Monodromy Set State

- ID: 649
- Canonical URL: https://synthcore.org/idea/649/braid-monodromy-set-state
- API JSON: https://synthcore.org/api/idea/649.json
- API Markdown: https://synthcore.org/api/idea/649.md
- Verification status: mech_ok_no_baseline
- Source: [arXiv:2607.09601](https://arxiv.org/abs/2607.09601)
- Category: dynamics
- Solves: accuracy, sample-efficiency, stability
- ML areas: graph-nn, world-model, rnn, attention
- Math tags: topology, representation-theory, algebra, geometry
- Ratings: usefulness 6/10; difficulty 5/10; novelty 7/10

## Idea description

Replace a standard permutation-invariant object pool with a latent state on an unordered configuration together with a fiber vector transported along the observed object trajectories. The instantaneous state remains invariant to reordering, but loops and exchanges of objects act through learned monodromy matrices, allowing the network to represent path-dependent interactions without assigning arbitrary permanent object indices.

## Mathematical statement

The paper defines the unordered configuration space of n distinct points by $\mathrm{Conf}_{n}(X):=(X^{\times n}\setminus\Delta)/S_{n}$, where X is the object-state manifold, $\Delta=\{(x_{1},\ldots,x_{n})\mid \exists i\neq j:x_i=x_j\}$ is the collision set, and $S_n$ permutes labels. A local system $\mathcal L$ is represented at a base configuration $x_0$ by a vector space L and a monodromy representation $\rho:\pi_1(\mathrm{Conf}_n(X),x_0)\to GL(L)$. The extracted text states the equivariant pairing condition $(\gamma\cdot v,\gamma\cdot u)=(v,u)$ for all loops $\gamma$ and vectors u,v; with pairing matrix G this becomes $\rho(\gamma)^*G\rho(\gamma)=G$. The adaptation uses a learned local generator $A_t$ and transports the fiber state according to $h_{t+1}=\rho(\gamma_t)h_t+\eta_t$, with $\rho(\gamma_t)=\exp(\Delta tA_t)$. For G equal to the identity, impose $A_t^T+A_t=0$, so transport is norm-preserving. Here $h_t\in\mathbb R^k$ is the fiber state, $\eta_t$ is a learned local innovation, and $\gamma_t$ is the observed path segment in configuration space.

## Key formulas

- $$\mathrm{Conf}_{n}(X):=(X^{\times n}\setminus\Delta)/S_{n},\qquad \Delta:=\{(x_{1},\dots,x_{n})\in X^{\times n}\mid \exists i\neq j,\ x_i=x_j\}.$$
- $$(\gamma\cdot v,\gamma\cdot u)=(v,u),\qquad \forall\gamma\in\pi_{1}(X,x_{0}),\ \forall u,v\in L.$$
- $$\rho:\pi_{1}(\mathrm{Conf}_{n}(X),x_{0})\to GL(L),\qquad \rho(\gamma)^*G\rho(\gamma)=G.$$
- $$h_{t+1}=\rho(\gamma_t)h_t+\eta_t,\qquad \rho(\gamma_t)=\exp(\Delta tA_t),\qquad A_t^*G+GA_t=0.$$

## Implementation notes

(1) Integrate the module after an object detector or object-token encoder and before temporal self-attention. At time t, inputs are n object embeddings $x_{t,i}\in\mathbb R^d$, positions $p_{t,i}$, velocities, and the previous fiber state $h_t\in\mathbb R^k$. Treat the object collection as unordered: all pair features and pooling operations must be symmetric sums, not dependence on an arbitrary token index. Start with $G=I_k$.

(2) Pseudocode: compute $z_t=\mathrm{SetEncoder}(\{[x_{t,i},p_{t,i}]\}_{i=1}^n)$. For every pair i<j, compute $q_{ij}=\mathrm{MLP}([x_{t,i},x_{t,j},p_{t,i}-p_{t,j},v_{t,i}-v_{t,j}])$. Predict $B_{ij}=\mathrm{reshape}(\mathrm{MLP}(q_{ij}))$ and set the skew generator $A_{ij}=B_{ij}-B_{ij}^{T}$. Compute bounded interaction weights $w_{ij,t}=\sigma(\mathrm{MLP}(q_{ij}))$ and $A_t=\sum_{i<j}w_{ij,t}A_{ij}$. Update $h_{t+1}=\exp(\Delta tA_t)h_t+\mathrm{MLP}([z_t,h_t])$. Feed $[z_t,h_{t+1}]$ to the downstream predictor. Use a differentiable matrix exponential for small k, or a second-order Cayley approximation $\rho_t=(I-\frac{\Delta t}{2}A_t)^{-1}(I+\frac{\Delta t}{2}A_t)$.

(3) The paper supplies the configuration-space quotient, path composition, and invariant-pairing constraint. The neural network estimates the local connection $A_{ij}$ from data. To expose explicit braid behavior, detect near exchanges by tracking the sign changes of pairwise relative angles and compose the corresponding local transports in temporal order. The mathematical constraint is exact for skew generators; the learned pair weights, connection, and innovation are empirical components.

(4) First cheap experiment: create 2D simulated particles with targets determined by whether two particles exchange positions clockwise or counterclockwise before a collision. Randomly permute object-token order independently at every frame. Compare DeepSets pooling, a standard object transformer, and this monodromy layer at matched parameter counts on 5-particle sequences. Test unseen initial permutations and trajectories twice as long as training trajectories. Success means higher exchange-direction accuracy, no performance degradation under token permutation, and lower long-horizon rollout error. Monitor $\|A_t^T+A_t\|_F$ and $|\|h_t\|_2-\|h_0\|_2|$; the constrained model should exhibit less latent norm drift and more stable long rollouts.

## Verification

- Status: mech_ok_no_baseline
- Mechanism evidence: yes
- Mechanism confirmed: yes
- Practical verdict: harms
- Verdict: Built a compact Braid-Monodromy set-state module using skew-symmetric generators and Cayley transport, plus a DeepSets-GRU baseline on independently permuted 5-object trajectories. The Cayley update preserved fiber norms to 2.4e-7 error versus 0.0535 for an Euler control, and permutation changes altered logits by only 3.7e-8. In the toy exchange-direction task, the monodromy model reached 100% accuracy at both 12 and 24 frames, versus 79.1% and 68.4% for the baseline; this is a promising signal, though not yet a definitive general result.

### Mechanism check

- Verdict: Built a compact Braid-Monodromy set-state module using skew-symmetric generators and Cayley transport, plus a DeepSets-GRU baseline on independently permuted 5-object trajectories. The Cayley update preserved fiber norms to 2.4e-7 error versus 0.0535 for an Euler control, and permutation changes altered logits by only 3.7e-8. In the toy exchange-direction task, the monodromy model reached 100% accuracy at both 12 and 24 frames, versus 79.1% and 68.4% for the baseline; this is a promising signal, though not yet a definitive general result.
- Confidence: 7/10
- Limitations: Only one random seed and one synthetic trajectory family were tested. The models were not matched exactly for parameter count or FLOPs, no explicit rollout prediction metric was evaluated, and the CUDA attempt failed due to a shared-environment cuDNN allocation error so the completed run used CPU.

### Practical benchmark

- Paired seeds: 8
- Baseline mean: 0
- Idea mean: 0
- p-value: 0.0081
- Paired wins: 0/8
- Benchmark verdict: idea worse (significant)

## Artifacts

- [bench_report.json](https://synthcore.org/code/1428/bench_report.json)
- [braid_bench_adapter.py](https://synthcore.org/code/1428/braid_bench_adapter.py)
- [experiment.py](https://synthcore.org/code/1428/experiment.py)
- [report.md](https://synthcore.org/code/1428/report.md)
- [report_bench_2026-09-04T212155.md](https://synthcore.org/code/1428/report_bench_2026-09-04T212155.md)
- [results.json](https://synthcore.org/code/1428/results.json)
- [run_bench.py](https://synthcore.org/code/1428/run_bench.py)
- [Download all files as ZIP](https://synthcore.org/download/1428)

## Disclaimer

AI-generated research hypothesis, automatically tested. Not peer-reviewed.
