Glossary · 3 min read
Large language model (LLM)
What a large language model is, how pretraining and fine-tuning turn next-word prediction into a clinical writing and question-answering tool, why fluent output can still be wrong, and what to ask before one touches patient care. As of September 2026.
The short version
- A large language model is a neural network trained on very large amounts of text to predict the next token, a word or piece of a word, from the text before it.
- Scale plus that single objective produced general-purpose tools: GPT-3 had 175 billion parameters and could perform new tasks from a few examples in the prompt.
- Chat assistants add a second stage, fine-tuning on human demonstrations and feedback, because a bigger model is not automatically better at following instructions.
- Exam success came early, with ChatGPT at or near the USMLE passing threshold in 2023, but in a simulated clinical setting the open models tested diagnosed less accurately than physicians and did not follow guidelines.
On this page
A large language model (LLM) is a neural network trained on very large amounts of text to predict the next token, a word or piece of a word, from the text before it. The developers of GPT-3 described it as an autoregressive language model with 175 billion parameters: each new token is predicted from the ones already written 2.
Why do LLMs matter in healthcare?
Clinical work runs on language: notes, messages, referral letters, guidelines. LLMs "can respond to free-text queries without being specifically trained in the task in question" 4, so one model can be pointed at many of those jobs. The early signal was striking. ChatGPT performed at or near the passing threshold on all three USMLE steps without specialized training 5. Versions adapted for healthcare are covered under clinical LLM, and benchmark results sit in our LLM benchmark results tracker.
How does an LLM work?
Modern LLMs are built on the transformer, an architecture "based solely on attention mechanisms, dispensing with recurrence and convolutions entirely" 1. They are made in two broad stages.
Pretraining. The model reads broad text and learns to predict the next token. At the scale of GPT-3, that alone was enough to perform new tasks from a few examples placed in the prompt 2. Broad pretraining of this kind is what places LLMs among foundation models.
Fine-tuning for instructions. "Making language models bigger does not inherently make them better at following a user's intent" 3. InstructGPT was built by fine-tuning GPT-3 on human-written demonstrations and then with reinforcement learning from human rankings of its outputs 3. ChatGPT, similarly, was produced through fine-tuning of an underlying LLM 4.
In use, your prompt and any attached text go into the model's context window, and the answer comes out one token at a time.
Common misunderstandings
Fluent means correct. The InstructGPT authors wrote that large language models "can generate outputs that are untruthful, toxic, or simply not helpful to the user" 3. In healthcare the confident fabrication is the failure to plan for; see AI hallucination in clinical contexts.
An LLM looks facts up. A plain LLM generates from patterns learned in training. Checking against current sources requires a system built around it, such as retrieval-augmented generation.
Exam scores predict bedside performance. In a simulated clinical setting built from 2,400 real patient cases, the open LLMs tested diagnosed less accurately than physicians, followed neither diagnostic nor treatment guidelines, and could not reliably interpret laboratory results 6.
What to ask a vendor
- Which underlying model and version does the product use, and can it change without notice?
- Are answers grounded in sources we can inspect?
- What is the context window, and what happens with long records?
- How was it evaluated on our task, beyond exam benchmarks? See LLM evals vs clinical evaluation.
- Is our data used to train or fine-tune the model? See HIPAA and LLMs.
Related terms
- Clinical LLM: LLMs adapted and evaluated for healthcare.
- Foundation model: the wider class LLMs belong to.
- Context window: how much an LLM can take in at once.
Questions and answers
What is the difference between an LLM and a clinical LLM?
An LLM is the general technology: a model trained on broad text to predict the next token. A clinical LLM is an LLM developed or adapted for healthcare tasks, through domain fine-tuning, instruction tuning on clinical questions, or grounding in clinical sources, and evaluated against clinical benchmarks and clinician review.
Why do LLMs give confident wrong answers?
Because they generate the most likely continuation of the text, and likely-sounding text can be false. The developers of InstructGPT noted that large language models can produce outputs that are untruthful, toxic, or unhelpful. Grounding answers in retrieved sources and keeping a clinician reviewing the output are the usual safeguards.
Sources
- Vaswani A, Shazeer N, Parmar N, et al. Attention Is All You Need. Advances in Neural Information Processing Systems 30 (NeurIPS 2017). arXiv:1706.03762. arxiv.org/abs/1706.03762
- Brown TB, Mann B, Ryder N, et al. Language Models are Few-Shot Learners. Advances in Neural Information Processing Systems 33 (NeurIPS 2020). arXiv:2005.14165. arxiv.org/abs/2005.14165
- Ouyang L, Wu J, Jiang X, et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems 35 (NeurIPS 2022). arXiv:2203.02155. arxiv.org/abs/2203.02155
- Thirunavukarasu AJ, Ting DSJ, Elangovan K, Gutierrez L, Tan TF, Ting DSW. Large language models in medicine. Nature Medicine. 2023;29(8):1930-1940. doi.org/10.1038/s41591-023-02448-8
- Kung TH, Cheatham M, Medenilla A, et al. Performance of ChatGPT on USMLE: Potential for AI-assisted medical education using large language models. PLOS Digital Health. 2023;2(2):e0000198. doi.org/10.1371/journal.pdig.0000198
- Hager P, Jungmann F, Holland R, et al. Evaluation and mitigation of the limitations of large language models in clinical decision-making. Nature Medicine. 2024;30(9):2613-2622. doi.org/10.1038/s41591-024-03097-1