Mean-Payoff Tropical Router
Implementation & benchmark of arXiv:2607.23754 — Set-defined graph classes: $χ$-boundedness meets tropical algebra
Source paper: Set-defined graph classes: $χ$-boundedness meets tropical algebra arXiv:2607.23754 ⓘ · analyzed Aug 30, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Replace the usual independently normalized MoE router scores with a small system of tropical inequalities controlling expert load, score margins, and capacity slack. Each inequality induces a local max-plus policy selecting its currently dominant expert or constraint; policy improvement detects positive-weight cycles that would cause oscillatory routing and applies the smallest bias correction that removes them. This provides a non-differentiable but cheap controller around the router, potentially reducing expert collapse and router oscillation without adding a full auxiliary load-balancing loss.
Formulas
Mathematical statement
The paper's efficient representation uses min-plus and max-plus inequalities of the form \(x^{\bullet}_{p(\lambda_s)}+\delta_s\ge \min_{i:\rho_i\cap L_s\ne\emptyset}(x^{\bullet}_i+\widehat{\varepsilon}_{s,i})\) and \(y^{\bullet}_{p(\lambda_s)}+\delta_s\le \max_{i:\rho_i\cap L_s\ne\emptyset}(y^{\bullet}_i+\widetilde{\varepsilon}_{s,i})\). Here \(x_i^{\bullet},y_i^{\bullet}\) are unknown potentials for states or experts, \(p(\lambda_s)\) is the state associated with constraint \(s\), \(\delta_s\) is its offset, \(L_s\) is the set of states allowed by the constraint, and \(\widehat{\varepsilon}_{s,i},\widetilde{\varepsilon}_{s,i}\) are edge offsets. The paper connects feasibility of such systems to winning positional strategies in mean-payoff games: an active policy chooses one minimizing or maximizing term in every row, and the induced directed graph is diagnosed through cycles with unfavorable total weight. For the neural adaptation, let \(b_e\) be a bias for expert \(e\), \(\ell_e\) the observed log-load, \(c_e\) the target log-load, and \(m_e\) the mean router margin. Impose max-plus constraints \(b_{p(s)}+\delta_s\le\max_{j\in L_s}(b_j+w_{s,j})\), where \(w_{s,j}\) encodes load and margin corrections. The active argmax expert in every row defines a positional policy; positive-mean directed cycles identify mutually reinforcing bias corrections. The controller subtracts a correction proportional to the positive cycle mean, analogous to eliminating an unfavorable mean-payoff strategy.
Implementation notes
Integrate the controller after the MoE router computes token-to-expert assignments and before capacity truncation. Use one scalar bias \(b_e\) per expert and maintain a small set of constraint rows \(s\): global load balance, local capacity, and minimum router-margin constraints. At each training step: (1) collect batch assignment counts and average selected-versus-second-best margins; compute \(\ell_e\) and \(m_e\); (2) construct offsets \(w_{s,e}=\alpha(c_e-\ell_e)+\beta m_e\), where \(c_e\) is the target log-load and \(\alpha,\beta\) are fixed gains; (3) for every row, select \(a(s)=\arg\max_{e\in L_s}(b_e+w_{s,e})\); (4) build the directed graph from each constraint state \(p(s)\) to its selected expert or state, find strongly connected components, and estimate the highest-mean cycle using Karp's algorithm or exhaustive cycle enumeration when the graph is tiny; (5) if a cycle has positive mean \(W(C)\), subtract \(\eta W(C)\) from the source biases and repeat for two to five policy-improvement passes; (6) add the final \(b_e\) to router logits before top-1 or top-2 selection. The tropical part is the argmax policy and cycle correction; batch statistics and gains \(\alpha,\beta,\eta\) are estimated or tuned empirically. Start with a 12-layer, 8-expert Switch-Transformer-sized model on C4 or synthetic token classification, comparing the standard router auxiliary loss, Sinkhorn balancing, and this controller at equal model FLOPs. Measure expert-load coefficient of variation, dropped-token rate, router entropy, step-to-step assignment oscillation, and validation perplexity. Success means lower drop rate and oscillation at equal perplexity, or equal load balance with a smaller auxiliary-loss coefficient and no additional forward-pass cost.
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.