How Large Language Models Work: Explained for Marketers
In a BCG and Harvard field experiment, consultants using GPT-4 on tasks within the model's capability range completed 12.2% more tasks, finished 25.1% faster, and produced results judged more than 40% higher in quality. On tasks outside that range, those same AI-assisted consultants were approximately 19 percentage points less likely to reach the correct answer.
That second number is the one most organizations ignore. And it explains why understanding how these systems actually work is not an academic exercise. If your team doesn't know what an LLM is doing under the hood, they can't tell when to trust it and when to push back.
This post explains the mechanism. Not to satisfy curiosity, but because the operational decisions follow directly from the technical reality. At AdVenture Media (adventuremedia.ai), this foundational understanding shapes how we train teams to use AI tools responsibly.
LLMs Do Not Think. They Predict.
What matters most about a large language model is what it is not doing. It is not reasoning through your question the way a human expert would. It is not retrieving a stored answer from a database. It is calculating the most probable next word, one piece at a time, based on patterns in billions of examples of text.
A token is roughly a word or word fragment. When you type a prompt, the model converts everything, your question, any context you've provided, the conversation history, into tokens. It then predicts what token should come next. Then the next. Then the next. That sequence is your answer.
Patrick Gilbert covers this in Never Always, Never Never: the underlying system is not deterministic like a calculator. It is probabilistic. It outputs the response that matches the pattern of a correct response, not necessarily one that is correct. That distinction has enormous practical consequences.
A calculator that returns a wrong answer has broken. An LLM that returns a wrong answer is operating exactly as designed.
How the Model Learned What It Knows
Before an LLM can predict anything, it has to train. Training means exposing a neural network to an enormous collection of text and repeatedly asking it to predict what comes next. When it guesses wrong, the system adjusts billions of internal numerical parameters to do better next time. This process, called backpropagation, runs across billions of examples until the model develops something like a compressed representation of human language and knowledge.
What results is not a database of facts. It is a web of learned associations, encoded in the strength of connections between nodes in the network. The model doesn't "know" that Paris is the capital of France the way a spreadsheet stores that value. It has learned that the token sequence "the capital of France is" is very strongly associated with "Paris" because that pattern appeared reliably across the training data.
Several behaviors that frustrate people follow directly from this:
- The model can produce a confident, fluent answer that is factually wrong. Fluency and accuracy are independent properties.
- The model performs better on common concepts than rare ones. Unusual names, niche technical topics, and obscure facts were underrepresented in training data, so the model's associations are weaker.
- The model's knowledge has a cutoff. Anything that happened after the training window ended is simply not in there, unless the system retrieves it from elsewhere.
Underlying modern LLMs is the Transformer architecture, introduced in a 2017 Google research paper titled "Attention Is All You Need." Before it, models processed text one word at a time. Transformers process entire sequences simultaneously, using a mechanism called self-attention that weighs the relevance of every word in a prompt to every other word at once. This is what made it possible to train models at the scale needed for the capabilities you see today.
The Stack Behind Every Answer
A common misconception is that when you ask an AI a question, it draws from one source. It doesn't. Modern AI systems assemble answers from multiple layers, and understanding those layers tells you a lot about why any given answer is reliable or not.
Never Always, Never Never describes this as the AI Answer Stack, and it matters enormously for how you configure and use these tools.
Layer 1: Base model knowledge. What the model learned during training. Fast, always available, frozen at a knowledge cutoff date. Great for stable, well-documented topics. Unreliable for anything recent or rare.
Layer 2: Prompt context. Everything you put in the conversation: your question, uploaded files, instructions, conversation history. Your direct lever on output quality. The model re-reads the entire context window every time it generates a response. Long conversations drift, and starting fresh often produces better results than continuing a stale thread.
Layer 3: Reasoning. Some systems allocate extra computation to work through a problem step by step before generating a response. Not the same as human reasoning. This is the model decomposing a task into sub-steps and evaluating them before committing to output. It is slower and more expensive. Systems use it selectively, based on signals that a question is complex. If your question looks simple but is actually tricky, the model may not engage this layer. Explicitly asking the model to "think step by step" still helps.
Layer 4: Retrieval (RAG). Retrieval-Augmented Generation is where the system searches a defined document corpus, your internal files, a knowledge base, a product catalog, and injects relevant excerpts into the prompt before generating an answer. The model then answers using both its trained knowledge and the supplied text. RAG is powerful for internal knowledge questions, but it has a critical failure mode: if the wrong document chunk is retrieved, the model answers confidently from the wrong information. It cannot tell that the retrieved context is incorrect.
Layer 5: Live web search. To handle current events, recent data, or anything that changes frequently, some systems query the internet in real time and incorporate what they find. This solves the freshness problem but introduces noise. Search results are shaped by SEO, marketing, and publishing incentives. The model is now working with information optimized for ranking, not necessarily accuracy.
Layer 6: Deep research. A process, not just a search. The system plans a research strategy, runs multiple queries, reads multiple sources, resolves contradictions, and synthesizes findings. Slower by minutes, not seconds. Appropriate for open-ended analytical questions where thoroughness matters more than speed.
When an AI answer feels wrong, the diagnostic question is: which layer produced this, and was that the right layer for this question? Got an outdated answer? The system probably drew from base knowledge when it should have searched. Got a generic answer about your company? RAG didn't retrieve the right documents, or isn't connected to them at all.
A more detailed walkthrough of these layers is available at the six layers of the AI Answer Stack.
The Jagged Frontier
Researchers Fabrizio Dell'Acqua, Edward McFowland III, Ethan Mollick, Hila Lifshitz-Assaf, Katherine Kellogg, and Karim Lakhani tested 18 realistic consulting tasks with Boston Consulting Group consultants. Productivity gains inside the model's capability range were real and substantial. Performance drops outside that range were equally real.
Ethan Mollick, one of the study's researchers, has written extensively about what he calls the "jagged technological frontier." AI capability is not a smooth gradient from easy to hard. It is uneven. The model may handle a complex writing task better than a seemingly simple calculation. This frontier's shape is not intuitive, and it doesn't match most people's assumptions about what computers are good at.
Organizational implications are direct. "Use AI for everything" is not a policy. It is an abdication. Employees need to know which tasks sit inside the reliable range and which don't. That requires actual assessment, not just enthusiasm.
Drawing from Never Always, Never Never, the AI Double Helix framework separates AI work into two strands: Internal Efficiency (using AI to do existing work faster and better) and External Value (using AI to create new products, services, or experiences for customers). Both strands require understanding the frontier. Internal efficiency failures cost your team time, while external value failures cost your customers trust.
Why "It Hallucinated" Misses the Point
When an LLM produces a confident, fluent, completely fabricated answer, people say it hallucinated. That framing implies something went wrong. Nothing went wrong. The model did exactly what it is designed to do: predict the most probable next token. When the training data or retrieval context didn't contain the right answer, the model still predicted something, whatever pattern fit best.
Never Always, Never Never makes this point clearly: an LLM gives you a response that matches the pattern of a correct response. Whether it is correct is a separate question entirely.
The goal for teams is not to teach people to distrust AI. The goal is to teach them to verify outputs proportional to the stakes. A brainstormed list of campaign angles needs light review. A financial projection needs independent checking. A legal summary needs a lawyer.
Fluent language is not evidence of factual accuracy. Never treat it as such.
Practical protocols for managing this in day-to-day work are covered in this post on AI hallucinations at work.
Deterministic vs. Probabilistic: The Mindset Shift
Most business software is deterministic. Enter an order, the system processes it. Run a report, the numbers are exact. The same input always produces the same output. When something is wrong, something is broken.
LLMs are probabilistic. The same prompt can produce different outputs on different runs. The model is not broken when it gives you two different answers to the same question. It is working as designed, sampling from a probability distribution.
People who come from engineering backgrounds often find this deeply uncomfortable. People who come from creative backgrounds often find it freeing. Neither reaction is the useful one. Calibration is the useful mindset: know that probabilistic outputs require human review, build that review into your process, and stop expecting binary correctness from a system that was never designed to provide it.
A pattern in advertising that Never Always, Never Never addresses directly illustrates this well. When Google's Broad Match targeting shows your ad against a query that seems irrelevant, that is not necessarily a failure. The system is operating probabilistically, exploring the edges of what might convert. Whether every individual result makes sense matters less than whether the aggregate outcome meets your goals. The same logic applies to LLM outputs: judge the distribution, not individual instances.
If you want to understand how Google Ads smart bidding uses similar probabilistic mechanics, that page goes deeper on the ad platform side.
Reasoning Models vs. Standard LLMs
Standard LLMs are fast, fluent, and excellent at pattern-matched tasks: writing, summarizing, transforming text, brainstorming, drafting code, explaining concepts. They are not reliably good at multi-step logic, math, or tasks where each step depends on the previous one being correct.
Reasoning models address this. Designed to work through a problem before committing to an answer, they essentially generate a hidden chain of thought before producing output. OpenAI's o-series models work this way. The tradeoff is speed and cost: reasoning models take longer and consume more compute.
Neither type is universally better. Standard LLMs win on speed, fluency, and creative generation. Reasoning models win on structured logic, math, and sequential problem-solving. Choosing the wrong model for the task type is a common and easily avoidable error.
A practical rule: if the task requires getting each step right before moving to the next, reach for a reasoning model. If the task requires volume, speed, and fluency, a standard LLM is usually the right tool.
The Artifact: LLM Capability Audit for Your Team
Below is a practical audit your team can run before assigning AI to a workflow. Copy it, fill it in for each use case you're considering, and use the output to decide where human review is mandatory.
---
LLM Task Assessment Checklist
Copy and complete one per use case.
Task name:
AI tool being considered:
---
Step 1: Classify the output type
- [ ] Text generation (drafts, summaries, rewrites)
- [ ] Information retrieval (questions about documents or data)
- [ ] Analysis or classification (categorizing, scoring, evaluating)
- [ ] Calculation or logic (math, multi-step reasoning, comparisons)
- [ ] Code generation
- [ ] Other: _______
Note: Text generation and summarization are inside most LLMs' reliable range. Calculation and multi-step logic often are not. If you checked the last two boxes, consider a reasoning model and mandatory human verification.
---
Step 2: Assess information freshness requirements
- [ ] Tasks requiring information current within the last 6 months → Web search layer required
- [ ] Tasks requiring internal company data or documents → RAG layer required
- [ ] Tasks that can be completed from general knowledge → Base model may be sufficient
If you need fresh or internal data, confirm the tool has access to the right layer before assigning the task.
---
Step 3: Assess the cost of a wrong answer
- [ ] Low — a wrong answer wastes a few minutes of review time
- [ ] Medium — a wrong answer requires rework and may embarrass the team internally
- [ ] High — a wrong answer affects a client, customer, legal document, or financial decision
High-stakes outputs require a named human reviewer as a step in the process, not an afterthought.
---
Step 4: Identify the specific failure modes for this task
- What would an overconfident wrong answer look like here?
- Is there a source document or calculation you can check the AI's output against?
- Does this task involve rare terminology, proprietary data, or recent events that might not be in the base model?
Record your answers here: _______
---
Step 5: Define the review protocol
- Who reviews this output before it is used?
- What specifically are they checking? (Not just "does this look right" — name the specific elements)
- What happens if the output is wrong or uncertain?
Document your protocol here: _______
---
Step 6: Set your success metric
- What does "better than the current process" mean for this task? (Faster? Fewer errors? Lower cost?)
- What is the baseline you're comparing against?
- How will you know in 30 days whether this is working?
Record your metric here: _______
---
Run this for every new workflow before you deploy AI into it. The goal is not to slow adoption. The goal is to avoid the 19-percentage-point performance drop that happens when teams use AI outside its reliable range without knowing it.
---
What to Do First
Pick one task your team already does regularly. Something with clear inputs and a clear definition of a correct output. Run it through the checklist above. Use that single task to build the habit of assessing before assigning.
Don't start with your most complex workflow. Start with something small enough to fail safely and learn from. The AI Maturity Ladder described in Never Always, Never Never starts at Dabbler for a reason. Teams that get the most out of AI are not the ones who went fastest. They are the ones who built judgment early, before the stakes were high.
Understand the mechanism. Respect the frontier. Verify before you trust.
Patrick Gilbert is the CEO of AdVenture Media and author of Never Always, Never Never and the bestselling Join or Die. He has been ranked among the top 5 PPC experts worldwide and has delivered keynotes at Google events across three continents.
More about Patrick →Enjoyed this?
Subscribe for more articles on strategy, AI, and what's actually working in marketing.
No spam. Unsubscribe anytime.