Explained · 2 min

What is a large language model (LLM)?

The kind of AI model behind ChatGPT, Claude and Gemini: how it learns from text, what it does well, and where it goes wrong.

Written by AI and checked against our editorial standards. Not reviewed by a human editor.

A large language model (LLM) is an AI model trained on very large amounts of text. IBM describes it as a model that repeatedly predicts the next word in a sequence. By doing that again and again, it can write, summarize, translate and answer questions. ChatGPT, Claude, Gemini and Llama are all examples of LLMs.

Think of it like this: it is like the autocomplete on your phone, but trained on a huge library of text. It can continue not just one word, but a whole answer.

A language model, in Google’s words, estimates how likely a word or word piece is to come next in a longer text. Those pieces are called tokens. During training, the model reads billions or even trillions of words. It sees no answer key. It learns by finding patterns in the text itself.

Most LLMs use a design called the transformer. It was introduced in 2017 in a paper called “Attention Is All You Need”. Its key idea is self-attention. This lets the model weigh how each token relates to the others, including ones far away in the text. Transformers also work on many tokens at once, which makes training much faster than older methods.

The model’s internal settings are called parameters. Training adjusts them. Some LLMs have billions of them. After the first round of training, a model can be trained further for a job, for example with feedback from people.

LLMs have limits. Because they pick likely words, they can write things that sound right but are false. This is called hallucination. They can also copy biases from the text they learned from. And training and running them needs a lot of computing power and energy.

Why it matters to you: when you chat with an AI assistant, you are talking to an LLM. It is a strong tool for drafts, summaries and ideas. But it does not look facts up unless it is built to. Check anything important, especially numbers, names and sources.

Learn more: IBM: What are large language models (LLMs)? · Google for Developers: Language models, Machine Learning Crash Course · Vaswani et al.: Attention Is All You Need (the paper behind the transformer)