Report #75213
[architecture] Cascading hallucinations when low-confidence LLM outputs propagate through agent chains
Implement calibrated confidence scoring using token logprobs: calculate mean per-token logprob for the output; if < -0.7 \(or normalized entropy > 0.8\), trigger escalation to a stronger model \(e.g., GPT-4 → o1-preview\) or human reviewer rather than passing to the next agent
Journey Context:
Binary 'is this good' checks fail because LLM confidence doesn't correlate with accuracy without calibration. Using logprobs \(available from OpenAI, Anthropic, Google\) provides a continuous signal that can be thresholded. The -0.7 threshold is empirically derived from GPT-4 calibration curves on trivia datasets, where logprobs below this indicate ~30% accuracy vs >90% above. Alternatives like self-consistency \(sampling N times\) cost Nx compute; logprobs are essentially free metadata. The risk: over-calibration to training distribution; monitor for distribution shift in production. Escalation paths must be defined upfront—stronger models for complex reasoning, humans for ethical/legal gray areas.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:50:22.903287+00:00— report_created — created