Apply to my task
arXiv:2609.28090 ★ 89 Sep 23, 2026

Clean-Aware Prompting: How One Phrase Kills False Accusations from an LLM Reviewer

Key result

With an open prompt, the main model (DeepSeek) accused 93.8% of clean, error-free code of violations. Simply because protective code patterns look textually similar to the signs of a problem — the model confuses the cure with the disease. The clean-aware prompting method lets you check code, contracts, and text for errors without a flood of false alarms on perfectly fine sections. A list of error types plus a note that clean examples are common (our wording: "some of these examples are fully correct, with no violations") brought DeepSeek's false accusations down to zero, while keeping 100% detection of real errors. Not every model responded: GPT-4o-mini still flagged 79% of clean code.

01

TL;DR

When you ask an LLM to find mistakes in something — code, a contract, a piece of writing — the model starts nitpicking even the parts that are completely fine. It's primed to hunt for problems, not to confirm that everything checks out. Telling the model up front that clean examples are common (our wording: "some of these examples are fully correct, with no violations" — the paper does not publish its exact sentence) sharply cut false accusations for the main model tested without losing the ability to catch real errors.

Researchers tested how an LLM audits financial backtests (testing trading strategies against historical data) for methodological errors — like "look-ahead bias" or unrealistic transaction costs. With an open prompt (no list of error types, no warning), the main model (DeepSeek V4 Flash) falsely flagged 93.8% of clean, error-free code — meaning out of 100 correct examples, it found a "problem" in almost every single one. The paper's explanation: the clean versions contain safeguards (correct data splitting, realistic costs) that look like the patterns the model is scanning for as red flags — it confuses the cure with the disease.

Adding a list of error types (a taxonomy) cut that rate to 20.8%; adding on top a note that clean examples are common (clean-aware) brought it to 0% while keeping the real-error detection rate at 100% — for DeepSeek. Results differed by model: under the same prompt GPT-4o-mini still flagged 79% of clean code (38 of 48). The list of error types also helped DeepSeek catch flaws hidden inside a preprocessing step that it mostly missed without the list (1–2 of 6 found, versus 6 of 6 with it).

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.

02

Method Blueprint

STEP 1: Give the model an explicit list of problem categories it should look for → a closed taxonomy
STEP 2: Add a warning "some of these examples are clean/correct — don't mistake them for a problem" → cuts false positives
(both steps go into a single prompt)
03

Example in Action

Our illustration — the paper tested only financial backtests, not contracts.

Scenario: You're the founder of a small company. You just got a commercial lease agreement for an office. You want to run it through ChatGPT to check for hidden traps, but you don't want the model to "panic" and flag every standard clause as risky — otherwise you'll end up arguing with your landlord over nothing.

Prompt:

Review this lease agreement for risks to the tenant. Specifically look for these 
types of issues: hidden rent increases, a one-sided right for the landlord to 
terminate the lease, penalties with no upper cap, no right to sublease, unclear 
terms for deposit return.

Important: the lease may contain completely normal, standard clauses (for example, 
ordinary payment deadlines or mutual termination terms) — don't mistake these for 
risks. Only flag things that genuinely put the tenant at a disadvantage.

For each issue you find, provide: the type of risk, the exact quote of the clause, 
and a specific explanation of why it's a risk.

Here's the lease text:
{lease text}

Expected result (not tested in the paper): The model will go through the lease clause by clause, flagging specific risks with a quote and explanation. Compared to a prompt without the warning, the number of "panic" flags on standard clauses will be noticeably lower, while the detection rate for real issues stays the same.

04

Why This Works

Our reading (the paper does not test this): when an LLM is asked to "find an error," it drifts toward confirming the task — finding exactly what it was asked to look for. Without a limiter, it cranks up its sensitivity and latches onto safeguards that merely resemble a red flag: for example, the word "leakage" (data leakage) sitting next to a line of code that actually prevents that leakage.

Telling the model the base rate (how often an error actually shows up) helps. If you flat-out tell it: "not everything is an error, some of these examples are clean" — the model recalibrates its internal suspicion threshold and stops hammering every pattern that merely looks similar.

