Polynomial-expander feature mixer
Implementation & benchmark of arXiv:2608.26349 — On polynomial expanders with many variables
Source paper: On polynomial expanders with many variables arXiv:2608.26349 ⓘ · analyzed Aug 29, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Insert a fixed polynomial mixer before an MLP or retrieval index for tuples of discrete features. The mixer maps n+2 bounded scalar feature codes to one or several expanded scalar codes, and the paper's theorem guarantees that its image cannot collapse below order |A|^n when all coordinates come from a finite alphabet A. Use multiple independent permutations or coefficient choices to obtain a vector representation while retaining the deterministic algebraic structure.
Formulas
Mathematical statement
For fixed integer n at least 2, define P from C^(n+2) to C by P(x_1,...,x_{n+2}) = sum from i=1 to n of (x_2-x_1)^(i-1) x_1^(n-i) x_{i+2}. Here x_1 and x_2 are distinguished input coordinates and x_{i+2} is the coefficient-like coordinate associated with degree i-1. The paper proves that for every finite set A contained in C, there is a constant c_n greater than 0, depending only on n, such that |{P(x_1,...,x_{n+2}): x_i in A}| is at least c_n |A|^n. The transferable property is combinatorial expansion: among |A|^(n+2) possible tuples, the scalar output assumes at least order |A|^n distinct values. This is an exact discrete guarantee, not a claim that nearby real-valued inputs remain separated.
Implementation notes
Integrate this at the input side of a small MLP, factorization machine, or retrieval key generator for examples containing n+2 categorical fields. First assign every category a scalar code e_j in {0,1,...,K-1}, normalize it to u_j = 2e_j/(K-1)-1, and group n+2 fields per mixer. Compute the polynomial by Horner evaluation to avoid separately materializing powers: set q = u_2-u_1, initialize z = 0, and for i = n,n-1,...,1 update z = q*z + u_1^(n-i)*u_{i+2}; alternatively precompute the n powers of u_1 for a vectorized batch. For a useful vector representation, create r channels using independent random permutations of the field order and independent signed affine codes, yielding z_1,...,z_r, then concatenate them with ordinary embeddings before the MLP. Keep the polynomial path fixed initially; optionally learn a small affine scale and bias after it, not the polynomial coefficients, so the discrete expansion property remains interpretable. The formula and cardinality lower bound come from the paper; the normalized coding, multiple channels, and Horner implementation are engineering adaptations. Estimate empirical expansion by enumerating all tuples for small K, counting unique quantized outputs, and measuring collision rates on held-out tuples. The first experiment should use n=3, K in {8,16,32}, and a two-layer MLP on synthetic parity, interaction, and Criteo-style categorical subsets. Compare against concatenated embeddings, a learned linear projection to one scalar, and random hashing at equal stored feature dimension. Success means lower unseen-tuple collision rate and equal-or-better downstream accuracy with less embedding memory; explicitly monitor activation magnitude, gradient norm, and sensitivity to code permutations because the theorem does not guarantee numerical separation after floating-point rounding.
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.