# Causal Language Model

- **Canonical URL:** https://getaimath.com/dictionary/causal-language-model/
- **Topics:** [LLM Fundamentals](https://getaimath.com/dictionary/category/llm-fundamentals/)
- **Last updated:** 2026-11-25

## What is Causal Language Model?

**In one sentence:** A causal language model predicts the next word using only the words that came before it, never the ones after.

"Causal" means the past can affect the future, but not the other way around. The model is blocked from peeking ahead, like reading a story without skipping to the end. This makes it natural for writing text from left to right.

![How ChatGPT & Claude Talk: Super-Powered Autocomplete — Simple cartoon diagram showing a sentence chopped into Lego word blocks (tokens), an AI brain weighing the odds of the next word ("mat" 75%, "couch" 18%, "roof" 5%), and snapping "mat" onto the end of the sentence.](https://getaimath.com/diagrams/llm-fundamentals.png)
*Napkin Diagram (LLM Fundamentals): Language models don’t plan whole essays at once—they play a super-smart game of "guess the very next word" over and over.*

## What is an example of Causal Language Model?

GPT, Claude and Llama are causal language models.

## Why does Causal Language Model matter?

Causal models are the standard choice for chatbots and text generation.

## Related Concepts

- [Autoregressive Model](https://getaimath.com/dictionary/autoregressive-model/): An autoregressive model creates output one piece at a time, using everything it has created so far to choose the next piece.
- [Masked Language Model](https://getaimath.com/dictionary/masked-language-model/): A masked language model learns by filling in blanks: some words in a sentence are hidden and the model guesses them using words on both sides.
- [Encoder-Decoder Architecture](https://getaimath.com/dictionary/encoder-decoder-architecture/): An encoder-decoder architecture is a model design with two parts: one that reads and understands the input, and one that writes the output.
- [Next Token Prediction](https://getaimath.com/dictionary/next-token-prediction/): Next token prediction is the simple training game behind LLMs: look at some text and guess which token comes next.
- [Decoder](https://getaimath.com/dictionary/decoder/): A decoder is the part of a model that produces output, one piece at a time, such as writing a sentence word by word.
- [Token](https://getaimath.com/dictionary/token/): A token is a small chunk of text, like a word or part of a word, that a language model reads and writes.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/causal-language-model/)
