﻿# OpenCompass extract_rate: nonempty fallback text can hide an extraction failure

Audit OpenCompass postprocessor fallback and evaluator detail fields before treating extraction-rate reports as proof that every model answer was parsed correctly.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-opencompass-extract-rate-nonempty-fallback-pred-details/
Language: en

## Separate parse validity from nonempty output

A model can return fluent text that does not contain the answer format required by a benchmark. OpenCompass's [postprocessing guide](https://opencompass.readthedocs.io/en/latest/evaluation/metrics_and_postprocessing.html) explains how extraction diagnostics depend on the values exposed in evaluation details. Inspect that convention before treating a high extraction rate as proof of correct parsing. Nonempty text and a valid normalized answer are different properties, especially when a parser retains the original response after failing to find its expected pattern.

## Inspect the fallback path

The guide describes a postprocessor that can return original text rather than an empty value when extraction fails. Such text can proceed to evaluation without being counted as an empty-prediction extraction failure. Preserve the raw response and extracted value for diagnostics. Decide deliberately how the benchmark should represent a missing answer, multiple candidate answers or unsupported formatting. A convenient fallback should not erase the distinction between successfully recognizing the required answer and merely retaining a usable string.

## Verify evaluator detail semantics

The documented extraction counter reads prediction information in per-sample details, which depends on the convention between the postprocessor and evaluator. A custom evaluator can therefore change the diagnostic's interpretation. The [dataset guide](https://opencompass.readthedocs.io/en/latest/user_guides/datasets.html) separates reader, inference and evaluation configuration. Record the concrete postprocessor and evaluator pair, not just the dataset name. Inspect the detail fields generated by the installed implementation instead of assuming every evaluator reports identical extraction evidence.

## Re-score fixed predictions to isolate parsing

OpenCompass separates saved predictions from scoring, allowing extraction changes to be evaluated without fresh application inference. The [configuration reference](https://opencompass.readthedocs.io/en/latest/user_guides/config.html) provides the experiment setup. Keep the prediction population and references fixed when testing a parser revision. A higher accuracy after an extraction fix can be a legitimate measurement correction, but it is not evidence that the model's generated answers improved. Preserve both results with their parsing definitions so the change remains explainable.

## Test difficult output shapes explicitly

Use reviewed fixtures containing a valid answer, unrelated nonempty prose, an empty response and several possible answer markers. Inspect extracted values, per-sample details and the final correctness verdict. The guides to [output transformation contracts](/journal/fg2-promptfoo-output-transform-hierarchy-measured-artifact/) and [judge verdict parsing](/journal/fg2-opencompass-judge-cfg-environment-verdict-parser/) provide related controls. Accept the diagnostic when its counter matches the intended definition of successful extraction, preserving the difference between measuring parser coverage, measuring answer correctness and measuring the evaluated model's underlying generation capability.
