Skip to content

Causal Language Model

A model that predicts the next token based only on previous tokens — from left to right. This is how GPT-like models and most modern LLM work.

Why 'causal'

The term 'causal' emphasizes the main limitation: a token can depend on the past but not the future. During generation, the model does not 'peek' ahead.

What differs from masked LM

Causal LM Masked LM
Looks at Only the past Both directions
Task Text generation Text understanding
Example GPT BERT

See also

← All terms