✓✓ Beats tuned baseline 2026

Gauge-Patched Local Experts

Implementation & benchmark of arXiv:2607.22236 — A PDE approach to the 2D Yang-Mills measure

Usefulness7/10
Difficulty5/10
Novelty7/10

Source paper: A PDE approach to the 2D Yang-Mills measure arXiv:2607.22236 ⓘ · analyzed Aug 30, 2026

AI-generated research hypothesis, automatically tested. Not peer-reviewed.

Idea description

Represent hidden features with several local orthogonal or unitary frames, and let group-valued transition maps align neighboring experts. Instead of forcing every expert to learn a globally coherent coordinate system, train local experts independently and impose a patching constraint that produces a globally consistent feature field. This is especially suitable for graph neural networks on data with heterogeneous local geometries or mixture-of-experts models whose experts specialize by region.

Formulas

$$\max_{\mathbf n,\mathbf m}\left\{|B_{\mathbf n}|_{\beta;U_{\mathbf n}}+|g_{\mathbf n,\mathbf m}-1_G|_{\infty;U_{\mathbf n}\cap U_{\mathbf m}}\right\}\leq\delta_{\mathrm{patch}}.$$
$$B=B_{\mathbf n}^{q_{\mathbf n}}\quad\text{on }U_{\mathbf n},\qquad q_{\mathbf n}=q_{\mathbf m}g_{\mathbf n,\mathbf m}\quad\text{on }U_{\mathbf n}\cap U_{\mathbf m}.$$
$$|\hat g-1_G|_{C^\beta(V)}\lesssim d(V_1,V_2)^{-\beta}|g-1_G|_{C^\beta(V)}.$$
$$\mathcal L_{\mathrm{patch}}=\sum_{(n,m)}\mathbb E_{x\in U_n\cap U_m}\left[\left\|h_n(x)-\rho(g_{n,m}(x))h_m(x)\right\|_2^2\right]+\lambda\sum_{(n,m)}\|g_{n,m}(x)-I\|_F^2.$$

Mathematical statement

The paper's patching result assumes local fields B_n and transition functions g_{n,m} on overlapping patches U_n, with max_{n,m}{|B_n|_{beta;U_n}+|g_{n,m}-1_G|_{infty;U_n intersection U_m}} <= delta_patch. Here beta is a Holder exponent, G is a compact connected Lie group, B_n is a local Lie-algebra-valued field, g_{n,m} is a group-valued transition map, and delta_patch is a smallness threshold depending on beta and G. It constructs a global field B and local gauge transformations q_n satisfying B=B_n^{q_n} on U_n and q_n=q_m g_{n,m} on overlaps. For neural vector features, use an orthogonal representation rho:G -> O(d) and define the transformed feature by B_n^{q_n}(x)=rho(q_n(x))B_n(x). Lemma 5.6 gives a stable transition extension: for disjoint V_1,V_2 contained in V, one can construct hat g equal to the identity on V_1 and g on V_2 with Holder norm bounded by d(V_1,V_2)^(-beta)|g-1_G|_{C^beta(V)}. The transferable property is controlled local coordinate change and composability of neighboring frames.

Implementation notes

(1) Integration point: insert this into a graph-NN or MoE hidden layer. Partition inputs into K overlapping patches or route tokens to K local experts. Expert n outputs h_n(x) in R^d. Parameterize every transition as g_nm(x)=exp(S_nm(x)), where S_nm is skew-symmetric, so g_nm is orthogonal and preserves feature norm. A transition MLP receives the shared input embedding and predicts the entries of S_nm.

(2) Pseudocode:

for batch x:
    for patch n:
        h[n] = expert_n(x[n])
    for overlap (n,m):
        S = skew(transition_nm(x_overlap))
        g = matrix_exp(S)
        L_patch += mean(||h[n]-g @ h[m]||_2^2)
        L_patch += lambda_id * mean(||g-I||_F^2)
    for triple (n,m,k):
        L_patch += lambda_cocycle * mean(||g_nm @ g_mk-g_nk||_F^2)
    L = task_loss + lambda_patch * L_patch
    update(parameters)

For a global readout, align each h_n to a reference patch using transition products along a spanning tree. (3) The paper contributes the small-overlap condition and cocycle equations. Estimate local Holder size by max_{i,j}||h(x_i)-h(x_j)||/||x_i-x_j||^beta, and monitor whether transition magnitudes and patch residuals remain below a chosen empirical delta_patch. (4) First experiment: train a four-layer GCN on a synthetic planar point-cloud classification task with random independent rotations applied to each spatial patch. Compare a shared GCN, ordinary MoE, and gauge-patched MoE at equal parameter count and FLOPs. Success means higher accuracy under unseen local rotations, lower prediction variance across rotations, lower overlap disagreement, and stable optimization as the number of experts grows.

Verification

Beats tuned baseline

Stage 1 · Toy mechanism gate: Passed ✓

Stage 2 · Mechanism transferred to benchmark: Confirmed ✓

Stage 2 · Practical benchmark result: Significant win ✓

