﻿# OpenCompass generation versus PPL: token counting does not supply candidate probabilities

Choose OpenCompass GenInferencer or PPLInferencer according to backend capabilities and the intended measurement, validating candidate prompts and probability scope.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-opencompass-gen-ppl-backend-probability-capability/
Language: en

## Choose the measurement before the backend

A multiple-choice benchmark can ask a model to generate an answer or compare probabilities of candidate continuations. OpenCompass [evaluation guidance](https://opencompass.readthedocs.io/en/latest/evaluation/metrics_and_postprocessing.html) distinguishes those methods. They exercise different capabilities: producing a correctly formatted response and preferring a supplied candidate are related but not identical. State which method is required before treating configurations sharing the same dataset name as directly comparable benchmark results.

## Verify the required model methods

The [model-extension guide](https://opencompass.readthedocs.io/en/latest/extension/new_model.html) distinguishes generation, token-length estimation and perplexity interfaces. A custom wrapper that successfully implements text generation has not thereby supplied candidate probabilities. Likewise, a tokenizer-based length estimate is not a probability measurement. Check the selected backend's actual supported methods and semantics. An API-compatible response format alone does not establish that the endpoint exposes the likelihood information required by the chosen task.

## Inspect complete candidate inputs

The [prompt-template reference](https://opencompass.readthedocs.io/en/latest/prompt/raw_prompt_template.html) describes PPL templates containing a complete input for each candidate. Inspect those constructed strings or messages, including role wrappers, answer labels and whitespace. A changed candidate prompt can alter ranking independently of the weights. Preserve the scoring scope and any backend masking behavior used to distinguish prompt context from the intended candidate portion, rather than assuming that every implementation measures exactly the same conditional event.

## Keep generation parsing as a separate contract

For a generative task, the model must emit an answer that the selected postprocessor can interpret. A high candidate preference does not prove that free generation follows the required format, and a parsing failure is not direct evidence about candidate probabilities. Retain raw output, extracted answer and evaluator outcome for generation runs. When comparing methods, explain the protocol difference instead of silently replacing an unsupported PPL task with generation and publishing it under an unchanged label.

## Validate a diagnostic candidate set

Use a short task with distinct candidates and inspect both generated output and probability-based selection under a trusted backend. Verify the custom integration before scaling to a complete benchmark. The guides to [likelihood adapter alignment](/journal/fg2-lm-eval-continuation-token-boundary-likelihood/) and [OpenCompass prompt layers](/journal/fg2-opencompass-dataset-model-template-role-protocol/) provide related controls. Report inference method, backend capability and candidate construction together, preserving the difference between an interface that returns text and an implementation that supplies the benchmark's intended probability comparison.
