[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-415461-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-415461-en":130,"doc-similar-415461":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","modeling-vocabulary-for-big-code-machine-learning","Modeling Vocabulary for Big Code Machine Learning","","Building machine learning models that work on source code requires careful choices for how to model source-code vocabulary, since these decisions can determine whether training is feasible and strongly affect performance of Neural Language Models. The paper compiles key modeling choices for source-code vocabulary and analyzes their impact on a large corpus of 14,436 projects. Results identify decisive choices that enable fast training of accurate neural language models using 10,106 projects.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/modeling-vocabulary-for-big-code-machine-learning/415461/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/modeling-vocabulary-for-big-code-machine-learning/415461.png","ImageObject",300,407,{"name":42,"@type":43},"Alexandar","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-28","2026-09-28",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",6,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why is modeling source-code vocabulary a crucial decision for code-based machine learning models?","Question",{"text":63,"@type":64},"Because identifiers and code structure create extremely large vocabularies, and vocabulary choices can make training impossible or significantly change performance, especially for neural language models.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What scope of data is used to study the impact of vocabulary modeling choices?",{"text":68,"@type":64},"The study evaluates modeling choices on a large corpus of 14,436 projects, and training experiments involve a corpus containing more than 10,106 projects.",{"name":70,"@type":61,"acceptedAnswer":71},"Which approach helps reach a manageable vocabulary size according to the paper?",{"text":72,"@type":64},"Simple reductions such as splitting identifiers by case are insufficient; advanced methods based on Byte-Pair Encoding adaptations are needed to reduce vocabulary to a workable size.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},415461,1791323212,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":112,"preview_page_count":33,"preview_urls":145},962090768658,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Modeling Vocabulary for Big Code Machine Learning  \nHlib Babii  \nFree University of Bozen-Bolzano Bolzano, Italy [hlibbabii@gmail.com](hlibbabii@gmail.com)  \nAndrea Janes  \nFree University of Bozen-Bolzano Bolzano, Italy [ajanes@unibz.it](ajanes@unibz.it)  \nRomain Robbes  \nFree University of Bozen-Bolzano Bolzano, Italy [rrobbes@unibz.it](rrobbes@unibz.it)  \narXiv : 1904 .0 1873v 1 [ cs .CL] 3 Apr 2019  \nABSTRACT  \nWhen building machine learning models that operate on source code, several decisions have to be made to model source-code vocabulary. These decisions can have a large impact: some can lead to not being able to train models at all, others significantly affect performance, particularly for Neural Language Models. Yet, these decisions are not often fully described. This paper lists important modeling choices for source code vocabulary, and explores their impact on the resulting vocabulary on a large-scale corpus of 14,436 projects. We show that a subset of decisions have decisive characteristics, allowing to train accurate Neural Language Models quickly on a large corpus of 10,106 projects.  \nCCS CONCEPTS  \n• Information systems → Language models; • Software and its engineering → Software libraries and repositories;  \nKEYWORDS  \nBig Code, Machine Learning, Language Models  \n1 INTRODUCTION  \nMany works have taken advantage of the \"naturalness\" of software [33] to assist a variety of software engineering tasks, including code completion [60], correcting syntax errors [62], detecting possibly buggy code [58], or API migration [53], among many others [4]. These approaches analyze large amounts of source code (e.g., hundreds to thousands of software projects), which allows them to build predictive models of various source code properties, using a variety of probabilistic or machine learning (ML) models, inspired by Natural Language Processing (NLP) techniques.  \nHowever, the use of NLP techniques in this context—even when taking advantage of the increased structure of software—, relies on the textual nature of source code, and as such rely on a notion of vocabulary. Thus, a crucial early decision to make when modeling source code for a ML task is how to model software’s vocabulary. This is all the more important because, unlike in natural language,  \nsoftware developers are free to create any identifiers they like, and can make them arbitrarily complex. This introduces the issue that any model that is trained on a large-scale software corpus has to deal with an extremely large vocabulary. Hellendoornand Devanbu observe this issue first-hand for the task of Language Modeling, showing that a Neural Language Model (NLM) has difficulties scaling beyond as few as a hundred projects, while a more traditional N-gram language model does not have such an issue [32] . Section 2 details how vocabulary issues impact Language Modeling.  \nGiven that NLMs (and Neural approaches in general) are the state-of-the-art in the field of NLP, finding ways to scale them toa larger software corpus is very desirable. An additional reason  \nto scale them is that recent results in NLP [23, 35, 52] show that NLMs can be used as upstream tasks in a transfer learning scenario, leading to state-of-the-art improvement in downstream tasks.  \nSection 3 presents our first contribution: a detailed explanation of the possible modeling choices for source code that we identified. A variety of modeling choices for vocabulary are available, including: which source code elements to include or exclude; whether to filter out unfrequent tokens or not; how to handle different natural languages; and how to handle compound tokens. Some of these choices may have a large impact on vocabulary size, directly impacting the feasibility of training neural approaches.  \nAfter listing the possible modeling choices for software vocabulary, we present our second contribution: an empirical study of the impact of the modeling choices in practice. Section 4 investigate how the modeling","cbCaiux4RswdnHT4","https://ap.wps.com/l/cbCaiux4RswdnHT4","pdf",635394,12,"English","# Abstract\n# Introduction\n# Background and Related Work\n## Language Modeling\n# Vocabulary Study\n# Neural Language Models Evaluation\n# Discussion\n# Limitations\n# Conclusion","[{\"question\":\"Why is modeling source-code vocabulary a crucial decision for code-based machine learning models?\",\"answer\":\"Because identifiers and code structure create extremely large vocabularies, and vocabulary choices can make training impossible or significantly change performance, especially for neural language models.\"},{\"question\":\"What scope of data is used to study the impact of vocabulary modeling choices?\",\"answer\":\"The study evaluates modeling choices on a large corpus of 14,436 projects, and training experiments involve a corpus containing more than 10,106 projects.\"},{\"question\":\"Which approach helps reach a manageable vocabulary size according to the paper?\",\"answer\":\"Simple reductions such as splitting identifiers by case are insufficient; advanced methods based on Byte-Pair Encoding adaptations are needed to reduce vocabulary to a workable size.\"}]","Modeling Vocabulary for Big Code Machine Learning | PDF",1790601474,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/af98c5da69014bc16928751c4e347884.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/064c0c4f7c8b60067f569db6c5b87f82.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/6604698ad512bafdb8abfa0e08b67b82.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/21b569612e53619e34cb7627890a7f76.webp",980,1268,{"list":163,"token":11},[164,171,178,184,190,197,203,210,216,222],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":29,"create_tm":170},421530,"Effective Vocabulary Expansion of Multilingual Language Models for Extremely Low-Resource Languages","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922333927/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232539&Signature=nqnMUWWHfMrFWG0E0269hoMY0No%3D","effective-vocabulary-expansion-of-multilingual-language-models-for-extremely-low-resource-languages",11,1790625076,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":29,"create_tm":177},128370,"THE DEVELOPMENT OF A TEXT GENERATION MODEL FOR SEPEDI LANGUAGE USING TRANSFORMER-BASED MACHINE LEARNING TECHNIQUES","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229839617658/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232539&Signature=2kFA%2F7vFuiD4vAKlANNHbzEta3U%3D","the-development-of-a-text-generation-model-for-sepedi-language-using-transformer-based-machine-learning-techniques",23,1785947132,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":30,"category_name":29,"create_tm":183},733221,"Opening up ChatGPT - Tracking openness, transparency, and accountability in instruction-tuned text generators","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031787071/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232539&Signature=8PPmHd%2F%2B5fzmzAuxeBMdQEf1JPQ%3D","opening-up-chatgpt-tracking-openness-transparency-and-accountability-in-instruction-tuned-text-generators",1795384370,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":176,"category_name":29,"create_tm":189},83993,"LLM-Driven Neural Network Generation with Same-Family Architecture Guidance Disentangling Transfer and Adaptation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809122443/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232539&Signature=HSoAdxM3sZidfnOJlaB48%2FzhalY%3D","llm-driven-neural-network-generation-with-same-family-architecture-guidance-disentangling-transfer-and-adaptation",1784191911,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":29,"create_tm":196},490834,"Language Identification of Hindi-English Tweets - using code-mixed BERT","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229927846592/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232539&Signature=q%2FLgxRrjTtLpxa8xrGzSAJbB0ng%3D","language-identification-of-hindi-english-tweets-using-code-mixed-bert",13,1790842407,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":176,"category_name":29,"create_tm":202},116934,"Open-Source Machine Learning in Computational Chemistry - Perspective","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834533272/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232539&Signature=OrHPj51Ux6zJH1zy4LwhjC%2BJ4No%3D","open-source-machine-learning-in-computational-chemistry-perspective",1785672627,{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":208,"category_name":29,"create_tm":209},420501,"JAPANESE LARGE-VOCABULARY CONTINUOUS-SPEECH RECOGNITION USING A BUSINESS-NEWSPAPER CORPUS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922320852/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232539&Signature=2fh%2FggAwh5VvIBC0FkFgL5UorPY%3D","japanese-large-vocabulary-continuous-speech-recognition-using-a-business-newspaper-corpus",15,1790621184,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":115,"category_name":29,"create_tm":215},421501,"Building a Corpus-Based Academic Vocabulary List of Four Languages","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922589234/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232539&Signature=7NRsIXK7cfLatVFJn4c5EiFi5Is%3D","building-a-corpus-based-academic-vocabulary-list-of-four-languages",1790625010,{"doc_id":217,"doc_title":218,"file_type":137,"home_preview_img_url":219,"slug":220,"view_count":139,"category_name":29,"create_tm":221},118639,"A systematic mapping study on graph machine learning for static source code analysis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834759845/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232539&Signature=M4zxlYwkOHkQ0o7TSB6KaLUOwN4%3D","a-systematic-mapping-study-on-graph-machine-learning-for-static-source-code-analysis",1785684642,{"doc_id":223,"doc_title":224,"file_type":137,"home_preview_img_url":225,"slug":226,"view_count":169,"category_name":29,"create_tm":227},184119,"SLAM18 settles - token and AUC performance results","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229878192454/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796232539&Signature=C%2BQgNxTSMsveez5zCC9SQMPzSSw%3D","slam18-settles-token-and-auc-performance-results",1788356283]