Cache language model explained

A cache language model is a type of statistical language model. These occur in the natural language processing subfield of computer science and assign probabilities to given sequences of words by means of a probability distribution. Statistical language models are key components of speech recognition systems and of many machine translation systems: they tell such systems which possible output word sequences are probable and which are improbable. The particular characteristic of a cache language model is that it contains a cache component and assigns relatively high probabilities to words or word sequences that occur elsewhere in a given text. The primary, but by no means sole, use of cache language models is in speech recognition systems.

To understand why it is a good idea for a statistical language model to contain a cache component one might consider someone who is dictating a letter about elephants to a speech recognition system. Standard (non-cache) N-gram language models will assign a very low probability to the word "elephant" because it is a very rare word in English. If the speech recognition system does not contain a cache component, the person dictating the letter may be annoyed: each time the word "elephant" is spoken another sequence of words with a higher probability according to the N-gram language model may be recognized (e.g., "tell a plan"). These erroneous sequences will have to be deleted manually and replaced in the text by "elephant" each time "elephant" is spoken. If the system has a cache language model, "elephant" will still probably be misrecognized the first time it is spoken and will have to be entered into the text manually; however, from this point on the system is aware that "elephant" is likely to occur again – the estimated probability of occurrence of "elephant" has been increased, making it more likely that if it is spoken it will be recognized correctly. Once "elephant" has occurred several times, the system is likely to recognize it correctly every time it is spoken until the letter has been completely dictated. This increase in the probability assigned to the occurrence of "elephant" is an example of a consequence of machine learning and more specifically of pattern recognition.

There exist variants of the cache language model in which not only single words but also multi-word sequences that have occurred previously are assigned higher probabilities (e.g., if "San Francisco" occurred near the beginning of the text subsequent instances of it would be assigned a higher probability).

The cache language model was first proposed in a paper published in 1990,[1] after which the IBM speech-recognition group experimented with the concept. The group found that implementation of a form of cache language model yielded a 24% drop in word-error rates once the first few hundred words of a document had been dictated.[2] A detailed survey of language modeling techniques concluded that the cache language model was one of the few new language modeling techniques that yielded improvements over the standard N-gram approach: "Our caching results show that caching is by far the most useful technique for perplexity reduction at small and medium training data sizes".[3]

The development of the cache language model has generated considerable interest among those concerned with computational linguistics in general and statistical natural language processing in particular: recently, there has been interest in applying the cache language model in the field of statistical machine translation.[4]

The success of the cache language model in improving word prediction rests on the human tendency to use words in a "bursty" fashion: when one is discussing a certain topic in a certain context, the frequency with which one uses certain words will be quite different from their frequencies when one is discussing other topics in other contexts. The traditional N-gram language models, which rely entirely on information from a very small number (four, three, or two) of words preceding the word to which a probability is to be assigned, do not adequately model this "burstiness".

Recently, the cache language model concept – originally conceived for the N-gram statistical language model paradigm – has been adapted for use in the neural paradigm. For instance, recent work on continuous cache language models in the recurrent neural network (RNN) setting has applied the cache concept to much larger contexts than before, yielding significant reductions in perplexity.[5] Another recent line of research involves incorporating a cache component in a feed-forward neural language model (FN-LM) to achieve rapid domain adaptation.[6]

See also

Further reading

Notes and References

  1. Kuhn . R. . De Mori . R. . Renato de Mori . A Cache-Based Natural Language Model for Speech Recognition . . June 1990 . 12 . 6 . 570–583 . 1939-3539 . 10.1109/34.56193 . 2011-09-24 . https://web.archive.org/web/20110901154408/http://visgraph.cs.ust.hk/biometrics/Papers/Voice/pami1990-06-01.pdf . 2011-09-01 . dead . (Abstract)
  2. A Dynamic Language Model for Speech Recognition . F. Jelinek. B. Merialdo. S. Roukos. M. Strauss. amp . The Journal of the Acoustical Society of America . 1991 . 98 . 2 . 293–295 . 10.3115/112405.112464 . 11601499 . https://web.archive.org/web/20060614121245/http://acl.ldc.upenn.edu/H/H91/H91-1057.pdf . June 14, 2006 . dead. Conference: Speech and Natural Language, Proceedings of a Workshop held at Pacific Grove, California, USA, February 19–22, 1999.
  3. Book: Joshua T. Goodman. 2001. A Bit of Progress in Language Modeling: Extended Version. Microsoft Research. Redmond, WA (US). Technical report MSR-TR-2001-72. cs/0108005v1 . 2001cs........8005G.
  4. Context Adaptation in Statistical Machine Translation Using Models with Exponentially Decaying Cache . Tiedemann, Jorg . Proceedings of the 2010 Workshop on Domain Adaptation for Natural Language Processing, ACL 2010 . 2010 . 8–15 . Uppsala, Sweden . Association for Computational Linguistics.
  5. Unbounded cache model for online language modeling with open vocabulary . Edouard Grave . Moustapha Cisse . Armand Joulin . NIPS'17 Proceedings of the 31st International Conference on Neural Information Processing Systems . 2017 . 6044–6054 . Long Beach, California . Association for Computing Machinery . 978-1-5108-6096-4.
  6. i-Vectors in Language Modeling: An Efficient Way of Domain Adaptation for Feed-Forward Models . Karel Benes. Santosh Kesiraju . Lukas Burget . 52192034 . Interspeech 2018 . 2018 . 3383–3387 . Hyderabad, India . Interspeech. 10.21437/Interspeech.2018-1070 .