SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.09805 · 2023

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

arXiv · PDF · Open in the Atlas

Code that ran

10 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 2 violated it and 1 has no contract verdict; 4 failures of our instrument; 5 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2311.09805.json · badge: /api/ran/2311.09805.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
yale-nlp/docmath-eval canonical (classifier label)
classifier basis: census
10 ran · 5 no recorded run
FunctionStatusWhere it lives
add_embeddings Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yale-nlp/docmath-eval/retriever/src/index.py
pointer only (licence: NONE); the stored copy get_code serves, from FenQQQ/Fusion-in-decoder, is pointer only (licence: NOASSERTION) · get_code("bc7a7a194c238080")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compare_two_numbers Ran
ran, violated the contract we drafted
yale-nlp/docmath-eval/utils/evaluation_utils.py
pointer only (licence: NONE) · get_code("1244f0e9165aa97a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

count_tokens Ran
ran on a synthesized input
yale-nlp/docmath-eval/utils/model_input_utils.py
pointer only (licence: NONE) · get_code("cc3cc5ecc9833707")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_context Ran
ran; our contract draft was wrong, not the code
yale-nlp/docmath-eval/utils/model_input_utils.py
pointer only (licence: NONE) · get_code("eb7d8895ef9a732f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_result Ran
ran, honoured the contract we drafted
yale-nlp/docmath-eval/evaluation.py
pointer only (licence: NONE) · get_code("87ea38e7e0bd8ee8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gpt_retriever_encode Ran
ran, honoured the contract we drafted
yale-nlp/docmath-eval/retriever/retriever.py
pointer only (licence: NONE) · get_code("8e223fdb31440a47")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_pot_model_input Ran
ran; our contract draft was wrong, not the code
yale-nlp/docmath-eval/utils/model_input_utils.py
pointer only (licence: NONE) · get_code("647dd04dadfec3e4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

process_single_example_raw_outputs Ran
ran; our contract draft was wrong, not the code
yale-nlp/docmath-eval/run_llm.py
pointer only (licence: NONE); the stored copy get_code serves, from Xiaoyu1216/Fin-Bias, is pointer only (licence: NONE) · get_code("d86ea5a31781b2d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

round_up_to_decimal Ran
ran, honoured the contract we drafted
yale-nlp/docmath-eval/utils/evaluation_utils.py
pointer only (licence: NONE) · get_code("4f64fae0c2fbb2b6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

within_eps Ran
ran, violated the contract we drafted
yale-nlp/docmath-eval/utils/evaluation_utils.py
pointer only (licence: NONE) · get_code("05e59123f91ef53c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

evaluate_cot_pred_file Not yet run
unverified (harvested, no recorded run)
yale-nlp/docmath-eval/evaluation.py
pointer only (licence: NONE) · get_code("96c26791e0625049")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

evaluate_pot_pred_file Not yet run
unverified (harvested, no recorded run)
yale-nlp/docmath-eval/evaluation.py
pointer only (licence: NONE) · get_code("3327c6a9371afd0a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

hf_retriever_encode Not yet run
unverified (harvested, no recorded run)
yale-nlp/docmath-eval/retriever/retriever.py
pointer only (licence: NONE) · get_code("01a15c9d6223ade5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

process_text Not yet run
unverified (harvested, no recorded run)
yale-nlp/docmath-eval/retriever/utils/bm25_utils.py
pointer only (licence: NONE) · get_code("d21b46766ef2f4be")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

truncate_text_tokens Not yet run
unverified (harvested, no recorded run)
yale-nlp/docmath-eval/retriever/retriever.py
pointer only (licence: NONE) · get_code("984a68f53c315de8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yale-nlp/docmath-eval when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 5 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 4 the same month, 2 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
add_embeddings 6 other papers
1 dated earlier, 5 later
2012.04584 (2020-12)
Distilling Knowledge from Reader to Retriever for Question Answering
2401.16979 (2024-01)
Re3val: Reinforced and Reranked Generative Retrieval
2403.06840 (2024-03)
RA-ISF: Learning to Answer and Understand from Retrieval Augmentation via Iterative Self-Feedback
and 3 more not named here
process_single_example_raw_outputs 2 other papers
1 the same month, 1 later
2311.09797 (2023-11)
FinanceMath: Knowledge-Intensive Math Reasoning in Finance Domains
2605.09106 (2026-05)
Fin-Bias: Comprehensive Evaluation for LLM Decision-Making under human bias in Finance Domain
compare_two_numbers 1 other paper
1 the same month
2311.09797 (2023-11)
FinanceMath: Knowledge-Intensive Math Reasoning in Finance Domains
round_up_to_decimal 1 other paper
1 the same month
2311.09797 (2023-11)
FinanceMath: Knowledge-Intensive Math Reasoning in Finance Domains
within_eps 1 other paper
1 the same month
2311.09797 (2023-11)
FinanceMath: Knowledge-Intensive Math Reasoning in Finance Domains

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2311.09805")
get_code_for_paper("2311.09805")
have("2311.09805")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2311.09805.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2311.09805.svg)](https://syntology.ai/paper/2311.09805)

Connect an agent — have() is free.