Skip to content

What is a language model? Probabilities and prediction

A language model estimates the probability of sequences of words or tokens in a language. Trained on large corpora, it predicts the next element and can complete, classify, or generate text. Modern architectures often use transformers (Vaswani et al., 2017). It is not a guaranteed knowledge base—it is a statistical model of language.

In one sentence

A language model predicts the most likely continuation of text.

Key points

  • It learns token distributions, not certified facts.
  • Small specialized models vs large general models (LLMs).
  • Uses: completion, classification, translation, assisted generation.
  • Evaluation and risks (bias, errors) must be managed (NIST AI RMF).

Term at a glance

Language model
LM · Statistical language model
English term
Language model
Domain
Artificial intelligence
Category
NLP / ML
Level
Intermediate

What does “language model” mean exactly?

Historically n-grams and RNNs; today attention and transformers dominate. “Attention Is All You Need” paved the way for massive models.

An LM can be trained for a task (sentiment) or self-supervised then adapted. Size and data drive capability and cost.

For an SME, “using a language model” often means calling an API or open-weights model—with a business layer (prompts, RAG, validation) around it.

How do you use a language model in practice?

  1. 01

    Define the task

    Classification, extraction, generation, summary—clear metric.

  2. 02

    Choose scale

    Small local model vs LLM API by sensitivity and volume.

  3. 03

    Ground and constrain

    RAG, JSON schemas, refusal lists.

  4. 04

    Evaluate

    Business test sets, human review, drift monitoring.

A concrete language-model example

A Montreal accounting firm uses a model to classify client emails (urgent / invoice / general) before routing. The model never decides a tax amount—a human validates. Precision on 500 historical messages sets the automation threshold.

What are language models used for?

Understand text

Intents, sentiment, topics.

Draft generation

Emails, summaries, rewrites.

Extraction

Structured fields from documents.

Semantic search

With embeddings derived from the model.

Benefits and limits of language models

  • Flexibility on natural language
  • Faster document processing
  • Transfer learning to related tasks
  • Mature APIs and ecosystem
  • Possible factual errors
  • Bias from training data
  • Compute / token cost
  • Needs supervision on critical cases

How does a language model differ from an LLM?

Language modelLarge language model (LLM)
ScaleCan be small / specializedVery large, general-purpose
Few-shot abilityVariable / limitedOften strong without fine-tuning
CostOften lowerHigher (API or GPUs)
ControlSometimes easier to boundPowerful but harder to master

Why language models matter for Quebec SMEs

They speed text processing (support, documents, marketing) when framed well. ROI comes from minutes saved and errors avoided—not the generative demo.

Frequently asked questions

Does a language model “understand”?

It models statistical patterns; human-like “understanding” is a useful but misleading metaphor.

Must we train our own?

Rarely at first. Prompting, RAG, or light fine-tuning often suffice.

Can it replace a database?

No. For business facts, use verifiable sources (RAG, APIs).

Quebec French?

Test on local phrasings; add glossary and examples in the prompt or RAG base.

Related terms

Sources and references

Want to automate text without losing business control? We pick model scale and guardrails that fit.

Frame your LM use
Glossary