证据优先,算术其次:DocSem 的系统报告与失败案例分析
摘要
这是一篇 DocInsights 2026 共享任务的系统论文,介绍了 EviCalc——一个 PDF 文档问答流水线,将证据段落选择与 LLM 生成的算术表达式(在本地代码中执行)相结合。论文报告了 EviCalc 在 DocSem 测试集上 8.61% 的联合准确率,并给出了描述性的失败分析,包括 OCR 错误和块分组错误导致相关段落被错误合并的问题。
arXiv:2609.39013v1 Announce Type: new
Abstract: EVICALC, our system for the DocSem shared task, achieved 8.61% joint accuracy on 1,730 tasks in the official final test evaluation. It reads a PDF, selects a passage, asks a language model to write an arithmetic expression, and evaluates that expression in local code. Saved intermediate results support inspection of failures. A separate public-validation run achieved 92.17% answer accuracy and 1.00 evidence F1. The configurations and metrics differ, so these scores are not a controlled comparison. Our manual, post-hoc analysis is descriptive: in one inspected case, optical character recognition (OCR) and block grouping merged the relevant passage into another block, and the system answered from unrelated text. An exploratory study of reading page images on 100 documents returned evidence identifiers for only 22 documents. These descriptive findings motivate further evaluation; they do not establish the causes of the overall score.
查看缓存全文
缓存时间: 2026/10/01 09:46
# A System Report and Failure Analysis for DocSem Source: [https://arxiv.org/html/2609.39013](https://arxiv.org/html/2609.39013) ## Evidence First, Arithmetic Second: A System Report and Failure Analysis forDocSemThanks:Accepted as a shared\-task system paper at DocInsights 2026, co\-located with EMNLP 2026\. This is the authors’ preprint version\. Divya GodaraSachin GuptaAffiliation:Independent ResearcherAffiliation:San Jose, USAEmail:[sachinkg12@gmail\.com](mailto:) ###### Abstract EviCalc, our system for theDocSemshared task, achieved 8\.61% joint accuracy on 1,730 tasks in the official final test evaluation\. It reads a PDF, selects a passage, asks a language model to write an arithmetic expression, and evaluates that expression in local code\. Saved intermediate results support inspection of failures\. A separate public\-validation run achieved 92\.17% answer accuracy and 1\.00 evidence F1\. The configurations and metrics differ, so these scores are not a controlled comparison\. Our manual, post\-hoc analysis is descriptive: in one inspected case, optical character recognition \(OCR\) and block grouping merged the relevant passage into another block, and the system answered from unrelated text\. An exploratory study of reading page images on 100 documents returned evidence identifiers for only 22 documents\. These descriptive findings motivate further evaluation; they do not establish the causes of the overall score\. ## 1Introduction Document question answering requires finding the relevant passage before reasoning about it\. InDocSem, built on GSM\-SEM\([Singh et al\., 2026](https://arxiv.org/html/2609.39013#bib.bib8)\), each task provides an image\-only PDF and a paraphrased query\. A system must return both a numeric answer and the printed identifier of the supporting passage\. We call that passage the evidence block\. A correct calculation from the wrong block fails the joint answer\-and\-evidence requirement\. EviCalcobtained 8\.61% joint accuracy in the official test evaluation\. We report the submitted system and descriptive failure analyses\. Saved passages, calculations, and answers support case\-level inspection, not estimates of each error type’s contribution to the overall score\. #### Relation to earlier work\. DocVQA introduced a benchmark for question answering over document images\([Mathew et al\., 2021](https://arxiv.org/html/2609.39013#bib.bib5)\)\. Program\-aided language models delegate calculation to an interpreter after a model generates a program\([Gao et al\., 2023](https://arxiv.org/html/2609.39013#bib.bib4)\)\. Our system uses a restricted arithmetic expression for this step\. The contribution here is an account of how this design behaved onDocSem, where both the answer and the evidence identifier matter\. Figure 1:Submitted adaptive v6 pipeline\. Blue marks inputs, purple model calls, teal selection/calculation and output, amber conditional retries, and gray records and diagnostics\. Arithmetic expressions are evaluated in local code\. Crops come from the selected passage in the supplied PDF\. The v5/v6 passes change only answers: unflagged rows and failed retries retain the prior answer \(Section[3\.3](https://arxiv.org/html/2609.39013#S3.SS3)\)\. Dashed arrows lead to saved records and optional checks, not a required verification step\. Sonnet denotesclaude\-sonnet\-5\. ## 2Task and evaluation setting The participant release contains 908 labeled training tasks and 217 validation tasks\. Each task has an opaque instance identifier, a query, and a path to one PDF\. The test release contains 1,730 tasks\. The instructions require systems to solve from the supplied PDF rather than filenames, metadata, or an external source lookup\. The output is JSONL: an instance identifier, an answer string, and one or more visible evidence block identifiers\. The public validation service reports answer accuracy and evidence scores\. The test service reports joint accuracy: the fraction of tasks for which both the answer and the evidence are correct\. Missing predictions count as wrong\. The validation answer score and test joint score are therefore different measures\. We used public training labels and validation feedback for development\. Predictions did not use organizer\-held test answers, source solutions, or an answer table indexed by task ID\. Test analysis used released PDFs, extracted text, saved runs, and aggregate submission feedback\. ## 3System design Figure[1](https://arxiv.org/html/2609.39013#S1.F1)shows the submitted test flow from task to prediction\. Each task names its PDF; the system does not search a collection of unrelated documents\. The reader, selector, model adapter, and calculator are replaceable components\. Their implementations and settings varied across experiments\. ### 3\.1Document reading and evidence selection The reader renders PDF pages as images\. Tesseract OCR\([Smith, 2007](https://arxiv.org/html/2609.39013#bib.bib9)\)extracts text and its position on each page, and local code groups the lines into blocks\. Each block stores text, a page location, and an extracted identifier\. The public\-validation selector scores blocks for problem\-introduction phrases, numbers, a question mark, and query words\. It penalizes phrases associated with administrative notes and returns the highest\-scoring block\. On public data, the selector considered blocksb06tob13on page 1\. That assumption came from training documents and did not describe the test layout\. The submitted test version processed all pages and used a selector that combined query words with topic words elsewhere in the document\. Uncertain selections could be referred to a language model choosing from a short list of extracted blocks\. It also cropped the selected block’s opening and used a vision model to reread its printed identifier\. This changes the identifier reading, not the choice of passage\. ### 3\.2Interpretation and arithmetic The model receives the query and selected evidence text\. In the structured configuration, it lists the requested quantity, facts quoted from the passage, units, assumptions, and an arithmetic expression\. The expression uses numeric constants and a restricted set of operators and functions\. Local Python code checks the syntax and evaluates it withDecimal, using 40\-digit working precision\. It rejects unsupported operations and non\-finite results\. It removes insignificant trailing zeros when formatting the answer\. Computation is repeatable for a given expression, but the model can choose the wrong quantities or operations\. Optional rules check quantities, units, repeated values, and event status: for example, treating a promised payment as already paid\. Withholding flagged answers was not mandatory in the reported runs\. ### 3\.3Recorded configuration and reproducibility The submitted 1,730\-row adaptive v6 file began withgpt\-4o\-mini\([OpenAI, n\.d\.b](https://arxiv.org/html/2609.39013#bib.bib7)\)for uncertain block selection and calculation, andclaude\-sonnet\-5\([Anthropic, n\.d\.c](https://arxiv.org/html/2609.39013#bib.bib3)\)for identifier crops\. Tesseract processed all pages at image scale 2 and page\-segmentation mode 11\. If the solver failed, it retried with the default and then a minimal instruction profile\. The structured fact list described above was not required in this test run\. Two passes then revised answers without changing evidence IDs\. First,gpt\-4o\([OpenAI, n\.d\.a](https://arxiv.org/html/2609.39013#bib.bib6)\)retried 242 rows with a failed\-run flag, zero answer, or at least seven digits after the decimal point; 162 answers changed\. Second, for 139 remaining zero or long\-decimal answers, Sonnet transcribed the already\-selected passage crop andgpt\-4osolved it; 96 answers changed\. Failed retries kept the previous answer\. These are change counts, not measured corrections\. The triggers came from public\-training answer patterns and test outputs; a zero or decimal answer is not necessarily wrong\. Neither pass reconsidered passage selection\. Initial run records contain the passage, ranking, model settings and reply, calculation, and answer\. Revision records reconstruct the final predictions but do not retain every crop transcription\. Reconstruction is not a fresh model run\. Prompts and calculator definitions accompany the source code\. ## 4Official test result The final leaderboard result reported for adaptive v6 was8\.61% joint accuracyon 1,730 tasks\. Its two revision passes left 207 answers different from the initial run, with all 1,730 evidence fields unchanged\. We have no separate official score for each pass, so these changes do not establish an accuracy improvement\. #### Public validation observations\. For the 92\.17% validation run, we usedclaude\-opus\-5\([Anthropic, n\.d\.b](https://arxiv.org/html/2609.39013#bib.bib2)\)withxhigheffort, a 16,000\-token output limit, and one allowed attempt per task\. Its prompt required quoted facts, explicit assumptions, and a calculation\. Rules selected additional reminders about units, repetitions, prices, or event order from the query and passage\. Table[1](https://arxiv.org/html/2609.39013#S4.T1)records the relevant public\-validation observations\. The first three rows used the released validation PDFs\. The last row applies a reading rule to previously saved model outputs, without rerunning the models or OCR\. We report the recorded scores as development observations\. They are not controlled comparisons: settings changed across runs, and the organizers corrected validation labels during the competition\. Table 1:Recorded public\-validation feedback \(percent except evidence F1\)\. The first three rows came from PDF\-based runs; the last recomputed saved outputs\.The reading\-rule experiment addressed a repeated error: a stated value applied to each remaining item was interpreted as a total for those items\. Recomputing saved outputs with a rule for this wording reached 98\.62%\. A separate comparison rejected a rule that forced comparative answers to be non\-negative\. These were useful error studies, but no new PDF\-based run established that the revised rules would reproduce the recorded score\. ## 5Descriptive failure analysis We compared rendered pages with extracted blocks and saved selections after observing failures\. This manual, post\-hoc analysis describes cases, not the causal contribution of each failure mode to the official score\. ### 5\.1Observed document difficulties We inspected the first 120 test PDFs using rendered pages and their OCR traces\. Unlike the clean quantitative blocks in the public documents, inspected test PDFs included several story\-like blocks, administrative notes, repeated topic words, stylized badges, and multiple pages\. Inspection highlighted three difficulties\. Some queries supplied only broad topical cues, such as a person, object, or activity, that matched several passages\. Some administrative notes echoed the query without containing the requested calculation\. OCR traces also contained damaged story text and badge boundaries, while some unrelated notes remained readable\. We did not count the frequency of these patterns across the full test split\. Intask\_010565, the query referred to a virus spreading\. The rendered page contained a virus\-infection story and a printed badge\. In the scale\-2 OCR trace, that story was merged into a block headed “Purpose and reading note,” and its own identifier was absent\. The selector’s three\-candidate shortlist did not include this story\. Downstream reasoning then solved an unrelated potted\-flower passage\. The calculation stage could not correct this because it never received the relevant evidence\. ### 5\.2Identifier reading and passage selection The 20\-crop pilot assessed identifier transcription, not whether the selected paragraph answered the query\. Correctly transcribing the wrong paragraph’s identifier still gives incorrect evidence\. ## 6Exploratory page\-image study We tested a model that reads page images without the query and lists possible word problems, their page numbers, opening words, topics, and printed identifiers\. Local code matches query words and OCR\-derived topic cues to this list\. The catalog model wasclaude\-haiku\-4\-5\-20251001\([Anthropic, n\.d\.a](https://arxiv.org/html/2609.39013#bib.bib1)\);claude\-sonnet\-5reread cropped identifiers\. Crops still required matching catalog entries to OCR block positions\. The experiment produced evidence selections, not numerical answers, and was not a matched comparison with the submitted system\. Before running it, we sampled 100 test documents, excluding 181 used during design or earlier inspection\. The fixed sample used seeddocsem\-visual\-gate\-n100\-v1\. The study notes describe grading by people and assistants reading rendered pages and crops, with the system’s selection hidden during the initial passage reading\. These are local judgments, not organizer labels\. The notes do not report agreement between independent graders\. Table 2:Exploratory page\-image study on 100 documents\. Output counts are exact; correctness estimates are approximate local judgments, not organizer labels\.The recorded local estimates exceeded the declared thresholds: 80% of selected passages judged correct and 70% of emitted identifiers transcribed correctly\. However, neither threshold set a minimum number of outputs\. Of the 100 documents, 45 had no selected passage, 18 had a selection but no usable crop location, and 15 had conflicting identifier readings\. Only 22 returned an evidence identifier\. We call this fraction coverage\. Even perfect answers and identifiers for those 22 documents would give at most 22% joint accuracy on this sample if the other 78 were left unanswered\. The experiment did not measure numerical answers, and we did not run it over the full test split\. More permissive matching on saved catalogs increased selections from 55 to 56, but admitted administrative notes in inspected cases\. This used no new model calls and does not establish a limit for other selectors\. ## 7Lessons Learned These observations motivate recommendations, not demonstrated remedies\. Check passage selection first\.The virus case motivates inspecting the selected evidence before changing calculation instructions\. Test varied layouts\.Compare readers or selectors on the same documents, changing one component at a time with the solver fixed\. Report selection, identifier and answer accuracy, and coverage separately\. Such controlled comparisons are needed to establish whether a change improves performance\. Separate identifier and passage checks\.A correctly read identifier can still belong to the wrong passage\. Report coverage\.The page\-image study returned evidence for 22 of 100 documents; correctness among outputs alone missed this limitation\. ## 8Conclusion EviCalcobtained 8\.61% official test joint accuracy\. Our descriptive analyses document a case of missing relevant evidence and a page\-image prototype that returned evidence for only 22 of 100 documents\. They motivate testing extraction and selection changes, but do not establish a single cause of the test result or demonstrate that the proposed changes improve performance\. ## Limitations This report concerns one system and task\. Models, prompts, readers, and metrics differed between public validation and test experiments\. The score difference therefore cannot be attributed solely to document layout\. The first 120 test documents were a convenience sample\. Correctness judgments in the 100\-document study are approximate, and raw annotation records would be needed to resolve the remaining uncertain cases\. The rule applied to saved validation outputs was developed after inspecting errors\. Its score is not a prospective test of a new PDF\-based system\. Hosted model calls can also vary between runs\. ## Ethical considerations Predictions use released PDFs without private answers or source solution lookup\. A plausible calculation from an unrelated passage remains a practical risk\. Saved passages and expressions support inspection, not a guarantee of correctness\. ## References - Anthropic \(n\.d\.a\)Anthropic\. n\.d\.a\.[Claude Haiku 4\.5](https://platform.claude.com/docs/en/models/haiku-4-5/overview)\.Claude Platform model documentation\.Accessed September 16, 2026\. - Anthropic \(n\.d\.b\)Anthropic\. n\.d\.b\.[Claude Opus 5](https://platform.claude.com/docs/en/models/opus-5/overview)\.Claude Platform model documentation\.Accessed September 16, 2026\. - Anthropic \(n\.d\.c\)Anthropic\. n\.d\.c\.[Claude Sonnet 5](https://platform.claude.com/docs/en/models/sonnet-5/overview)\.Claude Platform model documentation\.Accessed September 16, 2026\. - Gao et al\. \(2023\)Luyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon, Pengfei Liu, Yiming Yang, Jamie Callan, and Graham Neubig\. 2023\.[PAL: Program\-aided language models](https://proceedings.mlr.press/v202/gao23f.html)\.In*Proceedings of the 40th International Conference on Machine Learning*, volume 202 of*Proceedings of Machine Learning Research*, pages 10764–10799\. PMLR\. - Mathew et al\. \(2021\)Minesh Mathew, Dimosthenis Karatzas, and C\. V\. Jawahar\. 2021\.[DocVQA: A dataset for VQA on document images](https://doi.org/10.1109/WACV48630.2021.00225)\.In*Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision \(WACV\)*, pages 2200–2209\. - OpenAI \(n\.d\.a\)OpenAI\. n\.d\.a\.[GPT\-4o](https://developers.openai.com/api/docs/models/gpt-4o)\.OpenAI API model documentation\.Accessed September 16, 2026\. - OpenAI \(n\.d\.b\)OpenAI\. n\.d\.b\.[GPT\-4o Mini](https://developers.openai.com/api/docs/models/gpt-4o-mini)\.OpenAI API model documentation\.Accessed September 16, 2026\. - Singh et al\. \(2026\)Jyotika Singh, Fang Tu, Aziza Mirsaidova, Amit Agarwal, Hitesh Laxmichand Patel, Sandip Ghoshal, Miguel Ballesteros, Karan Dua, Yassine Benajiba, Weiyi Sun, Tao Sheng, Graham Horwood, Sujith Ravi, and Dan Roth\. 2026\.[GSM\-SEM: Benchmark and framework for generating semantically variant augmentations](https://doi.org/10.48550/arXiv.2605.07053)\.*arXiv preprint arXiv:2605\.07053*\. - Smith \(2007\)Ray Smith\. 2007\.[An overview of the Tesseract OCR engine](https://doi.org/10.1109/ICDAR.2007.4376991)\.In*Proceedings of the Ninth International Conference on Document Analysis and Recognition*, pages 629–633\.
相似文章
构建金融文档高精度语义证据/RAG系统——寻求反馈
本文概述了一个用于金融文档的高精度语义证据和RAG系统的多门架构,强调了可追溯性、对账和混合检索,并征求对其设计的反馈。
具备视觉能力的LLM与OCR在长文档(包括图表、图片、表格等)问答中的对比
一项对比测试,将具备视觉能力的LLM(原生PDF阅读模式)与基于OCR的流程在30份长且图片密集的PDF上进行比较,发现带有布局提取的OCR在图表/表格密集的页面上仍优于视觉模型,且失败率为0%,而原生PDF为7%,尽管样本量较小且许多差距在噪声范围内。
受控降解下的证据状态可靠性:多阶段LLM流水线中的解析器有效性偏离
本文引入证据状态可靠性(ESR)作为多阶段LLM流水线的评估层,表明在受控降解下,结构符合性可能提高,而证据敏感的阶段成功率则下降。
施工文档中基于证据的约束检查
提出了一种用于施工文档约束检查的基于证据的流水线,评估了在专家参考任务中PDF证据分配的分辨率-广度权衡。
基于证据链评估的校准式选择性事实核查
本文介绍了一种名为证据链评估(ECE)的选择性事实核查框架,该框架允许基于LLM的验证代理在证据薄弱、稀疏或不一致时放弃给出判断。在ECE-Bench上,ECE实现了93.7%覆盖率下的97.8%选择性准确率,展示了处理认知薄弱证据时面向安全性的权衡。