{"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-2606-14122","title":"Beyond Perplexity: UTF-8 Validity in Byte-aware Language Models","arxiv_id":"2606.14122","date":"2026-06-12","proceeding":"ICML","authors":["Sangwhan Moon","Daisuke Oba","Youmi Ma","Tatsuya Hiraoka","Naoaki Okazaki"],"abstract":"Byte-level tokenization enables language models to handle any Unicode input, but models can generate invalid UTF-8 sequences when encountering rare or unseen characters. We investigate the relationship between training scale and UTF-8 generation reliability with a 355M parameter model trained on 80B tokens from a balanced multilingual corpus of English, Japanese, Korean, and Chinese. We introduce multiple evaluation protocols that isolate UTF-8 structural validity from language modeling. UTF-8 validity convergence lags perplexity by a roughly a factor of two: perplexity stabilizes after 2.1B tokens, but UTF-8 validity requires 4.2B tokens. In context-free generation, rare characters achieve higher structural validity than common characters, suggesting over-specialization of frequent character representations. Through experiments, we observed that reliable UTF-8 generation is a distinct capability requiring evaluation beyond perplexity.","url_abs":"https://arxiv.org/abs/2606.14122","url_pdf":"https://arxiv.org/pdf/2606.14122","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=2606.14122","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2606.14122"}},"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/cynthia/bytecanary","reach":null}],"summary":{"ran":7,"ran_fixture":2,"ran_draft_wrong":4,"ran_honours":1,"unverified":7},"by_repo_kind":{"found_in_text":{"samples":21,"ran":14,"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":21,"samples":[{"code_sha256_prefix":"e74e50c0db0ff761","entry":"ByteTokenizer","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e74e50c0db0ff761"}},{"code_sha256_prefix":"540cf5d066592f6d","entry":"DualScore","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"540cf5d066592f6d"}},{"code_sha256_prefix":"6c22385c828402bd","entry":"EvalConfig","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6c22385c828402bd"}},{"code_sha256_prefix":"fd2d593e0d21754e","entry":"UTF8Analysis","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fd2d593e0d21754e"}},{"code_sha256_prefix":"8f4bf8a2e26dc115","entry":"UTF8StateMachine","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8f4bf8a2e26dc115"}},{"code_sha256_prefix":"cab9198ef6a031e9","entry":"_bytes_to_unicode","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cab9198ef6a031e9"}},{"code_sha256_prefix":"963462c25e36111a","entry":"_empty_tier","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"963462c25e36111a"}},{"code_sha256_prefix":"e129963820c2a3aa","entry":"_ll_stats","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e129963820c2a3aa"}},{"code_sha256_prefix":"bf146e4e9b9d6fd1","entry":"_mean","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bf146e4e9b9d6fd1"}},{"code_sha256_prefix":"3d0cb06b4838e7dc","entry":"analyze_utf8_validity","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3d0cb06b4838e7dc"}},{"code_sha256_prefix":"cc85d8696724c8ea","entry":"batch_calculate_log_likelihoods","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cc85d8696724c8ea"}},{"code_sha256_prefix":"1e04eaf2590fab35","entry":"batch_generate","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1e04eaf2590fab35"}},{"code_sha256_prefix":"5c1f2418ee44b141","entry":"calculate_perplexity","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5c1f2418ee44b141"}},{"code_sha256_prefix":"ca96d141e9352947","entry":"detect_language","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ca96d141e9352947"}},{"code_sha256_prefix":"ecb0d6fbe80dd0c5","entry":"Level0Evaluator","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.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":"ecb0d6fbe80dd0c5"}},{"code_sha256_prefix":"34fd818f8e67cb97","entry":"UTF8State","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.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":"34fd818f8e67cb97"}},{"code_sha256_prefix":"0768b8c25e5de0df","entry":"_aggregate_stats","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.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":"0768b8c25e5de0df"}},{"code_sha256_prefix":"d58a642f2d375dd5","entry":"_bundled_eval_set","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.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":"d58a642f2d375dd5"}},{"code_sha256_prefix":"18a7201cddf40b6f","entry":"_print_summary","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.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":"18a7201cddf40b6f"}},{"code_sha256_prefix":"6ae27d4bf86f6035","entry":"check_utf8_validity_incremental","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.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":"6ae27d4bf86f6035"}},{"code_sha256_prefix":"413e0cfaa3b014ec","entry":"compute_dual_score","repo":"cynthia/bytecanary","repo_kind":"found_in_text","path":"src/bytecanary/evaluate.py","file_url":"https://github.com/cynthia/bytecanary/blob/HEAD/src/bytecanary/evaluate.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":"413e0cfaa3b014ec"}}]},"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}