TL;DR
The study showed that if you run an LLM agent on the same task twice, you'll get different behavior. Across 3,000 runs (Llama 70B, GPT-4o, Claude Sonnet 4.5), the same question produced 2-4 different solution paths out of 10 attempts. Even with identical inputs, models pick different strategies: different search queries, a different sequence of steps, different analysis logic.
Behavioral variability predicts errors. Tasks where the agent behaves the same way (1-2 unique paths) are solved with 80-92% accuracy. Tasks where the agent "thrashes around" (6+ different paths) reach only 25-60% accuracy. The gap: up to 55 percentage points. The divergence starts early: 69% of the variability appears as early as step two — the first search query after the initial reasoning. If the agent hasn't settled on a direction from the start, the rest of the path will be unstable.
If an agent solves a task consistently (the same actions across repeated runs), the answer is most likely correct. If it thrashes and produces different trajectories, that's a signal of uncertainty and a likely error. Long trajectories (8+ steps) correlate with low accuracy (43%), short ones (3 steps) with high accuracy (90%). Lowering temperature from 0.7 to 0.0 improves both consistency (4.2 → 2.2 unique paths) and accuracy (+5.4pp).
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.
Consistency Check Blueprint
STEP 1: Run the task 3-5 times
→ In different chats or sessions (clear the history between runs)
STEP 2: Compare the reasoning trajectories, not just the final answers
→ Look at the logic, the order of arguments, which facts it pulls out
STEP 3: Assess consistency and decide:
→ Same logic/path + agreeing conclusions = high reliability ✓
→ Different approaches + contradictory conclusions = low reliability ⚠
(needs extra verification or a more specific task statement)
Done manually. Each run goes in a separate chat.
Example in Action
The task: Working through a career dilemma — whether to switch jobs (complex, multi-factor, and the reliability of the analysis matters)
Prompt:
I've been offered a move to a startup. Right now I'm a product manager at Google, $150K a year, stable. They're offering a Head of Product role at an EdTech startup (team of 20), $175K + 1% equity.
Help me analyze: should I move or stay? Consider career growth, finances, risks, and learning opportunities.
How to apply the consistency principle:
Run this prompt in 3-4 different chats (or clear the history and run it again). Then look:
If it's consistent: all runs reach the same conclusion (for example, they all say "make the move, here are 3 key reasons X, Y, Z") and follow a similar path of analysis (finances first, then career, then risks) — high reliability, you can trust the conclusion
If it's inconsistent: one chat says "definitely move," another says "better to stay," a third focuses on finances, a fourth on startup risk — that's a signal of uncertainty from the model. You need more expertise, more data, or a more specific framing of the question
Result:
You'll see how stably the model approaches the task. Consistent answers (same analysis logic, similar conclusions, same prioritization of factors) can be trusted. A spread of approaches and contradictory conclusions signal that the task is at the edge of the model's abilities — you need human expertise or a rephrasing with more context.
Why It Works
When generating text, LLMs make a choice among many possible continuations. On complex tasks, every step is a fork in the road: which search query to write, what to pay attention to, which facts to extract. A temperature >0 adds randomness to the choice, so the trajectories diverge.
When the task is hard and the model is unsure, there are more forks and their probabilities are close to each other. The model may head off in different directions. It's like a person who doesn't know the exact answer — every time, they try a different approach. When the task is easy and the pattern is familiar, the probability of the "right" continuation is high, so even with randomness the model picks the same thing. Consistency = confidence = correctness.
Divergence at step 2 (the first search query) is critical: if the agent picks the wrong search direction right from the start, the whole rest of the path goes the wrong way. It's like GPS navigation: miss the first turn and the errors pile up, the route gets longer, and you end up in the wrong place.
Long trajectories (8+ steps) almost always mean a problem: the model is going in circles, searching for the same information again, unable to make the pieces fit. Accuracy drops to 43%. Short trajectories (3 steps) mean confidence: the model knows what to look for, finds it fast, and answers. Accuracy: 90%.
Knobs you can turn:
- Number of runs → 3 runs for a quick check, 5-10 for high-stakes decisions
- Temperature → lower it to 0.0-0.3 for tasks where reliability matters (data analysis, calculations, fact-checking), keep 0.7-1.0 for creative work
- Consistency criterion → for some tasks you need fully identical conclusions; for others, similar logic with different wording is enough
Checklist for Verification
Copy it and apply it to your own complex tasks:
Consistency check cheat sheet:
1. Ask a complex question that requires analysis: {your_task}
2. Run it 3-5 times:
- Open a new chat (or clear the history)
- Paste in EXACTLY THE SAME prompt
- Record not just the answer but the COURSE of the reasoning
3. Compare:
✓ Same logic + agreeing conclusions = reliable, safe to use
⚠ Different approaches + contradictions = low reliability
4. If it's inconsistent:
- Add more context and specifics to the prompt
- Break the task into subtasks
- Or lower the temperature to 0.0-0.3
- Or get an expert human opinion
🚀 Quick start — paste into the chat:
Help me adapt the consistency-check method to my task. Ask me questions to understand:
- What task I'm checking
- How precise a result I need
- What resources I'm willing to spend (number of runs, time)
Then give me concrete instructions: how many runs to do, what to look at when comparing, and how to interpret the results.
[paste the cheat sheet above]
The LLM will ask about your specific task and give you a tailored verification strategy — because the method is universal, but how you apply it depends on how critical the decision is and what resources you have.
Limitations
⚠️ Not for simple tasks: A consistency check only makes sense for complex multi-step tasks where the model has to reason, extract information, and weigh arguments. On simple questions ("the capital of France," "translate into Spanish"), the model is almost always consistent — the check won't tell you anything new and will just burn tokens.
⚠️ Takes time and tokens: Multiple runs cost money. 5 runs = 5x the cost. For tasks where speed is critical or the budget is tight, it may not fit. Prioritize: use it for high-stakes decisions (finance, strategy, career), not routine work.
⚠️ Doesn't replace expertise: Consistency is an indicator of the model's confidence, not a guarantee of correctness. A model can be consistently wrong on tasks beyond its capabilities (niche specialist expertise, data after its training cutoff, tasks that need access to closed systems). If the task is critical, use consistency as a filter, but do the final check yourself or with an expert.
How They Studied It
The researchers took 100 hard questions from HotpotQA (multi-hop questions that require finding information across several documents, "hard" class) and ran each one 10 times through a ReAct agent on three models: Llama 3.1 70B, GPT-4o, Claude Sonnet 4.5. Temperature was 0.7 — the standard for production agents, reflecting real-world use. That's 3,000 runs in total.
For each run they recorded the full sequence of actions (Search → Retrieve → Finish) and the final answer. Then they counted how many unique trajectories there were for the same task, how much the path length varied, and where the first divergence happened.
The main finding was surprising: tasks where the agent behaved consistently (1-2 unique paths out of 10 runs) were solved correctly 80-92% of the time. Tasks where the agent "thrashed around" (6+ different paths) — only 25-60%. A huge gap: from 32 to 55 percentage points depending on the model. That means consistency is a strong predictor of correctness, not just a side effect.
Another unexpected result: 69% of divergences happen as early as step 2 — the first search query after the initial reasoning. If the agent "doesn't know" which direction to take at the start, it will keep thrashing from there. It's like the butterfly effect: a small uncertainty at the beginning snowballs into big differences by the end. Tasks where the agent took step 2 the same way in every run were solved with 85.8% accuracy. Where the runs split right there — only 71.7%.
One more insight: trajectory length is a ready-made reliability indicator. Perfectly consistent tasks (1 unique path) take 3.4 steps on average with 85.7% accuracy. Highly inconsistent ones (9+ paths) take 7.8 steps and reach only 43% accuracy. Correlation between path length and correctness: r = −0.34. If you see the agent taking lots of steps, going in circles, searching for the same information again, that's a red flag: it's unsure and most likely wrong.
In practice: Claude Sonnet 4.5 did best on both accuracy (81.9%) and consistency (2.0 unique paths on average). Llama 3.1 70B was the most "scattered" (4.2 paths), but when temperature was lowered to 0.0, its consistency improved from 4.2 to 2.2 paths and accuracy rose by +5.4pp. This shows that temperature is an accessible lever for boosting reliability without switching models.
Adaptations and Extrapolations
💡 Adaptation for testing prompts:
Built a complex prompt for regular use? Test its stability before you roll it out.
Instructions for testing a prompt:
1. Take 3-5 typical example tasks
2. Run each example through the prompt 3 times
3. Check consistency:
- Is the output format the same?
- Is the reasoning logic similar?
- Do the conclusions agree?
If consistency is low:
→ Add specifics: "First do X, then Y, then Z"
→ Add constraints: "No more than 3 points", "Use only data from the context"
→ Add examples (few-shot): show 1-2 examples of correct execution
If consistency is high:
→ The prompt is well specified and ready to use
🔧 Technique: Lower temperature → higher consistency
For tasks where reliability matters more than creativity (calculations, data analysis, fact-checking, information extraction), set temperature to 0.0-0.3.
ChatGPT:
- In the app: Settings → Model → Temperature (if available; hidden by default)
- Via the API: the parameter temperature: 0.0
Claude:
- In the app: not yet available in the UI
- Via the API: the parameter temperature: 0.0
Effect: The model becomes more predictable, with less variation between runs. Accuracy on analytical tasks goes up by 5-10% (per the study: +5.4pp for Llama). The trade-off: less creative wording and a more "mechanical" style.
When to use it:
- ✅ Financial calculations
- ✅ Analyzing data and reports
- ✅ Fact-checking
- ✅ Code generation (fewer hallucinations)
- ❌ Creative writing (it'll be dull)
- ❌ Brainstorming (you need variety)
💡 Adaptation for gauging task difficulty:
If the model shows high variability across repeated runs, that's a signal the task is at the edge of its abilities.
Diagnosis:
Ran the task 3 times → got 3 VERY different answers → now what?
1. Simplify the task:
→ Break it into subtasks (instead of "analyze the whole market" → "first estimate the size, then the competitors, then the barriers to entry")
→ Clarify the criteria (instead of "good idea?" → "evaluate on 3 criteria: market size >$100M, competition <5 players, barrier to entry <$1M")
2. Add context and examples:
→ Attach data (market stats, a financial model, competitor examples)
→ Show an example of a good analysis (few-shot)
3. Lower the temperature to 0.0-0.3:
→ Removes randomness; the model will take the "well-trodden path"
4. Or accept the model's limits:
→ If consistency stays low after all the improvements, the task needs human expertise
→ Use the model for a draft; the final decision is yours
🔧 Technique: Monitoring trajectory length as an early warning
If you use prompt chains or a multi-step workflow, keep an eye on the number of iterations.
Rule of thumb: - 3-4 steps to a solution → good sign, the model is confident - 5-7 steps → medium difficulty, check the result more carefully - 8+ steps → red flag: the model is "going in circles," high probability of error
How to apply it:
When working with agentic systems (for example, via the API or a custom GPT with tools):
After every response, ask yourself:
"Is the model moving toward the goal or repeating actions?"
If you see repetition (identical search queries, going back to data it already checked):
→ STOP
→ Rephrase the task more specifically
→ Or take the intermediate result and start a new session with a narrower focus
When working by hand (chatting with the model):
Count how many times the model "changes its mind" or circles back to something already discussed.
If the conversation is >5-6 messages long and the model still hasn't given a concrete conclusion:
→ Say: "Summarize: what is your final answer to question X?"
→ Or: "We've hit a dead end. Let's start from a different angle: [rephrase the task]"
Resources
When Agents Disagree With Themselves: Measuring Behavioral Consistency in LLM-Based Agents
Author: Aman Mehta (Snowflake)
Code and data: github.com/amanmehta-maniac/agent-consistency
Related work mentioned in the study: - ReAct (Yao et al., 2023) — the foundational agent pattern that interleaves reasoning and acting - τ-bench (Yao et al., 2024) — the pass[k] metric for measuring agent consistency - Self-Consistency (Wang et al., 2023) — a technique for improving accuracy through majority voting