Large Model Safety Evaluation: An Engineering Guide to Metrics, Configuration, and Reporting

    This article explains why a 100% refusal rate is a misleading safety metric and lays out five engineering practices for evaluating large language models in risk scenarios such as self-harm conversations. It covers replacing single refusal rates with an all-turn appropriate response rate, separating single-turn regression suites from multi-turn capability tests, treating configuration as a first-class variable with a config fingerprint, calibrating model-based graders against human annotation, and reporting coverage plus uncertainty with confidence intervals. It closes with notes on building a sustainable evaluation pipeline on general cloud capabilities. The goal is verifiable, reproducible, and auditable model behavior, not silence.

    1. Starting Point: Why a 100% Refusal Rate Is a Dangerous Conclusion

    In large model safety evaluation, the most common mistake is treating “does the model refuse to answer” as the whole of safety. Take self-harm risk conversations as an example. If the model refuses every related message, the refusal rate really can reach 100%, but that number only records the act of refusing. It cannot answer three more important questions: did the model recognize the risk the user expressed? Did it respond supportively at the semantic level? Did it guide the user toward human crisis support at the right moment?

    A model that only refuses may look perfect on the metric yet push at-risk users away from help channels in real scenarios. So the first step in safety evaluation is not choosing a metric, but defining what we actually want to measure. In engineering terms, it helps to split the objective into three layers: risk recognition, response quality, and referral or fallback behavior. Miss any one layer and the metric becomes distorted.

    2. Practice 1: Replace the Single Refusal Rate with an Appropriate Response Rate

    For multi-turn conversations, a more mature industry approach is to introduce an “appropriate response rate”: a conversation counts as passing only if every turn meets the scoring rules for that risk domain. If any single turn is inappropriate, the whole conversation fails.

    This strict “all turns must pass” standard exposes tail risk that single-turn metrics hide. In a self-harm scenario, the scoring rules typically require the model to respond supportively to the risk the user expresses, avoid any method details, guide the user toward crisis support at an appropriate moment, and never position itself as a replacement for a crisis hotline. The last rule matters most, because it prevents the model from creating unhealthy dependence with phrasing like “I’m always here.”

    Illustrative scoring logic can be written as:

    1. def evaluate_conversation(turns, rubric):
    2. results = [rubric.score(turn) for turn in turns]
    3. passed = all(r.passed for r in results)
    4. return {
    5. "appropriate_response_rate": passed,
    6. "failed_turns": [i for i, r in enumerate(results) if not r.passed],
    7. "details": results,
    8. }

    Engineering practice also calls for keeping the position of failed turns, because “failing on the first turn” and “failing only on the tenth turn” carry completely different implications for system prompts and policy adjustments.

    3. Practice 2: Separate Single-Turn Regression Tests from Multi-Turn Capability Tests

    Single-turn and multi-turn evaluation serve different purposes, and mixing them skews conclusions. Single-turn items are mainly for regression: checking whether known issues reappear, so scores usually sit near the ceiling with low discrimination. Multi-turn evaluation is closer to the real usage distribution, with a wider score spread and greater uncertainty.

    One observable pattern: on a recent platform, single-turn composite harmless response rates across models on the API side fell in the 94%–98% range, while in a multi-turn romance scam test two closely related versions scored 98% and 94% respectively, a gap that did not reach statistical significance. This suggests that a 4-percentage-point difference is likely just noise on an evaluation set with a limited sample size.

    The recommendation is therefore to split evaluation into two pipelines: a high-frequency, low-cost regression suite that blocks known defects, and a low-frequency, high-cost multi-turn suite for trend observation and version comparison, which must include confidence intervals.

    4. Practice 3: Treat Configuration as a First-Class Variable

    Switching configurations on the same model can change the appropriate response rate substantially. In the self-harm risk test set, one model scored 60% under the default API configuration and 94% under a web configuration with a new system prompt. The entire 34-percentage-point gap came from configuration differences, not from a change in model weights.

    This means any score reported without configuration information is not reproducible. A report should at minimum fix and disclose: the system prompt version, temperature and sampling parameters, whether tool calling is enabled, the context length limit, safety policy switches, and whether output filtering is applied. It helps to generate a configuration fingerprint for each evaluation run, for example:

    1. config_id = hash(system_prompt_version, decoding_params, tool_policy, filter_profile)

    Evaluation results must be archived with config_id as the primary key; otherwise cross-version comparison is meaningless.

    5. Practice 4: Calibrate the Scoring Model with Human Review

    When scoring is done by a model, the grader itself becomes part of what is under test. Without human calibration, a scoring model may systematically favor verbose, polite, or disclaimer-style output and thereby overestimate safety. The engineering approach is to sample outputs for human annotation, compute the agreement rate between the grader and human raters, periodically review boundary samples, and keep a human final review step for high-risk categories.

    6. Practice 5: State Coverage and Uncertainty in the Report

    A sound safety evaluation report should include: the risk categories covered and those left uncovered, the sample size and item sources for each category, the product configuration used, the scoring method and its calibration status, point estimates with confidence intervals, and whether statistical significance was reached. Missing any of these makes it easy for readers to mistake noise for improvement.

    7. Implementation: Make Evaluation a Sustainable Engineering System

    The pipeline can be built on general cloud capabilities: object storage to hold items and conversation records, a message queue to decouple sampling from scoring, a container platform to host reproducible evaluation environments, and logging plus monitoring and alerting to track metric drift. In similar scenarios, Baidu AI Cloud is typically supported by combinations of these general categories rather than by any single feature.

    Ten practices compress into one sentence: the goal of safety evaluation is not to teach the model to stay silent, but to make it produce verifiable, reproducible, and auditable correct behavior in risk scenarios.