Papers › DocMath-Eval: Evaluating Math Reasoning Capabilities of LLMs in Understanding Long and...

DocMath-Eval: Evaluating Math Reasoning Capabilities of LLMs in Understanding Long and Specialized Documents

16 Nov 2023arXiv:2311.09805archive 2025-07-28

Yilun Zhao, Yitao Long, Hongjun Liu, Ryo Kamoi, Linyong Nan, Lyuhao Chen, Yixin Liu, Xiangru Tang, Rui Zhang, Arman Cohan

Recent LLMs have demonstrated remarkable performance in solving exam-like math word problems. However, the degree to which these numerical reasoning skills are effective in real-world scenarios, particularly in expert domains, is still largely unexplored. This paper introduces DocMath-Eval, a comprehensive benchmark specifically designed to evaluate the numerical reasoning capabilities of LLMs in the context of understanding and analyzing specialized documents containing both text and tables. We conduct an extensive evaluation of 48 LLMs with Chain-of-Thought and Program-of-Thought prompting methods, aiming to comprehensively assess the capabilities and limitations of existing LLMs in DocMath-Eval. We found that even the current best-performing system (i.e., GPT-4o) still significantly lags behind human experts in solving complex numerical reasoning problems grounded in long contexts. We believe that DocMath-Eval can serve as a valuable benchmark for evaluating LLMs' capabilities in solving challenging numerical reasoning problems within expert domains.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2311.09805")

Code

Syntology Ran 10 of 15 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · fixture could not drive it; 9 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yale-nlp/docmath-eval officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 10 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · fixture could not drive it
9ran
5unverified

Licence: 15 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from yale-nlp/docmath-eval. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

add_embeddings yale-nlp/docmath-eval/retriever/src/index.py official repository ran · fixture could not drive it no licence file found · pointer only · bc7a7a194c238080 · report
compare_two_numbers yale-nlp/docmath-eval/utils/evaluation_utils.py official repository ran no licence file found · pointer only · 1244f0e9165aa97a · report
count_tokens yale-nlp/docmath-eval/utils/model_input_utils.py official repository ran no licence file found · pointer only · cc3cc5ecc9833707 · report
get_context yale-nlp/docmath-eval/utils/model_input_utils.py official repository ran no licence file found · pointer only · eb7d8895ef9a732f · report
get_result yale-nlp/docmath-eval/evaluation.py official repository ran no licence file found · pointer only · 87ea38e7e0bd8ee8 · report
gpt_retriever_encode yale-nlp/docmath-eval/retriever/retriever.py official repository ran no licence file found · pointer only · 8e223fdb31440a47 · report
prepare_pot_model_input yale-nlp/docmath-eval/utils/model_input_utils.py official repository ran no licence file found · pointer only · 647dd04dadfec3e4 · report
process_single_example_raw_outputs yale-nlp/docmath-eval/run_llm.py official repository ran no licence file found · pointer only · d86ea5a31781b2d8 · report
round_up_to_decimal yale-nlp/docmath-eval/utils/evaluation_utils.py official repository ran fingerprinted no licence file found · pointer only · 4f64fae0c2fbb2b6 · report
within_eps yale-nlp/docmath-eval/utils/evaluation_utils.py official repository ran no licence file found · pointer only · 05e59123f91ef53c · report
evaluate_cot_pred_file yale-nlp/docmath-eval/evaluation.py official repository unverified no licence file found · pointer only · 96c26791e0625049 · report
evaluate_pot_pred_file yale-nlp/docmath-eval/evaluation.py official repository unverified no licence file found · pointer only · 3327c6a9371afd0a · report
hf_retriever_encode yale-nlp/docmath-eval/retriever/retriever.py official repository unverified no licence file found · pointer only · 01a15c9d6223ade5 · report
process_text yale-nlp/docmath-eval/retriever/utils/bm25_utils.py official repository unverified no licence file found · pointer only · d21b46766ef2f4be · report
truncate_text_tokens yale-nlp/docmath-eval/retriever/retriever.py official repository unverified no licence file found · pointer only · 984a68f53c315de8 · report

Tasks

Math

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections