Apply to my task
arXiv:2510.22944 ★ 85 Oct 27, 2025

Prompt Quality = Output Quality: Three Parameters of a Good Prompt

Key result

Finding: With an unclear prompt, an LLM doesn't pick the correct solution — it picks the simplest one. That's the "path of least resistance": the model fills the gaps with assumptions, choosing the easy option over the safe one. Tests on 10 models showed: vague prompt → errors grow 2.5x. For example, on error-handling tasks: 23% defects with a clear prompt versus 59% with a vague one. The study's framework lets you assess prompt quality along three dimensions (goal clarity, information completeness, logical consistency) and predict the risk of errors before you run it.

01

TL;DR

Vague prompts push an LLM onto the "path of least resistance" — the simplest solution instead of the right one. A study across 10 models showed that when a prompt is incomplete or contradictory, the number of errors grows 2.5x. The reason: faced with ambiguity, the model makes dangerous assumptions to fill in the gaps.

The researchers built a framework that evaluates prompts along three dimensions: goal clarity, information completeness, and logical consistency. They tested it on 1980 prompts at four quality levels — from detailed (expert) to vague (beginner). The result was the same for every model: the worse the prompt → the more errors. For example, on error-handling tasks: 23% defects with a clear prompt versus 59% with a vague one.

Chain-of-Thought and Self-Correction reduce the risk even with bad prompts. CoT (ask the model to reason step by step) and Self-Correction (ask it to check and fix its work) cut errors by 20-30%, because they force the model to think explicitly instead of guessing.


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

Three Dimensions of Prompt Quality

The framework scores a prompt on three parameters:

1. GOAL CLARITY

  • Is it clear WHAT needs to be done?
  • Is there any ambiguity in the wording?

2. INFORMATION COMPLETENESS

  • Is there enough data to do the job?
  • Are the constraints, context, and conditions spelled out?

3. LOGICAL CONSISTENCY

  • Are there contradictions between the requirements?
  • Do any conditions conflict with each other?

Each parameter affects how much the model has to fill in on its own. The more it has to fill in → the higher the risk of errors.


03

Four Levels of Prompt Quality

L0 — EXPERT (fully prescriptive) Everything is detailed: goals, data, constraints, context. The model doesn't guess — it just executes.

L1 — EXPERIENCED (partially prescriptive)
The basics are clear, but the details are fuzzy. The model fills the gaps from experience.

L2 — JUNIOR (non-prescriptive) Only the general structure. Critical details are missing. The model fills in a lot.

L3 — BEGINNER (extremely non-prescriptive) Only the business requirement, often with contradictions. The model has to guess almost everything.


04

Example in Action

Task: Evaluate a business idea — a coffee shop in a residential neighborhood of Chicago.

Bad prompt (L3):

Is opening a coffee shop a good idea?

The problem: No context → the model answers with generic lines like "it depends on location and competition."


Good prompt (L0):

Evaluate a business idea: a grab-and-go coffee shop in a residential neighborhood of Chicago
(15 minutes from the nearest L station).

Context:
- Neighborhood: residential, lots of apartment buildings, few places to eat
- Target audience: local residents, people working remotely
- Competitors: 1 Starbucks a 10-minute walk away, other chains are far
- Format: coffee to go, average ticket ~$5
- Goal: break even within 12 months

Evaluate: potential demand, the competitive landscape, the main risks.

Result: A concrete analysis with a foot-traffic estimate, competitive advantages, and clear risks instead of generic talk.


+ Chain-of-Thought:

{the same task as above}

Reason step by step:
1. Demand analysis
2. Competitive landscape
3. Financial risks
4. Final conclusion

Result: You see the model's line of reasoning → it's clear why it reached that conclusion, not just the final verdict.


+ Self-Correction:

{the same task as above}

After the analysis: reread your answer and check — did you miss
anything important? Fill in any factors you overlooked.

Result: The model finds the gaps in its own analysis and adds important factors (seasonality, permit requirements, foot traffic at different times of day).


05

Why It Works

The LLM's weakness: With incomplete information, the model fills the gaps with assumptions. But it doesn't pick the safest or most correct option — it picks the simplest one, the "path of least resistance."

How the problem unfolds:

  1. Vague prompt → lots of ambiguity
  2. The model is forced to invent the context
  3. It picks the simplest solution (often the wrong one)
  4. The output contains errors or risks

Why CoT helps: It forces the model to think out loud, step by step. Instead of an instant "easy answer," the model breaks down the task and shows its reasoning → less room for dangerous assumptions.

Why Self-Correction helps: The model checks its own work — looking for missed factors, contradictions, risks. It's like a "second read" — it often catches what it missed the first time.

Control levers:

  • Detailed context → less guesswork → more accurate results
  • Explicit constraints → the model doesn't invent its own → safer output
  • Step-by-step (CoT) → you see the logic → you can check it
  • Self-check (Self-Correction) → the model catches its own mistakes

06

Prompt Quality Checklist

Check your prompt before you hit send:

✅ GOAL CLARITY

  • Is it clear WHAT needs to be done?
  • Is there any ambiguity in the wording?
  • Is the desired output format specified?

✅ INFORMATION COMPLETENESS

  • Is there enough data to do the job?
  • Are all the constraints listed?
  • Is the necessary context there?

✅ LOGICAL CONSISTENCY

  • Are there contradictions between the requirements?
  • Do any conditions conflict?
  • Does the task's logic hang together?

07

Boosting with CoT and Self-Correction

For complex tasks, add:

1. Chain-of-Thought (step-by-step reasoning):

{your task with full context}

Think out loud: break the task into steps and show your reasoning
at each stage.

2. Self-Correction (self-check):

{your task with full context}

When you're done: reread the result, find gaps or mistakes,
fix them and fill in what's missing.

The combo (maximum protection):

{your task}

1. Reason step by step
2. When you're done — check yourself and fix any issues

08

Limitations

⚠️ Not a cure for every error: Even a perfect prompt doesn't guarantee correctness on tasks where the model lacks the knowledge or reasoning ability.

⚠️ The effect depends on complexity: For simple tasks the difference between L0 and L3 is minimal. The effect shows up on tasks that require logic and complete information.

⚠️ Self-Correction can add hallucinations: Sometimes the model "finds" problems that don't exist. Evaluate its edits critically.


09

How They Tested It

The team built the CWE-BENCH-PYTHON benchmark — 1980 prompts for generating code prone to different types of vulnerabilities. For each of the 165 tasks they wrote four versions of the prompt (L0→L3), tightly controlling length and avoiding any explicit mention of security. Then they added two variations of each prompt (lexical and structural changes) to test how robust the results were.

They tested 10 models — from CodeQwen-7B to GPT-4o — and compared vulnerabilities in the generated code via automated analysis using expert patterns for each CWE type. The consistency of the result was striking: regardless of the model, going from L0 to L3 increased vulnerabilities 1.5–2.5x. The effect was strongest on tasks that require logic (error handling, access control).

The variation tests showed that the trend holds when the wording changes — so it's really about the quality of the specification, not particular words.

Then they tested CoT and Self-Correction on the same benchmark. CoT reduced vulnerabilities by 13-27% on complex tasks (CWE-284), and Self-Correction by 15-23%. The mechanisms work: explicit reasoning and self-checking compensate for a vague prompt.

Practical insight: Even without any special security instructions, clear task wording is critical. Vagueness = dangerous assumptions. CoT and Self-Correction are accessible tools for reducing risk.


10

Adaptations and Extrapolations

💡 Adaptation for any task:

The principles apply well beyond code. Any task benefits from:

  • A clear goal
  • Full context
  • Logical consistency

Example — writing a text:

❌ L3: "Write an article about AI" ✅ L0: "Write a 1500-word article about using AI in marketing, aimed at small business owners. Format: case studies + practical tips. Tone: friendly, no technical jargon."


🔧 Technique: Preventive self-check

Instead of Self-Correction AFTER the result, ask the model to account for the risks up front:

{your task}

Before you start: think about which mistakes or omissions are typical
for this kind of task. Account for them in your solution.

Effect: The model avoids typical mistakes in advance instead of fixing them after the fact.


🔧 Technique: Explicit Constraints

Add clear boundaries to the prompt, even if they seem obvious:

Evaluate a business idea: {description}

Analysis constraints:
- Facts only, no assumptions
- If there's not enough data, say exactly what's needed
- Cite a source or experience for every claim

Effect: The model doesn't make things up but works with what it has → fewer hallucinations.


11

Resources

Is Your Prompt Poisoning Code? Defect Induction Rates and Security Mitigation Strategies
Bin Wang, YiLu Zhong, MiDi Wan, WenJie Yu, YuanBing Ouyang, Yenan Huang, Hui Li
Shenzhen Graduate School, Peking University

The CWE-BENCH-PYTHON benchmark is publicly available (see the paper for the link)


Research digest

Key result

Finding: With an unclear prompt, an LLM doesn't pick the correct solution — it picks the simplest one. That's the "path of least resistance": the model fills the gaps with assumptions, choosing the easy option over the safe one. Tests on 10 models showed: vague prompt → errors grow 2.5x. For example, on error-handling tasks: 23% defects with a clear prompt versus 59% with a vague one. The study's framework lets you assess prompt quality along three dimensions (goal clarity, information completeness, logical consistency) and predict the risk of errors before you run it.

Principle

Before sending a prompt, check three parameters: 1. Goal clarity – is it clear WHAT to do? No ambiguity? 2. Information completeness – is there enough data? Are constraints and context spelled out? 3. Logical consistency – no contradictions between requirements? Every gap in these parameters = a spot where the model fills things in. The more it fills in → the higher the risk of errors. It's like giving a task to an intern with no instructions – they'll do it "the way they understood it," not the way you need it.

Why it works

With incomplete information, the model fills gaps not with logic but with heuristics – it picks the simplest pattern from its training data. That explains the jump in errors: the model doesn't ask "what's safer?" but grabs "what's easier?". Chain-of-Thought (step-by-step reasoning) and Self-Correction (self-checking) cut the risk by 20-30%. CoT forces the model to think out loud → less room for dangerous assumptions. Self-Correction works like a second read – the model catches its own gaps and contradictions.

When to apply

Any task where accuracy is critical → specifically code generation, business analysis, technical decisions, especially when mistakes are expensive (bugs in production, wrong business conclusions). NOT a fit: creative tasks where vagueness is a feature (brainstorming, idea generation). There, too much detail kills variety.

Mini recipe

1. Pre-send checklist: - Clarity: is it clear WHAT to do? Is the output format specified? - Completeness: are all the data, constraints, and context there? - Consistency: no contradictions in the requirements? 2. For complex tasks, add CoT: After the task: `Think out loud – break it into steps and show your reasoning at each stage` 3. For critical tasks, add Self-Correction: After CoT: `Reread the result – find gaps or mistakes, fix them and fill in what's missing` 4. Combo for maximum protection: Full context + CoT + Self-Correction (for tasks where a mistake = disaster)

Examples

[BAD]: `Is opening a coffee shop in Chicago a good idea?` (No context → the model answers with generic lines like "it depends on location") [GOOD]: `Evaluate a business idea: a grab-and-go coffee shop in a residential neighborhood of Chicago (15 min from the nearest L station). Context: residential area, lots of apartment buildings, few places to eat. Target audience: local residents, remote workers. Competitors: 1 Starbucks a 10-min walk away, other chains are far. Format: coffee to go, average ticket ~$5. Goal: break even within 12 months. Evaluate: potential demand, the competitive landscape, the main risks.` [EVEN BETTER – with CoT and Self-Correction]: `{the same task as above} Reason step by step: 1) Demand analysis 2) Competitive landscape 3) Financial risks 4) Final conclusion. After the analysis: reread your answer and check – did you miss any important factors? Fill in what's missing.` (You see the reasoning + the model finds the gaps itself: seasonality, permits, foot traffic at different times)

In plain words

When you give an AI a vague task, it doesn't ask follow-up questions — it starts filling in the blanks for you, taking the path of least resistance. The problem is that for an LLM, "easier" almost always means "worse" in terms of security and logic. A study on ten top models confirmed it: as soon as ambiguity or a contradiction creeps into the prompt, the number of critical bugs in the code shoots up 2.5x. The model doesn't try to be a hero and work out the right way to do it; it just slaps together the most primitive hack to close out the context window as fast as possible.

It's like hiring a contractor and telling them: "Just make it look nice." Instead of asking about the type of foundation or the load on the beams, they'll pick the cheapest and fastest option that looks fine but will fold at the first gust of wind. In programming this turns into defect induction: the model makes dangerous assumptions to fill the holes in your spec, and you end up with code that works but leaks like a sieve.

The main culprit here is missing context, which makes the AI trip over its own feet. If you ask for a function but don't specify security constraints, the model will hand you the simplest solution, skipping checks against hacking or data leaks. In the tests it played out like this: a clear prompt produced clean output, but as soon as you added a bit of "fluff" or stripped out details, the model immediately started poisoning its own code, turning it into a potential threat.

Although the study focused on coding, this principle — poison in the prompt — works everywhere, from business analytics to copywriting. If you ask it to evaluate a coffee shop idea but give no inputs on budget and location, the AI won't produce a deep analysis; it'll paint you a rosy picture out of generic phrases. SEO copywriting or marketing strategy — doesn't matter; wherever something is left unsaid, the AI will choose the most banal and useless option.

Bottom line: a bad prompt isn't just "a bad answer," it's a direct road to systemic errors. If you want the model to stop screwing up, forget about short, lazy requests. Either you spell out all the conditions and constraints, or you get toxic code and junk advice. A 2.5x jump in errors is far too high a price for laziness, so spell out your tasks in detail — otherwise the AI will simply tank your project to save on its own compute.

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 Prompt Quality = Output Quality: Three Parameters of a Good Prompt arXiv:2510.22944

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