{"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-2604-06613","title":"The Detection-Extraction Gap: Models Know the Answer Before They Can Say It","arxiv_id":"2604.06613","date":"2026-04-08","proceeding":null,"authors":["Hanyang Wang","Mingxuan Zhu"],"abstract":"Modern reasoning models continue generating long after the answer is already determined. Across five model configurations, two families, and three benchmarks, we find that 52--88% of chain-of-thought tokens are produced after the answer is recoverable from a partial prefix. This post-commitment generation reveals a structural phenomenon: the detection-extraction gap. Free continuations from early prefixes recover the correct answer even at 10% of the trace, while forced extraction fails on 42% of these cases. The answer is recoverable from the model state, yet prompt-conditioned decoding fails to extract it. We formalize this mismatch via a total-variation bound between free and forced continuation distributions, yielding quantitative estimates of suffix-induced shift. Exploiting this asymmetry, we propose Black-box Adaptive Early Exit (BAEE), which uses free continuations for both detection and extraction, truncating 70--78% of serial generation while improving accuracy by 1--5pp across all models. For thinking-mode models, early exit prevents post-commitment overwriting, yielding gains of up to 5.8pp; a cost-optimized variant achieves 68--73% reduction at a median of 9 API calls. Code is available at https://github.com/EdWangLoDaSc/know2say.","url_abs":"https://arxiv.org/abs/2604.06613","url_pdf":"https://arxiv.org/pdf/2604.06613","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=2604.06613","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.06613"}},"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/EdWangLoDaSc/know2say","reach":null}],"summary":{"unverified":16},"by_repo_kind":{"found_in_text":{"samples":16,"ran":0,"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":16,"samples":[{"code_sha256_prefix":"6ba494a05c7fd2d2","entry":"analyze_model","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/analysis.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/analysis.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6ba494a05c7fd2d2"}},{"code_sha256_prefix":"ca864081606c7b8a","entry":"compute_metrics","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/dashboard.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/dashboard.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ca864081606c7b8a"}},{"code_sha256_prefix":"f3b1a0ce5851885a","entry":"compute_report","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/efa_suffix_ablation.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/efa_suffix_ablation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f3b1a0ce5851885a"}},{"code_sha256_prefix":"5dfb16867f05250c","entry":"get_efa_suffix","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/experiment.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/experiment.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5dfb16867f05250c"}},{"code_sha256_prefix":"e3298cae3447744b","entry":"get_fracs","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/generate_figures_aime.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/generate_figures_aime.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e3298cae3447744b"}},{"code_sha256_prefix":"e95ede383b0cdd9b","entry":"get_psc_curve","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/generate_figures_aime.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/generate_figures_aime.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e95ede383b0cdd9b"}},{"code_sha256_prefix":"b883e3d876e4cdab","entry":"load","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/generate_commitment_map.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/generate_commitment_map.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b883e3d876e4cdab"}},{"code_sha256_prefix":"4b3b7e1d763c2bbe","entry":"load","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/generate_entropy.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/generate_entropy.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4b3b7e1d763c2bbe"}},{"code_sha256_prefix":"d90559aac674ab91","entry":"load","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/generate_figures.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/generate_figures.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d90559aac674ab91"}},{"code_sha256_prefix":"317569ffeafb14ae","entry":"load_config","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/dashboard.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/dashboard.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"317569ffeafb14ae"}},{"code_sha256_prefix":"a0c9d69c2ebd9f7b","entry":"load_cot_lengths","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/baseline_experiment.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/baseline_experiment.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a0c9d69c2ebd9f7b"}},{"code_sha256_prefix":"b99089c0600bcb0a","entry":"load_results","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/analysis.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/analysis.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b99089c0600bcb0a"}},{"code_sha256_prefix":"519ea6d75b891cc4","entry":"psc_budget_for_cot","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/baseline_experiment.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/baseline_experiment.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"519ea6d75b891cc4"}},{"code_sha256_prefix":"96955cbe5096df19","entry":"regrade_efa_answers","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/analysis.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/analysis.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"96955cbe5096df19"}},{"code_sha256_prefix":"17a0842b667d877d","entry":"simulate_efa_oracle","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/baee.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/baee.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"17a0842b667d877d"}},{"code_sha256_prefix":"c739fd61f656f205","entry":"simulate_psc_triggered","repo":"EdWangLoDaSc/know2say","repo_kind":"found_in_text","path":"src/baee.py","file_url":"https://github.com/EdWangLoDaSc/know2say/blob/HEAD/src/baee.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c739fd61f656f205"}}]},"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}