{"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/big-code-big-vocabulary-open-vocabulary","title":"Big Code != Big Vocabulary: Open-Vocabulary Models for Source Code","arxiv_id":"2003.07914","date":"2020-03-17","proceeding":null,"authors":["Rafael-Michael Karampatsis","Hlib Babii","Romain Robbes","Charles Sutton","Andrea Janes"],"abstract":"Statistical language modeling techniques have successfully been applied to large source code corpora, yielding a variety of new software development tools, such as tools for code suggestion, improving readability, and API migration. A major issue with these techniques is that code introduces new vocabulary at a far higher rate than natural language, as new identifier names proliferate. Both large vocabularies and out-of-vocabulary issues severely affect Neural Language Models (NLMs) of source code, degrading their performance and rendering them unable to scale. In this paper, we address this issue by: 1) studying how various modelling choices impact the resulting vocabulary on a large-scale corpus of 13,362 projects; 2) presenting an open vocabulary source code NLM that can scale to such a corpus, 100 times larger than in previous work; and 3) showing that such models outperform the state of the art on three distinct code corpora (Java, C, Python). To our knowledge, these are the largest NLMs for code that have been reported. All datasets, code, and trained models used in this work are publicly available.","url_abs":"https://arxiv.org/abs/2003.07914v1","url_pdf":"https://arxiv.org/pdf/2003.07914v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"big-code-big-vocabulary-open-vocabulary","repo_url":"https://github.com/giganticode/codeprep","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"big-code-big-vocabulary-open-vocabulary","repo_url":"https://github.com/mast-group/OpenVocabCodeNLM","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2003.07914","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2003.07914"}},"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":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/mast-group/OpenVocabCodeNLM","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/giganticode/codeprep","reach":{"status":"ok"}}],"summary":{"unverified":3},"by_repo_kind":{"official":{"samples":3,"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":0,"samples":[{"code_sha256_prefix":"3fe0eb11ba002952","entry":"get_Java_identifier_mapping","repo":"mast-group/OpenVocabCodeNLM","repo_kind":"official","path":"util/identifier_mapping.py","file_url":"https://github.com/mast-group/OpenVocabCodeNLM/blob/HEAD/util/identifier_mapping.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3fe0eb11ba002952"}},{"code_sha256_prefix":"f3122020efb2e25b","entry":"split_to_subtokens","repo":"mast-group/OpenVocabCodeNLM","repo_kind":"official","path":"create_subtoken_data.py","file_url":"https://github.com/mast-group/OpenVocabCodeNLM/blob/HEAD/create_subtoken_data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f3122020efb2e25b"}},{"code_sha256_prefix":"47db4b124f5b7739","entry":"token_to_subtoken_map","repo":"mast-group/OpenVocabCodeNLM","repo_kind":"official","path":"util/identifier_mapping.py","file_url":"https://github.com/mast-group/OpenVocabCodeNLM/blob/HEAD/util/identifier_mapping.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"47db4b124f5b7739"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}