Rooted Symmetric-to-Ordered Interaction Block
Implementation & benchmark of arXiv:2607.04039 — Algebra of the Infrared with Curve-Valued Potential
Source paper: Algebra of the Infrared with Curve-Valued Potential arXiv:2607.04039 ⓘ · analyzed Aug 29, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Build a hybrid neural block that treats ordinary context elements as an unordered set but treats one or more designated query or root elements as an ordered sequence. The unrooted branch computes permutation-invariant interaction features, while the rooted branch consumes those features through order-sensitive higher-order products, approximating the paper's mixed symmetric–tensor algebra. This targets set-conditioned prediction, graph queries, object-centric reasoning, and retrieval, where context order should not matter but query-side computation should retain a canonical order.
Formulas
Mathematical statement
The construction begins with \(\widetilde{\mathfrak g}=\mathfrak g\oplus\mathfrak g_{\mathrm{root}}\), where \(\mathfrak g\) is spanned by unrooted subpolygons and \(\mathfrak g_{\mathrm{root}}\) by rooted subpolygons. Its differential acts on \(S^{\bullet}(V)\otimes T^{\bullet}(V_r)\), where \(S^{\bullet}(V)\) is the symmetric algebra and therefore identifies permutations of unrooted inputs, while \(T^{\bullet}(V_r)\) is the ordered tensor algebra for rooted inputs. The paper states that the differential preserves \(S^{\bullet}(V)\), and that the unrooted algebra acts on the rooted \(A_{\infty}\)-algebra through an \(L_{\infty}\)-morphism \(\phi:\mathfrak g\to C^{\geq1}(R_{\tilde p},R_{\tilde p})[1]\). Here \(R_{\tilde p}\) is the rooted algebra and \(C^{\geq1}\) denotes positive-arity multilinear operations. The adaptation uses symmetric pooling and higher-order subset maps for context features \(x_i\), followed by ordered multilinear maps \(F_k\) on query features \(y_j\). The factorial \(1/k!\) prevents overcounting unordered context tuples.
Implementation notes
(1) Integration point: insert the module after a token encoder and before the task head. Partition each example into unrooted context tokens \(X\in\mathbb R^{m\times d}\) and rooted/query tokens \(Y\in\mathbb R^{r\times d}\). Do not add positional embeddings to \(X\); attach positions, timestamps, or an explicitly supplied canonical order only to \(Y\). This maps \(X\) to \(V\) and \(Y\) to \(V_r\). (2) Pseudocode: x = context_encoder(X); y = query_encoder(Y); h = sum_i psi1(x[i]); for k in 2..K: sample distinct unordered tuples I of size k; h += mean(psi_k(x[I])) / factorial(k); h = rho(h); delta = zeros_like(y); for j in 1..r: delta[j] += F1(h, y[j]); for k in 2..Kr: for ordered tuples J=(j1,...,jk): delta[j1] += Fk(h, y[j1],...,y[jk]); y = layernorm(y + gate * delta); output = head(y). Use sampled subsets rather than all \(m^k\) tuples and implement \(F_k\) with low-rank tensor contractions or small MLPs. (3) The paper-derived components are the symmetric-versus-tensor separation, preservation of the symmetric subalgebra, and action of unrooted operations on rooted operations. The neural parameters, tuple sampling, maximum arities \(K,K_r\), and residual gate are empirical choices. Add \(L_{\mathrm{sym}}=\|f(X)-f(\pi X)\|_2^2\) for random context permutations \(\pi\), and test that permuting \(Y\) changes outputs when order is semantically relevant. (4) First cheap experiment: compare this block with standard Transformer self-attention and a DeepSets-plus-cross-attention baseline on Set-MNIST or a synthetic set-query task. Use 4 layers, width 128, matched parameter counts, random context permutations during training, and evaluate at both training set sizes and larger unseen \(m\). Success means higher accuracy at equal parameters, near-zero output variance under context shuffling, and improved extrapolation as \(m\) grows; failure means no gain over DeepSets/cross-attention or prohibitive cost from higher-order terms.
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.