AIR-Bench Foundation reads the first letter of the word after "answer" as the model's choice

Open Beginner friendly
#2,330 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@beartester34 is already working on this.

Since Dec 4, 2026.

  • #2331 by @beartester34 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
84/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python

Research direction

Start with AIRBenchFoundationAdapter.extract_answer in evalscope/benchmarks/air_bench/air_bench_foundation_adapter.py, then reproduce the examples using the offline snippet in the issue. Check how answer markers and standalone A/B/C/D choices are matched; done when the examples extract the intended choice and score correctly.

Written by the indexing model from the issue text.

Description

Hi, I ran into this while looking at AIR-Bench Foundation scores for replies written as a sentence.

Self-Check List

Before submitting an issue, please ensure you have completed the following steps:

Problem Description

In AIRBenchFoundationAdapter.extract_answer (evalscope/benchmarks/air_bench/air_bench_foundation_adapter.py), the comment says the extractor looks for "the first standalone A/B/C/D, optionally prefixed by markers like ANSWER:". When the word that follows "answer" (or "answer:") starts with a, b, c or d, though, that word's first letter is read as the choice. Examples are Based, Because, could, depends, definitely and clearly. The letter the model actually gave later in the reply is never used. A correct reply then scores 0. It can also score 1 when the stray letter happens to equal the gold letter.

Model reply Gold Expected choice Actual choice acc
Answer: A (control) A A A 1.0
Answer: Based on the voice, A. A A B 0.0
The answer depends on pitch; I pick A. A A D 0.0
My answer: clearly A. A A C 0.0
Answer: Clearly, A A A C 0.0
answer - definitely option B B B D 0.0

EvalScope Version (Required)

main @ 96635395 (the same code is also in v1.15.1)

Tools Used

  • Native / Native framework
  • Opencompass backend
  • VLMEvalKit backend
  • RAGEval backend
  • Perf / Model inference stress testing tool
  • Arena / Arena mode

Executed Code or Instructions

Offline. No dataset download or model is needed:

from evalscope.api.dataset import Sample
from evalscope.api.evaluator import TaskState
from evalscope.api.model import ModelOutput
from evalscope.api.registry import get_benchmark
from evalscope.config import TaskConfig

adapter = get_benchmark('air_bench_foundation', TaskConfig(model='mock', datasets=['air_bench_foundation']))
for reply, gold in [('Answer: A', 'A'), ('Answer: Based on the voice, A.', 'A'), ('The answer depends on pitch; I pick A.', 'A'),
                    ('My answer: clearly A.', 'A'), ('Answer: Clearly, A', 'A'), ('answer - definitely option B', 'B')]:
    state = TaskState(model='mock', sample=Sample(input='q', target=gold), completed=True,
                      output=ModelOutput.from_content('mock', reply))
    score = adapter.calculate_metrics(state).score
    print(f'{reply!r:42} gold={gold} -> {score.extracted_prediction} {score.value}')

Error Log

'Answer: A'                                gold=A -> A {'acc': 1.0}
'Answer: Based on the voice, A.'           gold=A -> B {'acc': 0.0}
'The answer depends on pitch; I pick A.'   gold=A -> D {'acc': 0.0}
'My answer: clearly A.'                    gold=A -> C {'acc': 0.0}
'Answer: Clearly, A'                       gold=A -> C {'acc': 0.0}
'answer - definitely option B'             gold=B -> D {'acc': 0.0}

Running Environment

  • Operating System: Linux
  • Python Version: 3.11

Additional Information

Related: #2254 fixed the gold-label mapping in this adapter (evaluation_version v1.1). That change did not touch how the model's reply is read.

Dominant language
Python
Stars
3.8k
Forks
606
Avg merge
1d 1h
Merged PRs (30d)
189

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from modelscope/evalscope

All issues in modelscope/evalscope

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.