numericbench-eval
Exposing Numeracy Gaps: A Benchmark to Evaluate Fundamental Numerical Abilities in Large Language Models — Haoyang Li et al. (arXiv:2502.11075, 2025)
What this evaluates
This benchmark probes fundamental numerical abilities in large language models, including number recognition, arithmetic operations, contextual retrieval, comparison, summarization, and logical reasoning. It evaluates how well models handle structured and unstructured numerical data across varying context lengths and noise levels.
Datasets
Metrics
accuracy (primary) — range: percent
- Percentage of correctly answered questions. For multiple-choice tasks, exact match to the single choice (A, B, C, etc.). For arithmetic tasks, computed answer rounded to two decimal places. For mixed-number-string tasks, exact string match.
Input / output format
Input: Text prompts containing numerical contexts (e.g., number lists, stock/weather tables, arithmetic expressions, or mixed alphanumeric strings) followed by a question requiring retrieval, comparison, summary, logic, or computation.
Output: Single choice letter (e.g., A, B, C) for classification/retrieval tasks, or exact numerical/string answer for arithmetic and recognition tasks.
Scoring recipe
def compute_accuracy(predictions, golds):
correct = 0
for pred, gold in zip(predictions, golds):
pred_clean = pred.strip().lower()
gold_clean = gold.strip().lower()
if pred_clean == gold_clean:
correct += 1
return (correct / len(golds)) * 100
Common pitfalls
- Models often fail on long contexts or noisy attributes, causing output disruption (scores marked with * in tables reflect short-subset evaluation).
- Tokenizers split numbers into multiple tokens, leading to poor number recognition and retrieval accuracy.
- Arithmetic evaluation requires answers rounded to exactly two decimal places; failing to apply this tolerance causes false negatives.
- The random baseline is 12.5% (8 options), not 0%, so low scores may still be above chance.
Evidence (verbatim from paper)
The evaluation metric is accuracy. Also, we set the exact answer for mixed-number-string dataset, set the computed answer to two decimal places for arithmetic datasets, and set the answer of each question as a single choice (e.g., A, B, or C) for other datasets to reliably evaluate LLMs*(Bai et al., [2024])*.
Citation
@misc{li2025exposing,
title={Exposing Numeracy Gaps: A Benchmark to Evaluate Fundamental Numerical Abilities in Large Language Models},
author={Haoyang Li et al.},
year={2025},
note={arXiv:2502.11075}
}
1---2name: numericbench-eval3description: This benchmark probes fundamental numerical abilities in large language models, including number recognition, arithmetic operations, contextual retrieval, comparison, summarization, and logical reasoning. It evaluates how well models handle structured and unstructured numerical data across varying context lengths and noise levels. Use when the user wants to benchmark on NumericBench, or asks about evaluating this task. Reports accuracy.4---56# numericbench-eval78> Exposing Numeracy Gaps: A Benchmark to Evaluate Fundamental Numerical Abilities in Large Language Models — Haoyang Li et al. (arXiv:2502.11075, 2025)910## What this evaluates1112This benchmark probes fundamental numerical abilities in large language models, including number recognition, arithmetic operations, contextual retrieval, comparison, summarization, and logical reasoning. It evaluates how well models handle structured and unstructured numerical data across varying context lengths and noise levels.1314## Datasets1516- **NumericBench** — total ?; splits: test (-1); repo https://github.com/TreeAI-Lab/NumericBench1718## Metrics1920- `accuracy` **(primary)** — range: percent21 - Percentage of correctly answered questions. For multiple-choice tasks, exact match to the single choice (A, B, C, etc.). For arithmetic tasks, computed answer rounded to two decimal places. For mixed-number-string tasks, exact string match.2223## Input / output format2425**Input**: Text prompts containing numerical contexts (e.g., number lists, stock/weather tables, arithmetic expressions, or mixed alphanumeric strings) followed by a question requiring retrieval, comparison, summary, logic, or computation.2627**Output**: Single choice letter (e.g., A, B, C) for classification/retrieval tasks, or exact numerical/string answer for arithmetic and recognition tasks.2829## Scoring recipe3031```python32def compute_accuracy(predictions, golds):33 correct = 034 for pred, gold in zip(predictions, golds):35 pred_clean = pred.strip().lower()36 gold_clean = gold.strip().lower()37 if pred_clean == gold_clean:38 correct += 139 return (correct / len(golds)) * 10040```4142## Common pitfalls4344- Models often fail on long contexts or noisy attributes, causing output disruption (scores marked with * in tables reflect short-subset evaluation).45- Tokenizers split numbers into multiple tokens, leading to poor number recognition and retrieval accuracy.46- Arithmetic evaluation requires answers rounded to exactly two decimal places; failing to apply this tolerance causes false negatives.47- The random baseline is 12.5% (8 options), not 0%, so low scores may still be above chance.4849## Evidence (verbatim from paper)5051> The evaluation metric is accuracy. Also, we set the exact answer for mixed-number-string dataset, set the computed answer to two decimal places for arithmetic datasets, and set the answer of each question as a single choice (e.g., A, B, or C) for other datasets to reliably evaluate LLMs*(Bai et al., [2024])*.5253## Citation5455```bibtex56@misc{li2025exposing,57 title={Exposing Numeracy Gaps: A Benchmark to Evaluate Fundamental Numerical Abilities in Large Language Models},58 author={Haoyang Li et al.},59 year={2025},60 note={arXiv:2502.11075}61}62```6364- arXiv: 2502.11075