﻿# OpenCompass judges: environment variables may not replace an explicit judge_cfg

Verify the actual OpenCompass judge model, reference fields and verdict parser, accounting for explicit configuration that takes precedence over judge environment settings.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-opencompass-judge-cfg-environment-verdict-parser/
Language: en

## Identify the judge that actually ran

A team can update its intended judge model and still evaluate with the previous one. The [LLM-judge guide](https://opencompass.readthedocs.io/en/latest/evaluation/llm_judge.html) explains that a concrete judge configuration can take precedence over judge-service environment variables. Inspect the resolved judge identity rather than treating an environment change as proof of a changed measurement instrument. Preserve the actual endpoint and model revision in the experiment record without exposing authentication material.

## Review configuration inheritance together

The [configuration reference](https://opencompass.readthedocs.io/en/latest/user_guides/config.html) describes imported and modified configuration objects and cautions against assuming universal command-line precedence. A judge setting inherited from a dataset configuration may remain active after a top-level maintenance edit. Trace where the effective judge definition originates. Compare the realized configuration for the exact dataset being scored, since different datasets in one run can use different evaluation protocols and do not necessarily share an identical judge setup.

## Keep the judge's task distinct from answering

A judging prompt combines the original problem, reference information and the evaluated prediction. The requested output should be a verdict under a defined criterion, rather than another independent answer to the original problem. Inspect the rendered judge input on diagnostic cases. A reference field containing a stale or misaligned answer changes the measurement even if the judge model is correct. Preserve input identities so an apparent capability regression can be traced to its actual evidence and criterion.

## Match verdict extraction to the prompt

The [postprocessing guide](https://opencompass.readthedocs.io/en/latest/evaluation/metrics_and_postprocessing.html) separates raw responses, extraction and evaluator aggregation. A judge prompted to emit a particular label needs a compatible parser. Do not assume that a fluent explanation constitutes a successfully extracted verdict. Test the selected judge output format, including unexpected text and unavailable results, under the installed evaluator. A parser change can alter the final accuracy without any change to the evaluated application's predictions.

## Preserve a reviewed judge diagnostic set

Use saved correct, incorrect and ambiguous application answers to verify resolved model identity and parsed verdicts before rescoring the full task. Hold the prediction population fixed while investigating judge changes. The guides to [reference and judge revisions](/journal/data-guide-alpacaeval-reference-judge-version/) and [custom judge schemas](/journal/fg2-deepeval-custom-judge-schema-typed-return-contract/) provide related controls. Report effective judge configuration and parsing rules together, preserving the distinction between intending to switch a judge, actually switching it and demonstrating that its new judgments remain suitable for the declared evaluation criterion.
