Large language models power ChatGPT, Gemini, Claude and almost every AI product launched in the last few years. This guide explains what they are, how they work, what they are good and bad at, and what that means for businesses using them, without the jargon.
> Key points
- A large language model (LLM) is an AI model trained on huge amounts of text to predict the next piece of text. That simple skill, at enormous scale, lets it write, summarize, translate, answer questions and write code.
- Most LLMs are built on the transformer architecture, introduced by Google researchers in 2017, which uses a mechanism called attention to weigh how words relate to each other.
- LLMs are trained in stages: pretraining on large text collections, then fine-tuning and human feedback to make them helpful and safe.
- They make confident mistakes, known as hallucinations, carry biases from their training data and have a knowledge cut-off. Grounding them in your own data and checking their output reduces the risk.
Large language models in one paragraph
IBM describes large language models as “a category of deep learning models trained on immense amounts of data.” Google’s machine learning course puts the core idea even more simply: LLMs “predict a token or sequence of tokens.” In other words, an LLM looks at the text it has been given and works out, one small piece at a time, what text should come next. It does this so well, after learning from vast amounts of writing, that the result reads like a knowledgeable person answering.
Anthropic’s glossary adds the other half of the name: LLMs are “AI language models with many parameters.” Large refers to the scale of both the training data and the model itself.
How an LLM reads text: tokens
LLMs do not read words the way people do. They break text into tokens. Google explains that “a token could be a word, a subword (a subset of a word), or even a single character.” A common word may be one token, while a long or unusual word may be split into several.
Tokens matter in practice because they are how AI services measure and charge for usage, and how they set limits on input and output. Google notes that “tokenization is language specific, so the number of characters per token differs across languages,” which means the same message can cost more in some languages than others.
Inside the model, each token is turned into numbers. IBM explains that “each token is mapped to a vector of numbers called an embedding.” Embeddings capture meaning, so words used in similar ways end up with similar numbers. They are also used outside chat, for example to power search that finds documents by meaning rather than exact keywords.
The engine: transformers and attention
Almost every modern LLM is built on the transformer, an architecture introduced in the 2017 research paper “Attention Is All You Need” by Ashish Vaswani and colleagues at Google. The paper proposed “a new simple network architecture, the Transformer, based solely on attention mechanisms.” Google’s course now calls transformers “the state-of-the-art architecture for a wide variety of language model applications.”
Attention is the key idea. When the model processes a word, attention lets it look at all the other words in the text and decide which ones matter most for understanding it. Google’s course frames the question attention answers as: “How much does each other token of input affect the interpretation of this token?” In the sentence “The bank raised its rates because it needed more capital,” attention helps the model link “it” to “the bank” rather than to “rates.”
Because attention looks at all the words at once rather than strictly one after another, transformers can be trained efficiently on modern chips, which is what made today’s very large models practical.
Parameters: what the model has learned
IBM defines parameters as “the internal configuration variables of a machine learning model.” They are the numbers the model adjusts during training, and together they hold everything it has learned about language and the world. Google’s course notes that transformers “contain hundreds of billion or even trillions of parameters.”
More parameters generally means a more capable model, but also one that is more expensive to train and run. That is why AI companies offer families of models in different sizes, with smaller, faster and cheaper versions alongside their flagship. You can follow the latest releases and prices in our weekly LLM updates roundup.
How LLMs are trained
Training happens in stages.
Pretraining. Anthropic defines pretraining as “the initial process of training language models on a large unlabeled corpus of text.” The model reads enormous amounts of text and repeatedly tries to predict missing or next tokens, adjusting its parameters each time it gets one wrong. Google’s course stresses that “the primary ingredient in building an LLM is a phenomenal amount of training data.” The result is a base model that knows a great deal about language but is not yet a helpful assistant.
Fine-tuning. Next comes fine-tuning, which Anthropic describes as “the process of further training a pretrained language model using additional data.” Google says this extra training “unlocks an LLM’s practical side.” Fine-tuning on examples of good questions and answers teaches the model to follow instructions and hold a conversation. Businesses can also fine-tune models on their own data for specialist tasks.
Human feedback. Most assistants are also shaped by reinforcement learning from human feedback, or RLHF. IBM describes it as “a form of fine-tuning where humans rank model outputs and the model is trained to prefer outputs that humans rank higher.” This is a major reason chat assistants are polite, careful and tend to decline harmful requests.
Distillation. Companies also create smaller models from large ones. Google explains that “distillation creates a smaller version of an LLM,” which can run faster and cheaper. Done without permission from a rival’s model, the same technique has become a security and policy issue, as covered in our report on OpenAI’s fight against model copying.
How an LLM produces an answer
Using a trained model is called inference. You send a prompt, the model predicts the most suitable next token, adds it to the text and repeats. IBM notes: “This process, called inference, is repeated until the output is complete.” That is why answers appear word by word in a chat window.
The model does not always pick the single most likely token. A setting called temperature adds controlled randomness. Anthropic describes temperature as “a parameter that controls the randomness of a model’s predictions during text generation.” Lower values give more focused, predictable answers, higher values more varied ones. Even so, Anthropic notes that “even with temperature set to 0, the results will not be fully deterministic,” so the same question can produce slightly different answers.
The context window: the model’s working memory
IBM defines the context window as “the maximum number of tokens that a model can ‘see’ and use at once when generating text.” It covers your prompt, any documents you include, the conversation so far and the answer itself. Anything outside the window is invisible to the model.
Context windows have grown quickly. Several leading models released this month accept around one million tokens, enough to take in long reports, contracts or codebases in one go. Larger windows cost more to use, though, and models do not always pay equal attention to everything in a very long input, so it still pays to give them only what they need.
What LLMs are good at
Because they learn general patterns of language, the same model can handle a wide range of tasks without being built separately for each one:
- Drafting and editing text, from emails and reports to marketing copy.
- Summarizing long documents, meetings and research.
- Answering questions and explaining complex topics.
- Translating between languages.
- Writing, reviewing and explaining code.
- Extracting structured data from messy text, such as pulling fields out of invoices or contracts.
- Classifying and routing content, such as sorting support tickets.
Many models are now multimodal, meaning they can also work with images, audio, video or documents as input, not just text. And when an LLM is given tools and allowed to take actions, it becomes an AI agent, which we explain in our guide AI agents explained.
Where LLMs fall short
Hallucinations. The best-known weakness is that LLMs can state false things with confidence. IBM describes hallucination as when “the model generates information that is false or misleading while sounding plausible.” Google’s course is blunt: “LLMs hallucinate, meaning their predictions often contain mistakes.” Google’s glossary notes that confabulation “is probably a more technically accurate term than hallucination,” because the model is filling gaps with plausible text rather than seeing things.
Knowledge cut-off. AWS points out that “LLM training data is static and introduces a cut-off date on the knowledge it has.” Without access to search or your own data, a model does not know about recent events.
Bias. Models learn from human writing, including its biases. Google’s course warns that “like all ML models, LLMs can exhibit all sorts of bias.”
Cost and energy. According to Google, “LLMs consume enormous amounts of computational resources and electricity.” That cost shows up in usage prices and in the data center build-out behind AI.
Opacity. Google’s glossary notes that “most deep models and large language models are black boxes.” It is hard to see exactly why a model produced a given answer, which matters in regulated decisions.
Making LLMs more reliable: grounding and RAG
The most common fix for hallucinations and outdated knowledge is retrieval-augmented generation, or RAG. IBM describes it as “a method for connecting a pretrained model with external knowledge bases.” AWS explains that the model “references an authoritative knowledge base outside of its training data sources” before answering.
In practice, when a user asks a question, the system first searches a trusted source, such as your policy documents, product catalog or knowledge base, usually with embeddings. It then gives the relevant passages to the LLM and asks it to answer from them, often with citations. This keeps answers current and specific to your business without retraining the model.
Other techniques help too. Prompt engineering, which Google says “enables an LLM’s end users to customize the model’s output,” shapes behavior through clear instructions and examples. Fine-tuning adapts a model to a specialist task. And for anything important, a human should check the output.
LLMs compared with search engines
It is tempting to treat a chat assistant like a search engine, but they work differently. A search engine finds existing pages and ranks them; you then read the sources yourself. An LLM generates a new answer from patterns it learned in training, which is why it can explain, rephrase and combine ideas in ways search cannot, and also why it can invent details that no source contains.
The two are converging. Many assistants now run a web search first and answer from the results with links, and search engines increasingly show AI-written summaries above their results. When an answer matters, look for the citations and open them. An answer without sources should be treated as a draft, not a fact.
Key terms at a glance
- Token: the small chunk of text a model reads and writes, and the unit used for pricing.
- Parameters: the learned numbers that store what the model knows.
- Context window: how much text the model can consider at once.
- Pretraining and fine-tuning: the broad first stage of training and the focused stage that follows.
- Inference: running the trained model to get an answer.
- Hallucination: a confident answer that is wrong.
- RAG: fetching trusted information for the model to answer from.
For more than 75 other terms, from agents to world models, see our AI glossary.
How businesses use LLMs today
Most organizations start with LLMs in three ways. The first is ready-made assistants for staff, such as chat tools built into office software, used for drafting, summarizing and research. The second is LLM features inside existing products, such as support chatbots, search and writing aids. The third is custom applications built on a model provider’s API, often combining an LLM with RAG over company data, or with tools so it can act as an agent.
Choosing a model comes down to a few trade-offs: quality on your specific tasks, speed, price per token, context window, data protection terms and where the model can be hosted. Smaller, cheaper models often handle routine work such as classification and extraction well, while the most capable models are worth paying for on complex reasoning and coding. Test a few on real examples before committing.
Questions to ask before you deploy an LLM
- What happens if it is wrong? Match the level of human review to the cost of an error.
- Where does our data go? Check whether the provider stores prompts or uses them for training, and which regions it processes data in.
- Does it need current or company-specific knowledge? If so, plan for RAG or tool access rather than relying on the model’s memory.
- How will we measure quality? Build a small set of real test cases and score each model or prompt change against it.
- What will it cost at scale? Estimate tokens per task and multiply by expected volume.
Frequently asked questions
Is an LLM the same as generative AI? LLMs are one type of generative AI, focused on language. Generative AI also includes models that create images, audio and video. Many of today’s leading models combine these abilities.
Do LLMs understand what they say? They build rich internal representations of language that let them reason through many problems, but they work by predicting text, not by checking facts against the world. That is why they can be impressively capable and confidently wrong in the same answer.
What is the difference between an LLM and a chatbot? The LLM is the underlying model. A chatbot is an application built on top of it. Google’s glossary puts it simply: “a chatbot is an application of a large language model.”
What are open-weight models? Some developers publish their model’s parameters so others can download and run them on their own hardware, often under a specific license. Others keep their models closed and offer access only through an API or app.
The bottom line
A large language model is a next-token predictor trained at extraordinary scale. That simple mechanism produces a tool that can draft, summarize, translate, analyze and code across almost any subject. It also produces confident mistakes, so the businesses getting the most from LLMs ground them in trusted data, keep people in the loop where it matters and measure results on their own tasks.
What it means
For business
LLMs are general-purpose tools that can speed up writing, research, support and coding. Value comes from choosing the right model for each task, grounding it in company data and checking important output.
For industry
Falling prices and larger context windows are making LLMs a standard layer in most software. Differentiation is shifting to data, integration and trust.
For workers
Most knowledge workers will use LLMs daily. Knowing how to prompt well, spot errors and verify facts is becoming a basic job skill.
Sources
- Google for Developers: Introduction to large language models (Machine Learning Crash Course)
- Google for Developers: LLMs, what’s a large language model?
- Google for Developers: LLMs, fine-tuning, distillation and prompt engineering
- Google for Developers: Machine learning glossary
- IBM: What are large language models (LLMs)?
- Vaswani et al.: Attention Is All You Need (arXiv, 2017)
- Anthropic: Glossary (Claude Platform Docs)
- AWS: What is retrieval-augmented generation?
Abu Areej is the pen name of a senior editor at Modern AI Today who edits daily news coverage and helps set the news agenda across AI models, infrastructure, policy and business.




