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 View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 24 code samples harvested from 1 repository linked to this paper: 16 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 2 honoured, 1 violated, 2 with no contract checked; 11 where Syntology's instrument failed) · 8 unverified. Where Syntology's instrument failed: 11 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 24 samples from 1 repository, 16 ran (5 with no instrument failure; 11 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

anik-jha/moep found in paper text by SyntologySyntology: 24 samples, 16 ran (11 instrument-failed) · 8 unverified 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 (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 2 honoured, 1 violated, 2 with no contract checked; 11 where Syntology's instrument failed) · 8 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

2ran · honoured contract
1ran · violated contract
11ran · our draft was wrong
2ran
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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

anik-jha/moep found in paper text by Syntology 24 samples, 16 ran (11 instrument-failed) · 8 unverified
attach src/moep/profiler.py ran · our draft was wrong MIT (permissive) · 894154deb5051f92 · report fixture: signature model:callable/0/?, adapter:MinimalAdapter/0/? · returned tuple · level recorded 2026-09-24
attach_item_hooks src/moep/attribution.py ran · our draft was wrong MIT (permissive) · f4e9c5dd00440d2e · report fixture: signature model:callable/0/?, adapter:MinimalAdapter/0/?, mask:Tensor/2/bool · returned tuple · level recorded 2026-09-24
build_feedback src/moep/repair_eval.py ran · our draft was wrong fingerprinted MIT (permissive) · 349bb92147fd4f64 · report fixture: signature args_repr:str/0/str, expected_repr:str/0/str · returned tuple · level recorded 2026-09-24
build_item_sets src/moep/attribution.py ran · our draft was wrong MIT (permissive) · 3bdd37a58f4172db · report fixture: signature run_dir:PosixPath/0/?, base_tag:str/0/str, pruned_tag:str/0/str · returned dict · level recorded 2026-09-24
build_repair_messages src/moep/repair_eval.py ran · our draft was wrong fingerprinted MIT (permissive) · efb53e7877fd5dbc · report fixture: signature task_prompt:str/0/str, failed_solution:str/0/str, feedback:str/0/str · returned list · level recorded 2026-09-24
load_stats in 5 papers src/moep/profiler.py ran · our draft was wrong MIT (permissive) · 890f12d88faab21a · report fixture: signature path:str/0/str · returned tuple · level recorded 2026-09-24
mask_router_logits src/moep/ablation.py ran · our draft was wrong MIT (permissive) · c5c9c50c58d0eef5 · report fixture: signature model:callable/0/?, adapter:MiniAdapter/0/?, mask:Tensor/2/bool · returned list · level recorded 2026-09-24
pack_token_stream src/moep/profiler.py ran · honoured contract MIT (permissive) · e119502864fd0a8c · report fixture: signature token_lists:list/1/list, seq_len:int/0/int, eos_id:int/0/int · returned Tensor · level recorded 2026-09-24
parse_scores in 6 papers src/moep/codeval.py ran · our draft was wrong fingerprinted MIT (permissive) · b9e6f7bbe3b43270 · report fixture: signature stdout:str/0/str · returned dict · level recorded 2026-09-24
pruned_mask src/moep/attribution.py ran · violated contract MIT (permissive) · 05f75544cc1a75c7 · report fixture: signature keep_path:str/0/str · returned Tensor · level recorded 2026-09-24
run_pair src/moep/ablation.py ran MIT (permissive) · 6e98522fb81e2502 · report fixture: signature model:callable/0/?, adapter:MiniAdapter/0/?, input_ids:Tensor/2/int, mask:Tensor/2/bool · returned tuple · level recorded 2026-09-24
seq_loss src/moep/ablation.py ran · our draft was wrong MIT (permissive) · 094d04f4af2792de · report fixture: signature model:callable/0/?, input_ids:Tensor/2/int · returned float · level recorded 2026-09-24
tokenize_rows src/moep/data.py ran MIT (permissive) · 8389363a3873fc0d · report fixture: signature tok:MockTokenizer/0/?, rows:list/1/dict, log:callable/0/? · returned list · level recorded 2026-09-24
tokenize_rows_plain src/moep/data.py ran · honoured contract MIT (permissive) · 026adaeb0bca946f · report fixture: signature tok:callable/0/?, rows:list/1/dict · returned list · level recorded 2026-09-24
turn1_user_message src/moep/repair_eval.py ran · our draft was wrong fingerprinted MIT (permissive) · 48641a7e6a6e7f12 · report fixture: signature task_prompt:str/0/str · returned str · level recorded 2026-09-24
write_eval src/moep/evalx.py ran · our draft was wrong MIT (permissive) · d3893fe99bf403d2 · report fixture: signature run_dir:str/0/str, section:str/0/str, payload:dict/0/? · returned PosixPath · level recorded 2026-09-24
completion src/moep/codeval.py unverified MIT (permissive) · 452896dfec050e72 · report
evaluate_samples src/moep/codeval.py unverified MIT (permissive) · 3e39bc2a2d2a3dec · report
export_gguf src/moep/export.py unverified MIT (permissive) · 9c9714431a00a332 · report
get_adapter in 5 papers src/moep/adapters.py unverified MIT (permissive) · 32c087012117c403 · report
heal src/moep/heal.py unverified MIT (permissive) · 4e7b923f15f0c379 · report
load_offloaded src/moep/loader.py unverified MIT (permissive) · 4d1c495402277bf7 · report
perplexity in 22 papers src/moep/evalx.py unverified MIT (permissive) · e844b6e07ec7a670 · report
smoke src/moep/evalx.py 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