What is a large language model (LLM)?
Also known as: Large language models, Language model, Foundation model
A large language model (LLM) is a type of generative AI model that works with text. It is trained on a very large body of written material and learns to predict what comes next in a sequence of text. That one skill, applied at scale, lets it draft copy, summarize documents, answer questions, translate and follow instructions. Chat assistants such as ChatGPT, Claude and Gemini are built on LLMs.
How LLMs work
Tokens
LLMs don’t read words the way people do. Text is split into tokens, which can be whole words, parts of words, single characters or bytes. Anthropic’s documentation notes that the number of characters a token represents depends on the model and the language. Tokens matter in practice because model limits and pricing are counted in them.
Training
Training usually happens in stages:
- Pretraining. The model is trained on a large, unlabeled body of text to predict the next token, given the text that came before it. This is where it learns grammar, facts, styles and patterns of reasoning.
- Fine-tuning. A pretrained model isn’t naturally good at following instructions. Developers train it further on examples of helpful behavior and on human feedback. The 2022 InstructGPT paper showed that fine-tuning with human feedback made a much smaller model preferred by human raters over a far larger model that hadn’t been tuned.
The “large” refers to the number of parameters, the internal values the model adjusts during training. GPT-3, described in a 2020 paper, had 175 billion parameters and could perform new tasks from a few examples in the prompt, without retraining.
The Transformer
Most modern LLMs are based on the Transformer architecture, introduced in the 2017 paper “Attention Is All You Need” by Vaswani and colleagues. Its key idea, attention, lets the model weigh how every token relates to every other token in the input. Transformers also train efficiently in parallel, which made today’s model sizes practical.
Generating an answer
When you send a prompt, the model reads everything in its context window, the text it can consider at once, including instructions, documents and earlier conversation. It then produces a response one token at a time, each chosen based on everything before it. A setting called temperature controls how adventurous those choices are: lower values favor the most probable wording, higher values allow more variety.
Limitations to understand
| Limitation | Why it happens | What it means for pharma teams |
|---|---|---|
| Confident errors | The model predicts plausible text, not verified facts | Every claim, figure and citation needs checking. See AI hallucination. |
| Fixed knowledge | Training data stops at a point in time | The model won’t know your latest label update or newly approved claims unless you supply them |
| No brand memory | General models aren’t trained on your materials | Approved claims, references and guidelines must be provided in the context |
| Variable output | Token choices are probabilistic | The same prompt can produce different wording, so test prompts more than once |
| Limited context | The context window has a maximum size | Very long documents may need splitting or retrieval |
NIST’s Generative AI Profile notes that confident errors are a natural result of how these models generate text: they approximate the statistical patterns of their training data, which can produce accurate output and inaccurate output alike.
LLMs in pharma marketing
LLMs are useful wherever work involves reading or writing large amounts of text: drafting, summarizing references, checking copy against editorial or brand guidelines and preparing material for review. They work best when they are given the right source material, through retrieval-augmented generation or a carefully built knowledge base, and clear instructions through prompt engineering.
They don’t replace the judgment of the people responsible for a piece. An LLM can point out that a claim seems to lack a reference; deciding whether the evidence supports it is a job for qualified reviewers.
Note. “Foundation model” is a broader term for large models trained on wide-ranging data that can be adapted to many tasks. Most LLMs are foundation models, but foundation models can also work with images, audio or several types of data at once.
References
Last reviewed December 2026. This glossary explains terms in general; it isn’t legal or regulatory advice.