Sub topic 3
Where language models go wrong
This chapter assumes you have used a large language model (LLM) through a chat window or an API. It also assumes you know basic marketing metrics and can read short Python snippets. The aim is to name the specific ways a model fails on marketing research and reporting work, so that later chapters (tools, grounding, verification) read as fixes for known problems.
Why failure modes matter for reporting
A language model is trained to produce text that is likely to follow the text before it. It is not a database or a calculator. When a marketing manager asks for last month's cost per acquisition, the model has no built-in access to that number. It can still produce a fluent, confident sentence that contains one.
Reports are the worst place for this, because readers act on them. A wrong figure in a budget summary can move real money. The failures below are predictable, which means you can design around them.
Hallucination
Hallucination is output that sounds plausible but is not supported by any source. In marketing work it takes a few common forms:
- Invented figures. Asked for a campaign's click-through rate with no data supplied, the model returns a believable number such as 1.8%.
- Invented sources. The model cites a "2024 industry benchmark report" that does not exist, or attaches a real publisher's name to a made-up statistic.
- Invented explanations. Given a real drop in conversions, the model states a cause ("due to the algorithm update") with no evidence for it.
- Invented tool results. In an agent, the model may write what a tool "would have returned" instead of calling it.
Hallucination is not random noise. The invented number is usually close to what the model has seen for similar text, so it looks right. That is why a quick read-through does not catch it.
Stale knowledge
A model learns from text collected up to a training cutoff. Anything after that date is unknown to it unless you supply it. Two separate problems follow.
- World knowledge ages. Ad platform features, privacy rules, default attribution windows and benchmark costs change. The model may describe a feature that has been renamed or removed.
- Your data was never in it. Your campaign results, this week's spend and your CRM contents were never in the training text. Even a model with a recent cutoff knows nothing about them.
The second problem is the bigger one for reporting. The fix is not a newer model. The fix is to retrieve current data and place it in the model's context, which the grounding chapter covers.
A related trap is that models often do not know what today's date is. A request for "last quarter" is ambiguous unless you pass the date and the reporting period explicitly.
Arithmetic and aggregation errors
Models handle small sums reasonably well, but they are unreliable on longer calculations. Typical errors:
- Rounding drift when several steps are chained.
- Averaging percentages directly, for example averaging two campaigns' CTRs instead of dividing total clicks by total impressions.
- Dropping a row when summing a long table.
- Dividing by zero silently, by inventing a value for a metric with no conversions.
The averaging mistake deserves attention because it is a reasoning error, not a typing slip. Take two campaigns:
| Campaign | Impressions | Clicks | CTR |
|---|---|---|---|
| A | 10,000 | 200 | 2.00% |
| B | 2,000 | 100 | 5.00% |
The average of the two CTRs is 3.50%. The true combined CTR is 300 / 12,000 = 2.50%. A model that averages the percentages gets it wrong, and the output looks fine.
Context and instruction failures
Even with the right data supplied, the model can misuse it.
- Lost detail in long inputs. With a very long export pasted in, the model may overlook rows in the middle or mix up two similar columns, such as "clicks" and "link clicks".
- Unit and period confusion. Weekly figures get described as monthly, or one currency is treated as another.
- Instruction drift. A format rule given at the start ("report CPA in USD, two decimals") is followed in the first paragraph and ignored by the fifth.
- Sycophancy. If the prompt hints at the answer ("I think the email campaign did best, right?"), the model tends to agree even when the data disagrees.
- Causal overreach. Correlation in the data becomes a causal claim in the prose. "Conversions rose after the new creative launched" becomes "the new creative drove conversions."
Non-determinism
The same prompt can produce different answers on different runs, because the model samples from a probability distribution. Lowering the sampling temperature reduces variation but does not remove it, and some providers do not guarantee identical output even at zero temperature.
For reporting this means a report that looked correct once is not guaranteed to be reproduced. You cannot treat a single good run as proof that the process is reliable. You need checks that run every time.
Failures that agents amplify
An agent calls a model repeatedly and feeds each output into the next step. This changes the failure picture in two ways.
- Errors compound. A wrong number in step two becomes an input to step three, and the final report states it as fact.
- Tool misuse. The model may call a tool with wrong arguments, call a tool that does not exist, or ignore an error message the tool returned and carry on.
Agents also make failures quieter. In a chat window you see each answer. In an agent run, the intermediate mistakes are hidden unless you log them, which is why the monitoring chapter matters.
Designing around the limits
The pattern is the same each time: give the model the work it does well, and take the rest away from it.
| Model is good at | Model is unreliable at |
|---|---|
| Drafting and rewording text | Producing exact numbers from memory |
| Summarizing supplied material | Knowing current or private data |
| Choosing which tool to call | Multi-step arithmetic |
| Spotting patterns worth investigating | Establishing cause from correlation |
In practice this gives four rules for the chapters ahead:
- Fetch data with tools. Do not ask the model to recall it.
- Compute metrics in code. Let the model describe the results.
- Require each claim to point to a source in the supplied data.
- Check the finished draft before anyone reads it.
Two cheap checks you can write today
Two failures are easy to catch mechanically: stale data and a claimed metric that disagrees with the computed one. The sketch below shows both. It is a starting point, not a full verification layer.
from datetime import date
def is_stale(data_as_of, today, max_age_days=7):
"""Return True if the data is older than the allowed age."""
return (today - data_as_of).days > max_age_days
def matches(claimed, computed, tolerance=0.0005):
"""Return True if a claimed value is close to the computed one."""
if computed is None:
return False
return abs(claimed - computed) <= tolerance
clicks, impressions = 200, 12000
computed_ctr = clicks / impressions
print(is_stale(date(2026, 11, 10), date(2026, 11, 26)))
print(matches(0.02, computed_ctr))
print(matches(0.0167, computed_ctr))The script prints True, False and True. The first line says the data is 16 days old, past the 7-day limit. The second says a claimed CTR of 2% does not match the computed 1.67%. The third says 0.0167 is within tolerance.
Note the choice in matches: a metric that could not be computed (None) never counts as a match. This avoids silently approving a claim about a number that has no valid value.
Common mistakes when handling these limits
- Trusting a second model to check the first. A model reviewing another model's numbers can repeat the same mistake. Check numbers with code or against source data.
- Fixing stale knowledge by switching models. A newer model still has no access to your campaign data.
- Adding "do not make things up" to the prompt and stopping there. The instruction helps a little, but it is not a control. It cannot be tested or enforced.
- Testing with one run. Because output varies, test on several runs and several inputs, including edge cases such as zero conversions.
Exercise
A model is given two campaigns' results and reports "combined CTR of 4.0%." Campaign A has 8,000 impressions and 160 clicks (2.0%). Campaign B has 2,000 impressions and 160 clicks (8.0%). Which failure mode is this, what is the correct combined CTR, and which mitigation from this chapter prevents it?
Show answer
It is an arithmetic and aggregation error: the model averaged the percentages (2.0% and 8.0% average to 5.0%, or a similar rough figure) instead of pooling totals. The correct combined CTR is (160 + 160) / (8,000 + 2,000) = 320 / 10,000 = 3.2%. Computing the metric in deterministic code from summed clicks and impressions prevents the error, and a check comparing the claimed value to the computed one (as in the matches function) would flag the 4.0% claim.
Exercise
Name two reasons why asking the model "What was our CPA last month?" with no other context is unsafe, and say what you would supply instead.
Show answer
First, the model has no access to your private campaign data, so any number it gives is a hallucination. Second, it may not know the current date, so "last month" is ambiguous. Supply the retrieved spend and conversion data for a stated date range, compute CPA in code, and have the model only describe the result.