{"id":"bd52a653-b1bd-42b0-8e61-09af8dee636f","arxiv_id":"2609.20186","paper_version":1,"verdict":"ACCEPT","confidence":"HIGH","novelty_score":7.0,"correctness_risk":"low","formal_verification":"none","parameter_count":5,"one_line_summary":"SwitchSD dynamically switches between neural drafting and context-based copying in speculative decoding using lightweight probes on the target model's hidden representations, achieving up to 15% throughput gains over EAGLE3.","lead":"SwitchSD uses internal signals from a language model to decide when to copy text from context, improving inference speed by up to 15% over state-of-the-art methods. This approach replaces noisy heuristics with a principled, model-aware mechanism for speculative decoding.","discovery_kind":"new_method","skeptic_critique":{"model":"deepseek/deepseek-v4-flash","headline":"The probe's weak supervision (≥5-token exact repeats as proxy for copy-intent) may not capture true latent intent; the representational bottleneck does not guarantee it, raising generalization risk.","rationale":"I agree with the reader that the proxy label for copy-intent (long n-gram repetitions) is the weakest assumption in the paper. My stress-test analysis refines this: the representational bottleneck argument in Appendix E is insufficient to guarantee that the probe learns a generalizable latent signal rather than a dataset-specific correlate. The paper provides strong empirical evidence on three benchmarks, but the claim of up to 15% throughput gains depends on the probe working in diverse deployment scenarios. The concrete test I propose directly probes whether the probe can distinguish between intentional copying and coincidental repetition when the model is instructed to diverge. If the probe passes this test, it supports the authors' interpretation; if it fails, the method's practical value is reduced. However, since the paper already acknowledges this limitation and the presented results are solid on the tested tasks, the current verdict of ACCEPT remains appropriate. No change is needed; the stress test merely identifies a direction for future robustness checks.","tokens_in":15114,"tokens_out":4463,"duration_ms":50216,"concrete_test":"Construct a challenge set of 200 prompts where (a) the prefix contains an exact n-gram repetition of length ≥5 tokens with a prior occurrence in context, but (b) the prompt includes an explicit instruction to ignore the repetition and generate a novel continuation (e.g., 'Do NOT repeat the previous text; write something completely different.'). Run the target model on these prompts, collect the probe's predictions, and compute the false positive rate (probe predicts copy-intent when the model's actual response is novel). Additionally, measure the mean acceptance length if copy speculation were triggered based on the probe alone (ignoring the instruction). If the probe's false positive rate exceeds 20% or the mean copy acceptance length drops below 2 tokens, then the probe is not capturing true copy-intent but merely a surface-level correlate, and the generalization claims weaken.","verdict_should_be":"UNCHANGED","load_bearing_attack":"The central claim that SwitchSD improves throughput via a model-aware copy-intent probe depends on the probe actually learning a generalizable internal copy-intent signal, not just a correlation with surface-level repetition. The training labels are derived from exact n-gram matches of length ≥5 tokens in the model's own completions of a diverse prompt set (CopyDiversity). The paper acknowledges this in Appendix E and argues that the representational bottleneck (a linear probe on a single token's hidden state) prevents learning surface-level string matching. This argument is not evidence; it is speculation. In fact, a linear probe on a single hidden state could still learn to detect a proxy like 'this token position is likely to be followed by a repeated continuation' if the hidden state encodes that statistical property. The high AUC (>0.99) might reflect a relatively simple correlation within the training distribution (e.g., low entropy, high confidence in the next token) that is not causally linked to copy-intent. The paper tests on three benchmarks (coding, math, summarization) which share structural similarities with the training data. Unknown is whether the probe would maintain its precision on domains where exact repetitions arise from different mechanisms (e.g., adversarial repetitions, multi-turn dialogue, non-English text) or where repetitions exist but the model genuinely intends to diverge. If the probe fails in such settings, the claimed 15% throughput gain may not generalize, reducing the method's practical value. Thus, this assumption is load-bearing and warrants direct empirical scrutiny.","agreement_with_reader":"agree"},"referee_report":{"model":"deepseek/deepseek-v4-flash","summary":"This paper proposes SwitchSD, an adaptive speculative decoding framework that uses a lightweight linear probe on the target LLM's hidden states to detect 'copy-intent' (defined by long n-gram repetitions). When copy-intent is detected, the system uses fast context-copying (n-gram retrieval) instead of a neural draft model. The probe is trained on synthetic data and achieves AUC > 0.99. Across Llama-3.1-8B/70B and Qwen3-8B on HumanEval, Math500, and CNN/DM, SwitchSD improves throughput by up to 15% over EAGLE3, with consistent gains across temperatures and draft architectures.","tokens_in":15575,"tokens_out":2129,"duration_ms":21045,"significance":"If the results hold, this work is significant for two reasons. First, it demonstrates that internal LLM representations encode a reliable signal for the model's latent 'copy-regime', which can be leveraged to dynamically select between drafting strategies. Second, it provides a practical throughput improvement of up to 15% over state-of-the-art neural speculators like EAGLE3, with negligible overhead and no loss in output quality. The paper is thorough in its experimental evaluation and addresses the key concern of probe supervision in Appendix E.","major_comments":[{"comment":"The weak-supervision concern (whether the probe learns surface-level repetition rather than latent copy-intent) is discussed in Appendix E, but the paper does not test generalization to domains where repetitions arise from different mechanisms (e.g., multi-turn dialogue, adversarial inputs, non-English text). While the three benchmarks are diverse, an explicit robustness test or a more detailed error analysis of probe failures would strengthen the claim of generalizability.","section":"§4.1, Appendix E"}],"minor_comments":[{"comment":"The abstract states 'AUC > 0.99' but does not specify which model or layer this corresponds to; please report the range across models.","section":"Abstract"},{"comment":"The sentence 'We define a token position as a copy-mode instance (Y=1) if it belongs to a verbatim sequence of at least n_train = 5 tokens that appears earlier in the context.' should clarify whether the repeated tokens can overlap partially or must be exactly contiguous in the context.","section":"§3.2"},{"comment":"The column headers for 'Copy' and 'EAGLE3' iterations could be labeled more clearly (e.g., '% iter. (copy)' and 'mean accept. len. (copy)'). The current formatting of '% mean' is ambiguous.","section":"Table 1"},{"comment":"The y-axis label in Figure 3 is missing a '%' or 'probability' indication. Please add units.","section":"§4.2.1 (Figure 3)"},{"comment":"The confusion matrices in Figure 4 are informative, but the paper should state whether the percentages are normalized by total tokens or by row.","section":"§4.3.1 (Figure 4)"},{"comment":"Several citations use 'et al.' inconsistently (e.g., 'Grattafiori et al.' vs 'Grattafiori et al., 2024'). Please ensure consistent formatting.","section":"General"}],"recommendation":"minor_revision"},"author_rebuttal":null,"desk_editor":{"model":"deepseek/deepseek-v4-flash","letter":"The paper’s core idea—training a lightweight linear probe on the target model’s hidden states to detect copy-intent and then dynamically switching between copy-based and neural speculative decoding—is genuinely new. Prior work used heuristics or bandit-based exploration; using internal model signals is a cleaner approach. The experimental evaluation is serious: three model families (8B–70B), three benchmarks, multiple baselines including EAGLE3, and ablation studies on probe placement and training data. The probe achieves AUC > 0.99, and the throughput gains (up to 15% over EAGLE3) hold across settings. The paper also shows that copy-based drafting is triggered less often but with much longer accepted spans, which confirms the probe is doing something useful.\n\nThe soft spot is the weak supervision. The probe is trained using long n-gram repetitions (≥5 identical tokens) as a proxy for “copy-intent.” The paper argues that the representational bottleneck (one token’s hidden state) prevents the probe from simply memorizing string-match patterns, but this is more speculation than evidence. A linear probe could still learn a correlated surface property (e.g., low-entropy states) if that property is linearly encoded. The high AUC might reflect such a correlation rather than a true latent “copy mode.” The paper tests on coding, math, and summarization—domains that may share structure with the training set (CopyDiversity). Whether the probe generalizes to adversarial repetitions, multi-turn dialogue, or non-English text is unknown. This is a genuine limitation, though the authors acknowledge it in Appendix E.\n\nWho is this for? Researchers working on efficient LLM inference, especially those building on speculative decoding. The method is practical and the code will likely be useful. The paper is a solid contribution to the subfield, not a paradigm shift.\n\nRecommendation: Deserves a serious referee. The central experiment is credible and the gain is reproducible. The weak-supervision concern is real but not disqualifying—it is discussed and partly mitigated by the empirical regime analysis. I would accept peer review.","headline":"Well-executed paper with a novel probe-based switch for speculative decoding; the weak supervision assumption is load-bearing but the experiments are thorough enough to justify peer review.","tokens_in":16049,"tokens_out":1176,"duration_ms":13500},"pith_extraction":{"msc":[],"pacs":[],"model":"deepseek/deepseek-v4-flash","headline":"SwitchSD dynamically switches between copy and neural drafting by reading the model's own copy-intent signal.","keywords":["speculative decoding","copy-intent detection","linear probe","adaptive inference","LLM inference acceleration","transformer internal representations","decoding regime classification"],"falsifier":"Construct a test set of tasks that require long spans of near-verbatim copying but with slight variations (e.g., code with renamed variables or paraphrased summaries) and measure SwitchSD's probe AUC and throughput improvement; if the probe fails to trigger or triggers erroneously, the weak-supervision assumption is violated.","tokens_in":16751,"feed_emoji":"⚡","tokens_out":3653,"duration_ms":35450,"temperature":0.7,"pith_summary":"Speculative decoding (SD) accelerates LLM inference by using a draft model, but existing methods either use a static neural draft or blindly copy from context based on n-gram overlap. The paper shows that context copying triggered by surface-level overlap often leads to false positives that waste computation. It proposes SwitchSD, which trains a lightweight linear probe on the target model's hidden states to detect genuine copy-intent with high precision (AUC > 0.99). At each decoding step, the probe decides whether to use context copying or fall back to a neural draft (e.g., EAGLE3). Across Llama-3 and Qwen-3 families, SwitchSD achieves up to 15% higher throughput than the state-of-the-art EAGLE3 alone, turning copy from a noisy heuristic into a model-aware, high-yield strategy.","feed_headline":"Probe of copy-intent boosts LLM speculative decoding by 15%","feed_subtitle":"SwitchSD reads the model's own hidden signals to decide when to copy from context, improving throughput beyond EAGLE3.","key_machinery":"A linear probe (single-layer, no bias) trained on hidden representations extracted from an intermediate attention sublayer of the target model. The probe is trained with binary cross-entropy using long n-gram repeats (κ≥5) as positive labels for copy-intent. At inference, when the probe score exceeds a threshold and a κ-gram match is found in the context, SwitchSD enables context-based speculation using up to 10 candidate continuations verified in parallel with block-triangular attention; otherwise, it falls back to a neural draft model. This probe acts as a gate that filters out accidental repetitions and triggers copying only when the model is internally in a copy regime.","core_discovery":"The paper discovers that copy-intent is linearly separable in the intermediate attention-layer representations of large language models. By training a lightweight binary classifier on those representations—using long verbatim repetitions (≥5 tokens) as weak supervision—the resulting probe can predict when the model is about to produce a long copy sequence versus an accidental repetition. This allows SwitchSD to selectively activate context-based speculation only in high-yield copy regimes, avoiding the speculation tax of false-positive copies while preserving the benefits of neural drafting in generative regions. The probe achieves AUC > 0.99 and leads to substantially longer accepted copy spans (e.g., mean 5.88 tokens on HumanEval) compared to heuristic baselines.","pith_inferences":["If the weak supervision proxy (long verbatim repeats) fails to capture copy-intent for certain patterns—such as paraphrased repetition or semi-structured outputs—the probe may miss high-value copy opportunities or trigger on unintended forms of repetition.","Because the probe only sees a single token's hidden state at a time, it cannot leverage broader syntactic or semantic context that might signal a longer copy trajectory; incorporating sequential or multi-token features could further improve precision.","The reliance on target model internal representations means SwitchSD is not directly applicable to black-box API models where hidden states are unavailable; a student-trained proxy might be needed in such settings.","The current design requires a fixed threshold τ tuned on a held-out set; dynamic threshold adjustment based on recent acceptance statistics could make the system more robust to distribution shift."],"forward_implications":["SwitchSD can be combined with any existing neural draft model (EAGLE3, SPS) to improve its throughput, showing that the probe's benefit is orthogonal to the quality of the neural drafter.","By removing easy copy tokens from the neural drafter's workload, SwitchSD allows tuning shorter lookahead values for the neural draft, reducing computational waste in generative regions.","The near-perfect linear separability of copy-intent (AUC > 0.99) suggests that the residual stream encodes this latent state as a first-order feature, which could be exploited for other adaptive inference strategies.","The probe's selective activation leads to a clean division of labor: copying dominates in structured, repetitive text (code, math derivations) while neural drafting handles novel reasoning, yielding the largest speedups in coding and mathematics tasks.","The framework preserves exact generation quality because the target model still verifies all speculations, ensuring no change to the output distribution."],"supporting_citations":[{"why":"Provides the state-of-the-art neural draft model EAGLE3 that SwitchSD uses as its default neural drafter and outperforms by up to 15%.","marker":"[Li et al., 2025]"},{"why":"Introduces CopySpec, a heuristic switch between n-gram copying and neural drafting, which SwitchSD compares against as a baseline and shows superior precision on copy-triggering.","marker":"[Dumitru et al., 2025]"},{"why":"Presents BanditSpec, a statistical adaptive method that uses bandit optimization to switch strategies; SwitchSD shows that its signal-driven approach avoids the exploration penalty of such black-box methods.","marker":"[Hou et al., 2025]"},{"why":"Describes Prompt Lookup Decoding, a naive n-gram copying baseline that SwitchSD outperforms substantially.","marker":"[Saxena, 2023]"},{"why":"Supports the hypothesis that task-relevant features (including copy-intent) are linearly encoded in the residual stream, motivating the use of linear probes.","marker":"[Park et al., 2024]"}],"fun_headline_variants":["SwitchSD reads copy intent from hidden states, lifting LLM decoding throughput by 15%","Hidden-state probe spots copy intent to speed speculative decoding by 15%","SwitchSD probes LLM's own signals to choose copying for up to 15% decoding gains","Copy intent is read from attention layers to lift speculative decoding speed by 15%"],"cache_read_input_tokens":0,"weakest_assumption_plain":"The probe is trained using long verbatim n-gram repetitions (≥5 tokens) as a proxy for copy-intent; if this proxy does not capture true copy-intent (e.g., if the probe learns surface-level text overlap rather than the model's latent intention to reproduce context), then the performance gains may not generalise to new domains or to types of repetition not seen in training.","fun_headline_variants_meta":{"raw":{"variants":["SwitchSD reads copy intent from hidden states, lifting LLM decoding throughput by 15%","Hidden-state probe spots copy intent to speed speculative decoding by 15%","SwitchSD probes LLM's own signals to choose copying for up to 15% decoding gains","Copy intent is read from attention layers to lift speculative decoding speed by 15%"]},"model":"deepseek/deepseek-v4-flash","effort":"low","cost_usd":0.000911,"raw_usage":{"cost":0.00091112,"is_byok":false,"cost_details":{"upstream_inference_cost":0.00091112,"upstream_inference_prompt_cost":0.00015204,"upstream_inference_completions_cost":0.00075908},"total_tokens":3797,"prompt_tokens":1086,"completion_tokens":2711,"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":2633}},"tokens_in":1086,"tokens_out":2711,"cost_source":"openrouter_usage","duration_ms":20807,"image_pages":[],"temperature":1.0,"reasoning_tokens":2633,"transport_provider":"openrouter","cache_read_input_tokens":0,"cache_creation_input_tokens":0},"cache_creation_input_tokens":0},"created_at":"2026-09-20T08:20:37.568409+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":"Construct a test set of tasks that require long spans of near-verbatim copying but with slight variations (e.g., code with renamed variables or paraphrased summaries) and measure SwitchSD's probe AUC and throughput improvement; if the probe fails to trigger or triggers erroneously, the weak-supervision assumption is violated.","supporting_citations":[],"lane_accuracy":{"status":"not yet measured","lane":{"model":"deepseek/deepseek-v4-flash","input_kind":null},"url":"https://pith.science/accuracy"},"review_version":1}