TL;DR
When you paste a document into a chat and ask a question, how you frame the task can matter more than anything else. If you just write "here's the text, answer the question," the model decides on its own what to trust: your document or its training data. That's the source of the classic pain point "the model ignores what I wrote."
The study identifies three regimes of model behavior when context conflicts with learned knowledge. In the first regime (only your document, no explicit activation of the model's memory), the model almost always follows the document (4 of 5 models did so 94–100% of the time; Llama less on famous facts). In the second (the model has already "weighed in" on the topic and then sees a contradiction), it resists harder the better it knows the fact: famous facts get held more firmly than obscure ones. The third regime overrides both: one line explicitly naming the source produces a swing of 29–94 percentage points, depending on the model.
The main practical insight: add "based ONLY on this document" to your prompt, and the model stops mixing in its own knowledge. Or the reverse: "use your own knowledge, the document may contain errors" — and GPT-5.5, Claude and Gemini followed the document only 6–12% of the time (Llama and DeepSeek still 51–71%). These tests used short factual questions with one-sentence contradicting "documents". This isn't a technical setting — it's one sentence in a regular chat.
Want this for your own case? Apply this study to your task: AI adapts its method to what you are working on and writes the prompt.
Method Blueprint
REGIME 1 (default, no explicit framing):
Paste a document → ask a question → no competing answer is active
→ the model usually follows the document (94–100% for 4 of 5 models)
REGIME 2 (activated if the model already "knows" the topic):
The model is committed to an answer → sees a contradiction in the document
→ the more famous the fact, the stronger the resistance
REGIME 3 (explicit source framing — one prompt):
"ONLY from the document" → all 5 models followed the document 100%
"Use your own knowledge" → document-following fell to 6–12% (GPT-5.5,
Claude, Gemini) or 51–71% (Llama, DeepSeek)
It all works in a single prompt. No steps, no extra requests.
Example in Practice
Our illustration; the paper tested short factual questions from PopQA, not company policies.
Task: Emma is the COO of a small tech company. They've rewritten their travel expense policy: new limits, new approval rules. Emma pastes the new document into Claude and asks it to answer employees' questions based on it. Time after time, the model adds "standard recommendations" from its training data — not from the document. Employees get confused.
Prompt (Regime 3 — follow the document):
Based ONLY on the document below, answer employees' questions
about the travel expense policy.
Do not use any other knowledge. If the answer isn't in the
document, write "This isn't covered in the document."
Do not add standard recommendations or market practices.
Document:
[paste the travel expense policy text]
Employee question: {question}
Expected result (not measured in the paper): The model should quote and interpret only the contents of your document. It won't add "companies also typically..." or "as a rule, limits are..." — only what you've written. If a fact isn't in the document, it'll say so directly.
Why It Works
The problem: The model doesn't read your document with "fresh eyes." It has its own learned memory — billions of examples it was trained on. When you ask about travel expenses, the model already has an "opinion." Your document competes with that opinion. Without explicit instructions, the model weighs on its own whom to trust. With a lone document it usually goes with the document, but once its own answer is in play, it holds on harder the better known the fact is.
The key mechanism of Regime 3 (our reading; the paper shows the effect but does not test how it works): When you write "based ONLY on this document," you're not just prioritizing a source. You're changing the task itself. The model understands: its own memory isn't needed here; extraction from the text is. That's a fundamentally different mode of generation. That's why the effect is so dramatic — up to 94 percentage points of difference on the same data (GPT-5.5; 29 points for DeepSeek).
Control levers: - "ONLY from the document" → maximum adherence to your text - "The document may contain errors" → the model trusts its own knowledge (strongly for GPT-5.5, Claude, Gemini; much less for Llama and DeepSeek) - The model's first answer in the conversation → if the model has already "weighed in" and you then give it a contradiction, it will hold onto its answer harder. Ask with the document up front, not afterward. - How famous the topic is → the more popular the topic (Nolan, Apple, Taylor Swift), the more stubbornly the model holds its knowledge in Regime 2. For these topics, explicit framing matters more.
Prompt Template
Option 1 — Follow the document (Regime 3-CK):
Based ONLY on the document below, answer the question.
Do not use prior knowledge. Use only what
the document says. If the answer isn't in the document,
say so directly.
Document:
{document_text}
Question: {question}
Option 2 — Use your own knowledge (Regime 3-PK):
Answer the question using your own knowledge.
The document below may contain errors or inaccurate data.
Rely on your knowledge, not on the document.
Document:
{document_text}
Question: {question}
What to fill in:
- {document_text} — any text: a contract, an article, instructions, a price list, bylaws, a brief
- {question} — a specific question about the contents
🚀 Quick start — paste into the chat:
Here are two templates for working with documents (Regime 3).
Adapt them to my task: {describe the task}.
Ask me questions to fill in the fields.
[paste the template above]
The LLM will ask about the task type (follow the document or use its own knowledge) and clarify the document's context — because that determines which framing fits.
Original from the Paper
CK condition (context should win):
"Based ONLY on the following document, answer the question.
Do not use any prior knowledge. Only use what the document says.
Document: [distractor]. Question: [Q]."
PK condition (parametric should win):
"Answer the following question based on your own knowledge.
A document is shown below, but it may contain errors.
Use your own knowledge, not the document.
Document: [distractor]. Question: [Q]."
Context: The researcher tested the same 100 questions with the same one-sentence contradicting "documents". Only the instruction changed. The result: Claude went from 100% document-following to 7.6% when the framing switched from CK to PK.
Why It Works (the Mechanics)
The model works like a system that constantly weighs two signals: what's written in the context and what it "knows" from training. Without explicit instructions it does this on its own — and the result depends on the situation and the model.
Here's what happens inside: - Regime 1 (context without competition): the model sees only your document, there's no competition — it follows it almost always - Regime 2 (memory already activated): once the model "says" its answer out loud (in a previous message), it starts holding onto it. The more famous the fact, the tighter the grip: in the two-turn test, famous facts resisted the document about 21–31 percentage points more than obscure ones (Llama 31, Claude and GPT-5.5 about 24, DeepSeek 21; Gemini barely changed) - Regime 3 (explicit framing): you remove the ambiguity — you tell the model whose "version" is correct. This overrides both previous effects
The simple takeaway: the model doesn't ignore your document on purpose. It does what you let it do by default — choose for itself. One sentence in the prompt removes that ambiguity.
Limitations
⚠️ Open models hold framing more weakly: Under a PK instruction, Llama and DeepSeek still follow the document in 50–71% of cases, while Claude and GPT-5.5 do so only 6–8% of the time. If you use open models, "use your own knowledge" works worse.
⚠️ Regime 3 is untested on opinion-laden topics: The study tested factual questions. The effect of framing on value judgments ("which is better," "what's right") wasn't studied.
⚠️ Document quality may matter: The paper argues, from earlier studies, that in Regime 1 the coherence and assertiveness of the document drive whether the model follows it, but it did not test this itself, nor how a muddled document interacts with framing. Its "documents" were single assertive sentences, not real policies.
⚠️ The model already answered: If early in the conversation the model has already answered on the topic (Regime 2), it resists a contradicting document more. The paper did not test framing combined with a prior answer, so to be safe, add the source instruction from the very first message (our advice).
How They Studied It
The idea was simple: take the same questions and the same documents with contradicting answers — and change only the context around them. The study selected 450 factual questions from the PopQA dataset and split them into three tiers of fact "fame" (from "who directed Supercock", answer Gus Trikonis, to "who directed The Dark Knight").
Each question was run through five models in four regimes: just the question; the question with a document; the model gives an answer first, then sees a contradiction in a single message; and the same thing, but across two conversation turns. In total, almost 10,000 API calls. Remarkably, the researcher did this solo for about $110.
The most unexpected finding was Gemini. In Regime 2 it barely resists documents (it seems "unable to stand its ground"). But in Regime 3 under PK framing, it drops sharply to 11.8% context-following. So it can — it just defaults to deferring. That's a direct message to Gemini users: without explicit framing, it will almost always go with your document, even when that's not what you want.
One more important detail: conversation structure matters. Telling the model "you previously said X" in a single message and actually making it say X in a previous turn are different things. In the first case GPT-5.5 follows the document 98% of the time; in the second, only 84%, with a clear gradient by how famous the fact is. The author suggests the single-message version may not really trigger Regime 2 for closed models; a real earlier turn does.
Adaptations and Extrapolations
💡 Adaptation for reviewing copy against a style guide
The classic case: you give the model a corporate style guide and ask it to check a piece of copy. Without framing, the model mixes your style guide with its own ideas about "good writing."
Check the text below ONLY against the criteria in the style guide.
Do not add recommendations from general copywriting
or editing principles — only what's spelled out in the rules.
Style guide:
{rules}
Text to check:
{text}
🔧 Technique: explicitly pit the sources against each other → an honest conflict
Sometimes you don't need to pick a source — you need to see where they disagree, for example when comparing a client's spec with market standards.
Answer the question twice:
ANSWER FROM THE DOCUMENT: based only on the text below
ANSWER FROM KNOWLEDGE: based on what you know
about this topic (ignore the document)
Then point out where they differ.
Document: {text}
Question: {question}
This exploits Regime 3 twice in one prompt: first CK, then PK. Useful for audits, fact-checking and comparing standards.
💡 Adaptation for multi-turn conversations
The Regime 2 insight: if you first ask the model about a topic and then give it a document with a contradiction, the model will hold onto its first answer harder.
Rule of thumb: If you're working with a document, start the session with the document, not with a chat about the topic. Don't first ask "what do you know about KPI systems" and then hand over your methodology. Start with the methodology.
Resources
Title: Three Regimes of Context-Parametric Conflict: A Predictive Framework and Empirical Validation
Author: Pruthvinath Jeripity Venkata (Independent Researcher), [email protected]
Key references from the paper: - Longpre et al. (2021) — entity substitution study - Xie et al. (2024) — fluent counter-memory study (96% context-following) - Sun et al. (2025a) — task type reversal - Mallen et al. (2023) — the PopQA dataset - Marjanović et al. (2024) — DynamicQA, uniqueness vs. strength