[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-420105-105":59,"doc-detail-420105-en":131,"doc-similar-420105":164},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","revisiting-locality-sensitive-hashing-for-vocabulary-selection-in-fast-neural-machine-translation","Revisiting Locality Sensitive Hashing for Vocabulary Selection in Fast Neural Machine Translation","","Neural machine translation systems rely on large target vocabularies, making output logit computation, softmax, and beam search expensive and often dominant in inference time. This work studies locality sensitive hashing for vocabulary selection, aiming to reduce evaluated vocabulary items while preserving translation quality. Compared with prior approaches, it avoids extra augmentation from frequency lists or alignments and introduces a training procedure supporting LSH inference, yielding up to 87% faster translation while maintaining BLEU and reducing search errors.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/revisiting-locality-sensitive-hashing-for-vocabulary-selection-in-fast-neural-machine-translation/420105/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/revisiting-locality-sensitive-hashing-for-vocabulary-selection-in-fast-neural-machine-translation/420105.png","ImageObject",300,407,{"name":92,"@type":93},"McGucket","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-09-28",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",12,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"Why do neural machine translation models spend much of their inference time on vocabulary-related computation?","Question",{"text":113,"@type":114},"Because output logit computation, softmax, and beam search in the NMT output layer are highly compute-intensive and scale with the size of the target vocabulary.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How does locality sensitive hashing help with vocabulary selection in this work?",{"text":118,"@type":114},"It uses an LSH-based mechanism to select a reduced subset of vocabulary items to evaluate, lowering the number of classes needed during inference while targeting low search error.",{"name":120,"@type":111,"acceptedAnswer":121},"What performance results does the paper report for the LSH-based approach?",{"text":122,"@type":114},"It increases translation speed by up to 87% over a baseline while maintaining translation quality as measured by BLEU, and it emphasizes minimizing search errors compared with full softmax.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},420105,1790739943,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":19,"preview_urls":147},1236954412713,"https://us-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Revisiting Locality Sensitive Hashing for Vocabulary Selection in Fast Neural Machine Translation  \nHieu Hoang∗ Marcin Junczys-Dowmunt∗  \nRoman Grundkiewicz Huda Khayrallah  \nMicrosoft, 1 Microsoft Way, Redmond, WA 98052, USA {hihoan,marcinjd,rogrundk, [hkhayrallah}@microsoft.com](hkhayrallah}@microsoft.com)  \nAbstract  \nNeural machine translation models often contain large target vocabularies. The calculation of logits, softmax and beam search is computationally costly over so many classes. We investigate the use of locality sensitive hashing (LSH) to reduce the number of vocabulary items that must be evaluated and explore the relationship between the hashing algorithm, translation speed and quality. Compared to prior work, our LSH-based solution does not require additional augmentation via word-frequency lists or alignments. We propose a training procedure that produces models, which, when combined with our LSH inference algorithm increase translation speed by up to 87% over the baseline, while maintaining translation quality as measured by BLEU. Apart from just using BLEU, we focus on minimizing search errors compared to the full softmax, a much harsher quality criterion.  \n1 Introduction  \nThe computation of the output logit, softmax and beam search (the output layer) are some of the most compute-intensive tasks in current Neural Machine Translation (NMT) models, often taking the majority of inference time for many models, on many hardware architectures, especially in deployment settings. This is mainly due to the large vocabulary size relative to other dimensions in the model. Methods that reduce the effective vocabulary size can have a major impact on inference speed. Vocabulary selection is one such method.  \nHowever, a known downside of vocabulary selection methods is the risk of search errors if the desired output token yˆt is not a member of the reduced vocabulary V , forcing the beam search to choose a sub-optimal token. Even when the impact of such search errors on BLEU is minimal, search errors caused by lexical shortlisting degrade human judgements of quality (Domhan et al., 2022) .  \n∗These authors contributed equally to this work.  \nFigure 1: Search errors vs. decrease in BLEU for all experiments in the paper. We vary the two main hyperparameters of our LSH implementation: number of hash functions and the size k of our selected vocabulary subset. 60% of sentences have a search error before we observe a 1 BLEU point degradation.  \nThe degradation in human judgement is less surprising if we inspect Figure 1 which shows that translation quality, as measured by BLEU, is resilient to search errors caused by LSH. Only when over 60% of translations exhibit search errors is there significant BLEU degradation.  \nWe examine vocabulary selection using Locality Sensitive Hashing (LSH), and evaluate specifically in the context of Neural Machine Translation. We introduce an LSH-based vocabulary selection algorithm and compatible models such that: 1  \n1. the models have translation quality that is better than or comparable to the baseline model;  \n2. the LSH-based vocabulary selection algorithm introduces minimal search errors across a number of models and language pairs, including no search errors at all for certain configurations;  \n 3. inference is up to 87% faster than the baseline. 1We release code in Marian; see Section 7 .1 for details.  \n855  \nProceedings of the Seventh Conference on Machine Translation (WMT) , pages 855–869 Abu Dhabi, December 7–8, 2022 . ©2022 Association for Computational Linguistics  \n2 Methods of vocabulary selection  \nThe output layer for a target vocabulary V , performs the following computations:  \np (yt|y1:t−1, x;θ) = softmax(Wh + b) yˆt = argmax p(yt|y1:t−1, x;θ),  \n(1)  \nwhere W ∈ R|V | ×d is the weight matrix, b ∈ R|V | is the bias vector, h ∈ Rd , d is the hidden dimension size of the decoder state, and p (yt|y1:t−1, x;θ) ∈ R|V | is the softmax probabilities. This is computationally expen","cbCaijRuXYEIZQZT","https://ap.wps.com/l/cbCaijRuXYEIZQZT","pdf",2639879,15,"English","# Abstract\n# 1 Introduction\n# 2 Methods of vocabulary selection\n## 2.1 Word frequency-based methods","[{\"question\":\"Why do neural machine translation models spend much of their inference time on vocabulary-related computation?\",\"answer\":\"Because output logit computation, softmax, and beam search in the NMT output layer are highly compute-intensive and scale with the size of the target vocabulary.\"},{\"question\":\"How does locality sensitive hashing help with vocabulary selection in this work?\",\"answer\":\"It uses an LSH-based mechanism to select a reduced subset of vocabulary items to evaluate, lowering the number of classes needed during inference while targeting low search error.\"},{\"question\":\"What performance results does the paper report for the LSH-based approach?\",\"answer\":\"It increases translation speed by up to 87% over a baseline while maintaining translation quality as measured by BLEU, and it emphasizes minimizing search errors compared with full softmax.\"}]","Revisiting Locality Sensitive Hashing for Vocabulary Selection in Fast Neural Machine Translation | PDF",1790619516,38,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/8d07699616d995ee43a44269e2b8a9ab.webp",983,1390,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/1833be61e9e037317bbf8043e7248b99.webp",982,1388,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/f8dad051363786f2efd45eddeb679cca.webp",981,1387,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/54fa0b7d31dcea13cdbc5e0db97f9b7f.webp",980,1385,{"list":165,"token":66},[166,172,178,185,191,198,205,211,218,225],{"doc_id":167,"doc_title":168,"file_type":138,"home_preview_img_url":169,"slug":170,"view_count":105,"category_name":40,"create_tm":171},425926,"Addressing the Rare Word Problem in Neural Machine Translation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922652718/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796229779&Signature=wHJAgLfsqb0QbVa%2BdTg0Wn5lqKY%3D","addressing-the-rare-word-problem-in-neural-machine-translation",1790638793,{"doc_id":173,"doc_title":174,"file_type":138,"home_preview_img_url":175,"slug":176,"view_count":52,"category_name":40,"create_tm":177},417200,"Vocabulary Manipulation for Neural Machine Translation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922268257/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796229779&Signature=Pf59oHa31T9%2FdOrXu5inUcnZRJc%3D","vocabulary-manipulation-for-neural-machine-translation",1790608391,{"doc_id":179,"doc_title":180,"file_type":138,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":40,"create_tm":184},85718,"Gauge Dependence and Structured-Output Corruption in Sign-Branched Repetition Penalties: Measurements Across Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809345646/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796229779&Signature=LmDuTITSAYzoSER75WqnY3Sr%2Bm8%3D","gauge-dependence-and-structured-output-corruption-in-sign-branched-repetition-penalties-measurements-across-models",27,1784205774,{"doc_id":186,"doc_title":187,"file_type":138,"home_preview_img_url":188,"slug":189,"view_count":183,"category_name":40,"create_tm":190},81833,"Approximate Attention Weighting for Sustainable FPGA-Based Vision Transformer Inference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808686030/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796229779&Signature=%2BXops4OXFlpNXY9xQJxQaD29%2BCY%3D","approximate-attention-weighting-for-sustainable-fpga-based-vision-transformer-inference",1784176491,{"doc_id":192,"doc_title":193,"file_type":138,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":40,"create_tm":197},490459,"Urdu and Hindi: Translation and sharing of linguistic resources","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229927764369/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796229779&Signature=PiJXeC%2B%2B2McFWrDtjNXvBixJ%2Fck%3D","urdu-and-hindi-translation-and-sharing-of-linguistic-resources",13,1790837962,{"doc_id":199,"doc_title":200,"file_type":138,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":40,"create_tm":204},39525,"Accessing Engineering Global Information for Engineers Phase 2","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229792587803/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796229779&Signature=XwetC1fSzzdziZMXspkPCG5ZNbo%3D","accessing-engineering-global-information-for-engineers-phase-2",18,1783083822,{"doc_id":206,"doc_title":207,"file_type":138,"home_preview_img_url":208,"slug":209,"view_count":183,"category_name":40,"create_tm":210},84969,"Sparse Attention for Dense Open-Vocabulary Prediction in CLIP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809226623/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796229779&Signature=VtqUeRB0d9aMNqRFC4CyCeEdA44%3D","sparse-attention-for-dense-open-vocabulary-prediction-in-clip",1784199827,{"doc_id":212,"doc_title":213,"file_type":138,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":40,"create_tm":217},85756,"Learning Partition Trees for Nearest Neighbor Search","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809350890/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796229779&Signature=OX9ZeV%2F%2FskRm%2F1abY4jV39%2FqHaw%3D","learning-partition-trees-for-nearest-neighbor-search",25,1784206037,{"doc_id":219,"doc_title":220,"file_type":138,"home_preview_img_url":221,"slug":222,"view_count":223,"category_name":40,"create_tm":224},273852,"Scaling Unsupervised Word Alignment to Documents via Structural Constraints","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899558692/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796229779&Signature=sI0HBAo3JtIc%2BnM12qTjutg%2BnuE%3D","scaling-unsupervised-word-alignment-to-documents-via-structural-constraints",14,1789472988,{"doc_id":226,"doc_title":227,"file_type":138,"home_preview_img_url":228,"slug":229,"view_count":230,"category_name":40,"create_tm":231},489694,"Augmenting Statistical Machine Translation with Subword Translation of Out-of-Vocabulary Words - Abstract and Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229927057939/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796229779&Signature=jcFn%2FgOqOH2v95kJehPHL%2FTgCrI%3D","augmenting-statistical-machine-translation-with-subword-translation-of-out-of-vocabulary-words-abstract-and-introduction",11,1790826357]