Marginally-Irrelevant Cross-Stream Gate
Implementation & benchmark of arXiv:2607.25767 — Critical Ripples and Dirac Fermions in Crystalline Membranes
Source paper: Critical Ripples and Dirac Fermions in Crystalline Membranes arXiv:2607.25767 ⓘ · analyzed Aug 31, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Use the paper's marginally irrelevant RG flow to schedule communication between two neural feature streams. A fast stream, such as transformer attention, can interact with a slower or more persistent stream, such as an SSM or low-frequency convolutional branch, through a gate that decreases like \(1/(1+a y_0 \ell)\) instead of remaining fixed across depth or training time. A learnable initial amplitude preserves adaptability while the inverse-logarithmic envelope suppresses harmful long-range feedback.
Formulas
Mathematical statement
The paper defines the dimensionless quantum Young coupling \(y=Y/(\rho^{1/2}\kappa_b^{3/2})\), where \(Y\) is an elastic modulus, \(\rho\) is a mass density, and \(\kappa_b\) is the bending rigidity. Its one-loop RG equations are \(\mathrm{d}y/\mathrm{d}\ell=-a y^2+O(y^3)\) and \(\mathrm{d}\ln\kappa_b/\mathrm{d}\ell=b y+O(y^2)\), where \(\ell\) is logarithmic scale and \(a=3(d_c+6)/(128\pi)\), \(b=3/(32\pi)\), with \(d_c\) the codimension. Ignoring higher-order terms gives \(y(\ell)=y_0/(1+a y_0\ell)\), so the coupling is marginally irrelevant and vanishes slowly. Integrating the rigidity equation gives \(\kappa_b(\ell)=\kappa_{b0}(1+a y_0\ell)^{b/a}\). The neural adaptation uses the same stable inverse-logarithmic solution as a gate envelope: \(g(\ell)=\alpha_0/(1+a\alpha_0\ell)\), where \(\alpha_0>0\) is the initial cross-stream coupling, \(a>0\) controls decay, and \(\ell\) is mapped empirically to layer depth or optimizer step. The physical membrane assumptions are not transferred; the reusable asset is the explicit monotone solution of a quadratic beta function.
Implementation notes
Integrate the gate at the residual cross-stream mixing operation, rather than modifying the internal attention or SSM recurrence. Let \(x_l^{\mathrm{fast}}\) and \(x_l^{\mathrm{slow}}\) be tensors with the same batch, sequence, and channel dimensions after projection to a common width. Replace a fixed mixture \(x_{l+1}=x_l^{\mathrm{fast}}+\alpha P(x_l^{\mathrm{slow}})\) with \(x_{l+1}=x_l^{\mathrm{fast}}+g_lP(x_l^{\mathrm{slow}})\), where \(P\) is a learned linear projection and \(g_l=\alpha_0/(1+a\alpha_0\ell_l)\). Parameterize \(\alpha_0=\mathrm{softplus}(u)\) and optionally \(a=\mathrm{softplus}(v)\). For depth scheduling, use \(\ell_l=\log(1+l/l_0)\), where \(l\) is zero-indexed layer number and \(l_0\) is a positive scale such as 1 or one quarter of the network depth. The compact update is: alpha0 = softplus(u); a = softplus(v); ell = log1p(layer_index/l0); gate = alpha0/(1 + a*alpha0*ell); output = fast + gate*proj(slow). A training-time variant uses \(\ell_t=\log(1+t/t_0)\), where \(t\) is optimizer step and \(t_0\) is a warmup-scale hyperparameter. The exact computed object is the paper's inverse-logarithmic solution; the mapping from RG scale to neural depth or time is empirical. First test a small language model with a transformer attention branch and a two-layer SSM or depthwise-convolution branch on TinyStories or WikiText-103. Compare fixed learned gates, cosine decay, inverse-square-root decay, and the proposed schedule at equal parameter count and FLOPs. Record training loss, validation perplexity, gradient-norm spikes, activation variance, and wall-clock convergence. Success is lower loss or perplexity at equal compute, fewer unstable updates, and no early-training slowdown; also check that the gate remains nonzero and decays gradually rather than collapsing immediately.
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.