mlsanityData to 14 Oct 2026

The Last Mile of Coding Agents for Long-Document Tasks: An Empirical Study on Clinical Trial Protocol Digitization

arXiv 2610.18507 ↗First posted 13 Oct 2026cs.CLcited by 0

On the map: LLM agents and tool use → Medical and scientific domain agents

Abstract (arXiv)

Clinical trial protocols serve as the source of truth for study design, but are mostly written and used as unstructured PDF documents. Digitizing protocols turns static content into structured, machine-readable data that clinical software can analyze, validate, and execute. Coding agents, which select tools, execute code, and revise their approach as they work, are increasingly applied to such long-document tasks, yet it remains unclear how reliably they turn complete documents into accurate structured outputs. We study this question using protocol digitization as a testbed. We introduce TrialPD-Bench, an expert-annotated benchmark of 150 publicly available protocol PDFs spanning four task categories. Beyond final-answer performance, our evaluation measures evidence recall from agent traces, agent behavior, and cost. Across nine proprietary and open-weight models in five coding-agent harnesses, even the strongest agents do not fully solve protocol digitization. Our analysis further shows that agents usually locate the required evidence but fail in the last mile of transcribing and structuring it. We further develop TrialScribe, a domain-specific harness that equips coding agents with task skills and a verification loop. TrialScribe improves a locally served open-weight model by 6.2-59.4 points across eight metrics, enabling it to match or surpass proprietary models such as GPT-5.6-Sol.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Medical and scientific domain agents, one of 16 directions in LLM agents and tool use. Builds on 17 of its 47 references that are in the map. First posted on arXiv 13 Oct 2026.

Builds on

17 of 47 references.

References · 17

  1. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  2. 2025Qwen3-VL Technical Reportcited by 2,793
  3. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
  4. 2024OmniDocBench: Benchmarking Diverse PDF Document Parsing with Comprehensive Annotationscited by 150
  5. 2021PubTables-1M: Towards comprehensive table extraction from unstructured documentscited by 126
  6. 2023TaskWeaver: A Code-First Agent Frameworkcited by 86
  7. 2025olmOCR 2: Unit Test Rewards for Document OCRcited by 47
  8. 2026Code as Agent Harnesscited by 47
  9. 2025Coding Agents with Multimodal Browsing are Generalist Problem Solverscited by 25
  10. 2026LightOnOCR: A 1B End-to-End Multilingual Vision-Language Model for State-of-the-Art OCRcited by 23
  11. 2026MLS-Bench: A Holistic and Rigorous Assessment of AI Systems on Building Better AIcited by 17
  12. 2022The Leaf Clinical Trials Corpus: a new resource for query generation from clinical trial eligibility criteriacited by 10
5 more
  1. 2021Clinical Trial Information Extraction with BERTcited by 8
  2. 2024Selective Fine-tuning on LLM-labeled Data May Reduce Reliance on Human Annotation: A Case Study Using Schedule-of-Event Table Detectioncited by 3
  3. 2026AI-assisted Protocol Information Extraction For Improved Accuracy and Efficiency in Clinical Trial Workflowscited by 1
  4. 2026ExtractBench: A Benchmark for Schema-Guided Enterprise Document Extractioncited by 1
  5. 2026PPTBench: Can Coding Agents Reconstruct the Visual World through Structured, Editable Slidescited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Can LLM Agents Generate Real-World Evidence? Evaluating Observational Studies in Medical Databases
  2. 2026ClinLens: Towards Long-Horizon Coding Agents for Longitudinal Multimodal Clinical Data Science
  3. 2026Agentic Publication Protocol: An Attempt to Modernize Scientific Publication
  4. 2025FRAME: Feedback-Refined Agent Methodology for Enhancing Medical Research Insights
  5. 2025MedDCR: Learning to Design Agentic Workflows for Medical Coding
  6. 2026MedHarnessBench: A Unified Benchmark for Healthcare Agent Evaluation
  7. 2026Symphony for Medical Coding: A Next-Generation Agentic System for Scalable and Explainable Medical Coding
  8. 2026PhysicianBench: Evaluating LLM Agents in Real-World EHR Environments