{"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-2607-26627","title":"Revisiting Lossy Verification in Speculative Decoding: Mechanisms, Trade-offs, and Failure Modes","arxiv_id":"2607.26627","date":"2026-07-29","proceeding":null,"authors":["Tianyu Wang","Yuxuan Zhou","Wenbin Wang","Heng Li","Zikai Xiao","Junyuan Shang"],"abstract":"Speculative Decoding (SD) accelerates large language model inference by allowing a lightweight draft model to propose tokens that are subsequently verified in parallel by a larger target model. Recent approaches introduce lossy verification schemes to further improve efficiency by relaxing strict distributional matching. Yet such relaxation silently rewrites the decoding distribution, and the resulting acceleration can come at the cost of unstable, sometimes severely degraded generation quality. In this work, we present a principled analysis of the distributions induced by lossy verification methods. We show that many seemingly distinct approaches differ only superficially and can be classified into two categories: truncation-based verification and collaborative verification. We further construct a diagnostic evaluation framework across curated benchmarks. For truncation-based methods, we identify a fundamental pitfall: performance can degrade significantly compared to the true truncation sampling baseline due to distributional distortion. For collaborative verification, we uncover a key principles: controlling the overshoot of draft probabilities relative to target probabilities is essential to prevent low-quality outputs. Our code is available at https://github.com/ZhouYuxuanYX/Fast-HSD.","url_abs":"https://arxiv.org/abs/2607.26627","url_pdf":"https://arxiv.org/pdf/2607.26627","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":"https://app.syntology.ai/?focus=2607.26627","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2607.26627"}},"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/ZhouYuxuanYX/Fast-HSD","reach":null}],"summary":{"ran":17},"by_repo_kind":{"found_in_text":{"samples":17,"ran":17,"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":"6b6976449b748bbb","entry":"check_parallel","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/benchmarks/_bfcl_scoring.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/benchmarks/_bfcl_scoring.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":"6b6976449b748bbb"}},{"code_sha256_prefix":"3ea4a2a1e73508a4","entry":"check_simple","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/benchmarks/_bfcl_scoring.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/benchmarks/_bfcl_scoring.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":"3ea4a2a1e73508a4"}},{"code_sha256_prefix":"c670a899ae34286a","entry":"cos_accept_prob","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/core/collaborative_verification.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/core/collaborative_verification.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":"c670a899ae34286a"}},{"code_sha256_prefix":"2f8c7cddf232700c","entry":"eta_allowed_set","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/core/truncation_verification.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/core/truncation_verification.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":"2f8c7cddf232700c"}},{"code_sha256_prefix":"69e80a64efad173b","entry":"extract_answer","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/benchmarks/_math_scoring.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/benchmarks/_math_scoring.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"69e80a64efad173b"}},{"code_sha256_prefix":"cd23a3bbdde761c5","entry":"extract_boxed_answer","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/benchmarks/_math_scoring.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/benchmarks/_math_scoring.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cd23a3bbdde761c5"}},{"code_sha256_prefix":"6802b1b27591fad2","entry":"extract_code","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/benchmarks/_mbppplus_scoring.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/benchmarks/_mbppplus_scoring.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6802b1b27591fad2"}},{"code_sha256_prefix":"b84cbed5d59e4b03","entry":"extract_letter","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/benchmarks/_include_scoring.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/benchmarks/_include_scoring.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b84cbed5d59e4b03"}},{"code_sha256_prefix":"90d3d9ce134f7036","entry":"extract_ref_answer","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/benchmarks/_math_scoring.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/benchmarks/_math_scoring.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"90d3d9ce134f7036"}},{"code_sha256_prefix":"849ccf086024efa8","entry":"lenience_accept_prob","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/core/collaborative_verification.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/core/collaborative_verification.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":"849ccf086024efa8"}},{"code_sha256_prefix":"89141c7bf97aef69","entry":"lenience_yield_distribution","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/core/collaborative_verification.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/core/collaborative_verification.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":"89141c7bf97aef69"}},{"code_sha256_prefix":"5fb627688b54a339","entry":"min_p_allowed_set","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/core/truncation_verification.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/core/truncation_verification.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":"5fb627688b54a339"}},{"code_sha256_prefix":"458f565f4a335155","entry":"parse_function_calls","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/benchmarks/_bfcl_scoring.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/benchmarks/_bfcl_scoring.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"458f565f4a335155"}},{"code_sha256_prefix":"1d38b7baaed5c39c","entry":"run_pass_at_1","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/benchmarks/_mbppplus_scoring.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/benchmarks/_mbppplus_scoring.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":"1d38b7baaed5c39c"}},{"code_sha256_prefix":"391a4d80e3c9c4ff","entry":"score_include","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/benchmarks/_include_scoring.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/benchmarks/_include_scoring.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":"391a4d80e3c9c4ff"}},{"code_sha256_prefix":"67fb8c433b33b902","entry":"score_mbppplus","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/benchmarks/_mbppplus_scoring.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/benchmarks/_mbppplus_scoring.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":"67fb8c433b33b902"}},{"code_sha256_prefix":"54c8678c38c21902","entry":"speccascade_accepts","repo":"ZhouYuxuanYX/Fast-HSD","repo_kind":"found_in_text","path":"fast_hsd/core/truncation_verification.py","file_url":"https://github.com/ZhouYuxuanYX/Fast-HSD/blob/HEAD/fast_hsd/core/truncation_verification.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":"54c8678c38c21902"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}