Graph-stable hard routing
Implementation & benchmark of arXiv:2608.25789 — Sequential Stability of the Value Function and the Solution Mapping in Berge's Maximum Theorem via Variational Convergence
Source paper: Sequential Stability of the Value Function and the Solution Mapping in Berge's Maximum Theorem via Variational Convergence arXiv:2608.25789 ⓘ · analyzed Aug 29, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Regularize a hard top-1 or top-k router so its selected expert set remains stable under small logit and capacity-mask perturbations. Combine perturbation-based route consistency with a positive gap between selected and unselected experts, because stable objective values alone do not guarantee stable argmax solutions.
Formulas
Mathematical statement
The paper states that continuous convergence of objectives is equivalent to simultaneous hypo- and epi-convergence: $$f^{k}\overset{c}{\rightarrow}f\Longleftrightarrow h\text{-}\limsup_{k}f^{k}\leq f\leq e\text{-}\liminf_{k}f^{k}\Longleftrightarrow f^{k}\overset{h}{\rightarrow}f\text{ and }f^{k}\overset{e}{\rightarrow}f.$$ For set-valued mappings, graphical convergence satisfies $$\Psi^{k}\overset{g}{\rightarrow}\Psi\Longleftrightarrow\operatorname{gph}\Psi^{k}\rightarrow\operatorname{gph}\Psi\Longleftrightarrow\Psi\subset g\text{-}\liminf_{k}\Psi^{k},\quad g\text{-}\limsup_{k}\Psi^{k}\subset\Psi.$$ The paper explicitly demonstrates failure of inner solution stability with $$u^{k}(x,y)=\frac{1}{k}|x|,\quad u(x,y)\equiv0,\quad\Phi^{k}(y)=\Phi(y)=[-1,1],$$ for which the solution sets are $S^{k}(y)=\{-1,1\}$ while $S(y)=[-1,1]$. Here $u^{k}$ is a perturbed objective, $\Phi^{k}$ is a feasible-set mapping, $v^{k}(y)=\max_{x\in\Phi^{k}(y)}u^{k}(x,y)$ is the value function, and $S^{k}(y)=\arg\max_{x\in\Phi^{k}(y)}u^{k}(x,y)$ is the solution mapping. The neural surrogate is to enforce approximate uniqueness through a margin $\gamma>0$: the selected score must exceed every feasible competitor by at least $\gamma$.
Implementation notes
(1) Integrate the method at the router logits of a Switch-style or top-k Mixture-of-Experts Transformer. For token representation $h_b$, compute $z_b=W h_b\in\mathbb R^E$, apply the feasible capacity mask $M_b$, and define the clean selected set $R_b^{(0)}=\operatorname{TopK}(z_b,M_b)$. Keep the forward routing operation unchanged initially. (2) For each batch, generate $J=2$ or $4$ perturbations $z_b^{(j)}=z_b+\epsilon_b^{(j)}$, with $\epsilon_b^{(j)}\sim\mathcal N(0,\sigma^2I)$, and optionally remove one randomly chosen feasible expert from $M_b$ to model capacity or availability changes. Recompute $R_b^{(j)}=\operatorname{TopK}(z_b^{(j)},M_b^{(j)})$. Add the displayed route-consistency loss; use the exact set-overlap expression as a detached discrete diagnostic or replace it during backpropagation with a soft top-k relaxation. Add the margin hinge, where $\gamma$ is the desired score gap. (3) The paper supplies the mathematical reason for monitoring solution mappings rather than only values. Estimate $\sigma$ from router-logit standard deviation using multipliers $10^{-3}$, $10^{-2}$, and $10^{-1}$, and sweep $\gamma$ over $0.01$, $0.05$, and $0.1$ times that standard deviation. Compute route-flip rate, selected-set agreement, expert-load coefficient of variation, overflow rate, and clean validation loss. (4) First experiment: train a 4-layer Transformer with 8 experts on WikiText-2 or a small synthetic long-tailed classification dataset, comparing ordinary top-k routing with the regularized router at equal FLOPs and parameter count. A successful result is at least a twofold reduction in route flips and lower overflow under perturbation, with unchanged or improved perplexity/accuracy and no harmful expert-collapse or load imbalance.
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.