{"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-17512","title":"ONTO: A Token-Efficient Columnar Notation for LLM Input Optimization","arxiv_id":"2604.17512","date":"2026-04-19","proceeding":null,"authors":["Harshavardhanan Deekeswar"],"abstract":"Serialization formats designed for document interchange impose structural overhead that becomes prohibitive when large language models consume operational data at scale. A modest dataset of 1,000 IoT sensor readings serialized as JSON requires approximately 80,000 tokens - the majority spent on repeated field names, nested braces, and structural punctuation rather than semantic content. We present ONTO (Object Notation for Token Optimization), a columnar notation that declares field names once per entity and arranges values in pipe-delimited rows with indentation-based hierarchy. This schema-once, data-many design eliminates per-record key repetition while preserving human readability and nested structure support. Evaluation across three synthetic operational datasets demonstrates 46-51% token reduction versus JSON, with stable scaling from 100 to 1,000 records. Controlled inference benchmarks on Qwen2.5-7B show corresponding 5-10% latency improvement. Comprehension validation confirms no material degradation in LLM task accuracy across lookup, counting, extraction, and aggregation operations when format context is provided. Ablation analysis reveals that key repetition accounts for the majority of JSON overhead, with indentation costs in nested structures explaining the 4-percentage-point gap between flat and hierarchical data. ONTO occupies a previously unfilled position in the serialization landscape: columnar efficiency with hierarchical structure, optimized for LLM context windows rather than document interchange. Code and specification are available at https://github.com/harsh-aranga/onto.","url_abs":"https://arxiv.org/abs/2604.17512","url_pdf":"https://arxiv.org/pdf/2604.17512","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.17512","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.17512"}},"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/harsh-aranga/onto","reach":null}],"summary":{"ran_draft_wrong":10,"ran":1,"ran_violates":5,"unverified":1},"by_repo_kind":{"found_in_text":{"samples":17,"ran":16,"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":"6f9e79e09fa677be","entry":"analyze_structure","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6f9e79e09fa677be"}},{"code_sha256_prefix":"d1b236c9288f05df","entry":"build_onto_lines","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d1b236c9288f05df"}},{"code_sha256_prefix":"9848e219b68069ca","entry":"collect_columnar_values","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9848e219b68069ca"}},{"code_sha256_prefix":"aa44d1fbb2d0f6fc","entry":"dumps","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aa44d1fbb2d0f6fc"}},{"code_sha256_prefix":"24146ca23e35c8ef","entry":"get_all_prefixes","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"24146ca23e35c8ef"}},{"code_sha256_prefix":"f8c658db632e2693","entry":"get_field_paths","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f8c658db632e2693"}},{"code_sha256_prefix":"b7a8ae1a16c686c1","entry":"get_value_at_path","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b7a8ae1a16c686c1"}},{"code_sha256_prefix":"0d9817890be14cbb","entry":"looks_like_bool","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0d9817890be14cbb"}},{"code_sha256_prefix":"e13e5f64508b33ab","entry":"looks_like_float","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e13e5f64508b33ab"}},{"code_sha256_prefix":"aa8c4175e51724b9","entry":"looks_like_int","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aa8c4175e51724b9"}},{"code_sha256_prefix":"53bf789d79b484e7","entry":"needs_escaping","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"53bf789d79b484e7"}},{"code_sha256_prefix":"2b2552d3e146d9c9","entry":"needs_type_preservation","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2b2552d3e146d9c9"}},{"code_sha256_prefix":"04c69a2f28c38616","entry":"serialize_field_values","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"04c69a2f28c38616"}},{"code_sha256_prefix":"2b0a34507bc3d51b","entry":"serialize_scalar","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2b0a34507bc3d51b"}},{"code_sha256_prefix":"c5e649228544e31e","entry":"serialize_value","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c5e649228544e31e"}},{"code_sha256_prefix":"cb2988ba21105b42","entry":"validate_records","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cb2988ba21105b42"}},{"code_sha256_prefix":"31fcb9a9558bcb8f","entry":"ONTOError","repo":"harsh-aranga/onto","repo_kind":"found_in_text","path":"onto/serializer.py","file_url":"https://github.com/harsh-aranga/onto/blob/HEAD/onto/serializer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"31fcb9a9558bcb8f"}}]},"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}