Definition · AI basics
Language model
A language model is a probability distribution over sequences of words and other symbols, learned from text, that lets software predict the next token in a sequence. A large language model is the same idea scaled up — a deep neural network with a very large number of parameters trained on a very large corpus.
Last reviewed
Key points
- A language model is a probability distribution over sequences of tokens — words, word parts, punctuation — learned from text, which lets software predict the next token in a sequence.
- The same underlying idea powers speech recognition, translation, autocomplete and chatbots, because each uses the model's probability of what comes next.
- A large language model is the same idea scaled up: a deep neural network with billions of parameters trained on huge amounts of text, which is what runs a modern chatbot.
- The model is a next-token predictor, not an exact record. Its output is generated one token at a time from the probabilities it learned.
A language model predicts what comes next in a sequence of words. Most of modern text technology is built on that single ability.
How it works
A language model learns a probability for every next token — word, word part or punctuation symbol — given the tokens that came before it. Mitchell, writing for the MIT Open Encyclopedia of Cognitive Science, calls it a probability distribution over possible sequences of words, used to predict unseen tokens.
Modern large language models are the same idea scaled up. The Transformer, introduced in the 2017 paper “Attention Is All You Need,” set the architecture now used widely: it replaces recurrence and convolution with attention, and the paper reports better translation quality with less training time.
Why it matters
Language models sit underneath speech recognition, translation, autocomplete and chatbots. For each, the model is doing the same thing — choosing the most likely next token — while the application around it decides what to do with the text.
The same design explains the failures. Because the model only knows how words usually go together, it can state a falsehood confidently, and because it treats every instruction as equal text, it is vulnerable to prompt injection.
Text is not always what the software around the model wants. When a program only needs a small decision, it has to parse that decision back out of the text. TypeSafe AI coined the term System One model in September 2026 for its class of models that skip the text and return a typed answer, such as a choice or a probability, that a program can act on directly.
Questions and answers
Is a language model the same as a chatbot?
No. A chatbot is an application built on a language model. The model generates text; the chatbot adds the interface, the conversation history and the rules for who can say what. The same model can power many different chatbots.
Does a language model know facts?
Only incidentally. A language model has learned how words are usually arranged across the text it was trained on, so it can state things that look true because that is how those sentences usually go. It does not hold a reliable store of facts, which is why language models can confidently state something false.
What is the difference between a language model and a large language model?
Scale, in parameters and training data. A language model is the general idea of a probability distribution over sequences. A large language model is that idea implemented as a deep neural network with a very large number of parameters trained on a very large corpus, and it is what runs a modern chatbot.
Sources
- Large Language ModelsMIT Open Encyclopedia of Cognitive Science, 24 Jul 2024
- Attention Is All You NeedarXiv (Vaswani et al.), 12 Jun 2017
Guides that use this term
Related topics
In the news
- Audit finds 22.4% of 49 coding tasks accept an incorrect patch
- Google adds a check that stops an AI agent tool call before it starts
- Decision models took 1 in 4 Vercel router requests in October
- New turn in Fireworks AI breach as Uber confirms 149,346 victims
- Cloudflare calls itself a neolab after it launched two small models
- A frozen guardrail check went from 1.01% to 15.12% incorrect alarms
- A paper shows a reply time of 150 milliseconds for Jev
- The FBI warns that criminals use the ARTEX AI tool in attacks
- Amazon says stolen AI keys let ARTEX attack agents work for free
- The FBI tells that the Artex AI tool speeds up attacks
- LLM 0.37.2 repairs two conditions that send an OpenAI key in error
- New Citrus ransomware group gets in through contractors and uses LLMs
- Failure labels for AI reasoning change with the sequence of the tests
- Test of 17 AI moderators finds no model strong on all five trust axes
- AI agents make new attacks that get 100% on a strong model
- Prompt injection guards give incorrect alarms on 92% of some contracts
- Salesforce adds a model that gives an answer in 26 milliseconds
- More shared data cut market gains for some AI models, not all
- Check Point finds 1,608 live ARTEX AI hacking tools on the internet
- Google releases XLA Serving Engine, a C++ runtime for AI models
- Stanford finds 44 percent of 50 AI model claims are not correct
- A small test model caught a Transformers bug that stayed 2 months
- A small text model aligns more with image AI than a 72B model
- A China-linked group used AI agents on more than 200 organizations
- Kindo releases Deep Hat Sift to cut calls to a large AI model
- Google tests a sleep phase that lets a language model keep new facts
- Study finds AI answer errors cluster in a few fact hotspots
- A science agent harness makes GPT models less safe in tests
- A 2015 network beat two top AI models on skin lesions, 62% to 42%
- Six LLMs check primary answer claims less correctly than side claims
- Debate helps human judges but not weak AI model judges
- Cohere makes Rerank 5 models that cut the text an LLM must read
- Microsoft releases Scope, an open source test tool for coding agents
- Harm training of a reward model in one domain goes to 7 more
- Bright Security starts an AI fuzzer that found bugs in 45% of projects
- About 80 WhatsApp pages showed Meta chatbot instructions by error
- One hacker used AI agents to attack many sites, an indictment states
- INFUSE tests 19 language models on 56 prompt injection attacks
- CATCH training lowers dishonesty in 2 language models
- HiddenLayer says the Jev model is open to attacks that LLMs stop
- A study shows that accuracy is not a good test for AI agent teams
- Researchers jailbreak language models with a moral reframing attack
- A food safety test shows a mean attack success rate of 25.51% in 12 LLMs
- Training one trait in a language model can change other traits
- Memory poisoning works at 5 interfaces in a test of 6 LLMs
- SwaT sends KV-cache data between LLMs of different families
- The ATTCK-R method outperforms other jailbreak attacks on 9 LLMs
- Meta, MIT and UW researchers make a model that rewrites its context
- Epoch AI finds that 2 AI agents report results that are too high
- A hacker used ARTEX AI and Claude agents to attack Korean banks
- Researchers test 322 no-code bug fixes that an LLM wrote
- Models give no report of their errors in 67.1% of AI agent tests
- The LLM-IDEA agent tells when more experiments cannot help