Summary of "A Deterministic Constant-Competitive Algorithm for Dynamic Mixture-of-Experts Serving"
Summary (Overview)
- Main Result: The paper proves a deterministic -competitive algorithm for Dynamic Mixture-of-Experts (MoE) serving, improving on the prior deterministic baseline and matching the asymptotic performance of randomized approaches.
- Key Theorem: For every number of experts and replica budget , the algorithm satisfies , where is an absolute constant from the Positive Body Chasing theorem.
- Novel Contribution: A deterministic pathwise rounding theorem that converts fractional allocations to integral ones with service distortion factor 3 and movement bounded by fractional movement plus .
- Formal Verification: The complete theorem is machine-checked in Lean 4, with the two-sparse positive-body chasing theorem as the sole scientific source premise.
- Implication: Randomization is not asymptotically necessary for constant-competitive MoE serving.
Introduction and Theoretical Foundation
Background
Dynamic Mixture-of-Experts inference requires deciding how many replica GPUs to assign to each expert as workloads change over time. The core trade-off involves:
- Switching costs: Moving replicas between experts incurs movement costs
- Bottleneck latency: Insufficient replication increases service latency
Prior Work
- Huang, Lou, and Xiao formalized this as an online problem and proved an randomized competitive ratio, with an lower bound for an offset-Fenchel-dual maximization problem.
- Vergeres proved a deterministic factor-16 bound for the equality-budget fractional relaxation and a randomized factor-48 integral bound via Lazy Threshold Rounding.
- The previous deterministic baseline was to — achieved by keeping a fixed integral allocation, which is within factor of any fractional path since every fractional coordinate lies in .
Problem Model
Fix experts and replica GPUs. The integral state space is:
At round , a nonnegative workload vector is revealed. The online algorithm chooses and pays:
Methodology
1. Finite Positive Approximation to Reciprocal Service
The epigraph of admits a finite positive-polyhedral inner approximation with constant distortion. For a workload coordinate and augmented allocation , the tangent is defined as:
Lemma 2 (Tangent Envelope): For all , , :
If , some satisfies .
This yields the finite envelope with:
The inequality is equivalent to the positive covering row (with support size at most 2):
2. Event/Reset Reduction to Positive Body Chasing
Using augmented coordinates , the algorithm presents two types of bodies to the positive-body chaser:
Event body (when request arrives):
Reset body (after the round-t action):
The geometrically shrinking positive resets charge service cost to vertical movement.
3. Balanced Projection (Removing Resource Augmentation)
The chaser operates with resource augmentation , giving . The balanced projection maps to exact-budget fractional allocations:
Lemma 4: The map satisfies , , , and:
4. Deterministic Pathwise Rounding (Key Novelty)
For a fractional state with , define the required integral level:
This is the smallest nonnegative integer satisfying .
Repair Rule: Given previous integral state and current fractional state :
- Find least index with and temporarily add one unit there
- Among positive coordinates, choose maximizing
- Remove one unit from (the "deep donor")
- Repeat until all coordinates meet their required levels
Top-unit potential:
Lemma 5 (Deep Donor): Every nonnegative integral vector of mass contains a positive coordinate with .
Lemma 6 (Repair Charge):
Lemma 7 (External Variation): For fixed and exact-budget fractional states :
Theorem 8 (Deterministic Simplex Rounding): For every finite exact-budget fractional path and supplied , the repair rule produces a deterministic prefix-causal integral path satisfying:
Empirical Validation / Results
Main Theorem
Theorem 1 (Deterministic -competitive upper bound): For every and every integral initial state, there is a causal deterministic integral online algorithm such that every finite nonnegative workload sequence satisfies:
The multiplicative constant is independent of , , the initial state, the horizon, and the workloads.
This gives the boxed competitive ratio bound:
Since is absolute, (the lower bound follows from the routine observation that every online path is feasible offline).
Proof Composition
The composition of results yields:
where is the chaser's movement bound.
Formal Verification
The complete theorem is machine-checked in Lean 4.32.2 with pinned Mathlib 4.32.2. Key declarations:
dynamicMoe_explicit_deterministic_upper— the explicit deterministic upper bounddynamicMoe_deterministic_theta_one— the competitive ratio
The formalization uses the two-sparse positive-body consequence as its sole scientific premise. Lean reports only standard axioms (propext, Classical.choice, Quot.sound). The companion archive includes:
- 33 focused tests
- A 200-round oscillation control
- A deliberately false rounding rule without hysteresis (demonstrating why the dead band is necessary)
Theoretical and Practical Implications
Theoretical Significance
- Resolves the deterministic gap: The prior deterministic bound was ; this paper achieves , showing randomization is not asymptotically necessary for MoE serving.
- Novel rounding technique: The deterministic pathwise rounding theorem (Theorem 8) provides a general tool for converting fractional online algorithms to integral ones with constant service distortion and bounded movement stretch.
- Positive body reduction: The paper demonstrates how the MoE problem can be reduced to the Positive Body Chasing theorem, leveraging the sparsity of the covering constraints.
Practical Implications
- The algorithm provides a guaranteed competitive ratio independent of problem dimensions (expert count, replica budget, horizon).
- The additive term grows linearly with the replica budget but is independent of the expert count.
- The model allocates replicas but does not model physical network topology, shared links, or routing.
Comparison with Prior Work
| Method | Type | Competitive Ratio |
|---|---|---|
| Huang, Lou, Xiao | Randomized | |
| Vergeres (fractional) | Deterministic | Factor 16 |
| Vergeres (integral) | Randomized | Factor 48 |
| Previous deterministic baseline | Deterministic | |
| This paper | Deterministic | (factor ) |
Conclusion
Main Takeaways
- The paper proves a deterministic -competitive algorithm for Dynamic MoE serving, closing the gap between deterministic and randomized approaches.
- The key innovation is a deterministic pathwise rounding theorem with service distortion 3 and movement bounded by fractional movement plus , replacing the need for Lazy Threshold Rounding.
- The complete proof is machine-checked in Lean 4, providing formal verification relative to the Positive Body Chasing theorem.
Open Directions
- Sharper constants: The concrete bound is not optimized; better numerical constants may be achievable.
- Efficiency: The paper does not claim polynomial-time implementation of the complete algorithm; explicit bit-complexity analysis remains open.
- Grid optimization: The concrete integer tangent grid uses covering rows per event; a geometric grid reduces this to .
- Broader applications: The deterministic rounding theorem may apply to other online allocation problems with similar structure.
Key Quote
"The main conclusion is that for every replica budget . Because is absolute, this is an upper bound. Thus the deterministic ratio has the same asymptotic order as the randomized ratio from the previous version, and randomization is not asymptotically necessary."
Related papers
- Recursive Harness Self-Improvement
Recursive Harness Self-Improvement lets a few cheap prompt-level iterations outperform maximum test-time scaling baselines, cutting inference cost by up to 60% through better inter-agent context management, not longer reasoning.
- Knowledge Distillation During Mid-Training Favors Reasoning over Factual Recall
Knowledge distillation during mid-training boosts reasoning but slows factual recall; entropy-based token routing (SWITCH DISTILLATION) preserves both.
- From Concentration to Differentiation and Back: Routing Effective Rank in MoE Reasoning Cohorts
Routing effective rank from expert-routing traces reveals a reproducible low-high-low trajectory in Mixture-of-Experts reasoning cohorts, with common-mode mass driving two-thirds of the spectral motion.