DROP and VQAv2 mis-read some bold `Answer:` lines (multi-span DROP answers and VQAv2 rows lose credit)
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- machine-learning, testing
Research direction
Start by reading drop_adapter.py and vqav2_adapter.py, focusing on the answer extraction patterns named in the issue; also check evalscope/benchmarks/slake/utils.py for the related pattern. Run the supplied offline scoring examples to reproduce the failures. Done means bold answer formats extract the final answer correctly and DROP multi-span and VQAv2 scores match the expected results; pull request #2327 is already open against this issue.
Written by the indexing model from the issue text.
Description
DROP and VQAv2 lose points for some bold final answer lines that chat models often write.
Self-Check List
Before submitting an issue, please ensure you have completed the following steps:
- I have carefully read the relevant user documentation
- I have reviewed the Frequently Asked Questions
- I have searched and reviewed existing issues to confirm this is not a duplicate problem
Problem Description
DROP (drop_adapter.py, re.findall(r'(?i)Answer\s*:\s*([^\n]+)', ...)) and VQAv2 (vqav2_adapter.py, _ANSWER_PATTERN = re.compile(r'ANSWER:\s*(.*)', re.I)) read the final answer line with a case-insensitive regex. That regex keeps markdown bold in the captured text, and it does not match **Answer**: ... (bold closing before the colon), so then the whole reply is scored.
Not every bold line loses credit. DROP treats * as punctuation for single answers, so **Answer:** 43 and **Answer: 43** still score 1. These forms lose points:
- DROP, multi-span answers:
**Answer:** ["Brady", "Palmer"]extracts** ["Brady", "Palmer"]and**Answer: ["Brady", "Palmer"]**extracts["Brady", "Palmer"]**. Neither parses as a JSON list, so the multi-span path from #2111 is skipped and the answer is scored as one string (em 0, f1 0.33 instead of 1/1). - DROP, any answer written as
**Answer**: ...: no match, so the whole reply is scored (e.g.**Answer**: 43-> em 0, f1 0.5). - VQAv2, all three shapes (
**ANSWER: yes**->yes**,**ANSWER:** yes->** yes,**Answer**: yes-> whole reply):vqa_scoreis 0. For the first twoexact_matchis 1 on the same prediction, so the two metrics disagree. I saw this both on a unanimous row (10 x "yes") and on a mixed row (8 x "2", "two", "3").
#1870 fixed the same output shape in seven other open-answer adapters. Its description left VQAv2 and SLAKE unchanged because their regex was already case-insensitive. The case-insensitive regex still keeps the bold markers and misses **Answer**:. DROP was not mentioned there. evalscope/benchmarks/slake/utils.py has the same pattern: **ANSWER: CT** still scores (punctuation is stripped), but Looking at the image.\n**Answer**: CT falls back to the whole reply (acc 0).
| Completion | Benchmark | Expected extraction / score | Actual extraction / score |
|---|---|---|---|
**Answer:** ["Brady", "Palmer"] |
drop | ["Brady", "Palmer"], em 1, f1 1 |
** ["Brady", "Palmer"], em 0, f1 0.33 |
**Answer**: ["Brady", "Palmer"] |
drop | ["Brady", "Palmer"], em 1, f1 1 |
whole reply, em 0, f1 0.25 |
**Answer:** 43 |
drop | 43, em 1, f1 1 |
** 43, em 1, f1 1 (not affected) |
**ANSWER: yes** (10 x "yes") |
vqav2 | yes, vqa_score 1, exact_match 1 |
yes**, vqa_score 0, exact_match 1 |
A dog.\n**Answer**: yes (10 x "yes") |
vqav2 | yes, vqa_score 1, exact_match 1 |
whole reply, vqa_score 0, exact_match 0 |
EvalScope Version (Required)
main @ 96635395 (also present 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 needed:
from evalscope import TaskConfig
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
def score(bench, completion, sample):
state = TaskState(model='m', sample=sample, completed=True, output=ModelOutput.from_content('m', completion))
s = get_benchmark(bench, TaskConfig(datasets=[bench])).calculate_metrics(state).score
print(bench, repr(completion), '->', repr(s.extracted_prediction), s.value)
spans, yes = Sample(input='q', target=str([('Brady', 'Palmer')])), Sample(input='q', target='', metadata={'answers': ['yes'] * 10})
for c in ['Answer: ["Brady", "Palmer"]', '**Answer:** ["Brady", "Palmer"]', '**Answer**: ["Brady", "Palmer"]']: score('drop', c, spans)
for c in ['ANSWER: yes', '**ANSWER: yes**', 'A dog.\n**Answer**: yes']: score('vqav2', c, yes)
Error Log
drop 'Answer: ["Brady", "Palmer"]' -> '["Brady", "Palmer"]' {'em': 1.0, 'f1': np.float64(1.0)}
drop '**Answer:** ["Brady", "Palmer"]' -> '** ["Brady", "Palmer"]' {'em': 0, 'f1': np.float64(0.33)}
drop '**Answer**: ["Brady", "Palmer"]' -> '**Answer**: ["Brady", "Palmer"]' {'em': 0, 'f1': np.float64(0.25)}
vqav2 'ANSWER: yes' -> 'yes' {'vqa_score': 1.0, 'exact_match': 1.0}
vqav2 '**ANSWER: yes**' -> 'yes**' {'vqa_score': 0.0, 'exact_match': 1.0}
vqav2 'A dog.\n**Answer**: yes' -> 'A dog.\n**Answer**: yes' {'vqa_score': 0.0, 'exact_match': 0.0}
Running Environment
- Operating System: Linux
- Python Version: 3.11
Additional Information
- #1870 fixed the same bold / lower-case
ANSWER:line output shape in seven other open-answer adapters (VQAv2 and SLAKE were left unchanged there as already case-insensitive). - #2111 added multi-span JSON scoring for DROP, which only applies when the extracted text starts with
[. - #1916 / #2113 changed VQAv2 scoring to the official toolkit, where punctuation is only normalised when annotators disagree. That part is intended; the problem here is the extraction step before it.
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 606
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 189
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from modelscope/evalscope
-
AIR-Bench Foundation reads the first letter of the word after "answer" as the model's choicePossibly taken @beartester34 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
modelscope/evalscope#2330 ·
Maintainers usually reply within 1 day
-
结果对比时把配置也列出来如何?Possibly taken @Shackbear claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
modelscope/evalscope#2219 · 2 comments ·
Maintainers usually reply within 1 day
-
SLA auto-tune: one fully failed repeat removes percentile and avg_tpot metrics even when success_rate accepts itPossibly taken @beartester34 claimed this today. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
modelscope/evalscope#2328 ·
Maintainers usually reply within 1 day
-
报告导出Open
Difficulty 5/5 Over a week Newbie friendliness 28/100
modelscope/evalscope#2292 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
modelscope/evalscope#2287 ·
Maintainers usually reply within 1 day
All issues in modelscope/evalscope
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Distribution plot crashes when a numeric feature is constant in the train or test setPossibly taken @adembilge claimed this today. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
MAIF/shapash#847 · 1 comment ·
Maintainers usually reply within 10 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 2 days
-
namespace team:operations
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
EclipseFdn/open-vsx.org#16738 ·
Maintainers usually reply within 1 day
-
errors xarray
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
developmentseed/titiler-cmr#380 ·
Maintainers usually reply within 1 day