spiqa-eval
SPIQA: A Dataset for Multimodal Question Answering on Scientific Papers — Pramanick et al. (2024) (arXiv:2407.09413, 2024)
What this evaluates
Evaluates multimodal long-context reasoning and figure/table comprehension on scientific papers. Tests direct question answering with images, full paper context, and chain-of-thought retrieval capabilities.
Datasets
Metrics
L3Score (primary) — range: other
- A log-likelihood-based metric that computes token probabilities from an LLM to assess answer confidence and semantic equivalence, outperforming traditional token-matching metrics.
METEOR — range: [0, 1]
- Standard machine translation metric measuring alignment between generated and reference answers based on synonyms, stems, and exact matches.
CIDEr — range: [0, 1]
- Consensus-based Image Description Evaluation metric that weights n-grams by their IDF scores to measure consensus with reference answers.
ROUGE-L — range: [0, 1]
- Recall-Oriented Understudy for Gisting Evaluation measuring the longest common subsequence between generated and reference answers.
BERTScore F1 — range: [0, 1]
- F1 score computed from contextual embeddings of generated and reference answers using a pre-trained BERT model.
Top-1 Retrieval Accuracy — range: [0, 1]
- Percentage of questions where the model correctly retrieves the single most helpful reference image.
Input / output format
Input: Question text, reference images (figures/tables), and optionally full paper text. For open-weight models, images are provided one-by-one in a multi-turn setup.
Output: Free-form natural language answer. For CoT QA, step-by-step reasoning followed by the final answer, plus retrieval of reference images.
Scoring recipe
def evaluate(predictions, golds, questions, images, metric):
scores = []
for pred, gold, q, img in zip(predictions, golds, questions, images):
if metric == 'L3Score':
ll = compute_log_likelihood(pred, context=(q, img))
scores.append(aggregate_ll(ll))
elif metric == 'Top-1 Retrieval Accuracy':
scores.append(1.0 if pred == gold else 0.0)
else:
scores.append(compute_standard_metric(pred, gold, metric))
return mean(scores)
Common pitfalls
- Omitting figure/table captions significantly drops performance for all models.
- Traditional metrics like ROUGE-L and BERTScore fail to correctly score semantically correct but lexically different answers.
- Models struggle with complex plots, charts, and tables requiring mathematical reasoning.
Evidence (verbatim from paper)
For evaluating the free-form answers, we report five different metrics for comprehensive analysis - METEOR, CIDEr, ROUGE-L, BERTScore F1 and the proposed L3Score. For the CoT QA task, we also report the top-1 accuracy for retrieving the helpful images to answer the question.
Citation
@misc{pramanick2024spiqa,
title={SPIQA: A Dataset for Multimodal Question Answering on Scientific Papers},
author={Pramanick et al. (2024)},
year={2024},
note={arXiv:2407.09413}
}
1---2name: spiqa-eval3description: Evaluates multimodal long-context reasoning and figure/table comprehension on scientific papers. Tests direct question answering with images, full paper context, and chain-of-thought retrieval capabilities. Use when the user wants to benchmark on SPIQA, or asks about evaluating this task. Reports L3Score.4---56# spiqa-eval78> SPIQA: A Dataset for Multimodal Question Answering on Scientific Papers — Pramanick et al. (2024) (arXiv:2407.09413, 2024)910## What this evaluates1112Evaluates multimodal long-context reasoning and figure/table comprehension on scientific papers. Tests direct question answering with images, full paper context, and chain-of-thought retrieval capabilities.1314## Datasets1516- **SPIQA** — total ?; splits: train (-1), test-A (-1), test-B (-1), test-C (-1); repo https://github.com/google/spiqa1718## Metrics1920- `L3Score` **(primary)** — range: other21 - A log-likelihood-based metric that computes token probabilities from an LLM to assess answer confidence and semantic equivalence, outperforming traditional token-matching metrics.22- `METEOR` — range: [0, 1]23 - Standard machine translation metric measuring alignment between generated and reference answers based on synonyms, stems, and exact matches.24- `CIDEr` — range: [0, 1]25 - Consensus-based Image Description Evaluation metric that weights n-grams by their IDF scores to measure consensus with reference answers.26- `ROUGE-L` — range: [0, 1]27 - Recall-Oriented Understudy for Gisting Evaluation measuring the longest common subsequence between generated and reference answers.28- `BERTScore F1` — range: [0, 1]29 - F1 score computed from contextual embeddings of generated and reference answers using a pre-trained BERT model.30- `Top-1 Retrieval Accuracy` — range: [0, 1]31 - Percentage of questions where the model correctly retrieves the single most helpful reference image.3233## Input / output format3435**Input**: Question text, reference images (figures/tables), and optionally full paper text. For open-weight models, images are provided one-by-one in a multi-turn setup.3637**Output**: Free-form natural language answer. For CoT QA, step-by-step reasoning followed by the final answer, plus retrieval of reference images.3839## Scoring recipe4041```python42def evaluate(predictions, golds, questions, images, metric):43 scores = []44 for pred, gold, q, img in zip(predictions, golds, questions, images):45 if metric == 'L3Score':46 ll = compute_log_likelihood(pred, context=(q, img))47 scores.append(aggregate_ll(ll))48 elif metric == 'Top-1 Retrieval Accuracy':49 scores.append(1.0 if pred == gold else 0.0)50 else:51 scores.append(compute_standard_metric(pred, gold, metric))52 return mean(scores)53```5455## Common pitfalls5657- Omitting figure/table captions significantly drops performance for all models.58- Traditional metrics like ROUGE-L and BERTScore fail to correctly score semantically correct but lexically different answers.59- Models struggle with complex plots, charts, and tables requiring mathematical reasoning.6061## Evidence (verbatim from paper)6263> For evaluating the free-form answers, we report five different metrics for comprehensive analysis - METEOR, CIDEr, ROUGE-L, BERTScore F1 and the proposed L3Score. For the CoT QA task, we also report the top-1 accuracy for retrieving the helpful images to answer the question.6465## Citation6667```bibtex68@misc{pramanick2024spiqa,69 title={SPIQA: A Dataset for Multimodal Question Answering on Scientific Papers},70 author={Pramanick et al. (2024)},71 year={2024},72 note={arXiv:2407.09413}73}74```7576- arXiv: 2407.09413