WhoBuilt

Why Your Agent Disagrees With Itself (And What To Do About It)

Jul 20, 2026· 26 min· 1.9K views·Watch on YouTube

Speaker

Diane Lin, who leads development of self-evolving agents at Datadog, explains why AI agents change their decisions and how teams can improve consistency.

What inconsistency looks like

Lin distinguishes semantic changes in an agent’s answer from simple wording differences. She gives examples from hotel sentiment analysis, cybersecurity alerts that flip between malicious and benign, and agents navigating a changing website. These shifts can complicate evaluation, create security risks, and weaken user trust.

Why agents disagree

Lin defines inconsistency as different behavior on the same task caused by irrelevant input variation, studied in her experiments at zero temperature. She identifies three sources: equivalent prompts phrased differently, unrelated conversational context, and environmental changes such as ads or page layout. She says these variations affect how the model represents its context, and that disagreements often cluster around ambiguous cases near a decision boundary.

Ways to improve consistency

Lin compares prompt improvement, repeated sampling with majority or median answers, and test-time augmentation (TTA), which tests multiple equivalent phrasings. Prompt changes had mixed effects, while majority voting did not improve results consistently and median answers helped only in some settings. TTA improved consistency across sentiment and cybersecurity tasks; on AndroidWorld, the team saw a 10% success-rate improvement on two benchmarks. Lin proposes selective sampling, which uses a confidence calibration threshold to reduce TTA’s compute and latency costs.

Use disagreement to improve the agent

Lin connects inconsistent decisions to active learning: surface examples where runs or models disagree, then ask people to clarify labels or provide missing information. She proposes adding that feedback through semantic memory for explicit policies and episodic memory for similar past cases, rather than relying only on costly fine-tuning. In 93 cybersecurity alerts run three times, about a quarter initially changed verdict; episodic memory made about 15% consistent, while 10% remained inconsistent and could be sent for human review.

Takeaways

  • Try prompt improvements first because they are inexpensive, but measure their effect across the models and tasks you use.
  • Use TTA when you need a more robust consistency improvement, and choose the number of runs based on cost and latency constraints.
  • Treat disagreement between runs or models as a signal for review, especially for decisions near an ambiguous boundary.
  • Store clarified policies as semantic memory and use similar resolved cases as episodic memory to handle recurring decisions.
  • Route unresolved cases to human review, then feed the clarification back into the agent’s knowledge.

Mentioned in this talk

Search inside this talk

What was claimed 10

Show all 10 facts

Related talks