FinQA: Numerical Reasoning over Financial Data
FinQA evaluates numerical reasoning over financial documents. Models receive a page from an S&P 500 earnings report (pre-table text, a structured table, post-table text) and must answer a question by generating an executable program in a domain-specific language (DSL) with 10 operations (arithmetic and table aggregations). Scoring uses execution accuracy: the generated program is executed and its result compared to the gold answer. The test set contains 1,147 expert-annotated examples.
Overview
⚠️ External evaluation. Code lives in an upstream repository. inspect_evals lists it for discoverability; review the upstream repo and pinned commit before running.
Source: yaokaiy/inspect-finqa@66be93f
FinQA evaluates numerical reasoning over financial documents. Models receive a page from an S&P 500 earnings report (pre-table text, a structured table, post-table text) and must answer a question by generating an executable program in a domain-specific language (DSL) with 10 operations (arithmetic and table aggregations). Scoring uses execution accuracy: the generated program is executed and its result compared to the gold answer. The test set contains 1,147 expert-annotated examples.
Usage
Installation
This is an externally-maintained evaluation. Clone the upstream repository at the pinned commit and install its dependencies:
git clone https://github.com/yaokaiy/inspect-finqa
cd inspect-finqa
git checkout 66be93f24467f50f916df6a2149079214a83ba70
uv syncRunning evaluations
CLI
uv run inspect eval src/finqa/finqa.py@finqa --model openai/gpt-5-nanoPython
from inspect_ai import eval
from finqa.finqa import finqa
eval(finqa(), model="openai/gpt-5-nano")View logs
Log viewing (inspect view) and default-model setup are documented in the Inspect Evals README.
More information
For the dataset, scorer, task parameters, and validation, see the upstream repo: yaokaiy/inspect-finqa.
Options
You can control a variety of options from the command line. For example:
uv run inspect eval src/finqa/finqa.py@finqa --limit 10 --sample-shuffle
uv run inspect eval src/finqa/finqa.py@finqa --max-connections 10
uv run inspect eval src/finqa/finqa.py@finqa --temperature 0.5See uv run inspect eval --help for all available options.
More command-line options: Inspect docs ↗
Evaluation Report
Timestamp: November 2026
Commit: 66be93f Version: 1-A
uv run --with openai inspect eval finqa/finqa --model <model> --max-connections 4| Model | Provider | Accuracy | Stderr | Time | Date |
|---|---|---|---|---|---|
| ollama/qwen2.5:7b | Ollama (local) | 0.263 | 0.013 | 61 min | 2026-11-10 |
| ollama/qwen2.5:1.5b | Ollama (local) | 0.135 | 0.010 | 27 min | 2026-11-10 |
Notes:
- Full test split, 1,147 of 1,147 samples, default three-shot prompt, one run per model, Inspect 0.3.277.
- Both models ran locally with Ollama 0.40.14 (Q4_K_M quantisation; qwen2.5:7b digest 845dbda0ea48, qwen2.5:1.5b digest 65ec06548149) on an Apple M4 Pro, with OLLAMA_CONTEXT_LENGTH=16384 so no prompt was truncated.
- Generation used Ollama’s defaults for these models (temperature 0.8, top-p 0.9, top-k 40), so a rerun gives slightly different numbers.
- The paper reports only fine-tuned systems, so there is no published number for prompted models to compare with. Reference points from the paper: FinQANet 61.24%, general crowd workers 50.68%, financial experts 91.16% execution accuracy.
- The runs predate the repository’s first commit, so the logs record no git revision; the task files are identical to 66be93f (SHA-256 checked).
- Outcome breakdown, accuracy by gold-program length, and error analysis are in the upstream README’s Evaluation Report section.
Static checks
Results of inspect-evals-lint at the registered commit. Rule names link to their documentation; findings link to the file at that commit. These checks describe structure and conventions, not whether the evaluation measures what it claims.
Loading lint results…