{"id":"e86779ee-8ec3-4d6b-ac8c-0d212a28cc6e","arxiv_id":"2610.34440","paper_version":1,"verdict":"CONDITIONAL","confidence":"HIGH","novelty_score":7.0,"correctness_risk":"medium","formal_verification":"partial","parameter_count":3,"one_line_summary":"Deduplicating expert kernels in MoE speculative decoding are faster exactly when their byte share ubar(n) is less than their bandwidth ratio r(n).","lead":"This paper derives when speculative decoding is faster than plain decoding on mixture-of-experts models by separating the cost into bytes and kernel bandwidth. It shows the critical condition is that the deduplicating kernel's share of bytes must be less than its share of bandwidth, and validates predictions across three inference engines.","discovery_kind":"first_principles","skeptic_critique":{"model":"deepseek/deepseek-v4-flash","headline":"Post-hoc prediction and correction after measurement weakens the experimental validation of the central claim for three of the four models.","rationale":"读者将后验问题列为CONDITIONAL裁决的理由之一，但将其视为红旗而非最薄弱假设。我同意后验预测是一个显著的负载担忧，因为它直接影响实验验证的独立性。读者最薄弱的假设是平稳路由，这在论文中被部分承认。我的担忧与读者一致，但焦点不同。我认为这不会将裁决从CONDITIONAL改变为REJECT，因为理论推导本身是坚固的，并且DeepSeek-V2-Lite的前置测试提供了部分证据。但我的分析强化了读者关于后验问题的关切，并建议更具体的测试。因此，我建议维持CONDITIONAL裁决，并要求作者提供预先注册的验证或原始预测的分析。","tokens_in":35509,"tokens_out":4682,"duration_ms":51657,"concrete_test":"对于OLMoE在llama.cpp CUDA上（一个主要配置），重新运行分析，但使用在获取任何整模型验证时间之前确定的预测方法：仅基于专家操作基准测试的带宽和WikiText-103轨迹的字节，并且不允许事后调整。特别地，使用原始的（假设的）一令牌时间去重拟合，而不是修正后的每槽拟合。然后计算预测的交叉点和最佳草案长度，并与测量值进行比较。如果原始预测的交叉点偏离超过1，且最佳草案长度在超过2个接受率值上偏离超过1，则后验修正确实掩盖了原本更差的预测能力。","verdict_should_be":"UNCHANGED","load_bearing_attack":"对于OLMoE、Qwen3和gpt-oss三个主要模型，所有预测（节省时间、交叉点、最佳草案长度）都是在完整模型测量之后计算的。作者承认进行了至少一次修正（Section 4：将一令牌时间从去重拟合切换到每槽拟合），这是看到测量结果后的唯一更改。这使得表3和表4中的关键验证（交叉点在10/12配置中，CUDA上草案长度在11/11接受率内）不是独立的预测，而是带有数据泄漏的后验拟合。作者用DeepSeek-V2-Lite的前置测试部分补偿，但该测试仅在CUDA上完全成功；在Metal上，即使使用校准版本，验证时间误差高达34%，草案长度预测在某些接受率下相差超过1。对于主要模型，没有提供预先注册的预测或原始（未修正）预测的性能。因此，中心声明（去重更快当且仅当u_bar < r）的实验支持在三个主要模型上较弱，因为验证循环存在数据污染。作者在Section 5中承认了后验问题，但是没有量化它如何影响主要声明可信度。","agreement_with_reader":"partial"},"referee_report":{"model":"deepseek/deepseek-v4-flash","summary":"本文为混合专家模型（MoE）的推测解码建立了一个理论框架，将验证步骤时间分解为请求字节除以内核有效带宽加上固定成本。在该步长时间模型下，推导出推测解码优于普通解码的条件、最佳草稿长度作为接受率的阶梯函数，以及带宽误差的传播界限。针对去重引擎，导出更快的充要条件是去重的字节份额ū(n)小于带宽比r(n)。实验在三个推理引擎上验证了该条件，测量了四个模型的字节和带宽，并预测了节省时间、交叉点和最佳草稿长度。核心定理在Lean 4中形式化验证。","tokens_in":35895,"tokens_out":2091,"duration_ms":23937,"significance":"如果主要声明成立，该工作提供了一个原则上独立于具体实现的通用条件（ū(n)<r(n)）来判断去重引擎何时比逐槽引擎更快，这为MoE推理系统中专家读取机制的设计提供了工程指导。Lean形式化保证了理论推导的可靠性。带宽误差的传播界限也具有实用价值。但实验验证部分存在后验数据泄漏问题，削弱了主要声明在三个主要模型上的独立确认强度。","major_comments":[{"comment":"论文明确指出，OLMoE、Qwen3和gpt-oss的预测（包含节省时间、交叉点和最佳草稿长度）是在完整模型测量之后计算的，并且进行一次修正（从去重拟合切换到逐槽拟合的单token时间）。这构成了后验数据泄漏。作者在§5中承认了此局限性，但并未量化该后验调整如何影响主要声明（ū<r条件）的实验可信度。建议提供一种控制实验，例如使用留出法（hold-out）提前注册预测并展示原始（未修正）预测的性能，或通过交叉验证来评估后验拟合的偏差。目前的文本让读者无法区分哪些预测是真正独立的、哪些可能受测量数据影响。","section":"§4（第9–10页）和§5（第15–16行）","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"DeepSeek-V2-Lite的实验确实在预测前注册了“measured-time version”和评分规则，这是一个值得肯定的尝试。但该版本依赖于专家操作时间的测量（来自单独运行）和三个整模型数字，而完整预测所需的带宽拟合（§4.4末尾提到“The prediction needs fits on chosen ids.”）实际上是在整模型运行之后才进行的。论文承认拟合是“afterwards”做的。因此，DeepSeek-V2-Lite的预测也不完全独立于测量结果，尤其是CUDA上出现了错误的交叉点预测（图6）。作者应澄清“pre-registered”的确切范围，并说明拟合后做是否违背了预先注册的初衷。","section":"§4.4（第13–14页）和第5行","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"带宽误差的传播界限（表2）依赖于每个带宽的独立有界误差假设，并隐含所有其他项（如固定时间、密集带宽β_D）精确已知或误差可忽略。但实验表明，在Metal上，整模型验证时间误差可达34%（DeepSeek-V2-Lite），且部分误差源于专家操作之外（注意力、共享专家等）未被模型化的增长。作者在§5中承认了Metal上“expert operation alone”的时序缺失，但并未在误差界限分析中包含此类模型外误差。界限（20）和（21）使用的δ仅来源于专家操作带宽的拟合误差，可能低估了实际预测误差。建议讨论模型外误差如何影响界限的有效性。","section":"§5（第15行）和§3.5（第8页）","authors_acknowledge":null,"authors_acknowledge_p":null}],"minor_comments":[{"comment":"图2中有效带宽的纵轴单位标注为GB/s，但在正文中提到了十进制GB和二进制MiB（§2开头）。建议统一符号或明确说明图中使用的字节单位。","section":"§2（图2，第4–5页）","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"表3中saving error列的单位为ms，但正文中多次提到“0.23 to 0.52 ms”，建议在表头直接标注“error (ms)”，以避免误解。","section":"§4.2（表3，第11–12页）","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"符号ρ̄_k（字节加权平均复用）在（11）中定义，但正文中未显式写出其与E_dedup(k+1)的关系。建议在（11）之后添加一行注释，说明该定义等价于（12）中的表达式。","section":"附录B.2（第22–24页）","authors_acknowledge":null,"authors_acknowledge_p":null},{"comment":"符号表中c_u, c_re, c_g, c_t列出的单位不完整。建议补充每个常数的物理量纲（如s/byte, s/token）以增强可读性。","section":"附录A（第19–20页）","authors_acknowledge":null,"authors_acknowledge_p":null}],"recommendation":"major_revision"},"author_rebuttal":null,"desk_editor":{"model":"deepseek/deepseek-v4-flash","letter":"The paper does one genuinely useful thing: it separates the step time of a verification pass into bytes (from routing) and effective bandwidth (from each kernel), and derives a simple condition for when deduplication is faster — when the union byte share ubar(n) is less than the bandwidth ratio r(n). This is a new result, and the extension to a monotone staircase for best draft length under general step times is also new. The theoretical core is proved in Lean against Mathlib, which is solid. The authors measure bandwidth on three inference engines and four models, and the empirical methodology is careful: the CUDA DRAM byte counts are confirmed with hardware counters, and the bandwidth error bounds are derived and checked.\n\nNow the weak spot. The stress test is right: for OLMoE, Qwen3, and gpt-oss, all the predictions (saving, crossover, best draft length) were computed after the measurements existed. The authors are transparent about this and mention one correction (switching the one-token time from dedup fit to per-slot fit). That means the central validation — that ubar < r correctly predicts the crossover in 10 of 12 configurations — is not an independent prediction but a post-hoc fit that could be influenced by data leakage. The DeepSeek-V2-Lite pre-test partially compensates, but it only succeeds on CUDA; on Metal the errors are larger. The paper acknowledges the issue in Section 5 but doesn't quantify how much it affects the credibility of the main claim. This is a real concern, and it keeps the experimental support for the headline result weaker than it should be.\n\nOther soft spots are minor or acknowledged: the stationary routing assumption is violated for gpt-oss at depth 4096, and bandwidth is measured rather than predicted from first principles. The paper says these things clearly.\n\nWho should read this: inference engine developers who want to decide when to use a deduplicating kernel will find the condition actionable. The Lean proofs are a nice bonus for formal methods people. For the broader ML community, the result is useful but the experimental validation needs a cleaner separation between fitting and prediction.\n\nRecommendation: I would send this to peer review. The theory is new and formally grounded, and the core insight is valuable. But the authors should address the post-hoc issue: provide the raw (uncorrected) predictions for the main models, or run a pre-registered experiment on a held-out model, and quantify how much the correction changed the results.","headline":"A clean theoretical decomposition of MoE speculative decoding into bytes and bandwidth, with Lean proofs, but the experimental validation is weakened by post-hoc prediction for three of four models.","tokens_in":36375,"tokens_out":1487,"duration_ms":16940},"pith_extraction":{"msc":["68T07","68T50","68W40"],"pacs":[],"model":"deepseek/deepseek-v4-flash","headline":"Speculative decoding speed for mixture-of-experts models is decided by a single inequality comparing bytes to bandwidth: deduplication is faster only when the share of bytes it requests falls below the ratio of its effective bandwidth to…","keywords":["speculative decoding","mixture of experts","deduplication","kernel bandwidth","step time model","best draft length","effective bandwidth","crossover"],"falsifier":"Measure β_dedup(n) and β_slot(n) on an engine where the per-slot kernel does NOT have higher effective bandwidth (e.g., a device where caching is negligible and the deduplicating kernel is optimized to match the per-slot speed). If r(n) > ū(n) holds at n=2 but the measured saving S(2) is still negative, then the condition ū(n) < r(n) is insufficient — the fixed-work difference φ_dedup(n) − φ_slot(n) would need to be included explicitly.","tokens_in":36978,"feed_emoji":"⚡","tokens_out":5298,"duration_ms":53373,"temperature":0.7,"pith_summary":"The paper establishes a first-principles model for when speculative decoding speeds up mixture-of-experts (MoE) inference by comparing two expert kernels: a per-slot kernel that reads every expert once per token, and a deduplicating kernel that reads each distinct expert once per pass. The step time is written as bytes over effective bandwidth plus fixed work. Under geometric acceptance, the condition for deduplication to be faster reduces to ū(n) < r(n), where ū(n) is the share of per-slot bytes that deduplication requests, and r(n) is the ratio of the deduplicating kernel's effective bandwidth to the per-slot kernel's. On every engine and model measured — llama.cpp Metal, MLX-LM, and llama.cpp CUDA — the per-slot kernel has the higher effective bandwidth, so deduplication is faster only for pass sizes of 5 to 8 tokens, or never. The best draft length is a monotone staircase in the acceptance rate, and its prediction from operation-time fits is validated on DeepSeek-V2-Lite with operation times taken before any speculative runs.","feed_headline":"Deduplication is faster only from 5 to 8 tokens, or never","feed_subtitle":"A single inequality, byte share < bandwidth ratio, decides when spec decoding on MoE models accelerates.","key_machinery":"The key machinery is the step-time decomposition τ_p(n) = t_0 + D(n)/β_D + E_p(n)/β_p(n) + φ_p(n), where the effective bandwidth β_p(n) of each kernel is measured from a benchmark of the expert operation alone. From this, the saving of deduplication over per-slot is S(n) = (E_slot/β_slot) × (1 − ū(n)/r(n)). The condition ū(n) < r(n) (equation (7)) directly follows. The best draft length k*(a) is then derived as a monotone staircase under geometric acceptance, with step points a_j computable from the cost increments; when the step-time increments are non-decreasing, each step point takes the closed form a_j = min{c_j/V(j−1), 1} with c_j = V(j) − V(j−1).","core_discovery":"The central claim is that deduplication speeds up an MoE verification pass exactly when ū(n) < r(n), where ū(n) = E_dedup(n)/E_slot(n) is the fraction of per-slot expert bytes that the deduplicating kernel requests, and r(n) = β_dedup(n)/β_slot(n) is the ratio of the two kernels' effective bandwidths. On all eight engine–model pairs measured, the per-slot kernel has the higher effective bandwidth, so r(n) < 1 and deduplication is slower at n = 2 tokens. The crossover — the smallest pass size where deduplication becomes faster — occurs only where the bandwidth drops faster than the byte share, which happens only from n = 5 to 8 or never. The theory is proved in Lean 4 for a step time model that separates bytes from bandwidth, yielding the staircase of best draft length and provable error bounds on all predictions.","pith_inferences":["The step-time decomposition may extend to batched inference (batch > 1), where both the routing union and the kernel bandwidths change. The same framework should apply if the effective bandwidths are measured at the relevant batch sizes, but the condition ū(n) < r(n) would need re-deriving for batch-level reuse.","If the per-slot kernel's re-read cost is low (e.g., on CUDA where caching serves repeated slots), improving the deduplicating kernel's bandwidth at small n (e.g., by fusing operations or reducing kernel-launch overhead) could shift the crossover to n = 2, making deduplication always faster.","The paper's results rely on geometric acceptance and oracle drafts; in real deployment with a learned draft model, acceptance may not be geometric, and the staircase may differ. Extending the theory to a general acceptance distribution would test the robustness of the derived step points.","On Metal, where the fixed-work difference between kernels is large and the expert-operation benchmark misses growth in attention and dense parts, a calibrated version that incorporates the growth of non-expert time improved verify-time predictions from 34% error down to 4.3%. This suggests a two-component model (expert + non-expert) is needed for Apple GPUs."],"forward_implications":["Engine developers can determine whether to use a deduplicating kernel by measuring one layer's operation-time benchmark per model (under one hour) and routing traces; the switch point is predicted by ū(n) < r(n) and can be validated within one pass size in most configurations.","Prior cost models (S2-MoE, SpecFit) that charge every expert read the same time at every pass size implicitly set r(n) = 1 and therefore predict deduplication is faster at every n with reuse. The paper shows this is wrong: the per-slot kernel's higher bandwidth means deduplication is often slower for small n.","The best draft length being a monotone staircase in acceptance implies that, under geometric acceptance, the optimal draft length increases (or stays) as acceptance rises, and the step points can be precomputed from the measured step-time increments.","The error bounds (Table 2) give a practical tool: a 10% bandwidth error moves the predicted speedup by at most 25%, and the best draft length is the least sensitive prediction — it changes only when another draft length becomes better by a factor larger than the error band.","On DeepSeek-V2-Lite, the measured-time version (operation times taken before speculative runs) predicted the CUDA best draft length within one at all 22 acceptance values, showing the method works for models with shared experts and multi-head latent attention."],"supporting_citations":[{"why":"Establishes the original framework for speculative decoding with geometric acceptance and the condition a > χ for affine step costs; the paper extends this to any step time.","marker":"Leviathan et al. 2023"},{"why":"Derives the expected number of distinct experts under uniform routing, N(1 − q^n) with q = 1 − m/N, which the present paper uses as a baseline for measured reuse.","marker":"Huang et al. 2025 (MoESD)"},{"why":"Proposes a cost model that charges every expert read the same time at every pass size; the present paper shows this single-bandwidth model is incomplete because it omits the bandwidth ratio r(n).","marker":"Cao et al. 2026 (SpecFit)"},{"why":"Another single-bandwidth model for MoE speculation; the paper uses it as a counterpoint to show that the condition for deduplication speedup requires comparing byte share and bandwidth ratio, not just reuse.","marker":"Huang et al. 2026 (S2-MoE)"},{"why":"Demonstrates that memory bandwidth limits LLM decoding at batch size one, which motivates the step-time decomposition into bytes over effective bandwidth.","marker":"Pope et al. 2023"},{"why":"Reports next-token expert reuse of 44–48% on Qwen3-30B-A3B, providing empirical reuse numbers that the paper compares to its own measurements.","marker":"Zhang et al. 2026"}],"fun_headline_variants":["Deduplication faster only at 5–8 tokens, or never","MoE dedup speeds up only from 5 to 8 tokens","Crossover for dedup speed: 5–8 tokens or none","Dedup beats per-slot only at 5–8 tokens per pass","When MoE dedup wins: 5–8 tokens per pass"],"cache_read_input_tokens":0,"weakest_assumption_plain":"The analysis assumes that verified tokens are routed like consecutive tokens of a stationary process, and that geometric acceptance holds; the stationary routing assumption enters the union bytes derivation and the reuse threshold, and the paper acknowledges that on gpt-oss at depth 4096 the generated text repeats and violates this assumption.","fun_headline_variants_meta":{"raw":{"variants":["Deduplication faster only at 5–8 tokens, or never","MoE dedup speeds up only from 5 to 8 tokens","Crossover for dedup speed: 5–8 tokens or none","Dedup beats per-slot only at 5–8 tokens per pass","When MoE dedup wins: 5–8 tokens per pass"]},"model":"deepseek/deepseek-v4-flash","effort":"low","cost_usd":0.000124,"raw_usage":{"cost":0.0001244516,"is_byok":false,"cost_details":{"upstream_inference_cost":0.0001244516,"upstream_inference_prompt_cost":5.271448e-05,"upstream_inference_completions_cost":7.173712e-05},"total_tokens":1872,"prompt_tokens":1114,"completion_tokens":758,"prompt_tokens_details":{"audio_tokens":0,"video_tokens":0,"cached_tokens":0,"cache_write_tokens":0},"completion_tokens_details":{"audio_tokens":0,"image_tokens":0,"reasoning_tokens":659}},"tokens_in":1114,"tokens_out":758,"cost_source":"openrouter_usage","duration_ms":8424,"image_pages":[],"temperature":1.0,"billed_attempts":1,"reasoning_tokens":659,"transport_provider":"openrouter","cache_read_input_tokens":0,"cache_creation_input_tokens":0},"cache_creation_input_tokens":0},"created_at":"2026-10-27T15:45:09.260195+00:00","model_set":{"reader":"deepseek/deepseek-v4-flash"},"pipeline_version":"pith-pipeline@v1.4.1-daily-deepseek-or-medium","input_kind":null,"input_chars":null,"input_total_chars":null,"passes_missing":null,"published_standing":null,"published_confidence":null,"objection_audit":null,"run_record":null,"basis":{"kind":"not_recorded","source":null,"chars_given":null,"chars_total":null},"receipt":null,"falsifier":"Measure β_dedup(n) and β_slot(n) on an engine where the per-slot kernel does NOT have higher effective bandwidth (e.g., a device where caching is negligible and the deduplicating kernel is optimized to match the per-slot speed). If r(n) > ū(n) holds at n=2 but the measured saving S(2) is still negative, then the condition ū(n) < r(n) is insufficient — the fixed-work difference φ_dedup(n) − φ_slot(n) would need to be included explicitly.","supporting_citations":[{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"Establishes the original framework for speculative decoding with geometric acceptance and the condition a > χ for affine step costs; the paper extends this to any step time."},{"cited_title":"Huang, L","cited_arxiv_id":null,"evidence_quote":"Derives the expected number of distinct experts under uniform routing, N(1 − q^n) with q = 1 − m/N, which the present paper uses as a baseline for measured reuse."},{"cited_title":"SpecFit: Not All Draft Tokens Cost the Same in Offloaded MoE Inference","cited_arxiv_id":"2610.15417","evidence_quote":"Proposes a cost model that charges every expert read the same time at every pass size; the present paper shows this single-bandwidth model is incomplete because it omits the bandwidth ratio r(n)."},{"cited_title":"S2-MoE: Enabling Efficient Self-Speculative Decoding for Mixture-of-Experts on Edge Devices","cited_arxiv_id":"2608.15018","evidence_quote":"Another single-bandwidth model for MoE speculation; the paper uses it as a counterpoint to show that the condition for deduplication speedup requires comparing byte share and bandwidth ratio, not just reuse."},{"cited_title":null,"cited_arxiv_id":null,"evidence_quote":"Demonstrates that memory bandwidth limits LLM decoding at batch size one, which motivates the step-time decomposition into bytes over effective bandwidth."}],"lane_accuracy":{"status":"not yet measured","lane":{"model":"deepseek/deepseek-v4-flash","input_kind":null},"url":"https://pith.science/accuracy"},"review_version":1}