Type-B fermionic equivariant layer
Implementation & benchmark of arXiv:2608.02881 — Type $B$ fermionic coinvariant rings
Source paper: Type $B$ fermionic coinvariant rings arXiv:2608.02881 ⓘ · analyzed Aug 31, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Represent each of n signed tokens with two or more anticommuting feature channels and build equivariant outputs from exterior products rather than unconstrained tensor products. Penalize or project out positive-degree signed-permutation invariants, approximating the coinvariant quotient so that the layer retains order-sensitive orientation information without learning redundant invariant directions.
Formulas
Mathematical statement
The paper defines the bosonic-fermionic coinvariant ring for a finite group G acting diagonally by R_G^(k,j)=C[x^(1),...,x^(k),theta^(1),...,theta^(j)] divided by the ideal generated by positive-degree G-invariant polynomials. The variables theta_i^(a) are Grassmann variables satisfying theta_i^(a)theta_r^(b)=-theta_r^(b)theta_i^(a), and G=B_n=C_2 wr S_n acts by signed permutations of token indices. For a practical neural approximation, let z_i in R^d be token features and let A_a be channel-specific linear maps. Define the alternating feature E_{i_1,...,i_r}=sum over pi in S_r of sgn(pi) A_1z_{i_{pi(1)}} tensor ... tensor A_rz_{i_{pi(r)}}. Permutations act equivariantly because antisymmetrization changes by the corresponding permutation action, while a sign flip z_i -> epsilon_i z_i multiplies every term containing token i by epsilon_i. The quotient principle is implemented by suppressing positive-degree invariant contractions such as I_1=sum_i phi(z_i) and I_2=sum_i z_i tensor z_i.
Implementation notes
Integrate this at the token-mixing stage of a set encoder or graph neural network whose inputs should be equivariant to permutations and independent sign flips. The input is z with shape [batch,n,d]. First apply r small channel maps A_1,...,A_r. For r=2, form pairwise antisymmetric features E[i,j]=A_1(z[i]) outer A_2(z[j])-A_1(z[j]) outer A_2(z[i]); for r=3 use the six-term alternating sum. Aggregate these features with an equivariant contraction over indices, retaining either per-token outputs or a global representation. Do not materialize all n^r terms for large n: use sampled tuples during training or low-rank exterior multiplication, and cap r at 2 or 3. Compute invariant contractions I_1=sum_i phi(z_i) and I_2=sum_i z_i outer z_i. Either orthogonally project each exterior feature away from their span or add lambda times the squared projection norm to the loss. Pseudocode: z=encoder(x); a=[A_r(z)]; E=alternating_product(a); I=[sum(phi(z)),sum(z outer z)]; E=E-gram_solve(I,E); y=equivariant_readout(E,z). The paper supplies the exterior algebra and invariant-ideal motivation; projection coefficients and truncation degree are empirical choices. First test on n=16 synthetic tokens with random permutations and sign flips, where the target is an alternating polynomial such as a determinant or signed matching score. Compare DeepSets, a standard permutation-equivariant tensor layer, and this r=2/3 layer at equal parameters. Success means lower test error under unseen transformations, improved sample efficiency, and stable gradient norms.
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.