[Bug] RougeEvaluator point score changes when the same examples are reordered
Intended recipient: maintainers of open-compass/opencompass.
Issue type: custom synthetic inputs to the unmodified evaluator.
Description
The bundled ROUGE metric uses a bootstrap aggregate midpoint as its reported point score. With the fixed seed, changing only the order of aligned prediction/reference pairs changes the reported score and can reverse a close comparison.
Version and environment
Checked on 17 November 2026 at commit 8b4193ff01cfbdb870a573330b2b199e20242bba on macOS, Python 3.12.14, using the restored pinned audit dependencies. The target implementation was imported from that checkout without modifying its code. The accompanying opencompass_hf_repro.zip contains the unchanged saved scripts, dependency record and run instructions. These checks use local synthetic fixtures and metric implementations; no judge model or external inference service was used.
Reproduction steps
- Extract
opencompass_hf_repro.zipand follow itsREADME.mdto connect an existing compatible environment and the checkout at the commit above. - From the extracted lane directory, run
work/venv/bin/python out/repro/repro_h4_rouge_order.pywith the source-import environment specified in that README. - Inspect
single_system and flip_search.witnessin the output.
Observed result
For 12 synthetic examples with exact mean ROUGE-1 F = 50.0 on the 0–100 scale, 21 row orders produce four rounded values: 49.166667, 49.583333, 50.0, 50.833333. Repeating an unchanged order returns 49.16666666666667 both times.
A second fixed pair of systems has true means A=55.0 and B=54.16666666666667. Identity order reports A=55.833333333333336, B=54.166666666666664. The saved common permutation at index 5 reports A=54.166666666666686, B=54.99999999999999: the reported ordering reverses although every aligned example is unchanged.
Expected behaviour
Use the order-invariant mean of per-example ROUGE scores as the point estimate, keeping bootstrap intervals separate, or explicitly document an alternative order-invariant point-estimation contract.
Code and scope
Relevant implementation: opencompass/openicl/icl_evaluator/hf_metrics/rouge.py:149. The aggregator is constructed at line 134; lines 149–151 select mid.fmeasure, subsequently scaled to 0–100 by the evaluator.
This is a synthetic near-tie witness with exact controlled token overlaps. It does not establish a ranking reversal in a released benchmark. Repeating an unchanged order returns the same value. Reordering aligned pairs changes the reported mid.fmeasure while the seed stays fixed.
Related reports
The recorded ROUGE issue/PR searches found custom-metric, Chinese segmentation and summarizer-selection changes, but no matching report of this bootstrap-midpoint permutation effect.
AI assistance was used to inspect the code, run the saved local reproductions and prepare this report. The figures above describe those bounded reproductions, not a measurement of effects on a published leaderboard or production workload.
I'd like to work on this. Plan: have RougeEvaluator compute per-example scores (use_aggregator=False) and report the mean ×100, plus a test that permuted inputs give the same score. This slightly changes reported ROUGE values, which I'd note in the PR. Okay to proceed?