{"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-03616","title":"The Format Tax","arxiv_id":"2604.03616","date":"2026-04-04","proceeding":null,"authors":["Ivan Yee Lee","Loris D'Antoni","Taylor Berg-Kirkpatrick"],"abstract":"Asking a large language model to respond in JSON should be a formatting choice, not a capability tax. Yet we find that structured output requirements -- JSON, XML, LaTeX, Markdown -- substantially degrade reasoning and writing performance across open-weight models. The research response has focused on constrained decoding, but sampling bias accounts for only a fraction of the degradation. The dominant cost enters at the prompt: format-requesting instructions alone cause most of the accuracy loss, before any decoder constraint is applied. This diagnosis points to a simple principle: decouple reasoning from formatting. Whether by generating freeform first and reformatting in a second pass, or by enabling extended thinking within a single generation, separating the two concerns substantially recovers lost accuracy. Across six open-weight models, four API models, four formats, and tasks spanning math, science, logic, and writing, decoupling recovers most lost accuracy. Notably, most recent closed-weight models show little to no format tax, suggesting the problem is not inherent to structured generation but a gap that current open-weight models have yet to close. Code is available at https://github.com/ivnle/the-format-tax.","url_abs":"https://arxiv.org/abs/2604.03616","url_pdf":"https://arxiv.org/pdf/2604.03616","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.03616","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.03616"}},"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/ivnle/the-format-tax","reach":null}],"summary":{"unverified":19},"by_repo_kind":{"found_in_text":{"samples":19,"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":19,"samples":[{"code_sha256_prefix":"0d866330a7b461b5","entry":"check","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"dev/check_reference_contract.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/dev/check_reference_contract.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"0d866330a7b461b5"}},{"code_sha256_prefix":"a71d2c32270ced76","entry":"compute_accuracies","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"dev/make_hero_b_v3.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/dev/make_hero_b_v3.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"a71d2c32270ced76"}},{"code_sha256_prefix":"d093f593ac440765","entry":"extract_answer","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"formats/freeform.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/formats/freeform.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"d093f593ac440765"}},{"code_sha256_prefix":"e3bb693199ecfcd7","entry":"extract_answer_from_json","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"extraction.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/extraction.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"e3bb693199ecfcd7"}},{"code_sha256_prefix":"1197fd728352fa6b","entry":"extract_answer_from_lark","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"extraction.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/extraction.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"1197fd728352fa6b"}},{"code_sha256_prefix":"4b67385fc82890d1","entry":"extract_json_payload","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"extraction.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/extraction.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"4b67385fc82890d1"}},{"code_sha256_prefix":"51052e8e0a123f28","entry":"load_cache","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"judge.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/judge.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"51052e8e0a123f28"}},{"code_sha256_prefix":"8e830a574bd4691b","entry":"load_grammar","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"formats/freeform.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/formats/freeform.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"8e830a574bd4691b"}},{"code_sha256_prefix":"c45da0b30c908786","entry":"load_grammar","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"formats/json.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/formats/json.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"c45da0b30c908786"}},{"code_sha256_prefix":"97c1e520f5f3fc3a","entry":"load_grammar","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"formats/latex.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/formats/latex.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"97c1e520f5f3fc3a"}},{"code_sha256_prefix":"87f8ee9796f65776","entry":"load_state","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"judge_openai.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/judge_openai.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"87f8ee9796f65776"}},{"code_sha256_prefix":"6e229aa8dcd4b085","entry":"make_figure","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"dev/make_hero_b_v3.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/dev/make_hero_b_v3.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"6e229aa8dcd4b085"}},{"code_sha256_prefix":"482e09e885721743","entry":"parse_verdict","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"judge.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/judge.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"482e09e885721743"}},{"code_sha256_prefix":"7a0cf15e315c834b","entry":"reasoning_parser_for_model","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"prompting.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/prompting.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"7a0cf15e315c834b"}},{"code_sha256_prefix":"7ae63bd46185183a","entry":"resolve_task_name","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"prompting.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/prompting.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"7ae63bd46185183a"}},{"code_sha256_prefix":"78d0778dc821ceda","entry":"structured_outputs_config","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"prompting.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/prompting.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"78d0778dc821ceda"}},{"code_sha256_prefix":"fbd3a8b65169f401","entry":"thinking_leak_report","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"dev/show_triple.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/dev/show_triple.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"fbd3a8b65169f401"}},{"code_sha256_prefix":"3c3f8b68575a2689","entry":"truncate","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"dev/show_triple.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/dev/show_triple.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"3c3f8b68575a2689"}},{"code_sha256_prefix":"30ab11c69f399d38","entry":"truncate_question","repo":"ivnle/the-format-tax","repo_kind":"found_in_text","path":"dev/show_prompts.py","file_url":"https://github.com/ivnle/the-format-tax/blob/HEAD/dev/show_prompts.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"30ab11c69f399d38"}}]},"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}