Large language model (LLM)

  • AI basics
  • Standard term
6 steps

A large language model, or LLM, is an AI model trained on vast amounts of text to process and generate language. It powers tasks such as writing and answering questions in many assistant apps.

To generate a reply, the model estimates probabilities for the next token, a small piece of text, using the current request and text already generated. Training makes those estimates reflect patterns in its data; further training can improve how it follows instructions. A likely continuation can still contain an incorrect claim.

Where you’ll meet it

The AI app your company provides uses the same model as the assistant you use at home. Yet the work app can't search the web or open your files, even when you ask the same way.

What to do

Check which actions, such as web search and file reading, the work app allows before switching models. If file access is missing, the person managing the app may need to enable a connection or provide an upload option. The model's name alone doesn't tell you what the app can reach.

Easy to mix up

An AI assistant is the app: a model plus instructions, searches, and other features. The large language model is the trained model inside it, which reads what it receives and writes a response.

Check yourself

You stop an LLM halfway through an email and change its last sentence. You send that version back and ask it to finish. Which draft is the starting point for the new continuation?

Go deeperThe Transformer paper introduced a design used by many language models

Vaswani and colleagues introduced the Transformer in their 2017 paper, “Attention Is All You Need.” Its attention mechanism helps the model relate one part of the text to another as it processes the input. Many large language models use this design.

Google's Machine Learning Glossary describes “large” in terms of a model having many parameters: numbers adjusted during training that control the model's calculations. It also uses “foundation model” for a broader category trained on large, varied data, which can extend beyond language.

Sources

Practice Modern AI

Or take the learning quiz on a mix of every set