Methodology: 8 paired seeds, permutation test (p<0.05) against a learning-rate-tuned baseline. How verification works

Stage 1 — Mechanism check agent confidence 9/10

Built a compact Gauge-Patched Local Experts MVP with orthogonal 2D transitions, Holder regularity checks, small-angle patch residual analysis, and a matched two-expert optimization sweep. All three quantitative predictions were confirmed: norm error was 2.2e-16, the observed Holder log-log slope was -0.7496 versus predicted -0.75, and the residual slope was 1.9995 versus predicted 2.0. The patch penalty reduced overlap disagreement from 0.7203 to 0.0800 at lambda=1 and to 0.00163 at lambda=10, but increased task MSE, so this demonstrates the mechanism rather than an overall accuracy win.

Agent confidence
9/10
Baseline
lambda_patch=0: task MSE 2.88e-15, overlap MSE 0.7203
Idea
lambda_patch=1: task MSE 0.0800, overlap MSE 0.0800; lambda_patch=10: task MSE 0.1633, overlap MSE 0.00163; predicted/observed slopes: Holder -0.75/-0.7496, small-angle residual 2.0/1.9995

Limitations: Only a 2D analytic toy and two linear local experts were tested; no graph neural network, learned transition MLP, matrix exponential parameterization beyond the SO(2) analytic equivalent, unseen-rotation classification, cocycle triples, GPU scaling, or equal-FLOP multi-expert benchmark was evaluated.

How to run: python3 gauge_patched_experts.py

Stage 2 — Benchmark vs. tuned baseline (arXiv:2607.22236)

Beats the tuned baseline by 1.8% (p=0.0081, wins 8 / 8 paired seeds; metric: lower is better).

Benchmark
Dynamics forecasting
Model
rnn_small
Paired seeds
8
Baseline mean
0
Idea mean
0
Effect (Δ)
-0 (−1.8%; negative = idea better)
Wins
8 / 8 paired seeds
p-value
0.0081 (permutation test, 20 000 shuffles)
Smallest detectable effect
±1.2%
Mechanism
Confirmed ✓
Practical effect
Helps
Baseline tuning
swept over 3 configs
Limitations:

The built-in dynamics task is not a spatial graph or true mixture-of-experts benchmark; neighboring temporal state windows serve as local patches. The implementation uses fixed SO(2)^32 hidden-coordinate rotations rather than transition MLPs or general Lie groups, and does not test cocycle triples, many-expert scaling, unseen spatial rotations, or larger datasets. The baseline sweep selected learning rate using the harness's 4-seed sweep and reevaluated the selected configuration on all 8 paired seeds.

How to run: python3 bench_gauge_dynamics.py

Verdict computed by deterministic test code from paired-seed statistics — not by the language model.

Stage 2 — Benchmark latest Worked ✓

Agent confidence: 8/10

Gauge-Patched Local Experts was implemented as a GRU training modification on the registered dynamics stability/control track. The idea reduced test MSE from 4.311938073442434e-05 to 4.2328419567638775e-05, with paired delta -7.909611667855643e-07 and permutation p=0.0081; all 8 paired seeds improved. The mechanism signature was also confirmed: overlap disagreement fell from 0.002737239032285288 to 0.002110361514496617 while the maximum observed orthogonal norm error was 2.384185791015625e-07.

Baseline
best lr=0.01; 8-seed mean MSE 4.311938073442434e-05, std 2.1245040862825782e-05
Delta mean
-7.909611667855643e-07
Idea
lambda_patch=0.01, best lr=0.01; 8-seed mean MSE 4.2328419567638775e-05, std 2.1386848202922675e-05
Overlap disagreement
baseline 0.002737239032285288; idea 0.002110361514496617
P value
0.0081
Paired wins
8/8
Relative improvement percent
1.834

Benchmark result

Beats the tuned baseline by 1.8% (p=0.0081, wins 8 / 8 paired seeds; metric: lower is better).

Benchmark
Dynamics forecasting
Model
rnn_small
Paired seeds
8
Baseline mean
0
Idea mean
0
Effect (Δ)
-0 (−1.8%; negative = idea better)
Wins
8 / 8 paired seeds
p-value
0.0081 (permutation test, 20 000 shuffles)
Smallest detectable effect
±1.2%
Mechanism
Confirmed ✓
Practical effect
Helps
Baseline tuning
swept over 3 configs
Limitations:

The built-in dynamics task is not a spatial graph or true mixture-of-experts benchmark; neighboring temporal state windows serve as local patches. The implementation uses fixed SO(2)^32 hidden-coordinate rotations rather than transition MLPs or general Lie groups, and does not test cocycle triples, many-expert scaling, unseen spatial rotations, or larger datasets. The baseline sweep selected learning rate using the harness's 4-seed sweep and reevaluated the selected configuration on all 8 paired seeds.

How to run: python3 bench_gauge_dynamics.py

Artifacts

Implementation overview ⬇ Download all as ZIP 7 files · code, reports and structured results