Levers you can pull: - List of problem categories → the more precise and explicit the list, the better the model catches "hidden" issue types that aren't explicitly named. - The "clean examples" phrase → the main calibration lever. For DeepSeek it took false positives on clean code from 20.8% to 0%; for GPT-4o-mini they stayed at 79%, so check your own model. - Role/persona → in the study (DeepSeek only), the "skeptical reviewer" and "risk manager" personas produced more false accusations with no gain in detection rate. The "auditor" and "quant reviewer" personas struck the best balance. Be careful with aggressive personas if you care about precision rather than flag count. - Don't trust the model's stated confidence as a quality signal — in the study, even among the most confident answers, 35% of verdicts on clean examples were still false alarms.

05

Prompt Template

Review {item to check} for these types of issues: {list of categories}.

Important: some of these examples/items are completely correct, with no violations. 
Don't mistake normal or protective elements for a real problem. 
Only flag things that genuinely create a risk or error.

For each issue you find, provide:
1. The type of issue
2. The exact quote/location where it occurs
3. A specific fix (not general advice — exactly what to change)

Here's the {item to check}:
{text/code/data}

Fill in: {item to check} — what you're reviewing (a contract, code, a resume, a financial report, marketing copy for legal risk); {list of categories} — the specific error types that matter for your task; {text/code/data} — the actual material to review.

🚀 Quick Start — paste this into the chat:

Here's a prompt template for error-checking with built-in protection against false 
positives. Adapt it to my task: {your task}.
Ask me questions to fill in the fields.

[paste the template above]

The LLM will ask you which specific problem categories matter and what counts as "normal" in your material — because without that, it can't calibrate its suspicion threshold to your specific task.

06

Limitations

⚠️ Small sample size: the study used only 6 examples per error category — confidence intervals are wide, and some findings are more of a trend than a precise number.

⚠️ Synthetic examples: the "clean/broken" pairs were artificially built on a fixed set of strategy skeletons — in real, complex documents (long contracts, large codebases) the effect may be weaker.

⚠️ The fix-quality problem remains: even with a clean-aware prompt, the model can correctly locate a problem but suggest an irrelevant fix — for the main model with the clean-aware prompt this happened in 12.5% of detections (6 of 48). Double-check any proposed fix separately.

⚠️ Single-turn, no dialogue: every check in the study was a single call with no follow-up questions; in a real multi-turn chat, calibration might behave differently.

07

How the Study Was Done

The researchers assembled 96 examples of financial strategies (backtests): half contained a real methodological error from 8 classes (look-ahead data leakage, unrealistic costs, and so on), written as both prose and code, and the other half were "clean" versions of the same strategies, deliberately written with safeguards (correct sample splitting, realistic costs) that resemble suspicious patterns but are actually correct.

They tested four models (DeepSeek V4 Flash, GPT-4o-mini, Gemini 2.5 Flash Lite, GPT-4.1-mini) under three prompting conditions: no hints, with a list of error types, and with an explicit warning that clean examples exist. An automated scorer checked not just whether the model "found the error," but also whether it located the error in the right spot and whether the proposed fix was relevant.

The surprising result: with the clean-aware prompt on code, three of the models reached the same 100% recall (real-error detection rate) — indistinguishable by that metric alone. But the number of false accusations on clean examples varied dramatically between models — from 0% to 79%. The main practical takeaway: a simple "found it or didn't" report masks real differences in review quality — you need to look at detection rate and false-positive rate together.

08

Resources

Can LLMs Catch a Rigged Backtest? A Clean-Control Calibration Benchmark — Makar Ulesov, Vladislav Smirnov, Omar Ibrahim (Mohamed bin Zayed University of Artificial Intelligence), Arsenii Bobovnikov (University of Pittsburgh).

Research digest

Key result

With an open prompt, the main model (DeepSeek) accused 93.8% of clean, error-free code of violations. Simply because protective code patterns look textually similar to the signs of a problem — the model confuses the cure with the disease. The clean-aware prompting method lets you check code, contracts, and text for errors without a flood of false alarms on perfectly fine sections. A list of error types plus a note that clean examples are common (our wording: "some of these examples are fully correct, with no violations") brought DeepSeek's false accusations down to zero, while keeping 100% detection of real errors. Not every model responded: GPT-4o-mini still flagged 79% of clean code.

