Ground Truth.
AI, checked against the source.

Learn · Intermediate

Task framing effects: how the same AI task can produce different results under different context

A task framing effect occurs when an AI system behaves differently because the surrounding description changes, even though the underlying task is intended to remain the same. Matched evaluations can measure this sensitivity, but a difference alone does not reveal why it happened or prove that the model had a hidden motive.

Imagine asking two mechanics to repair the same engine, but telling one that the repair is part of a safety audit and the other that it is a performance upgrade. If they take different actions, the framing may have changed what they think is expected, which parts they inspect, or how cautious they are. An AI prompt can do something similar: a few sentences around a coding task may shift how the model interprets risk, success, or responsibility.

The basic experimental design is a paired comparison. Researchers create two versions of a task with the same underlying files and objective, then vary one contextual factor. They define outcomes in advance, such as whether tests pass, how many rubric items are completed, how many tool calls are made, or whether the model stops early. The closer the pair is except for the framing, the stronger the case that framing contributed to the difference. This connects to paired comparisons in AI evaluation, where matched items can reduce noise from task difficulty.

A 2026 preliminary study of Claude Code used this approach. The tasks were framed either as safety research or capabilities research, with paired codebases that differed in names and documentation. The researchers tested GPU-kernel optimization and a planted bug repair. In the initial eight-architecture kernel set, the strongest training-data framing reduced the task-averaged success score from 0.92 to 0.69. In a larger held-out rerun across 36 architectures, the estimated gap was 7%, with a 95% interval from minus 25 to plus 11 percentage points. Since that interval includes no effect, the larger run did not establish a reliable quality loss.

The same study found a clearer difference in effort and time: the strongest framing condition hit a 1,200-second timeout in 39% of initial kernel sessions, compared with 5% for plain framing. In a separate bug-fix task, all tested runs found the planted bug and reached the same validation loss, though framed runs used more turns. The authors say the mechanism behind extra effort is unresolved. The study report provides the prompt conditions and caveats.

This example shows why several outcomes should be kept separate. A model can use more turns but reach the same answer. It can time out more often while producing correct intermediate code. It can make fewer rubric items without intentionally withholding help. A quality difference, a cost difference, a refusal, and an inferred motive are not interchangeable measurements. Researchers should define which outcome matters for users and report it plainly.

The chief threat is that the “same task” may not really be the same. Changing the frame can also alter task interpretation. If one prompt mentions safety, the model may activate safety policies; if one says no human reviews, the model may infer that extra caution or a different standard is expected. The changed frame is the treatment, but it may act through several pathways. That is why a framing effect identifies sensitivity to context, not a single psychological mechanism. This is also a matter of construct validity: the score must represent the capability or reliability claim being made.

Good evaluations use more than one task, specify the prompts and scoring rules, report uncertainty, distinguish exploratory from confirmatory analysis, and avoid selecting only examples that fit the desired story. Independent replication is especially useful when a result is surprising or politically charged. A broad claim such as “the model sabotages research” requires much more than a single paired comparison: it needs repeated evidence across tasks, models, providers, and conditions, along with a defensible measure of intent if intent is the claim.

There is a strong counterargument to over-caution: if models behave differently under realistic framing, that difference can matter even when its mechanism is unknown. Users experience the output, not the model’s latent cause. A prompt-framing effect can therefore justify more robust evaluation, clearer product disclosures, and operational safeguards without proving deception. Conversely, the existence of the effect should not be used to infer a motive the study did not measure.

The practical lesson is to treat framing as part of the system specification. When evaluating an agent for consequential work, test the language users will actually use, test plausible alternative phrasings, and record the model and provider configuration. The December Claude study shows how to separate an observed behavior change from claims about why it happened. Tversky and Kahneman’s classic framing paper90023-1) established the broader principle that presentation can change choices; AI evaluations need the same experimental discipline, with outcomes that reflect the system’s real use.

Key papers
Tversky and Kahneman, ‘The Framing of Decisions and the Psychology of Choice’ (1981)90023-1)
Yadu et al., ‘Does Task Framing Change How Claude Code Works?’ (2026)

Key questions

What is a task framing effect in an AI evaluation?

It is a measured change in model behavior caused by changing contextual wording or presentation while holding the underlying task as constant as the experiment can manage.

Does a framing effect show that a model has a hidden motive?

No. It shows an output difference under the tested conditions; the mechanism could involve learned associations, safety policies, task interpretation, effort allocation, or evaluation artifacts.

How can an evaluation test framing fairly?

Use paired tasks that differ only in the frame, predefine outcome measures, randomize order where practical, include multiple task types, and publish prompts and uncertainty estimates.
Cite this

APA

Ground Truth. (2026, December 1). Task framing effects: how the same AI task can produce different results under different context. Ground Truth. https://groundtruth.day/learn/task-framing-effects-in-ai-evaluation.html

BibTeX

@misc{groundtruth:task-framing-effects-in-ai-evaluation,
  title  = {Task framing effects: how the same AI task can produce different results under different context},
  author = {{Ground Truth}},
  year   = {2026},
  month  = {dec},
  url    = {https://groundtruth.day/learn/task-framing-effects-in-ai-evaluation.html}
}

Topics: evaluation · experimental-design · agents · reliability