TL;DR
Contradiction Gate is a technique built from two separate requests to the same model: the first one solves the task, the second one checks the input data for contradictions. If the check finds a conflict, the first request's answer gets thrown out, and the model responds "I can't calculate this."
The main finding: an LLM can tell "data is missing" apart from "data contradicts itself" — and it behaves very differently in each case. If a fact is missing from the setup, models almost never return the clean-data answer (at most 1.3% of cases) and often refuse (27-92%, depending on the model). But if two facts in the setup contradict each other (say: "the spouses are filing jointly" and, a sentence or more later, "the spouses are filing separately"), the four most accurate models — all step-by-step reasoners — usually don't notice. They seem to grab onto one of the two facts and confidently produce a number — in 63-76% of cases, within 10% of the answer for the clean, contradiction-free data. No signal that anything's off.
The fix is surprisingly simple: the same model, if asked not to solve but to verify the input data, catches 75-83% of these same contradictions (68-83% across all six models tested). So the model can see them — it just isn't looking for them while it's busy calculating. The technique boils down to two steps: (1) solve the task as usual, (2) in a separate request, ask the model "are there any contradictions in the input facts," and if it says "yes," swap out the step-1 answer for a refusal.
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
STEP 1 (request 1): Solve the task based on the data → a number OR "I can't answer"
STEP 2 (request 2, separate, same model): Check this same data for completeness
and internal consistency → label: "all good" / "missing data" / "contradiction found"
STEP 3 (logic on top): If STEP 2 = "contradiction found" →
replace the STEP 1 answer with a refusal, regardless of what it said
Steps 1 and 2 are two separate requests (in the study, two separate API calls with the same context). In an ordinary chat, that's two messages or two separate chats with the same source data.
Applied Example
Our illustration: the paper tested only US tax cases, not client briefs.
Task: You're a freelance project manager. A client sends you a brief for a website build. The brief contains a contradiction: at the start, the client writes "budget is $800, a simple one-page landing page," and at the end — "we also need a product catalog section with 200 items and a user account area." You ask ChatGPT to work out a quote, and the model will most likely just calculate the quote based on one version of the requirements, without noticing the conflict.
Prompt (request 1 — solving):
You are an experienced web development project manager. Here's a client brief:
"Budget is $800, need a simple one-page landing page.
Also need a product catalog section with 200 items and a user account area."
Estimate the approximate cost and timeline for this project based on this brief.
If there isn't enough data to calculate — write "cannot calculate."
Prompt (request 2 — verification, as a separate message or in a new chat):
Check this client brief for internal consistency:
"Budget is $800, need a simple one-page landing page.
Also need a product catalog section with 200 items and a user account area."
Are there any facts in this brief that contradict each other
(e.g., different scope of work, different budgets, different deadlines)?
Answer with one of three options:
1) "everything is consistent"
2) "missing data" — specify what's missing
3) "contradiction found" — name specifically which two facts conflict
What to expect: In the first request, the model may well silently calculate a quote — say, for a "simple landing page" — and never mention that a 200-item catalog and a user account area obviously don't fit that budget. In the second request, the model is likely to call out the conflict directly: "a simple one-page landing page" doesn't square with "a 200-item catalog and a user account area" at an $800 budget. Once you see that flag, you throw out the quote from the first request and go back to the client for clarification instead of handing over a confidently wrong number.
Why This Works
Our explanation (the paper only suggests that the model defaults to one of the two conflicting values): when the model solves a task, its attention goes into the computation: it takes the facts in order and calculates, without cross-checking them against each other — much like a person absorbed in doing long division who doesn't notice the word problem states two different ages for the same character. The model simply doesn't spend "attention budget" cross-referencing facts, because the task is framed as "calculate this," not "check this."
But the model's strength is that it's genuinely good at spotting inconsistencies when explicitly asked to compare facts against each other rather than compute something. The instruction "check for contradictions" is a different task with a different focus of attention, and in that mode the four most accurate models caught the conflict 75-83% of the time, and detection was fairly uniform even for the two models that were much weaker at the tax math (68% and 77%).
The method exploits this gap: instead of improving the calculation itself, it adds a second look at the same data with a different task and uses that as a filter before handing the answer to the user.
Control levers (our suggestions, not tested in the paper):
- Verification labels (all good / missing / contradiction) → expand these for your use case, e.g., add ambiguous wording
- Wording of the verification question → the more specific it is (e.g., "compare the budget figures across different parts of the text"), the higher the chance of catching a conflict
- What to do when the gate triggers → in the study this is a hard refusal, but you could swap that for "show both calculation scenarios" instead of a flat refusal
Prompt Template
REQUEST 1 (solving):
You are a {expert role}. Here's the input data:
"{data/brief/task description}"
{specific instruction — calculate/solve/draw a conclusion}.
If there isn't enough data to answer — write "cannot answer."
---
REQUEST 2 (verification, as a separate message):
Check this same input data for internal consistency:
"{same data/brief/task description}"
Are there any facts in it that contradict each other?
Answer with one of three options:
1) "everything is consistent"
2) "missing data" — specify exactly what's missing
3) "contradiction found" — name specifically which two facts conflict
---
If the answer to REQUEST 2 is "contradiction found," do not use the answer
from REQUEST 1. Instead, state that the data is contradictory
and specify exactly what needs to be clarified.
What to fill in: {expert role} — who the model is impersonating (accountant, lawyer, project manager), {data/brief/task description} — the source text with the facts, {specific instruction} — exactly what needs to be calculated or resolved. The template is our adaptation; it uses the paper's three verification labels (none / missing / contradiction), and the paper's exact prompts are in its repository.
🚀 Quick Start — paste into chat:
Here's a template for the "Contradiction Gate" technique — a two-step check
of data for contradictions before trusting the model's answer.
Adapt it to my task: {your task}.
Ask me questions to fill in the fields.
[paste template above]
The LLM will ask what kind of data you typically feed in and what type of contradictions tend to show up in it (numeric, categorical, temporal) — because the data type determines exactly how to phrase the verification question in the second request.
Limitations
⚠️ Extra cost: the method requires a second request to the model for every task — that's extra time and tokens, even if the amount is small.
⚠️ False positives: the verification request sometimes finds a "contradiction" where there isn't one, and throws out a correct answer. In the study, this cost up to 5 percentage points of accuracy on clean data.
⚠️ Not tested on every type of conflict: the study used only categorical contradictions (marital status, filing status, number of dependents). Even there, results varied: filing-status conflicts were caught 95-97% of the time by the top four models, but dependent-count conflicts only 30-59%. Numeric contradictions (two different values for the same amount) were not tested — the authors avoided them because two different numbers tend to read as an update or approximation rather than a clear conflict.
⚠️ Same model for both solving and verifying: if the model has a "blind spot," it might fail to catch the same type of error in both modes. Using different models for solving versus verifying hasn't been tested; the authors list a cross-model verifier as future work.
How It Was Studied
The researchers took 91 tax cases from the well-known legal benchmark SARA (tax calculation under real U.S. tax code) and created two kinds of "corrupted" versions: 78 had a required figure removed (e.g., income), and 108 had a contradicting categorical statement inserted (e.g., "filing jointly" next to "filing separately"). They tested six recent models — GPT-5 mini, GPT-5.2, Claude Sonnet 4.6, Qwen3.7-Plus, Kimi K2.5, Gemini 2.5 Flash — running each three times for reliability.
Each model was asked either to solve the task (give a number or refuse) or, separately, to check the input data for contradictions. It turned out that when a fact was missing, models almost never returned the clean-data answer (at most 1.3%) and refused on 27-92% of cases. But with a contradiction present, the four most accurate models refused only 0-15% of the time and, in 63-76% of cases, produced an answer within 10% of the clean-data answer, as if there were no conflict at all. Yet those same models, when asked to "check the data," caught the conflict 75-83% of the time. Overriding the answer whenever the check flagged a contradiction cut those clean-looking answers from 63-76% to 11-15%, at a cost of at most about 5 points of accuracy on clean data. The authors present this gate as an analysis tool, not a system they propose for deployment.
An interesting detail: in check mode, the four models with "chain of thought" (ones that "think" before answering) caught contradictions at about the same rate (75-83%) as the two direct-answer models (68-77%), even though the direct-answer models were far weaker at the tax math. The authors note they can't separate reasoning mode from model strength in this set, so this is a pattern, not proof. What clearly mattered was whether the task was framed as "calculate this" or "check this." That's exactly where Contradiction Gate comes from: a simple way to make the model take a second look at the data before you trust its first answer.
Resources
Solving versus Verifying: Catching Contradictions in Tax Reasoning Systems, Albert Sadowski, Jarosław A. Chudziak, Warsaw University of Technology. Accepted at ICTAI 2026. Dataset and code: publicly available on Zenodo (doi.org/10.5281/zenodo.22329077). Uses the SARA / LegalBench benchmark (Holzenberger et al., 2020; Guha et al., 2023).