[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-411032-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-411032-en":131},{"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","strategies-for-training-large-vocabulary-neural-language-models","Strategies for Training Large Vocabulary Neural Language Models","","Training neural network language models over large vocabularies is computationally costly compared to count-based approaches such as Kneser-Ney. The work presents a systematic comparison of neural strategies for representing and training large vocabularies, including softmax, hierarchical softmax, target sampling, noise contrastive estimation, and self normalization. Self normalization is extended to be a proper likelihood estimator and an efficient softmax variant is introduced, then evaluated on multiple benchmarks.",{"@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/strategies-for-training-large-vocabulary-neural-language-models/411032/",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/strategies-for-training-large-vocabulary-neural-language-models/411032.png","ImageObject",300,407,{"name":42,"@type":43},"Liam","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-29","2026-09-28",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",11,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why is training neural language models over large vocabularies costly compared to count-based models?","Question",{"text":63,"@type":64},"Because model evaluation and gradient computation require normalized probabilities over a large vocabulary, infrequent words need more training data, and larger training sets often enable larger models that require more iterations.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Which neural strategies are compared for training with large vocabularies?",{"text":68,"@type":64},"The comparison includes softmax, hierarchical softmax, target sampling, noise contrastive estimation, and self normalization, along with extensions such as using self normalization as a proper likelihood estimator and an efficient softmax variant.",{"name":70,"@type":61,"acceptedAnswer":71},"How do the methods perform on rare words and across different benchmark settings?",{"text":72,"@type":64},"Results show that conclusions from small datasets may not generalize: hierarchical softmax can be less accurate than softmax on smaller-vocabulary tasks like Penn Treebank, yet performs best on very large-vocabulary settings such as the Billion Word benchmark, while Kneser-Ney-style models remain competitive on rare words.","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},411032,1791100697,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,120,123,127],{"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":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":55,"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":145,"preview_page_count":33,"preview_urls":146},8796095461564,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Strategies for Training Large Vocabulary Neural Language Models  \nWenlin Chen David Grangier Michael Auli  \nFacebook, Menlo Park, CA  \nAbstract  \nTraining neural network language models over large vocabularies is computationally costly compared to count-based models such as Kneser-Ney. We present a systematic comparison of neural strategies to represent and train large vocabularies, including softmax, hierarchical softmax, target sampling, noise contrastive estimation and self normalization. We extend self normalization to be a proper estimator of likelihood and introduce an efﬁcient variant of softmax. We evaluate each method on three popular benchmarks, examining performance on rare words, the speed/accuracy trade-off and complementarity to Kneser-Ney.  \n1 Introduction  \nNeural network language models (Bengio et al., 2003; Mikolov et al., 2010) have gained popularity for tasks such as automatic speech recognition (Arisoy et al., 2012) and statistical machine translation (Schwenk et al., 2012; Vaswani et al., 2013; Baltescu and Blunsom, 2014) . Similar models are also developed for translation (Le et al., 2012; Devlin et al., 2014; Bahdanau et al., 2015), summarization (Chopra et al., 2015) and language generation (Sordoni et al., 2015) .  \nLanguage models assign a probability to a word given a context of preceding, and possibly subsequent, words. The model architecture determines how the context is represented and there are several choices including recurrent neural networks (Mikolov et al., 2010; Jozefowicz et al., 2016), or log-bilinear models (Mnih and Hinton, 2010) . This paper does not focus on architecture or context representation but rather on how toefﬁciently deal with large output vocabularies, a problem common to all approaches to neural language modeling and related tasks (machine translation, language generation) . We therefore experiment with a classical feed-forward neural network model similar to Bengio et al. (2003) .  \nPractical training speed for these models quickly decreases as the vocabulary grows. This is due to three combined factors: (i) model evaluation and gradient computation become more time consuming, mainly due to the need of computing normalized probabilities over a large vocabulary; (ii) large vocabularies require more training data in order to observe enough instances of infrequent words which increases training times; (iii) a larger training set often allows for larger models which requires more training iterations.  \nThis paper provides an overview of popular strategies to model large vocabularies for language modeling. This includes the classical softmax overall output classes, hierarchical softmax which introduces latent variables, or clusters, to simplify normalization, target sampling which only considers a random subset of classes for normalization, noise contrastive estimation which discriminates between genuine data points and samples from a noise distribution, and infrequent normalization, also referred as self-normalization, which computes the partition function at an infrequent rate. We also extend self-normalization to be a proper estimator of likelihood. Furthermore, we introduce differentiated softmax, a novel variation of softmax which assigns more parameters, or capacity, to frequent words and which we show to be faster and more accurate than softmax (x2) .  \nOur comparison assumes a reasonable budget of one week for training models on a high end GPU (Nvidia K40) . We evaluate on three benchmarks differing in the amount of training data and vocabulary size, that is Penn Treebank, Gigaword and the Billion Word benchmark (x3) .  \nOur results show that conclusions drawn from small datasets do not always generalize to larger settings. For instance, hierarchical softmax is less accurate than softmax on the small vocabulary Penn Treebank task but performs best on the very large vocabulary Billion Word benchmark. This is because hierarchical softmax is the fastest method for traini","cbCaij6w5Ru8rWto","https://ap.wps.com/l/cbCaij6w5Ru8rWto","pdf",387879,"English","# Introduction\n# Modeling Large Vocabularies\n## Softmax Neural Language Model","[{\"question\":\"Why is training neural language models over large vocabularies costly compared to count-based models?\",\"answer\":\"Because model evaluation and gradient computation require normalized probabilities over a large vocabulary, infrequent words need more training data, and larger training sets often enable larger models that require more iterations.\"},{\"question\":\"Which neural strategies are compared for training with large vocabularies?\",\"answer\":\"The comparison includes softmax, hierarchical softmax, target sampling, noise contrastive estimation, and self normalization, along with extensions such as using self normalization as a proper likelihood estimator and an efficient softmax variant.\"},{\"question\":\"How do the methods perform on rare words and across different benchmark settings?\",\"answer\":\"Results show that conclusions from small datasets may not generalize: hierarchical softmax can be less accurate than softmax on smaller-vocabulary tasks like Penn Treebank, yet performs best on very large-vocabulary settings such as the Billion Word benchmark, while Kneser-Ney-style models remain competitive on rare words.\"}]","Strategies for Training Large Vocabulary Neural Language Models | PDF",1790587137,28,[147,151,155,159],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/89d27c47ac0e048584f16e15ea37def4.webp",983,1390,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c1e6e207dcc9fd4016683028ab0d72d5.webp",982,1388,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/60376261b72fa4ca7382d917f9c26148.webp",981,1387,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/6f1421762cddad0f94d6a7c6868c49d3.webp",980,1385]