I dropped the confidence field from my agent's schema

2026-11-24来源 dev.toEnglish

If your agent's uncertainty estimate is a sentence the agent wrote about itself, you don't have an uncertainty estimate. You have a narrator with a confidence prior.

That's the uncomfortable part of a paper I read this week on injected uncertainty tokens. The setup is simple enough: give models a way to signal doubt, then see whether that signal tracks actual errors. It doesn't. In the open-weight models they tested, verbalised confidence was nearly useless in situ. At the exact step where the model made a mistake, it was still asserting near-certainty. The discrimination was barely above chance — a coin flip with better grammar.

Then they did the interesting part. Instead of waiting for the model to notice its own problem, they injected a low-confidence tag from outside at that step. Correction improved substantially on several tasks. Real movement. But when they injected the same tag on a step that was already correct, it damaged the answer by a comparable margin. So the doubt has to come from your harness, not the model's narration. And it has to fire only when a real check fires.

That's not a small caveat. That's the whole design.

I've built evals that ask for a confidence field in JSON. It felt rigorous. We logged it, plotted it, wrote thresholds against it. It was theatre. The model wasn't reading some internal error gauge. It was generating the most plausible next tokens after an answer it had already committed to. If the answer came from a stale tool response or a bad retrieval, the confidence came from the same bad context. Asking "are you sure?" doesn't add evidence. It adds social pressure.

This is the part people keep missing about self-monitoring. A model doesn't get a separate monitor pass for free. The same forward pass that produced the wrong answer is the one producing the confidence. In a long agent trajectory, the context is already full of its own rationalisations. By step twelve, it has a story about why step seven was fine. It will continue that story. It is not monitoring. It is continuing.

So verbalised confidence is a linguistic act, not a sensor. Useful maybe as a feature. Dangerous as a gate.

What actually works is boring and external. Schema validators. Unit tests. Tool status codes. Retrieval contradiction checks. Numeric recomputation. Policy checks. A test that fails, a 404, a JSON parse error, a citation that doesn't appear in the source. Those are real signals. When one fires, inject doubt at that step. Not a global "be cautious" system prompt. Not a vibe. A step-local intervention with evidence attached.

The evidence matters more than the tag. "Low confidence" is a steering handle. "The test failed: expected 200, got a 500" is a steering wheel. If you have a checker, pass its output into the retry. The model can argue with a tag. It has a harder time arguing with a stack trace.

The false-positive cost in that paper is the warning I'd tape to the monitor. A doubt signal that fires on correct steps is not free. It can wreck an answer that was already right. This is exactly what happens when teams add "are you sure?" to every turn or set the system prompt to "be careful and double-check everything." You tax every token, add latency, and teach the model to second-guess correct work. Global caution is a blunt instrument. Step-local doubt from a high-precision check is a scalpel.

Precision beats recall here. I'd rather have one validator with high precision than five that fire on a third of correct traces. Before wiring a checker to auto-correct, run it against a golden set of known-correct trajectories and measure how often it cries wolf. If it can't stay quiet on correct work, don't give it the steering wheel. Log it, sure. Don't act on it.

This also changes how I'd evaluate the thing. Stop scoring whether the model said it was unsure. That measures calibration theatre. Build paired injection tests: one where a true failure occurs at the error step, one where the same signal is injected at a correct step. Measure recovery and damage. Report the net. A model that recovers a lot but loses just as much on false alarms is a coin flip with extra steps. The metric that matters is whether your harness catches errors without breaking correct work.

Logprobs help, but they're not a get-out-of-jail card. Token-level probability is not task-level correctness. A sequence can be high-probability and wrong, especially when the context is wrong. Use logprobs as a feature, not a verdict. If you're on an API that hides them, you're not doomed. External checks still work. They're the only thing that ever did.

Agents are where this gets expensive. A single wrong step doesn't stay a single wrong step; it becomes context. The model then defends it. I've watched an agent retry a dead endpoint until the context filled up. It never once said it was unsure. Why would it? The tool call was well-formed. The plan was coherent. The endpoint was just dead. No amount of self-reflection fixes a dead endpoint. A circuit breaker does. A status-code check does.

So the takeaway from the paper isn't "add an uncertainty token to every prompt." It's "stop pretending the model's self-report is a sensor." Build the sensor outside. Fire it only when there's evidence. Measure the false alarms, not just the catches. And keep the doubt step-local, because a model that's uncertain about everything is just a model that's slower and worse.

Confidence is a vibe. Checks are a signal. Ship the checks.

原文:https://www.a8q9.cn/en/article/i-dropped-the-confidence-field-from-my-agent-s-schema-1b75da.html

相关文章