{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2604-04230","title":"Three Phases of Expert Routing: How Load Balance Evolves During Mixture-of-Experts Training","arxiv_id":"2604.04230","date":"2026-04-05","proceeding":null,"authors":["Charafeddine Mouzouni"],"abstract":"We model Mixture-of-Experts (MoE) token routing as a congestion game with a single effective parameter, the congestion coefficient gamma_eff, that quantifies the balance-quality tradeoff. Tracking gamma_eff across training checkpoints of two open-source MoE models, OLMoE-1B-7B (20 checkpoints, with dense sampling in the surge region) and OpenMoE-8B (6 checkpoints), reveals a three-phase trajectory: a surge phase where the router learns to balance load (gamma_eff: 14 to 36-39, peaking in the step 30K-40K region), a stabilization phase where experts specialize under steady balance (B_0: 2.4 to 2.3, steps 100K-400K), and a relaxation phase where the router trades balance for quality as experts differentiate (gamma_eff: 27 to 9, steps 400K-1.2M). This non-monotone trajectory, invisible to post-hoc analysis of converged models, reveals that early MoE training prioritizes balance while late training prioritizes quality. The theoretical framework is honest about its limits: the single-type equilibrium reduces to temperature-scaled softmax (held-out L1: MFG = 0.199 vs. softmax = 0.200). The game is not a better predictor; it reveals what the temperature means and, critically, how that temperature evolves. We complement the dynamics with an effective congestion decomposition, a multi-type extension that improves load prediction via token clustering on all 16 layers (mean: 30%), scope diagnostics (K/M, epsilon_l), and robustness verification across four independent quality estimators (r >= 0.89). All confidence intervals are from bootstrap resampling over 50 independent text batches.","url_abs":"https://arxiv.org/abs/2604.04230","url_pdf":"https://arxiv.org/pdf/2604.04230","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2604.04230","atlas_url":"https://app.syntology.ai/?focus=2604.04230","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.04230"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/Cmouzouni/three-phases-moe","reach":null}],"summary":{"ran":18,"unverified":3},"by_repo_kind":{"found_in_text":{"samples":21,"ran":18,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"d8d4269c8c734c90","entry":"compute_gamma_layer","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/aws_quality_robustness.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/aws_quality_robustness.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d8d4269c8c734c90"}},{"code_sha256_prefix":"84a88b95d8196d1f","entry":"compute_gamma_layer_split","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/aws_quality_robustness.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/aws_quality_robustness.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"84a88b95d8196d1f"}},{"code_sha256_prefix":"ecf3322ebee8d2d2","entry":"entropy_norm","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/exp3b_multi_model.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/exp3b_multi_model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ecf3322ebee8d2d2"}},{"code_sha256_prefix":"b6fc027d85d02c48","entry":"fit_gamma","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/aws_olmoe_dense.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/aws_olmoe_dense.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b6fc027d85d02c48"}},{"code_sha256_prefix":"d643137b9a8db451","entry":"fit_gamma","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/aws_openmoe_dynamics.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/aws_openmoe_dynamics.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d643137b9a8db451"}},{"code_sha256_prefix":"1460c2c62a70e31e","entry":"fit_gamma","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/aws_quality_robustness.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/aws_quality_robustness.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1460c2c62a70e31e"}},{"code_sha256_prefix":"2f0aa4101587772e","entry":"fit_gamma_simple","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/exp10b_cluster_baselines.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/exp10b_cluster_baselines.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2f0aa4101587772e"}},{"code_sha256_prefix":"dd49203038d1cfee","entry":"fit_mixture_softmax","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/exp10_definitive.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/exp10_definitive.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dd49203038d1cfee"}},{"code_sha256_prefix":"98d36b41ed3f1a21","entry":"fit_temperature","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/exp10_definitive.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/exp10_definitive.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"98d36b41ed3f1a21"}},{"code_sha256_prefix":"62c1457f1d24c547","entry":"fit_temperature","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/exp10b_cluster_baselines.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/exp10b_cluster_baselines.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"62c1457f1d24c547"}},{"code_sha256_prefix":"3ed98a39aaeae94e","entry":"maxvio","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/exp3b_multi_model.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/exp3b_multi_model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3ed98a39aaeae94e"}},{"code_sha256_prefix":"445f9db95ecf2b66","entry":"mfg_social_cost","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"moe/theory.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/moe/theory.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"445f9db95ecf2b66"}},{"code_sha256_prefix":"274d79df20322837","entry":"per_cluster_softmax","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/exp10b_cluster_baselines.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/exp10b_cluster_baselines.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"274d79df20322837"}},{"code_sha256_prefix":"e6962f8185e939c0","entry":"show_c1_equivalence","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"moe/theory.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/moe/theory.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e6962f8185e939c0"}},{"code_sha256_prefix":"6a18510b8fe51466","entry":"softmax","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"moe/costs.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/moe/costs.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6a18510b8fe51466"}},{"code_sha256_prefix":"9beb8cc0dfae2b64","entry":"switch_aux_loss","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"moe/theory.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/moe/theory.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9beb8cc0dfae2b64"}},{"code_sha256_prefix":"377318b5516d076e","entry":"synthetic_quality","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"moe/params.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/moe/params.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"377318b5516d076e"}},{"code_sha256_prefix":"9d18b1ead51e244e","entry":"top_k_softmax","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"moe/costs.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/moe/costs.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9d18b1ead51e244e"}},{"code_sha256_prefix":"642a49f96f69862d","entry":"extract_and_analyze","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/aws_openmoe_dynamics.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/aws_openmoe_dynamics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"642a49f96f69862d"}},{"code_sha256_prefix":"f9db0ee626816365","entry":"extract_per_text_stats","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/exp11b_dynamics_scaled.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/exp11b_dynamics_scaled.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f9db0ee626816365"}},{"code_sha256_prefix":"5b20d854dd88346d","entry":"process_checkpoint","repo":"Cmouzouni/three-phases-moe","repo_kind":"found_in_text","path":"experiments/aws_olmoe_dense.py","file_url":"https://github.com/Cmouzouni/three-phases-moe/blob/HEAD/experiments/aws_olmoe_dense.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5b20d854dd88346d"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":6885},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}