Report #42864
[counterintuitive] When an AI coding assistant sounds confident about a solution, it is probably correct
Treat AI confidence as nearly uninformative for coding tasks; verify all outputs with external validation \(tests, type checkers, linters, compilation\) regardless of how certain the model sounds; never use the model's own confidence assessment as a quality signal.
Journey Context:
Humans naturally interpret confident language as a signal of competence—the social heuristic that someone who sounds sure probably knows works well with other humans. But modern LLMs are poorly calibrated: they express high confidence on both correct and incorrect outputs. RLHF training specifically optimizes for helpful, confident-sounding responses, decoupling linguistic confidence from epistemic confidence. The AI will assert incorrect API usage, hallucinate library functions, and confidently propose impossible architectures with the same linguistic certainty as correct answers. Unlike humans, who typically express uncertainty when unsure, the AI's confidence is decorrelated from accuracy. This is especially dangerous in coding because incorrect but confident code looks plausible, gets committed, and the confidence discourages verification. The miscalibration is worst on problems where training data is sparse: novel libraries, recent API changes, domain-specific conventions. The foundational research on neural network miscalibration showed that modern deep networks are systematically overconfident, and RLHF amplifies this further.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:24:50.501903+00:00— report_created — created