Principle

The model is set up to look for a problem, not to confirm that everything is fine. It's like a security guard told "look for the intruder" — now he sees something suspicious in every passerby. The phrase about clean examples changes the instruction to "not every passerby is an intruder, some are definitely fine" — the model recalibrates its suspicion threshold. Plus, an explicit list of error types (a closed taxonomy) helped the model catch flaws hidden inside a preprocessing step that it mostly missed without the list.

Why it works

The cause is textual similarity. The word "leakage" next to code that actually prevents that leakage still triggers the model as a red flag. Open prompt — 93.8% false accusations on clean code; with a list of error types — 20.8%; with the list plus the "clean examples" note — false positives drop to zero for DeepSeek while real error detection stays at 100%. Don't trust the model's self-reported confidence as a quality indicator: even among the most confident answers, 35% of verdicts on clean examples were false alarms.

When to apply

Tested only on financial backtests; by extension, LLM auditing of other material for errors → code review, contract risk checks, financial backtest analysis, proofreading text for legal pitfalls — especially when it matters not to argue with "false alarms" on perfectly fine sections. NOT a substitute for manual review of critical decisions: even for the best setup, the suggested fixes were irrelevant in 12.5% of findings, so those should be double-checked separately.

Mini recipe

1. Make a list: spell out specific error types — not "find problems," but "look for hidden rent increases, uncapped penalties, and look-ahead bias." 2. Add a safety net: insert the phrase "some of these examples are fully correct, with no violations — don't confuse normal elements with a problem." 3. Pick the role carefully: "auditor" or "quant reviewer," not "skeptical reviewer" or "risk manager" — in the study (one model) those personas produced more false positives with no gain in detection. 4. Require a quote and a fix: for every issue found, demand the exact location and a specific action, not generic advice.

Examples

[BAD]: `Check this code for data leakage errors in the backtest` [GOOD]: `Check the code for these error types: look-ahead bias, data leakage, unrealistic costs. Important: some of the code examples are fully correct, with no violations. Don't confuse protective patterns (proper data splitting) with the problem itself. For each error found, state the type, the exact line of code, and a specific fix.`

In plain words

When you ask a model to "find the bugs," it basically loses its mind trying to please you. LLMs seem to have a kind of confirmation bias: if a human is asking about problems, then problems must exist. So the model starts inventing issues out of thin air and declares a perfectly clean piece of text a threat. Instead of an objective auditor, you get a paranoid reviewer who spots a critical bug in code that's working exactly as intended.

It's like sending an overeager rookie cop into an apartment with orders to "find some kind of crime, any crime." He'll tear the place apart and confiscate a box of baking soda because "the powder looks suspiciously white." The model latches onto familiar trigger words the same way: it sees the word leakage in the code and immediately sounds the alarm, even though that line is exactly what's preventing the leak.

The fix is stupidly simple — clean-control calibration. Just add a line to the instructions: "some of the examples are completely correct, with no violations at all." For the main model tested, this simple safeguard (together with a list of error types) slashed a mountain of false positives without dulling its edge on real problems — though one cheaper model kept over-flagging. You're literally giving it permission to say: "dude, this one's clean."

Researchers tested this only on financial backtests, but the pattern is worth trying elsewhere. Whether you're checking a lease for hidden traps, sending a Python script out for review, or proofreading an article — without that phrase, the AI may flag perfectly fine work as broken. Prompt calibration saves you a ton of headaches and awkward arguments with lawyers and developers down the line.

Bottom line: models are great at spotting real problems — but only if you explicitly give them permission to find nothing at all. Always build in the possibility of a perfect result for audit-style tasks. Otherwise you'll burn half your day "fixing" something that was already working perfectly fine.

AI lab assistant

Apply this study to your task

Describe what you're working on. AI takes the method and the measured results from this paper and adapts them to your case, or writes a ready prompt built on them.

Based on Clean-Aware Prompting: How One Phrase Kills False Accusations from an LLM Reviewer arXiv:2609.28090

Sign in to apply this study New accounts get 50 free credits.