Scalene anticommuting three-token mixer
Implementation & benchmark of arXiv:2608.20714 — Multiparameter Quantum Affine Spaces and the Scalene Yang--Baxter Equation
Source paper: Multiparameter Quantum Affine Spaces and the Scalene Yang--Baxter Equation arXiv:2608.20714 ⓘ · analyzed Sep 1, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Replace an unconstrained three-token interaction block by three distinct pair maps constructed from anticommuting channel generators. For every token triple, enforce equality of the two composition paths A12 B13 C23 and C23 B13 A12, while retaining different parameters for the three edges. This creates a globally consistent three-way interaction without collapsing to a single shared pair operator.
Formulas
Mathematical statement
The paper uses the non-braided scalene Yang–Baxter identity A_{12}B_{13}C_{23}=C_{23}B_{13}A_{12}, where A acts on tensor factors 1 and 2, B on factors 1 and 3, and C on factors 2 and 3. The two-generator construction assumes, at each site r, generators U_r and V_r satisfying U_rV_r=-V_rU_r, while generators on different sites commute. The pair operators have the form A_{12}=aU_1U_2+bV_1V_2, B_{13}=cU_1U_3+dV_1V_3, and C_{23}=eU_2U_3+fV_2V_3, with scalar coefficients a,b,c,d,e,f. The construction gives the exact scalene identity for this matched anticommuting algebra. The paper also defines the ordinary Yang–Baxter defect of any single operator R as Delta_R=R_{12}R_{13}R_{23}-R_{23}R_{13}R_{12}; its explicit q-deformed realization satisfies Delta_A=0 iff ab^2(q^2-1)=0, Delta_B=0 iff cd^2(q^2-1)=0, and Delta_C=0 iff ef^2(q^2-1)=0, demonstrating that the constituent maps can remain genuinely non-Yang–Baxter even when the ordered triple is consistent. For a neural implementation, use U=X=[[0,1],[1,0]] and V=Z=[[1,0],[0,-1]], which obey XZ=-ZX, and lift them to the channel tensor product of a three-token group.
Implementation notes
1. Integration point: insert the module between transformer blocks as a local three-token mixer. Partition a sequence into overlapping triples (x_i,x_j,x_k), project each token embedding to a channel width divisible by 2, and interpret each adjacent pair of channels as a two-dimensional algebra register. Apply the fixed matrices U=X and V=Z independently to the registers; their Kronecker products produce U_1U_2, V_1V_2, U_1U_3, V_1V_3, U_2U_3, and V_2V_3. The six scalar coefficients a,b,c,d,e,f are learned per layer, per head, or generated by a small coefficient MLP from the mean of the three token embeddings. 2. Pseudocode: for each triple h1,h2,h3, reshape each h_r to registers; compute A=a*kron(U1,U2)+b*kron(V1,V2), B=c*kron(U1,U3)+d*kron(V1,V3), and C=e*kron(U2,U3)+f*kron(V2,V3); form y_left=A@(B@(C@h)) and y_right=C@(B@(A@h)); use y=(y_left+y_right)/2, followed by a learned output projection, residual connection, and normalization. Since the algebra is exact, the path discrepancy d_cons=||y_left-y_right||^2 should be numerical roundoff only; optionally use it as a diagnostic rather than a loss. 3. The matrices X and Z and the commutation law come directly from the paper's anticommuting construction. The coefficients are learned empirically, and overlapping-triple aggregation can use mean pooling, learned edge weights, or a depthwise convolution over triple positions. To control cost, start with 2-channel registers and apply the mixer only to every fourth token triple, comparing against an equally sized local self-attention block. 4. First experiment: train a 6-layer, 128-dimensional causal language model on TinyStories or a synthetic parity/compositionality dataset. Compare a standard 3-token local attention block, an unconstrained six-parameter pair mixer, and this scalene mixer at equal parameter count and FLOPs. Measure validation perplexity, gradient norm variance, training loss at fixed updates, and sensitivity to learning rate. Success is faster loss descent or lower perplexity at equal compute, together with a path discrepancy below 1e-6 and reduced variance of gradients across random seeds. A second ablation should replace anticommuting X,Z by commuting generators; degradation would test whether the algebraic structure, rather than merely low rank, is responsible.
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.