A language model is a computational model that predicts sequences in natural language.[1][2] Language models are useful for a variety of tasks, including speech recognition,[3] machine translation,[4] natural language generation (generating more human-like text), optical character recognition, route optimization,[5] handwriting recognition,[6] grammar induction,[7] information retrieval[8][9] and disaster response.[10]
Large language models (LLMs), currently their most advanced form as of 2026, are predominantly based on transformers trained on larger datasets (frequently using texts scraped from the public internet). They have superseded recurrent neural network-based models, which had previously superseded the purely statistical models, such as the word n-gram language model.
History
Noam Chomsky did pioneering work on language models in the 1950s by developing a theory of formal grammars.[11]
In 1980, statistical approaches were explored and found to be more useful for many purposes than rule-based formal grammars. Discrete representations like word n-gram language models, with probabilities for discrete combinations of words, made significant advances.
In the 2000s, continuous representations for words, such as word embeddings, began to replace discrete representations.[12] Typically, the representation is a real-valued vector that encodes a word’s meaning such that words closer in vector space are similar in meaning and common relationships between words, such as plurality or gender, are preserved.
Pure statistical models
In 1980, the first significant statistical language model was proposed, and during the decade IBM performed 'Shannon-style' experiments, in which potential sources for language modeling improvement were identified by observing and analyzing the performance of human subjects in predicting or correcting text.[13]
Exponential
Maximum entropy language models encode the relationship between a word and the n-gram history using feature functions. The equation is
P(w_m \mid w_1,\ldots,w_{m-1}) = \frac{1}{Z(w_1,\ldots,w_{m-1})} \exp (a^T f(w_1,\ldots,w_m))
where Z(w_1,\ldots,w_{m-1}) is the partition function, a is the parameter vector, and f(w_1,\ldots,w_m) is the feature function. In the simplest case, the feature function is just an indicator of the presence of a certain n-gram. It is helpful to use a prior on a or some form of regularization.
The log-bilinear model is another example of an exponential language model.
Neural models
Recurrent neural network
Continuous representations or embeddings of words are produced in recurrent neural network-based language models (known also as continuous space language models).[14] Such continuous space embeddings help to alleviate the curse of dimensionality, which is the consequence of the number of possible sequences of words increasing exponentially with the size of the vocabulary, further causing a data sparsity problem. Neural networks avoid this problem by representing words as non-linear combinations of weights in a neural net.[15]
Large language models
Although sometimes matching human performance, it is not clear whether they are plausible cognitive models. At least for recurrent neural networks, it has been shown that they sometimes learn patterns that humans do not, but fail to learn patterns that humans typically do.[16]
Evaluation and benchmarks
Evaluation of the quality of language models is mostly done by comparison to human created sample benchmarks created from typical language-oriented tasks. Other, less established, quality tests examine the intrinsic character of a language model or compare two such models. Since language models are typically intended to be dynamic and to learn from data they see, some proposed models investigate the rate of learning, e.g., through inspection of learning curves.[17]
Various data sets have been developed for use in evaluating language processing systems.[18] These include:
- Massive Multitask Language Understanding (MMLU)[19]
- Corpus of Linguistic Acceptability[20]
- GLUE benchmark[21]
- Microsoft Research Paraphrase Corpus[22]
- Multi-Genre Natural Language Inference[23]
- Question Natural Language Inference
- Quora Question Pairs[24]
- Recognizing Textual Entailment[25]
- Semantic Textual Similarity Benchmark
- SQuAD question answering Test[26]
- Stanford Sentiment Treebank[27]
- Winograd NLI
- BoolQ, PIQA, SIQA, HellaSwag, WinoGrande, ARC, OpenBookQA, NaturalQuestions, TriviaQA, RACE, BIG-bench hard, GSM8k, RealToxicityPrompts, WinoGender, CrowS-Pairs[28]
See also
- Cache language model
- Deep linguistic processing
- Ethics of artificial intelligence
- Factored language model
- Generative pre-trained transformer
- Katz's back-off model
- Language technology
- Semantic similarity network
- Statistical model
References
- ^ Blank, Idan A. (November 2023). "What are large language models supposed to model?". Trends in Cognitive Sciences. 27 (11): 987–989. doi:10.1016/j.tics.2023.08.006. PMID 37659920"LLMs are supposed to model how utterances behave."
- ^ Jurafsky, Dan & Martin, James H. (2021). "N-gram Language Models". Speech and Language Processing. 3rd ed. Archived 22 May 2022 at the Wayback Machine. Retrieved 24 May 2022.
- ^ Kuhn, Roland, and Renato De Mori (1990). "A cache-based natural language model for speech recognition". IEEE transactions on pattern analysis and machine intelligence 12.6: 570–583.
- ^ Andreas, Jacob, Andreas Vlachos, and Stephen Clark (2013). "Semantic parsing as machine translation" Archived 15 August 2020 at the Wayback Machine. Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers).
- ^ Liu, Yang; Wu, Fanyou; Liu, Zhiyuan; Wang, Kai; Wang, Feiyue; Qu, Xiaobo (2023). "Can language models be used for real-world urban-delivery route optimization?". The Innovation. 4 (6). Bibcode:2023Innov...400520L. doi:10.1016/j.xinn.2023.100520. PMC 10587631. PMID 37869471
- ^ Pham, Vu, et al (2014). "Dropout improves recurrent neural networks for handwriting recognition" Archived 11 November 2020 at the Wayback Machine. 14th International Conference on Frontiers in Handwriting Recognition. IEEE.
- ^ Htut, Phu Mon, Kyunghyun Cho, and Samuel R. Bowman (2018). "Grammar induction with neural language models: An unusual replication" Archived 14 August 2022 at the Wayback Machine. arXiv:1808.10000.
- ^ Ponte, Jay M. & Croft, W. Bruce (1998). A language modeling approach to information retrieval. Proceedings of the 21st ACM SIGIR Conference. Melbourne, Australia: ACM. pp. 275–281. doi:10.1145/290941.291008
- ^ Hiemstra, Djoerd (1998). A linguistically motivated probabilistically model of information retrieval. Proceedings of the 2nd European conference on Research and Advanced Technology for Digital Libraries. LNCS, Springer. pp. 569–584. doi:10.1007/3-540-49653-X_34
- ^ Maity, Abhishek (March 2026). "CrisisSense: Transforming Social Signals into Real-Time Disaster Awareness via Deep Neural Intelligence". 2026 IEEE Madhya Pradesh Section Conference (MPCON). doi:10.1109/MPCON69668.2026.11508516
- ^ Chomsky, N. (September 1956). "Three models for the description of language". IRE Transactions on Information Theory. 2 (3): 113–124. Bibcode:1956IRTIT...2..113C. doi:10.1109/TIT.1956.1056813. ISSN 2168-2712
- ^ "The Nature Of Life, The Nature Of Thinking: Looking Back On Eugene Charniak's Work And Life". 2022-02-22. Archived 3 November 2024 at the Wayback Machine. Retrieved 2025-02-05.
- ^ Rosenfeld, Ronald (2000). "Two decades of statistical language modeling: Where do we go from here?". Proceedings of the IEEE. 88 (8): 1270–1278. Bibcode:2000IEEEP..88.1270R. doi:10.1109/5.880083. S2CID 10959945
- ^ Karpathy, Andrej. "The Unreasonable Effectiveness of Recurrent Neural Networks". Archived 1 November 2020 at the Wayback Machine. Retrieved 27 January 2019.
- ^ Bengio, Yoshua (2008). "Neural net language models". Scholarpedia. Vol. 3, no. 1. p. 3881. Bibcode:2008SchpJ...3.3881B. doi:10.4249/scholarpedia.3881. Archived 26 October 2020 at the Wayback Machine. Retrieved 28 August 2015.
- ^ Hornstein, Norbert; Lasnik, Howard; Patel-Grosz, Pritty; Yang, Charles (2018-01-09). Syntactic Structures after 60 Years: The Impact of the Chomskyan Revolution in Linguistics. Walter de Gruyter GmbH & Co KG. ISBN 978-1-5015-0692-5. Archived 16 April 2023 at the Wayback Machine. Retrieved 11 December 2021.
- ^ Karlgren, Jussi & Schutze, Hinrich (2015), "Evaluating Learning Language Representations", International Conference of the Cross-Language Evaluation Forum, Lecture Notes in Computer Science, Springer International Publishing, pp. 254–260, doi:10.1007/978-3-319-64206-2_8. ISBN 978-3-319-64205-5
- ^ Devlin, Jacob; Chang, Ming-Wei; Lee, Kenton; Toutanova, Kristina (2018-10-10). "BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding". arXiv:1810.04805
- ^ Hendrycks, Dan (2023-03-14), "Measuring Massive Multitask Language Understanding", archived 15 March 2023 at the Wayback Machine, retrieved 2023-03-15
- ^ "The Corpus of Linguistic Acceptability (CoLA)". nyu-mll.github.io. Archived 7 December 2020 at the Wayback Machine. Retrieved 2019-02-25.
- ^ "GLUE Benchmark". gluebenchmark.com. Archived 4 November 2020 at the Wayback Machine. Retrieved 2019-02-25.
- ^ "Microsoft Research Paraphrase Corpus". Microsoft Download Center. Archived 25 October 2020 at the Wayback Machine. Retrieved 2019-02-25.
- ^ "MultiNLI". cims.nyu.edu. Retrieved 2026-05-09.
- ^ Aghaebrahimian, Ahmad (2017), "Quora Question Answer Dataset", Text, Speech, and Dialogue, Vol. 10415, Lecture Notes in Computer Science, Springer International Publishing, pp. 66–73, doi:10.1007/978-3-319-64206-2_8. ISBN 978-3-319-64205-5
- ^ Sammons, V.G.Vinod Vydiswaran, Dan Roth, Mark; Vydiswaran, V.G.; Roth, Dan. "Recognizing Textual Entailment". Archived 9 August 2017 at the Wayback Machine. Retrieved February 24, 2019.
- ^ "The Stanford Question Answering Dataset". rajpurkar.github.io. Archived 30 October 2020 at the Wayback Machine. Retrieved 2019-02-25.
- ^ "Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank". nlp.stanford.edu. Archived 27 October 2020 at the Wayback Machine. Retrieved 2019-02-25.
- ^ "llama/MODEL_CARD.md at main · meta-llama/llama". GitHub. Retrieved 2024-12-28.
Further reading
- Jay M. Ponte & W. Bruce Croft (1998). A Language Modeling Approach to Information Retrieval. Research and Development in Information Retrieval. pp. 275–281. CiteSeerX 10.1.1.117.4237. doi:10.1145/290941.291008
- Fei Song & W. Bruce Croft (1999). A General Language Model for Information Retrieval. Research and Development in Information Retrieval. pp. 279–280. CiteSeerX 10.1.1.21.6467. doi:10.1145/319950.320022
- Chen, Stanley F. & Joshua Goodman (1998). An Empirical Study of Smoothing Techniques for Language Modeling. Harvard University. CiteSeerX 10.1.1.131.5458