# Matroid-selected circular latent coordinates

- ID: 573
- Canonical URL: https://synthcore.org/idea/573/matroid-selected-circular-latent-coordinates
- API JSON: https://synthcore.org/api/idea/573.json
- API Markdown: https://synthcore.org/api/idea/573.md
- Verification status: mechanism_failed
- Source: [arXiv:2607.08230](https://arxiv.org/abs/2607.08230)
- Category: geometry
- Solves: accuracy, sample-efficiency, generalization
- ML areas: embedding, vae, world-model
- Math tags: topology, differential-geometry, linear-algebra, combinatorics
- Ratings: usefulness 6/10; difficulty 5/10; novelty 7/10

## Idea description

Use a dictionary of scientifically meaningful angle-valued observables to construct a compact periodic latent representation aligned with the persistent first-cohomology subspace of the data. Select the minimum-energy subset that spans the detected topological directions, then feed each selected coordinate to a VAE, world model, or downstream predictor as a sine/cosine pair rather than as an unconstrained scalar.

## Mathematical statement

For a smooth manifold \(\mathcal M\), a differential \(1\)-form \(\alpha\) evaluated on a cycle \(c:S^1\to\mathcal M\) satisfies \(\int_c\alpha=\bar\alpha(\bar c)\in\mathbb R\), and for an integer cohomology class this integral is in \(\mathbb Z\). The associated circular coordinate from a base point \(x_0\) is \(z_\alpha(x)=\int_{\gamma:x_0\to x}\alpha\ \mathrm{mod}\ \mathbb Z\), where path changes alter the integral by an integer. For sampled points \(x_i\), represent candidate \(j\) by a discrete edge cochain \(a_j(e)\), and estimate the \(L^2\) inner product by \(\widehat{\langle a_j,a_k\rangle}=\sum_{e\in E}w_ea_j(e)a_k(e)\), with nonnegative edge weights \(w_e\) normalized to sum to one. Let \(v_j\in\mathbb R^r\) be candidate \(j\)'s coordinates after projection onto an estimated persistent \(H^1\) basis, and let \(M\succeq0\) be the projected cochain Gram matrix. Its energy is \(E_j=v_j^TMv_j\). Select a basis by sorting candidates by \(E_j\) and greedily adding candidate \(j\) whenever \(\operatorname{rank}[v_{j_1},\ldots,v_j]\) increases; this is the minimum-weight basis algorithm for the vector matroid. The projection residual \(R=I-V(V^TMV)^{\dagger}V^TM\) measures persistent directions unexplained by the dictionary.

## Key formulas

- $$\int_c\alpha=\bar\alpha(\bar c)\in\mathbb{R},\qquad [\alpha]\in H^1(\mathcal M;\mathbb Z)\Rightarrow \int_c\alpha\in\mathbb Z.$$
- $$z_\alpha(x)=\int_{[0,1]}\gamma^*\alpha\ \operatorname{mod}\mathbb Z\in\mathbb R/\mathbb Z,\qquad \gamma(0)=x_0,\ \gamma(1)=x.$$
- $$\widehat{\langle a_j,a_k\rangle}=\sum_{e\in E}w_ea_j(e)a_k(e),\qquad \sum_{e\in E}w_e=1,\quad w_e\geq0.$$
- $$E_j=v_j^TMv_j,\qquad j^*=\arg\min_{j\notin S}E_j\ \text{subject to}\ \operatorname{rank}(V_S\,|\,v_j)>\operatorname{rank}(V_S).$$

## Implementation notes

Integrate this at the representation bottleneck of a VAE, world model, or supervised encoder. Assume each training example has a dictionary of \(m\) candidate angle observables \(\theta_j(x)\in\mathbb R/\mathbb Z\), plus a neighborhood graph \(G=(V,E)\) built from the input samples. First compute wrapped edge differences \(a_j(i,k)=\operatorname{wrap}_{[-1/2,1/2]}(\theta_j(x_k)-\theta_j(x_i))\) on graph edges. Estimate the candidate Gram matrix with \(G_{jk}=\sum_{(i,k)\in E}w_{ik}a_j(i,k)a_k(i,k)\). Obtain an estimated persistent cohomology basis, or use a precomputed target matrix \(Q\in\mathbb R^{m\times r}\) whose columns span the detected \(H^1\) directions; set \(v_j=Q_{j,:}\) and use \(M=Q^TGQ\). Sort candidates by \(E_j=v_j^TMv_j\), greedily retain a candidate only if the smallest singular value after appending it exceeds a tolerance such as \(10^{-5}\). For every retained coordinate, inject \([\cos(2\pi\theta_j(x)),\sin(2\pi\theta_j(x))]\) into the latent vector. During training, add a prediction or reconstruction loss on these pairs, and optionally penalize unexplained persistent directions using \(\|R\|_F^2\), where \(R=I-V(V^TMV)^\dagger V^TM\). The mathematical quantities are the wrapped cochains, Gram matrix, energies, rank test, and projection residual; graph bandwidth, edge weights, rank tolerance, and loss coefficient are empirical hyperparameters. The first experiment should use a torus or synthetic pendulum dataset with known angles, a small VAE baseline with two unconstrained latent scalars, and the selected circular latents. Measure reconstruction error, angle decoding error, latent traversability, and the number of latent dimensions needed for the same error. Success is lower-dimensional representation with equal or better reconstruction and substantially higher correlation to the known physical angles, while the residual should correctly flag a dictionary that omits one torus angle.

## Verification

- Status: mechanism_failed
- Mechanism evidence: yes
- Mechanism confirmed: no
- Verdict: Built wrapped edge-cochain Gram estimation, energy-ordered vector-matroid selection, persistent-direction residuals, and a torus autoencoder comparison. The residual behaved as claimed: approximately 0 when both directions were retained and approximately 1 when one was omitted; circular coordinates also recovered their angles essentially exactly. However, minimum-energy selection chose a distractor plus a mixed coordinate, and the fixed circular representation had substantially worse reconstruction than the learned 2-scalar baseline, so no overall representation win was observed.

### Mechanism check

- Verdict: Built wrapped edge-cochain Gram estimation, energy-ordered vector-matroid selection, persistent-direction residuals, and a torus autoencoder comparison. The residual behaved as claimed: approximately 0 when both directions were retained and approximately 1 when one was omitted; circular coordinates also recovered their angles essentially exactly. However, minimum-energy selection chose a distractor plus a mixed coordinate, and the fixed circular representation had substantially worse reconstruction than the learned 2-scalar baseline, so no overall representation win was observed.
- Confidence: 9/10
- Limitations: Only a small synthetic torus and one random seed were tested. The circular decoder used fixed dictionary coordinates while the baseline learned its encoder, and no VAE, prediction loss, multiple seeds, or persistent-cohomology estimator was evaluated. The experiment also revealed that the stated energy ranking can favor a low-energy distractor unless the candidate dictionary and projected metric are carefully calibrated.

## Artifacts

- [clean_check.py](https://synthcore.org/code/1393/clean_check.py)
- [experiment.py](https://synthcore.org/code/1393/experiment.py)
- [report.md](https://synthcore.org/code/1393/report.md)
- [results.json](https://synthcore.org/code/1393/results.json)
- [Download all files as ZIP](https://synthcore.org/download/1393)

## Disclaimer

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