{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,2,12]],"date-time":"2026-02-12T13:36:53Z","timestamp":1770903413349,"version":"3.50.1"},"reference-count":56,"publisher":"Association for Computing Machinery (ACM)","issue":"2","license":[{"start":{"date-parts":[[2019,2,11]],"date-time":"2019-02-11T00:00:00Z","timestamp":1549843200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"name":"European Union's Horizon 2020 research and innovation program under the Information and Communication Technologies program"},{"name":"PEGASO project","award":["POR FSE 2014-2020"],"award-info":[{"award-number":["POR FSE 2014-2020"]}]},{"name":"BIGDATAGRAPES project","award":["780751"],"award-info":[{"award-number":["780751"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Inf. Syst."],"published-print":{"date-parts":[[2019,4,30]]},"abstract":"<jats:p>\n            Two fundamental problems concern the handling of large\n            <jats:italic>n<\/jats:italic>\n            -gram language models:\n            <jats:italic>indexing<\/jats:italic>\n            , that is, compressing the\n            <jats:italic>n<\/jats:italic>\n            -grams and associated satellite values without compromising their retrieval speed, and\n            <jats:italic>estimation<\/jats:italic>\n            , that is, computing the probability distribution of the\n            <jats:italic>n<\/jats:italic>\n            -grams extracted from a large textual source.\n          <\/jats:p>\n          <jats:p>\n            Performing these two tasks\n            <jats:italic>efficiently<\/jats:italic>\n            is vital for several applications in the fields of Information Retrieval, Natural Language Processing, and Machine Learning, such as auto-completion in search engines and machine translation.\n          <\/jats:p>\n          <jats:p>\n            Regarding the problem of indexing, we describe compressed, exact, and lossless data structures that simultaneously achieve high space reductions and no time degradation with respect to the state-of-the-art solutions and related software packages. In particular, we present a compressed trie data structure in which each word of an\n            <jats:italic>n<\/jats:italic>\n            -gram following a\n            <jats:italic>context<\/jats:italic>\n            of fixed length\n            <jats:italic>k<\/jats:italic>\n            , that is, its preceding\n            <jats:italic>k<\/jats:italic>\n            words, is encoded as an integer whose value is proportional to the number of words that follow such context. Since the number of words following a given context is typically very small in natural languages, we lower the space of representation to compression levels that were never achieved before, allowing the indexing of billions of strings. Despite the significant savings in space, our technique introduces a negligible penalty at query time.\n          <\/jats:p>\n          <jats:p>Specifically, the most space-efficient competitors in the literature, which are both quantized and lossy, do not take less than our trie data structure and are up to 5 times slower. Conversely, our trie is as fast as the fastest competitor but also retains an advantage of up to 65% in absolute space.<\/jats:p>\n          <jats:p>\n            Regarding the problem of estimation, we present a novel algorithm for estimating\n            <jats:italic>modified Kneser-Ney<\/jats:italic>\n            language models that have emerged as the de-facto choice for language modeling in both academia and industry thanks to their relatively low perplexity performance. Estimating such models from large textual sources poses the challenge of devising algorithms that make a parsimonious use of the disk.\n          <\/jats:p>\n          <jats:p>\n            The state-of-the-art algorithm uses three sorting steps in external memory: we show an improved construction that requires only one sorting step by exploiting the properties of the extracted\n            <jats:italic>n<\/jats:italic>\n            -gram strings. With an extensive experimental analysis performed on billions of\n            <jats:italic>n<\/jats:italic>\n            -grams, we show an average improvement of 4.5 times on the total runtime of the previous approach.\n          <\/jats:p>","DOI":"10.1145\/3302913","type":"journal-article","created":{"date-parts":[[2019,2,11]],"date-time":"2019-02-11T13:11:45Z","timestamp":1549890705000},"page":"1-41","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":20,"title":["Handling Massive\n            <i>N<\/i>\n            -Gram Datasets Efficiently"],"prefix":"10.1145","volume":"37","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-0724-7092","authenticated-orcid":false,"given":"Giulio Ermanno","family":"Pibiri","sequence":"first","affiliation":[{"name":"University of Pisa and ISTI-CNR, Pisa, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Rossano","family":"Venturini","sequence":"additional","affiliation":[{"name":"University of Pisa and ISTI-CNR, Pisa, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2019,2,11]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"version 2.0. Retrieved","year":"2019"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/1963405.1963424"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1109\/DCC.2014.48"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/362686.362692"},{"key":"e_1_2_1_5_1","volume-title":"International Conference Empirical Methods on Natural Language Processing (EMNLP\u201907)","author":"Brants Thorsten","year":"2007"},{"key":"e_1_2_1_6_1","volume-title":"Technical Report LDC2006T13","author":"Brantz Thorsten","year":"2006"},{"key":"e_1_2_1_7_1","doi-asserted-by":"crossref","unstructured":"Ciprian Chelba Tomas Mikolov Mike Schuster Qi Ge Thorsten Brants Phillipp Koehn and Tony Robinson. 2014. One billion word benchmark for measuring progress in statistical language modeling. In INTERSPEECH. 2635--2639.  Ciprian Chelba Tomas Mikolov Mike Schuster Qi Ge Thorsten Brants Phillipp Koehn and Tony Robinson. 2014. One billion word benchmark for measuring progress in statistical language modeling. In INTERSPEECH. 2635--2639.","DOI":"10.21437\/Interspeech.2014-564"},{"key":"e_1_2_1_8_1","doi-asserted-by":"crossref","unstructured":"Ciprian Chelba and Johan Schalkwyk. 2013. Empirical exploration of language modeling for the google.com query stream as applied to mobile voice search. In Mobile Speech and Advanced Natural Language Solutions A. Neustein and J. A. Markowitz (eds.). Springer. 197--229.  Ciprian Chelba and Johan Schalkwyk. 2013. Empirical exploration of language modeling for the google.com query stream as applied to mobile voice search. In Mobile Speech and Advanced Natural Language Solutions A. Neustein and J. A. Markowitz (eds.). Springer. 197--229.","DOI":"10.1007\/978-1-4614-6018-3_8"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.3115\/981863.981904"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1006\/csla.1999.0128"},{"key":"e_1_2_1_11_1","doi-asserted-by":"crossref","unstructured":"Wenlin Chen David Grangier and Michael Auli. 2015. Strategies for training large vocabulary neural language models. In Preprint arXiv:1512.04906.  Wenlin Chen David Grangier and Michael Auli. 2015. Strategies for training large vocabulary neural language models. In Preprint arXiv:1512.04906.","DOI":"10.18653\/v1\/P16-1186"},{"key":"e_1_2_1_12_1","volume-title":"Symposium on Discrete Algorithms (SODA\u201996)","author":"Clark David R."},{"key":"e_1_2_1_13_1","volume-title":"Introduction to Algorithms","author":"Cormen Thomas H.","edition":"3"},{"key":"e_1_2_1_14_1","volume-title":"Search Engines: Information Retrieval in Practice","author":"Croft Bruce","year":"2009","edition":"1"},{"key":"e_1_2_1_15_1","volume-title":"Symposium on Discrete Algorithms (SODA\u201904)","author":"Demaine Erik D.","year":"2004"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.5555\/1361730.1361733"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/321812.321820"},{"key":"e_1_2_1_18_1","volume-title":"Memorandum 61","author":"Fano Robert Mario"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.5555\/1654650.1654664"},{"key":"e_1_2_1_20_1","volume-title":"IRSTLM: An open source toolkit for handling large scale language models. In INTERSPEECH. 1618--1621.","author":"Federico Marcello","year":"2008"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/367390.367400"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.5555\/1768570.1768592"},{"key":"e_1_2_1_23_1","volume-title":"Workshop on Statistical Machine Translation (WMT\u201911)","author":"Heafield Kenneth","year":"2011"},{"key":"e_1_2_1_24_1","volume-title":"Scalable modified Kneser-Ney language model estimation","author":"Heafield Kenneth"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/506309.506312"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/1935826.1935857"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1109\/SFCS.1989.63533"},{"key":"e_1_2_1_28_1","volume-title":"Martin","author":"Jurafsky Dan","year":"2014"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICASSP.1995.479394"},{"key":"e_1_2_1_30_1","volume-title":"Europarl: A parallel corpus for statistical machine translation","author":"Koehn Philipp","year":"2005"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1007\/11575832_13"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/146370.146380"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1109\/2.7056"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/2806416.2806599"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/2600428.2609508"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1023\/A:1013002601898"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/321479.321481"},{"key":"e_1_2_1_38_1","unstructured":"Gonzalo Navarro Ricardo A. Baeza-Yates Erkki Sutinen and Jorma Tarhio. 2001. Indexing methods for approximate string matching. Bulletin of the IEEE Computer Society Technical Committee on Data Engineering. 19--27.  Gonzalo Navarro Ricardo A. Baeza-Yates Erkki Sutinen and Jorma Tarhio. 2001. Indexing methods for approximate string matching. Bulletin of the IEEE Computer Society Technical Committee on Data Engineering. 19--27."},{"key":"e_1_2_1_39_1","volume-title":"MSRLM: A scalable language modeling toolkit. In Microsoft Research MSR-TR-2007-144.","author":"Nguyen Patrick","year":"2007"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/2600428.2609615"},{"key":"e_1_2_1_41_1","volume-title":"Faster and smaller N-gram language models","author":"Pauls Adam"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/3077136.3080798"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-63962-8_52-1"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICASSP.2003.1198799"},{"key":"e_1_2_1_45_1","doi-asserted-by":"crossref","volume-title":"Variable-length Codes for Data Compression","author":"Salomon David","DOI":"10.1007\/978-1-84628-959-0"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/1390334.1390432"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.18653\/v1\/D15-1288"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1162\/tacl_a_00112"},{"key":"e_1_2_1_49_1","volume-title":"International Conference on Spoken Language Processing (ICSLP\u201902)","author":"Stolcke Andreas","year":"2002"},{"key":"e_1_2_1_50_1","volume-title":"Randomised language modelling for statistical machine translation","author":"Talbot David"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1016\/0020-0271(72)90024-1"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/2433396.2433409"},{"key":"e_1_2_1_53_1","doi-asserted-by":"publisher","DOI":"10.1145\/275487.275501"},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.5555\/1667583.1667689"},{"key":"e_1_2_1_55_1","volume-title":"Bell","author":"Witten Ian H.","year":"1999"},{"key":"e_1_2_1_56_1","volume-title":"International Conference on Natural Language Processing (NLP\u201911)","author":"Yata Susumu","year":"2011"}],"container-title":["ACM Transactions on Information Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3302913","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3302913","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T23:53:56Z","timestamp":1750204436000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3302913"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2019,2,11]]},"references-count":56,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2019,4,30]]}},"alternative-id":["10.1145\/3302913"],"URL":"https:\/\/doi.org\/10.1145\/3302913","relation":{},"ISSN":["1046-8188","1558-2868"],"issn-type":[{"value":"1046-8188","type":"print"},{"value":"1558-2868","type":"electronic"}],"subject":[],"published":{"date-parts":[[2019,2,11]]},"assertion":[{"value":"2018-06-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2018-12-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2019-02-11","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}