What It Means When AI Learns to Say "I'm Not Sure"

    This article explores a shift in how large language model capability is evaluated: beyond whether answers are correct, whether a model knows when it might be wrong. It breaks down what expressing uncertainty technically involves (risk identification, confidence grading, actionable disclosure), explains why underreporting rates matter more than accuracy for engineering outcomes, and details the impact on code review, test design, CI pipelines, and operations knowledge bases. It closes with practical implementation recommendations and a realistic view of the limits of uncertainty expression.

    1. From Always Confident to Admitting Ignorance: A Shift in the Capability Dimension

    Over the past two years, industry evaluation of large model capability has focused almost entirely on a single dimension: whether the model gets the answer right. Is the reasoning longer? Does the code run? Does the answer match the expected result? A new generation of models introduces a second dimension: whether the model knows when it might be wrong.

    One concrete observation: in a certain class of programming tasks, the rate at which models fail to flag defects in their own generated code dropped by roughly a factor of four. Here, a missed report means the code genuinely contains a defect, yet the model provides no risk warning during self-check or in its delivery notes, and simply concludes that the work is complete and problem-free.

    This metric matters because it does not measure the ceiling of capability; it measures the accuracy of self-awareness. A more capable but overconfident model can actually create more hidden costs in an engineering pipeline.

    2. Breaking Down the Technical Meaning: What Expressing Uncertainty Actually Involves

    In an engineering context, “I’m not sure” is not a natural-language sentence. It is a combination of at least three capabilities:

    1. Risk identification: pinpointing which parts of the output lack grounding, such as calling an unconfirmed API or assuming an unverified boundary condition.
    2. Confidence grading: distinguishing states like “syntactically correct but semantically questionable,” “logically sound but dependent on external premises,” and “impossible to judge.”
    3. Actionable expression: converting uncertainty into a form humans can act on, such as listing items to confirm, suggesting verification steps, or proactively requesting more context.

    An illustrative structured output might look like this:

    1. {
    2. "answer": "Use binary search to locate the insertion position",
    3. "confidence": "medium",
    4. "uncertain_points": [
    5. "Unconfirmed whether the input array is deduplicated",
    6. "Unconfirmed whether stable sort semantics are required"
    7. ],
    8. "suggested_verification": ["Add a test case with duplicate elements", "Add an empty array test case"]
    9. }

    The value is this: uncertainty can only be consumed by a process once it is made explicit. Hidden uncertainty cannot be captured by any automated system.

    3. Why the Underreporting Rate Deserves More Attention Than Accuracy

    Accuracy measures whether the answer is correct. The underreporting rate measures whether errors are silently let through. The two have completely different paths to affecting engineering outcomes.

    • High accuracy + high underreporting: errors are rare, but once one occurs it bypasses every line of defense, reaching integration or even production, where localization costs are extremely high.
    • Slightly lower accuracy + low underreporting: there may be more errors, but the vast majority are flagged at the generation stage and intercepted by humans or automated processes, so the overall rework cost is actually lower.

    From a quality engineering perspective, this is equivalent to moving “post-hoc defect fixing” forward into “in-process risk exposure.” The earlier a defect is found, the cheaper it is to fix, a rule repeatedly validated in software engineering.

    4. Concrete Impact on the Development Workflow

    4.1 Code Review

    The reviewer’s attention shifts from “finding errors line by line” to “checking flagged risk points first,” significantly increasing output per unit of time. A risk list naturally forms in the review record, making later traceability easier.

    4.2 Test Design

    Items the model proactively flags for confirmation can map directly to a candidate set of test cases. For example, “unconfirmed whether duplicate elements are allowed” corresponds to a boundary case, and “unconfirmed concurrent invocation semantics” corresponds to a concurrency case.

    4.3 Automated Pipelines

    In continuous integration scenarios, confidence can be used as one of the gating signals:

    1. if high-risk flags exist:
    2. block automatic merge, route to manual review
    3. elif only low-risk flags exist:
    4. allow merge, but force creation of a tracking task
    5. else:
    6. proceed with the standard test flow

    4.4 Operations and Knowledge Bases

    When an answer comes with an uncertainty note, the retrieval-augmented pipeline can automatically trigger a second retrieval or manual entry, preventing incorrect conclusions from settling into the internal knowledge base and causing long-term contamination.

    5. Implementation Recommendations

    1. Require structured output: have the model return the conclusion, confidence, and items to confirm in fixed fields rather than free text, so programs can parse them.
    2. Establish risk grading standards: define which flags require human intervention and which can be released automatically, so that not every flag becomes noise.
    3. Close the loop on verification: every uncertainty item should be bound to a verification action (add context, add a test, trigger a retrieval); otherwise the flag has no value.
    4. Monitor two types of metrics: track both correctness and underreporting rate; looking at only one leads to wrong conclusions.
    5. Protect the willingness to speak up: if flagging risk is treated as a sign of “insufficient capability” and penalized, both the model and its users will tend to hide uncertainty, and the metric immediately becomes useless.

    For cloud implementation, general-purpose capabilities can be combined: a container platform to host inference services, a message queue to buffer tasks awaiting review, a logging service to retain flag records, monitoring and alerting to set thresholds on underreporting-related metrics, and object storage to archive the review evidence chain. Baidu AI Cloud offers corresponding capabilities in these general cloud product categories, and you can select based on your own architecture.

    6. Boundaries and Rational Expectations

    It should be clear that expressing uncertainty does not mean the conclusion is correct. What it reduces is the proportion of “silent errors,” not the errors themselves. When the model judges itself reliable but is actually wrong, the risk remains, so manual review and automated testing are still indispensable. The right framing is: treat the model as a collaborator that proactively reports risks, not as a judge to be trusted unconditionally.