{"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-2608-24938","title":"ExFold: Unified Expert Folding for Training-Free MoE Prefill-Decode Acceleration","arxiv_id":"2608.24938","date":"2026-08-24","proceeding":null,"authors":["Juntong Wu","Yifei Liu","Junyi Chen","Siqi Fan","Chaoran Feng","Minghao Li","Liujie Zhang","Weihang Chen","Li Yuan"],"abstract":"Mixture-of-Experts (MoE) models scale capacity for strong quality while keeping per-token compute bounded through sparse expert activation. Yet low-latency MoE serving is increasingly challenging, because it spans two inference phases with fundamentally different bottlenecks: prefill is dominated by token-wise expert computation, whereas decode is constrained by memory traffic from the batch-wise activated expert set. However, existing training-free acceleration methods optimize only a single resource proxy, either the experts each token executes or the experts a batch activates, and either discard the excluded experts' contribution or leave it only implicitly approximated. In this paper, we propose ExFold, a unified training-free expert-folding framework for jointly accelerating MoE prefill and decode. ExFold casts both prefill and decode as one budgeted output-approximation problem: execute only a phase-specific constrained expert set while projecting the contribution of budget-excluded experts onto retained experts using calibrated scalar projectors. Motivated by the observation that many expert outputs are directionally aligned but differ in magnitude, ExFold calibrates a pairwise scalar-projector matrix on unlabeled data and uses it at inference time to fold excluded expert contributions into retained experts. Under this view, prefill acceleration becomes token-level Top-K folding, and decode acceleration becomes batch-level expert-pool folding. The two phases differ only in how retained experts are selected, while excluded contributions are recovered by one shared folding mechanism. We implement ExFold as a plug-and-play plugin in vLLM, with a lightweight expert-folding CUDA kernel, delivering up to 1.41x TTFT and 2.45x TPOT speedups while retaining about 99% of the original average quality.","url_abs":"https://arxiv.org/abs/2608.24938","url_pdf":"https://arxiv.org/pdf/2608.24938","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":{"atlas_url":null,"mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2608.24938"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/Time-Rune/ExFold-MoE","reach":null}],"summary":{"ran":2,"unverified":4},"by_repo_kind":{"found_in_text":{"samples":6,"ran":2,"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":"2420ff790be6bde4","entry":"load","repo":"Time-Rune/ExFold-MoE","repo_kind":"found_in_text","path":"evaluation/summarize_speed.py","file_url":"https://github.com/Time-Rune/ExFold-MoE/blob/HEAD/evaluation/summarize_speed.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2420ff790be6bde4"}},{"code_sha256_prefix":"99f3e316d3813cb7","entry":"sha256","repo":"Time-Rune/ExFold-MoE","repo_kind":"found_in_text","path":"exfold/artifacts.py","file_url":"https://github.com/Time-Rune/ExFold-MoE/blob/HEAD/exfold/artifacts.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"99f3e316d3813cb7"}},{"code_sha256_prefix":"5933ba86fa87c713","entry":"fold_decode","repo":"Time-Rune/ExFold-MoE","repo_kind":"found_in_text","path":"exfold/deepseek_v4/cuda_ops.py","file_url":"https://github.com/Time-Rune/ExFold-MoE/blob/HEAD/exfold/deepseek_v4/cuda_ops.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5933ba86fa87c713"}},{"code_sha256_prefix":"1421d1fa07629cf7","entry":"fold_prefill","repo":"Time-Rune/ExFold-MoE","repo_kind":"found_in_text","path":"exfold/deepseek_v4/cuda_ops.py","file_url":"https://github.com/Time-Rune/ExFold-MoE/blob/HEAD/exfold/deepseek_v4/cuda_ops.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1421d1fa07629cf7"}},{"code_sha256_prefix":"95c16c42cdb2c5c9","entry":"validate","repo":"Time-Rune/ExFold-MoE","repo_kind":"found_in_text","path":"exfold/artifacts.py","file_url":"https://github.com/Time-Rune/ExFold-MoE/blob/HEAD/exfold/artifacts.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"95c16c42cdb2c5c9"}},{"code_sha256_prefix":"fa3231253eea9d7b","entry":"validate_deepseek_payload","repo":"Time-Rune/ExFold-MoE","repo_kind":"found_in_text","path":"exfold/artifacts.py","file_url":"https://github.com/Time-Rune/ExFold-MoE/blob/HEAD/exfold/artifacts.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fa3231253eea9d7b"}}]},"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":null}