Papers › Half the Experts, All the Code: One-Shot Domain Pruning of Mixture-of-Experts LLMs for Coding

Half the Experts, All the Code: One-Shot Domain Pruning of Mixture-of-Experts LLMs for Coding

18 Jul 2026arXiv:2607.16721added by Syntology

Anik Jha

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

The strongest open-weight coding models are mixture-of-experts (MoE) networks: most of their size comes from large pools of "expert" subnetworks, of which only a few act on any token. That pool is why these models do not fit on the machines most developers own, yet for a user who only wants coding help, most experts encode abilities that will never be invoked. We ask how many experts can be removed, and which, by pruning two recent open-weight MoE models from different families (Qwen3.6-35B-A3B and Gemma-4-26B-A4B) under five selection strategies, judged the way a user would: by whether the model still writes correct code. Half the experts can be removed from either model with no statistically detectable loss on the primary code benchmark, and the damage lands almost entirely on abilities outside coding, the intended trade. But the winning strategy flips between the two models, so a recipe validated on one family cannot be assumed to work on another. We further show that perplexity, the metric much of the pruning literature leans on, can rate a broken model above an intact one; that a lightweight fine-tune recovers about half of what aggressive pruning loses; and that against quantizing the full model to the same memory, pruning wins only where quantization would have to drop below 3 bits per weight. Five attempts to overturn that crossover, with failure criteria fixed in advance (better calibration, guarded selection, causal expert importance, failure attribution, and an agentic evaluation letting each model repair its failures from execution feedback), all leave it standing; the last shows single-shot benchmarks overstate compression penalties broadly, as one repair turn erases the 2-bit quantization penalty entirely. Expert pruning works, but it demands per-model validation on the task the model will actually serve.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2607.16721")

Code

Syntology Ran 16 of 24 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 16 ran with no contract checked.

By repository: found in paper text by Syntology: 24 samples from 1 repository, 16 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

anik-jha/moep found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

24 samples harvested; 16 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

16ran
8unverified

Licence: 0 of the 24 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from anik-jha/moep. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

attach anik-jha/moep/src/moep/profiler.py found in paper text by Syntology ran MIT (permissive) · 894154deb5051f92 · report
attach_item_hooks anik-jha/moep/src/moep/attribution.py found in paper text by Syntology ran MIT (permissive) · f4e9c5dd00440d2e · report
build_feedback anik-jha/moep/src/moep/repair_eval.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 349bb92147fd4f64 · report
build_item_sets anik-jha/moep/src/moep/attribution.py found in paper text by Syntology ran MIT (permissive) · 3bdd37a58f4172db · report
build_repair_messages anik-jha/moep/src/moep/repair_eval.py found in paper text by Syntology ran fingerprinted MIT (permissive) · efb53e7877fd5dbc · report
load_stats anik-jha/moep/src/moep/profiler.py found in paper text by Syntology ran MIT (permissive) · 890f12d88faab21a · report
mask_router_logits anik-jha/moep/src/moep/ablation.py found in paper text by Syntology ran MIT (permissive) · c5c9c50c58d0eef5 · report
pack_token_stream anik-jha/moep/src/moep/profiler.py found in paper text by Syntology ran MIT (permissive) · e119502864fd0a8c · report
parse_scores anik-jha/moep/src/moep/codeval.py found in paper text by Syntology ran fingerprinted MIT (permissive) · b9e6f7bbe3b43270 · report
pruned_mask anik-jha/moep/src/moep/attribution.py found in paper text by Syntology ran MIT (permissive) · 05f75544cc1a75c7 · report
run_pair anik-jha/moep/src/moep/ablation.py found in paper text by Syntology ran MIT (permissive) · 6e98522fb81e2502 · report
seq_loss anik-jha/moep/src/moep/ablation.py found in paper text by Syntology ran MIT (permissive) · 094d04f4af2792de · report
tokenize_rows anik-jha/moep/src/moep/data.py found in paper text by Syntology ran MIT (permissive) · 8389363a3873fc0d · report
tokenize_rows_plain anik-jha/moep/src/moep/data.py found in paper text by Syntology ran MIT (permissive) · 026adaeb0bca946f · report
turn1_user_message anik-jha/moep/src/moep/repair_eval.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 48641a7e6a6e7f12 · report
write_eval anik-jha/moep/src/moep/evalx.py found in paper text by Syntology ran MIT (permissive) · d3893fe99bf403d2 · report
completion anik-jha/moep/src/moep/codeval.py found in paper text by Syntology unverified MIT (permissive) · 452896dfec050e72 · report
evaluate_samples anik-jha/moep/src/moep/codeval.py found in paper text by Syntology unverified MIT (permissive) · 3e39bc2a2d2a3dec · report
export_gguf anik-jha/moep/src/moep/export.py found in paper text by Syntology unverified MIT (permissive) · 9c9714431a00a332 · report
get_adapter anik-jha/moep/src/moep/adapters.py found in paper text by Syntology unverified MIT (permissive) · 32c087012117c403 · report
heal anik-jha/moep/src/moep/heal.py found in paper text by Syntology unverified MIT (permissive) · 4e7b923f15f0c379 · report
load_offloaded anik-jha/moep/src/moep/loader.py found in paper text by Syntology unverified MIT (permissive) · 4d1c495402277bf7 · report
perplexity anik-jha/moep/src/moep/evalx.py found in paper text by Syntology unverified MIT (permissive) · e844b6e07ec7a670 · report
smoke anik-jha/moep/src/moep/evalx.py found in paper text by Syntology unverified MIT (permissive) · 44eed9eda2af0fa3 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2607.16721, was issued in July 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections