AI GLOSSARY · AI CONCEPTS

Language model

Markdown version · Wikidata Q3621696

Definition

A language model estimates probabilities or scores for linguistic units and sequences. Autoregressive models predict a next token from preceding context; masked models estimate hidden tokens using surrounding context. A large language model is a scaled-up member of this category.

Also called: language models, language modeling, language modelling, statistical language model, LM.

In plain language

One common kind of language model estimates which token could come next. Other models estimate hidden tokens from surrounding text. Given the start of a sentence, such as 'The water of Walden Pond is so beautifully', it scores possible next words: 'blue' or 'clear' rate far higher than 'refrigerator'. Speech recognition (per Wikipedia) and spelling correction (per Stanford's chapter 3) use this idea, and so do chat assistants. The limit is that the score reflects patterns in the text it learned from. A likely-sounding word is not a checked fact, so a fluent answer can still be wrong.

Technical definition

Language-modeling approaches include count-based n-gram models and neural models. Autoregressive models estimate a token conditional on earlier context, which can define sequence probabilities by chaining conditionals. Masked language models estimate hidden tokens from surrounding input and do not share the same left-to-right objective. NLTK also exposes unnormalized backoff scorers, so check whether a particular implementation returns normalized probabilities or other scores. Architecture, scale and instruction following are separate properties.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Guide · Illustrative, not executed

    What Is an LLM? The Facts Agent Users Need

    What you see
    A guide distinguishing model behavior from the application, with an autoregressive Transformer decoder example, a contrasting BERT masked objective, and runtime context versus learned parameters.
    Why it exercises the concept
    It covers the large-scale neural version of a language model, as it behaves in an agent session. This entry is the broader term.
  2. Skill by Skill Almanac · Illustrative, not executed

    context-window-packer 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Chooses which files fit one prompt's token budget and records what was kept, shrunk or dropped.
    Why it exercises the concept
    A language model reads its input as tokens within a limit. The skill works on that budget; it does not train or evaluate a language model.
  3. Skill by Skill Almanac · Illustrative, not executed

    local-model-sizing 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Works out whether an open-weight language model will run on a given GPU, Mac or PC, with a script.
    Why it exercises the concept
    It is a practical step that involves picking a language model to run yourself. It estimates fit, not quality.
  4. Skill by Skill Almanac · Illustrative, not executed

    llm-eval-test-sets 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Builds and validates an eval dataset for any LLM feature, with a checker for duplicates and missing grades.
    Why it exercises the concept
    Checking a language model's output needs test cases. The skill prepares those; it does not itself measure how well a model predicts words.

How it shows up when you use agents

Agent sessions run on a language model. The application, not the model, decides what to send and which tools to offer. This page is about the general idea; the large language model page covers the large neural kind that most agents use.

For an autoregressive model, the scoring task concerns possible next tokens; masked models use surrounding context instead. Stanford's n-gram chapter introduces next-word sequence modeling. A fluent reply has not thereby been checked against your repository or a source. When an agent states that a function exists, run the code or open the file.

Language models also exist at small scale and in older forms. An n-gram model counts word sequences; a neural model learns parameters. Text is split into tokens first, and tokens are what limits and costs are counted in. If you are choosing which model to run, the local-model-sizing skill estimates whether it fits your hardware, but fit says nothing about how well it answers.

Common confusions

  • Language model versus large language model. A large language model is one kind of language model. The Stanford chapter introduces the simplest kind, the n-gram model, as a way to teach ideas that carry over to larger ones.
  • Language model versus chatbot. A chatbot is an application that may use a language model. The model scores words; the application adds the conversation, tools and memory.
  • Next-word prediction versus understanding. Next-token prediction is an autoregressive training objective, not the only language-modeling objective. Whether the result amounts to understanding is a separate question this entry does not settle.
  • Causal versus masked. Hugging Face describes both: causal models predict the next token from the left only, and masked models fill in hidden tokens. They are different setups for training.

Terms that mention Language model

204 terms mention this one

Guides that mention Language model

More in AI concepts

Next steps

  1. What Is an LLM? The Facts Agent Users Need The long-form guide.
  2. context-window-packer A skill that exercises it.
  3. Large language model (LLM) Related term.
  4. Token Related term.
  5. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft); OpenAI Codex (bounded factual repairs); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .

Change log (7)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : First version.
  • : Verifier pass: attributed the plain-text uses, added the masked language modeling source, softened an absolute and dropped an unsourced tool sentence.
  • : Targeted correction from source-supported early audit; complete exact-version review remains pending.
  • : Volume1900 exists in a derived cache, but its query-level raw receipt was not located in this review. Stored as unknown pending provenance; not evidence of zero demand.
  • : Bounded source repairs: Matched current LLM guide to its Transformer/BERT objective and runtime-context examples; removed stale universal decoding/API framing. Pending independent re-review.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.