Fast, Small and Exact: Infinite-order Language Modelling with Compressed Suffix Trees

Ehsan Shareghi, Matthias Petri, Gholamreza Haffari, Trevor Cohn
8/16/2016
32 citations
cs.CL

Official code: eehsan/cstlm (2 stars, C++, last commit 2018-11-22).

Abstract

Efficient methods for storing and querying are critical for scaling high-order n-gram language models to large corpora. We propose a language model based on compressed suffix trees, a representation that is highly compact and can be easily held in memory, while supporting queries needed in computing language model probabilities on-the-fly.

Show full abstract

We present several optimisations which improve query runtimes up to 2500x, despite only incurring a modest increase in construction time and memory usage. For large corpora and high Markov orders, our method is highly competitive with the state-of-the-art KenLM package. It imposes much lower memory requirements, often by orders of magnitude, and has runtimes that are either similar (for training) or comparable (for querying).

View on arXivView PDF

Code Implementations(1)

eehsan/cstlmOfficial100%

CST based language model

24C++, PerlJun 27, 20168 years ago
compressed-suffix-treeslanguage-modelmachine-translationnatural-language-processing

Similar Papers

Cite this paper

@article{shareghi2016fast,
  title  = {Fast, Small and Exact: Infinite-order Language Modelling with Compressed Suffix Trees},
  author = {Ehsan Shareghi and Matthias Petri and Gholamreza Haffari and Trevor Cohn},
  year   = {2016},
  eprint = {1608.04465},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1608.04465}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1608.04465.svg)](https://codeofpaper.com/paper/1608.04465)

Discussion