betaFeedback

WorksComputer Science

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

Abstract

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.

Project page: https://linjc16.github.io/trialpd-bench/

Introduction

Recent advances in coding agents, exemplified by Claude Code (Anthropic) and Codex (OpenAI), have extended their use beyond software engineering to a broader range of complex tasks (Wang et al., 2026a; Lyttelton et al., 2026; Wang et al., 2026b; Lyu et al., 2026). These agents can select tools, generate and execute code, and revise their approach based on intermediate results, providing flexibility in how they organize and complete a task (Wang et al., 2024; Ning et al., 2026). Such capabilities make coding agents promising for long-document tasks, where relevant information may be distributed across many pages and different document structures may require different processing strategies. However, it remains unclear whether coding agents can reliably transform complex documents into accurate, complete, and structured outputs.

Clinical trial protocol digitization, which transforms protocol information into structured and machine-readable representations ([2] (Huser et al. 2015)), provides a high-stakes, real-world setting for investigating the capabilities and reliability of coding agents on long-document tasks. First, it is a representative long-document task. Clinical trial protocols specify the core design and operational requirements of a study, but are predominantly maintained as lengthy, unstructured PDF documents ([6, 2]). These documents contain heterogeneous layouts, complex tables, and information distributed across multiple sections, requiring systems to navigate long documents, integrate scattered evidence, and reconstruct structured relationships.

Second, it has direct practical value. When protocol requirements remain embedded in documents, they require repeated manual interpretation and translation into downstream systems, resulting in limited interoperability, reduced efficiency, and increased risk of inconsistencies and transcription errors ([2, 4]). Structured protocol representation is essential for making study requirements computable, interoperable, and reusable across the clinical trial life cycle ([2] (Huser et al. 2015; Richardson and Genyn 2025)). Because these representations inform downstream trial operations, even small errors, such as altered eligibility thresholds or misplaced study activities, can change the intended study requirements.

In this paper, we study how reliably coding agents handle long-document tasks, using clinical trial protocol digitization as a testbed (Figure 1). Beyond final-answer performance, our evaluation protocol measures evidence recall from agent traces, agent behavior including vision use, tool errors, and interaction turns, and cost. Our contributions are as follows:

Figure 1. Overview of this study. (a–c) Coding agents must localize evidence, interpret complex layouts, and link information across long protocols; output quality varies across tasks. (d) Overall score on TRIALPD-BENCH against average cost per run. (e) TRIALSCRIBE with Qwen3.8-27B versus the base model, Opus 5, and GPT-5.6-Sol.

  • We construct TRIALPD-BENCH, an expert-annotated benchmark of 150 complete protocol PDFs (median 122 pages) spanning four task categories: disease indication, eligibility criteria, objectives and endpoints, and schedule of activities. Each task requires locating evidence scattered across the full document and producing structured output that follows a USDM-derived schema.

  • We evaluate nine proprietary and open-weight models in five coding-agent harnesses. Even the strongest agents leave substantial errors, reaching at most 67.4% endpoint F1 and 23.2% encounter recall. Agents usually reach the required evidence pages but fail in the last mile of reading and structuring it. Agents with similar accuracy can also differ several-fold in cost.

  • We develop TRIALSCRIBE, a domain-specific harness that equips a locally served model with task skills and a verification loop. TRIALSCRIBE improves Qwen3.8-27B by 6.2–59.4 points across eight metrics, enabling it to match or surpass proprietary models such as GPT-5.6-Sol.

TrialPD-Bench: Evaluating Coding Agents on Protocol Digitization

Task Definition

We formulate clinical trial protocol digitization as extracting information from a protocol PDF into structured JSON output. The task-specific output schemas are derived from Unified Study Definitions Model (USDM) v4.0 (CDISC). CDISC’s (Clinical Data Interchange Standards Consortium)

USDM is an established standard to represent protocol documents into a structured machine-readable data. The output schemas cover selected portions relevant to four extraction tasks: disease indication, eligibility criteria, objectives and endpoints, and schedule of activities. Given a protocol document DD and the output schema StS_t for task tt, an extraction system ff produces Y^t=f(D,St)\hat{Y}_t = f(D, S_t), where Y^t\hat{Y}_t denotes the predicted JSON output. The objective is to recover the relevant information in DD accurately and completely while conforming to the fields and structure specified by StS_t.

Benchmark Construction

We construct TRIALPD-BENCH from clinical trial source documents associated with 150 unique NCT (National Clinical Trial) identifiers. (1) Disease indication extraction identifies the disease or condition investigated in the study. (2) Eligibility criteria extraction recovers participant inclusion and exclusion criteria. (3) Objectives and endpoints extraction identifies study objectives and their associated endpoints, together with their respective levels. (4) Schedule of activities (SoA) includes SoA table extraction and structured timeline extraction: the former locates the SoA tables in the full protocol and recovers their activity-visit structure, while the latter extracts study epochs, encounters, and activities. Reference outputs were produced by five experts in the clinical trial domain (Appendix § 10.§ 3). We hold out the protocols used to develop TrialScribe (§ 4) as a development split and report all results on the remaining test split.

Overview and Statistics

Figure 2 summarizes the task categories and composition of the corpus, which comprises clinical trial source documents from ClinicalTrials.gov (U.S. National Library of Medicine), covering 18 therapeutic areas and 106 sponsors. Across these sponsors, the documents vary in section organization and table structure. For example, SoA tables may appear near the beginning of a protocol or in appendices, with different arrangements of study periods, visit windows, multi-level headers, and footnotes. This structural variation requires extraction systems to interpret information beyond fixed page positions or table layouts. In this dataset, protocol documents have a median length of 122 pages, with 98 documents (65.3%) containing at least 100 pages, and depending on the task, up to 31.5% of PDFs have task-relevant content that is missing

Figure 2. Figure 2: Overview of TRIALPD-BENCH. (a) Source documents and the four task categories. The corpus comprises 150 unique studies, using one representative document per NCT identifier. (b) Coverage of therapeutic areas. (c) Document-length distribution, with a median of 122 pages marked by the dashed line. (d) Study counts across 106 sponsors.

TaskSamplesMeanMedianp90Reference annotationsMain metrics
Disease indication401.001141 indication descriptions; 1–2 per sampleIndication F1
Eligibility criteria1344.32473,974 criteria: 1,337 inclusion and 2,637 exclusionEligibility criteria F1
Objectives and endpoints893.1735665 objectives and 1,484 endpoints; 60 objectives without endpointsObjective, endpoint, and objective-linked endpoint F1
SoA tables371.891470 tables; 10 protocols with multiple SoA pagesActivity-Visit and sub/sup F1
Structured timelines36.338814 epochs; 69 encounters; 115 activitiesEpoch accuracy; Activity and Encounter recall

caption: Task-level sample sizes and annotation statistics on the test split, excluding the development protocols of Appendix § 15.§ 1. For every task, the input is the full protocol PDF. Evidence pages is the number of PDF pages per sample that contain the evidence needed for the reference annotations; p90 is the 90th percentile.

:::

from or garbled in the text layer and must be read from rendered pages (Appendix § 13.§ 4). Table 1 reports the sample size and reference annotations of each task.

Evaluation Metrics

We evaluate coding agents along four dimensions: (1) Final-answer Performance, using each task’s scoring metrics to assess extraction quality; (2) Evidence Recall, using page recall to measure coverage of required evidence pages in observable agent traces; (3) Agent Behavior, measured by vision use rate on cases requiring visual recovery, average tool execution errors, and average agent response turns; and (4) Resource Usage, measured by average cost per run in USD. Detailed task specifications and evaluation metrics are provided in Appendix § 11.

Experimental Setup

We use Harbor (Harbor Framework Team, [16]) to run coding agents in containerized task environments. Each environment provides the source document, task instructions, and output requirements. Agents write their extracted results to a designated output directory, which is then used for evaluation against reference annotations withheld during task execution.

We evaluate nine models, each paired with a coding-agent harness: GPT-5.6-Sol and GPT-6-Astra with Codex (OpenAI); Opus 4.6, Opus 4.8, Opus 5, and Sonnet 5 with Claude Code (Anthropic); Kimi-K3 with Kimi Code (Moonshot AI); DeepSeek-V4-Flash with DeepSeek Harness (DeepSeek-AI); and the open-weight Qwen3.8-27B with Pi harness (Earendil Works).

Main Results

Table 2 reports final-answer performance and evidence recall for all coding agents. Table 3 and Table 4 report agent behavior, and Table 5 reports the average cost per run.

ModelIndication F1Indication ERCriteria F1Criteria ERObjectives & endpoints ObjObjectives & endpoints EndObjectives & endpoints LinkObjectives & endpoints ERSoA Tables Sched.SoA Tables Sub/supSoA Tables ERTimeline EpochTimeline Enc.Timeline Act.Timeline ER
GPT-6-Astra82.595.087.891.682.265.058.189.686.884.584.873.320.391.198.3
GPT-5.6-Sol80.092.587.194.980.463.654.788.783.781.093.661.123.288.1100.0
Opus 585.092.587.097.382.967.458.790.186.083.989.638.60.087.298.4
Opus 4.872.597.587.296.482.766.958.590.881.478.088.364.40.082.5100.0
Opus 4.667.5100.086.897.580.660.649.694.154.753.496.061.10.085.3100.0
Sonnet 575.0100.086.493.482.863.954.287.574.771.895.750.68.759.2100.0
Kimi-K380.087.586.989.584.964.656.472.483.982.087.961.121.750.2100.0
DeepSeek-V4-Flash75.085.080.279.763.358.536.872.747.554.477.948.52.972.2100.0
Qwen3.8-27B68.385.067.189.256.046.732.175.132.542.580.222.95.882.598.6

Table 2. Main results (%) of coding agents on TRIALPD-BENCH. Each task reports its final-answer metrics followed by evidence recall (ER), the recall of the required evidence pages visited in the agent trace. Obj/End/Link: objective, endpoint, and objective-linked endpoint F1; Sched. and Sub/sup: Activity-Visit F1 (scheduling marks) and Sub/sup F1; Epoch: epoch type positional accuracy; Enc.: encounter recall; Act.: activity recall.

ModelTool errors per run Ind.Tool errors per run Crit.Tool errors per run O&ETool errors per run SoATool errors per run TLTurns per run Ind.Turns per run Crit.Turns per run O&ETurns per run SoATurns per run TL
GPT-6-Astra0.170.690.781.051.334.910.611.516.027.3
GPT-5.6-Sol0.681.711.900.622.337.115.915.319.520.3
Opus 51.180.271.371.920.677.614.215.644.718.7
Opus 4.80.280.210.651.950.674.712.214.243.215.0
Opus 4.60.000.620.940.270.004.112.17.119.76.7
Sonnet 50.150.601.522.192.675.417.421.169.429.3
Kimi-K30.250.281.031.162.677.015.118.433.616.0
DeepSeek-V4-Flash1.251.332.645.693.0010.426.825.264.234.7
Qwen3.8-27B0.951.814.964.731.3312.825.343.448.225.7

Table 3. Agent behavior per task: average number of tool execution errors and agent response turns per run. Ind.: indication; Crit.: eligibility criteria; O&E: objectives and endpoints; SoA: SoA tables; TL: structured timeline.

ModelInd.Crit.O&ESoA
GPT-6-Astra100.0100.0100.0100.0
GPT-5.6-Sol71.497.592.9100.0
Opus 585.7100.067.9100.0
Opus 4.885.7100.085.7100.0
Opus 4.6100.0100.085.7100.0
Sonnet 5100.0100.082.1100.0
Kimi-K371.497.582.1100.0
DeepSeek-V4-Flash42.972.564.375.0
Qwen3.8-27B71.470.046.462.5

Table 4. Vision use (%): the share of vision-required cases in which the agent obtains an image or OCR of a relevant hard page. Structured timeline has no vision-required protocol. Task abbreviations as in Table 3.

ModelInd.Crit.O&ESoATL
GPT-6-Astra0.321.351.072.135.59
GPT-5.6-Sol0.140.500.480.851.35
Opus 50.210.730.752.933.08
Opus 4.80.120.710.894.121.61
Opus 4.60.130.831.164.493.06
Sonnet 50.080.400.522.441.30
Kimi-K30.110.440.632.550.92
DeepSeek-V4-Flash0.010.040.040.080.11
Qwen3.8-27B0.040.200.460.460.25

Table 5. Average cost per run in USD. Task abbreviations as in Table 3.

Finding 1: Task difficulty varies widely, and even the strongest coding agents do not fully solve protocol digitization. Frontier agents largely handle tasks that mainly require locating and transcribing contiguous text or tables. The best agent reaches 87.8% F1 on eligibility criteria, 86.8% Activity-Visit F1 on SoA tables, 85.0% indication F1, and 84.9% objective F1. Components that require linking information across sections or mapping it onto the study design are considerably harder. The best endpoint F1 is 67.4% and the best objective-linked endpoint F1 is 58.7%, both well below objective F1. On structured timelines, agents recover activities with up to 91.1% recall, yet epoch accuracy peaks at 73.3% and encounter recall at 23.2%, and the three Opus agents recover no reference encounter. The gaps between models also depend on the task. On eligibility criteria, seven agents lie within 1.4 points of each other (86.4–87.8%), whereas Activity-Visit F1 on SoA tables ranges from 32.5% to 86.8%. Apart from timeline activity recall, no final-answer metric exceeds 88%. Because extracted study definitions feed directly into downstream trial systems, the remaining errors are consequential. Directly deploying current frontier coding agents therefore does not yet provide complete and reliable protocol digitization, and the largest gaps lie in the relational components of a protocol rather than in its surface content.

Finding 2: Locating the evidence is not the main bottleneck, and high evidence recall does not translate into accurate extraction. Agents generally reach the pages that contain the required evidence. Except for Kimi-K3 on objectives and endpoints (72.4%), the seven frontier agents visit

at least 84.8% of the required evidence pages on every task. Final-answer performance, however, does not follow evidence recall. The clearest case is structured timelines, where every agent visits at least 98.3% of the evidence pages, yet encounter recall stays at or below 23.2%. Across models, visiting more evidence pages does not yield better extraction. Opus 4.6 has the highest SoA evidence recall of any agent (96.0%) but reaches only 54.7% Activity-Visit F1, whereas GPT-6-Astra has the lowest among frontier agents (84.8%) and achieves the best score (86.8%). Similarly, Opus 4.6 and Sonnet 5 visit every indication evidence page yet reach 67.5% and 75.0% F1, below Opus 5 at 85.0% with 92.5% evidence recall. Across the seven frontier agents, the ranking by evidence recall does not track the ranking by final-answer performance. The main bottleneck therefore lies after localization: agents must read the evidence faithfully and reconstruct its structure, which we analyze in § 3.2.

Finding 3: Tool errors and interaction turns scale with task complexity. Agent behavior varies systematically across tasks (Table 3). Averaged over the nine agents, indication extraction takes 7.1 turns and incurs 0.55 tool errors per run, whereas SoA table extraction takes 39.8 turns and incurs 2.18 errors, a 5.6-fold and 4.0-fold increase, respectively. The average number of turns rises from indication (7.1) to eligibility criteria (16.6), objectives and endpoints (19.1), structured timelines (21.5), and SoA tables (39.8). This order follows the structural complexity of the output. Weaker models amplify this effect. DeepSeek-V4-Flash and Qwen3.8-27B incur 2.64–5.69 tool errors per run on objectives and endpoints and on SoA tables, compared with at most 2.19 for the frontier agents. They also obtain visual evidence less often when it is required (42.9–75.0%, Table 4), whereas every frontier agent does so in at least 67.9% of such cases and in all SoA cases. Longer trajectories do not produce better answers. On SoA tables, Sonnet 5 takes 69.4 turns to reach 74.7% Activity-Visit F1, while GPT-6-Astra reaches 86.8% in 16.0 turns. Turns and errors therefore indicate task difficulty and execution reliability rather than extraction quality.

Finding 4: Similar final-answer performance can come at very different costs. Because agents differ in both trajectory length and token price, comparable accuracy can carry very different costs (Table 5). On eligibility criteria, the seven frontier agents lie within 1.4 F1 points of each other, while the cost per run ranges from $0.40 (Sonnet 5) to $1.35 (GPT-6-Astra), a 3.4-fold difference. Kimi-K3 (86.9%, $0.44) and GPT-5.6-Sol (87.1%, $0.50) are both within one point of the best agent at about a third of its cost. On SoA tables, GPT-5.6-Sol reaches 83.7% Activity-Visit F1 at $0.85 per run, within 3.1 points of GPT-6-Astra at 40% of its cost ($2.13). In contrast, Opus 4.6 is the most expensive agent on this task ($4.49) yet scores only 54.7%.

On objectives and endpoints, Kimi-K3 attains the highest objective F1 (84.9%) at $0.63 per run, below GPT-6-Astra ($1.07) and Opus 4.6 ($1.16). DeepSeek-V4-Flash marks the low-cost extreme: it reaches 80.2% criteria F1 at $0.04 per run, 34 times cheaper than GPT-6-Astra. Cost is thus not a proxy for quality. For tasks on which frontier agents perform similarly, substantially cheaper configurations can be chosen with little loss in performance.

Takeaways.

  • Frontier coding agents reliably locate protocol evidence and recover much of its surface content, but still fall short on relational structure such as endpoint linkage and study timelines.

  • Turns and tool errors vary with the task and peak on SoA tables, but within a task, longer trajectories are not associated with higher accuracy.

  • When agents perform similarly, cheaper configurations can deliver comparable accuracy.

Further Analysis

This section examines how agent performance changes across model releases and where agents fail. Appendix § 13 reports further analyses, including comparisons with OCR and document-understanding models and with a RAG pipeline, eligibility criteria by category, and results by PDF text accessibility.

Performance across Model Releases

We analyze how SoA table extraction performance changes across model releases, plotting documentlevel Activity-Visit F1 against each model’s release date (Figure 3). Performance improves quickly within model families: Opus rises from 54.7% for Opus 4.6 (February 2026) to 86.0% for Opus 5 (July 2026). Since July, frontier agents have clustered between 83.7% and 86.8%, still short of full accuracy. Open-weight models released in the same period diverge: Kimi-K3 (83.9%) matches proprietary agents, whereas DeepSeek-V4-Flash (47.5%) and Qwen3.8-27B (32.5%) fall far behind.

Figure 3. SoA Activity-Visit F1 on complete protocols (Table 2) against model release date. Lines connect models of the same family; hollow markers denote open-weight models.

Failure Analysis

To understand where coding agents fail, we classify each failing agent run, defined as a run with at least one detected defect. These failures fall mainly into five categories: transcription fidelity, long-document localization and coverage, relational structure reconstruction, domain concept grounding, and execution reliability. As Figure 4a shows, the dominant failure category differs markedly across tasks.

Figure 4. Failure analysis across protocol digitization tasks. (a) Each pie shows the distribution of failure categories among failing runs within one task; labels indicate shares of at least 8%. (b) Illustrative examples of the five main failure categories, with incorrect or missing predictions highlighted in red.

For eligibility criteria, transcription fidelity accounts for 88.0% of failing runs: agents locate and read the eligibility section but do not reproduce it exactly. These deviations can change the clinical meaning. Among near-verbatim transcriptions, 167 alter a comparison operator and 308 alter a number, for example rendering “≥ 100 meters” as “> 100 meters” (Figure 4b). For indication extraction, domain concept grounding is the largest category (51.7%), reflecting failures to identify the condition under study. DeepSeek-V4-Flash, for example, returns “Non-Valvular Atrial Fibrillation” for a study whose indication is recurrent embolic stroke. For objectives and endpoints, localization and coverage account for a substantial share (26.7%), because endpoints are distributed across the synopsis, main text, and tables. For SoA tables, relational structure accounts for 58.9% of failing runs, most often because agents reconstruct the table but place scheduling marks in the wrong cells; a single misresolved merged cell can shift every subsequent mark on a page. Most of the remaining failing runs (37.5%) are localization failures, in which agents miss the annotated SoA pages.

Structured timeline extraction is dominated by domain concept grounding (65.2%): agents often identify the right visits but do not describe them with the expected encounter categories. Although the task instruction explicitly asks agents to follow USDM v4.0, they do not apply its controlled terminology, suggesting that agents recognize the standard but lack knowledge of its detailed specifications.

Execution reliability, by contrast, accounts for at most 3.6% of failing runs in any task: the nine agents almost always produce usable output, and their errors lie in its content.

TrialScribe: A Domain-Specific Harness for Protocol Digitization

Our analysis points to two practical obstacles. First, protocols are often confidential, which favors compact open-weight models (e.g., Qwen3.8-27B) that run locally in private environments, yet these models fall behind proprietary agents (§ 3.1). Second, most failures arise after the evidence is found, from unfaithful transcription, misplaced structure, and unfamiliar domain conventions (§ 3.2). We therefore introduce TrialScribe, a domain-specific harness layer that equips an existing coding agent with task skills, which supply domain knowledge and output conventions, and a verification loop, which audits the output against the source. We examine whether TrialScribe allows a locally served open-weight model to match proprietary coding agents.

Design

Task skills. For each task, TrialScribe provides a skill, a SKILL.md file placed in the agent’s environment and registered with the harness. The agent reads it at the start of the task and then decides when and how to apply its guidance and tools as it works. Each skill encodes the domain knowledge and working procedures that the task requires: how protocols typically organize and cross-reference the relevant information, which conventions determine a correct output, and which checks confirm that the output is complete and faithful to the source.

Verification loop. After the agent writes a draft, a fresh agent session audits it against the protocol with read-only access to both the protocol and the candidate output. The auditor reports concrete errors together with their source pages and suggested corrections, and a gold-free gate checks the report for schema validity and internal consistency. If errors remain, the agent applies minimal source-supported fixes, and the revised output is audited again, for at most two rounds. For SoA table extraction, the agent instead verifies its output within its own session (Appendix § 15.§ 3).

Results

We instantiate TRIALSCRIBE with Qwen3.8-27B and Pi harness, served locally on two NVIDIA A100 GPUs.

TRIALSCRIBE narrows the gap between a locally served agent and proprietary coding agents. As Figure 1(e) shows, TRIALSCRIBE improves Qwen3.8-27B on every evaluated task, e.g., 15.2% on eligibility criteria F1, 22.2% on objective F1, 18.8% on endpoint F1, and by 37.1% on epoch accuracy, 6.2% on activity recall, and 59.4% on encounter recall. With TRIALSCRIBE, the local model surpasses GPT-5.6-Sol on endpoint extraction (65.5% vs. 63.6%) and comes within 1.9% of Opus-5 on endpoints. On timeline extraction, it exceeds both proprietary agents on activity recall (88.6% vs. 88.1% and 87.2%) and encounter recall (65.2% vs. 23.2% and 0.0%), and trails GPT-5.6-Sol on epoch accuracy (60.0% vs. 61.1%).

Verification helps most where transcription fidelity dominates. Comparing the draft and final outputs of the same runs, we find that verification raises eligibility criteria F1 from 72.2% to 82.3%, objective F1 from 73.2% to 78.2%, and endpoint F1 from 62.0% to 65.5%, but leaves indication F1 unchanged at 77.5%. This pattern mirrors the failure profiles in Figure 4: eligibility criteria fail mainly through transcription errors that a source-grounded audit can detect.

Structural and standard-specific gaps remain, but they are likely to narrow as open-weight models improve. On SoA tables, TRIALSCRIBE reaches 75.1% Activity-Visit F1 and 78.6% Sub-/sup F1, but still trails GPT-5.6-Sol and Opus 5 in Activity-Visit F1 (75.1% vs. 83.7% and 86.0%), suggesting that reconstructing complex table structure remains limited by the underlying model. Nevertheless, open-weight models have improved rapidly [15], and because TRIALSCRIBE does not rely on a particular model, it can be applied directly to stronger ones, which we expect to close the remaining gaps.

Related Work

Prior work on protocol digitization structures eligibility criteria for cohort queries (Kang et al., 2017; Yuan et al., 2019; Park et al., 2024) or interprets schedule-of-activities tables [12] (Kumar et al. 2024), mostly on registry text; Babaeipour et al. [2] cover all four categories with a RAG system on 23 unreleased protocols. Document parsers [8] (Poznanski et al. 2025) and benchmarks (Ouyang et al., 2025; Zhang et al., 2026) evaluate layout recovery and schema-guided extraction, while coding agents (Wang et al., 2024; Yang et al., 2024; Soni et al., 2026) and agent skills (Li et al., 2026) increasingly reach beyond software engineering. See Appendix § 9 for more details.

Conclusion

We introduce TRIALPD-BENCH and find that even the strongest coding agents usually locate the required evidence but fail in the last mile of transcribing and structuring it. We further develop TRIALSCRIBE, which enables a locally served open-weight model to match or surpass proprietary agents such as GPT-5.6-Sol.

Limitations

We use clinical trial protocol digitization as a testbed for studying coding agents on long-document tasks, so our findings are bounded by this setting. At the same time, the properties that make protocols challenging, namely their length, heterogeneous layouts, complex tables, and information distributed across sections, are shared by many other long documents, such as regulatory filings, contracts, and technical specifications. We therefore expect some of our findings, in particular that agents usually locate the required evidence but lose accuracy when transcribing and structuring it, to be informative beyond this setting.

Moreover, structured timeline extraction remains challenging for current coding agents, and our evaluation of this task includes only three protocols. The structured timeline also underlies many downstream tasks, such as main and sub timeline extraction, which are beyond the scope of this paper.

Ethics Statement

All protocol documents in TRIALPD-BENCH are publicly available on ClinicalTrials.gov, and we use them as released without collecting any additional data. The reference annotations were produced by the authors; no external annotators were recruited or compensated, and the work involves no human-subject research. We do not foresee significant ethical risks from this work.

Background

Coding Agents

A coding agent combines a language model with an agent harness. The model interprets task instructions, reasons over the available context, and generates code or tool calls. The harness is the surrounding software infrastructure that manages instructions and context, provides tool interfaces, and coordinates interaction with the execution environment. Typical tools support file access, search, edit, and code execution, while the harness manages the execution loop and associated controls.

These components operate through an iterative interaction loop: the model selects an action, the harness executes the corresponding tool call and returns its result. The model then uses this feedback to determine subsequent actions. This process continues until the agent produces a final response or an execution limit is reached. The resulting behavior depends on both the underlying model and the harness that provides the operational layer for the model.

Additional Related Work

Clinical Trial Protocol Digitization. Research on protocol digitization spans semantic parsing, supervised extraction, and LLM-based methods. EliIE (Kang et al., 2017) and Criteria2Query (Yuan et al., 2019) transform eligibility text into structured representations for clinical database querying, while BERT-based approaches learn clinically relevant entities and relations ([7] (Liu et al. 2021)). Chia (Kury et al., 2020) and LCT ([13]) provide annotated registry eligibility text for developing these capabilities. AutoCriteria ([10]) and Criteria2Query 3.0 (Park et al., 2024) subsequently introduce LLMs for criteria extraction and query generation. Beyond eligibility, Dhuliwala et al. (2018) interpret schedule-of-activities tables through structural and semantic analysis, and Kumar et al. (2024) study schedule-of-event table detection. Babaeipour et al. (2026) address broader extraction from complete protocol PDFs through a RAG system. Our work complements these approaches by evaluating general-purpose coding agents across multiple protocol extraction tasks and diagnosing their remaining failures.

Document Understanding and Structured Extraction. Document understanding research addresses the recovery of text, layout, and tabular structure from heterogeneous documents. PubTables-1M (Smock et al., 2022) supports table detection and structure recognition, while OmniDocBench (Ouyang et al., 2025) evaluates document parsing across diverse layouts and content types. Recent models, including PaddleOCR-VL [8] and olmOCR 2 (Poznanski et al., 2025), advance these parsing capabilities. At the document-processing level, DocAgent (Sun et al., 2025) combines interactive navigation with evidence review. ExtractBench (Zhang et al., 2026) further evaluates schema-guided enterprise extraction, including coding agents. Our benchmark focuses on clinical protocol requirements, evaluating document recovery, the application of domain knowledge, and the extraction of study concepts and relationships, including activity-visit associations and objective-endpoint links.

Coding Agents and Domain Support. CodeAct (Wang et al., 2024) and SWE-agent (Yang et al., 2024) demonstrate the importance of executable actions and agent-computer interfaces for interactive problem solving. OpenHands-Versa (Soni et al., 2026) further investigates how coding agents equipped with general tools transfer across software engineering, research, and browsing tasks. Domain support is explored through plugins and examples in TaskWeaver (Qiao et al., 2023), and through clinical programming skills in ClinAgent (Yan, 2026). SkillsBench (Li et al., 2026) evaluates the benefits of curated skills across domains, while Self-Refine (Madaan et al., 2023) and Reflexion (Shinn et al., 2023) investigate feedback-guided revision and adaptation. Building on these directions, we examine coding-agent reliability in clinical trial protocol digitization and introduce TRIALSCRIBE, which combines domain skills with a verification loop.

Benchmark Details

Comparison with Prior Work

Table 6 compares TRIALPD-BENCH with prior datasets and systems for clinical trial protocol digitization. Existing resources mostly target a single information type, typically eligibility criteria, and often use registry or publication text rather than complete protocol documents. The system of Babaeipour et al. (2026) covers all four task categories from protocol PDFs but evaluates 23 protocols and does not release its data. TRIALPD-BENCH covers all four categories on 150 complete protocol PDFs.

WorkInputSize (unit)Disease indicationEligibility criteriaObjectives & endpointsSchedule of activitiesOpen source
Chia ((Kury et al., 2020))Registry text1,000 trials✗✓✗✗✓
LCT ([13])Registry text1,006 trials✗✓✗✗✓
AutoCriteria ([10])Registry text/XML180 trials✗✓✗✗✗
Kumar et al. ((Kumar et al., 2024))Protocol PDFs91 protocols✗✗✗△✗
SPIRIT-CONSORT-TM ((Jiang et al., 2025))Publication text200 publications△△△△✓
Babaeipour et al. ([2])Protocol PDFs23 protocols✓✓✓✓✗
TRIALPD-BENCH (Ours)Protocol PDFs150 protocols✓✓✓✓✓

Table 6. Comparison with prior datasets and systems for clinical trial protocol digitization. ✓ indicates explicit coverage, △ partial or related-task coverage, and ✗ no reported coverage.

Corpus Construction

Source documents. The corpus consists of clinical trial protocol documents associated with 150 unique NCT identifiers on ClinicalTrials.gov (U.S. National Library of Medicine). Each task uses the subset of studies for which reference annotations are available, so a study can contribute to several tasks (Table 1).

Document statistics. The 150 representative documents contain 17,471 pages in total, with a median of 122 pages and a range of 2 to 368 pages. Ninety-eight documents (65.3%) contain at least 100 pages, five contain at least 200 pages, and five contain fewer than 20 pages. Sixteen documents (10.7%) have no extractable text layer, so their content can be recovered only from rendered pages or OCR.

Therapeutic areas and sponsors. We categorize each study by its primary indication using therapeutic-area categories adapted from the FDA’s Spectrum of Diseases/Conditions (U.S. Food and Drug Administration). Assignments follow the principal studied indication and trial intent rather than exclusions, drug mechanism, or sponsor; tumor-directed therapy, including hematologic malignancy, maps to Oncology, and prevention trials map to the disease being prevented. The 150 studies populate 18 FDA categories, and two healthy-volunteer studies without a disease-specific target are reported separately. Sponsor names are taken from registry metadata; after merging duplicate spellings of the same sponsor name, the corpus contains 106 sponsor labels.

Annotation Process

Annotators and workflow. Reference annotations were produced by five experts in the clinical trial domain. Each task was annotated and reviewed separately, on its own set of protocols, so the number of instances differs across tasks (Table 1). For each protocol and task, Sonnet-4.6 running in Claude Code first produced a draft extraction from the source PDF, which served only as a starting point. An expert then checked every field of the draft against the PDF, corrected errors, added missing items, and removed unsupported ones. Verbatim fields were taken from the PDF text, or read from the rendered page when the text layer was missing or corrupted, and no draft text was kept without being checked against the source. The lead annotator then reviewed each annotated protocol against the PDF and made the final decision whenever the annotation needed to be changed. This process was used for all tasks except the epochs, encounters, and activities of structured timeline extraction, whose references are taken from the official USDM example studies published by CDISC ((CDISC)).

Guidelines. Each task has its own annotation guideline. Table 7 lists the steps that annotators followed: general steps that familiarize the annotator with the study, performed for every protocol, followed by the steps of the task being annotated. The rules below define a correct annotation.

  • Indication. Record the disease or condition under study in the protocol’s own wording, keeping disease-defining qualifiers such as stage, severity, or biomarker status and omitting enrolment wording such as “patients with”. Distinct diseases are separate entries, whereas a single disease with several qualifiers is one entry.

  • Eligibility criteria. Use the detailed eligibility section rather than the synopsis, and include cohort-specific criteria. Each top-level numbered criterion is one item, with its sub-items and any laboratory-threshold table kept inside it. Text is transcribed verbatim, including thresholds, units, and comparison symbols.

  • Objectives and endpoints. Record every objective with its level, normalized to primary, secondary, or exploratory, and nest under it the endpoints that measure it. An objective without a stated endpoint receives none.

  • Schedule of Activities. Record a mark for every activity-visit cell, resolving merged cells and multi-level visit headers. Footnote markers are kept as superscripts on the row, cell, or visit they belong to.

Tasks and Evaluation Metrics

This appendix specifies the inputs, required outputs, and evaluation metrics for each task. Table 1 summarizes the available task instances and reference annotations. Counts refer to task instances rather than additional unique studies: a source document can contribute to multiple tasks. Each agent is run once per task instance, and all reported scores are means over task instances unless stated otherwise.

Evaluation notation. Let GG and G^\hat{G} denote the reference and predicted items for one task instance, with sizes nn and n^\hat{n}. For exact matching over multisets, let cG(k)c_G(k) and cG^(k)c_{\hat{G}}(k) be the multiplicities of comparison key kk. The number of matched items is

T=∑kmin⁡{cG(k),cG^(k)}.(1)T = \sum_k \min\{c_G(k), c_{\hat{G}}(k)\}. \tag*{(1)}

For sets, each multiplicity is at most one. With nonempty reference and prediction, precision, recall, and F1 are

P=Tn^,R=Tn,F1=2Tn+n^.(2)P = \frac{T}{\hat{n}}, \qquad R = \frac{T}{n}, \qquad F_1 = \frac{2T}{n+\hat{n}}. \tag*{(2)}

An empty prediction against a nonempty reference receives F1 of zero. Task-specific conventions for empty references are stated below. Text comparisons first apply the task-specific normalization described below, which removes formatting differences such as case, whitespace, and markup. Matching remains exact after normalization; it does not use a language-model judge or accept arbitrary paraphrases. Unless stated otherwise, a metric ss is aggregated as the unweighted mean of its instance-level scores, sˉ=N−1∑i=1Nsi\bar{s}=N^{-1}\sum_{i=1}^{N}s_i. Timeline Encounter recall instead pools counts across documents. Timeline Activity and Encounter matching use the semantic procedures specified below rather

StepSectionActionNotes
1General (all tasks)
1Title pageExtract titlesAt least the brief title
2Title pageExtract identifiersInternal and NCT identifiers
3Title pageRead the therapeutic areaPreferably codeable
4Title pageRead the interventions
1IndicationIdentify the indication
1Eligibility criteriaRead the inclusion criteria
2Eligibility criteriaRead the exclusion criteria
1Objectives and endpointsRead the objectives
2Objectives and endpointsRead the endpoints of each objective
1Schedule of ActivitiesBrowse the expected activities
2Schedule of ActivitiesEvaluate the planned encountersCount first, then name
3Schedule of ActivitiesEvaluate the planned activitiesReconcile with the study evaluations
4Schedule of ActivitiesEvaluate the activities at each encounter
5Schedule of ActivitiesReview the footnotesLook for key items such as timepoints

caption: tbl:7: Annotation steps. The general steps were performed for every protocol, before the steps of the task being annotated.

:::

than the exact matching used for the text-extraction tasks.

Indication Extraction

Input. The complete source PDF.

Output. A JSON object with a descriptions array listing the diseases or conditions investigated in the study. Each description uses the protocol’s wording, including disease qualifiers. Distinct diseases in a multi-cohort study are separate entries, whereas qualifiers of one disease remain part of the same entry.

Metrics. The metric is the F1 score. Descriptions are normalized and matched one to one. Let MindM_{\mathrm{ind}} be the resulting matching. The score is

Find=2∣Mind∣∣G∣+∣G^∣.(3)F_{\mathrm{ind}} = \frac{2|M_{\mathrm{ind}}|}{|G| + |\hat{G}|}. \tag*{(3)}

Both sides empty receive a score of one; only one side empty receives F1 of zero.

Eligibility Criteria Extraction

Input. The complete source PDF.

Output. A JSON object with a criteria array. Each criterion has a category (Inclusion or Exclusion) and its details in text. A document that states no eligibility criteria requires an empty array.

Metrics. The comparison key is (category, text). Categories are compared case-insensitively after whitespace normalization. Before matching, text normalization removes HTML tags, decodes HTML entities, lowercases text, collapses whitespace, and strips trailing punctuation. Matching uses the multiset matching in Equation (1), preserving repeated criteria. The F1 score is

Fcrit={1,n=0, n^=0,2T/(n+n^),otherwise.(4)F_{\mathrm{crit}} = \begin{cases} 1, & n = 0,\ \hat{n} = 0,\\ 2T/(n+\hat{n}), & \text{otherwise.} \end{cases} \tag*{(4)}

A nonempty prediction against an empty reference therefore scores zero. The same convention applies to per-category F1.

Category diagnostics. Inclusion and exclusion F1 are also computed separately. To distinguish extraction from classification errors, criteria are aligned on normalized text alone and category accuracy is computed over those matched pairs:

Acat=1∣Mtext∣∑(g,p)∈Mtext1[cg=cp].(5)A_{\mathrm{cat}} = \frac{1}{|M_{\mathrm{text}}|}\sum_{(g,p)\in M_{\mathrm{text}}} \mathbf{1}[c_g = c_p]. \tag*{(5)}

The model-level accuracy averages AcatA_{\mathrm{cat}} over the instances with at least one text-matched pair. Results are reported in Appendix § 13.§ 3.

Objectives and Endpoints Extraction

Input. The complete source PDF. Output. A JSON object with an objectives array. Each objective contains objectiveText, objectiveLevel, and a nested endpoints array. Each endpoint contains endpointText and endpointLevel. Levels are normalized to primary, secondary, or exploratory. Endpoints must remain associated with the objective they address; an objective without a stated endpoint receives an empty array.

Metrics. We evaluate both objective recovery and endpoint association. For an objective oo, let ℓo\ell_o and tot_o denote its normalized level and text. For an endpoint ee, let ℓe\ell_e and tet_e denote its level and text, and let o(e)o(e) be its parent objective. The three comparison keys are

kobj(o)=(ℓo,to),(6)k_{\mathrm{obj}}(o) = (\ell_o, t_o), \tag*{(6)}
kend(e)=(ℓe,te),(7)k_{\mathrm{end}}(e) = (\ell_e, t_e), \tag*{(7)}
katt(e)=(to(e),ℓe,te).(8)k_{\mathrm{att}}(e) = (t_{o(e)}, \ell_e, t_e). \tag*{(8)}

After field normalization, we compute multiset F1 for each key type, giving objective F1 FobjF_{\mathrm{obj}}, endpoint F1 FendF_{\mathrm{end}}, and objective-linked endpoint F1 FattF_{\mathrm{att}}, which are reported separately. Consequently, recovering an endpoint under the wrong objective fails the association metric even when its text is correct. Before comparison, text fields are normalized by stripping HTML tags, decoding entities, lowercasing text, collapsing whitespace, and removing trailing punctuation.

Schedule of Activities Table Extraction

Track 1: page-level extraction. The input is a single PDF page containing an SoA table. The system transcribes the table into HTML, preserving activity labels, visit headers, cell contents, merged cells, and footnote markers. The Harbor output specification additionally requests surrounding page text and the footnote block as Markdown in the same output file. Scheduling marks such as ticks are represented as X, and superscript markers are retained using <sup>. This track contains 86 page samples from 40 NCT identifiers, with one reference table per sample. The scorer extracts 5,001 distinct activity-visit pairs across these samples, with a median of 52 and a range of 3-239 per sample.

Track 2: document-level extraction. The input is a complete protocol PDF. The system must locate all SoA pages, recover their tables, and declare their source PDF page numbers in the output, for example using data-pages attributes. This track contains 37 protocols and 70 reference tables; 10 protocols have multiple SoA pages, and the number of annotated SoA pages ranges from 1 to 13 per protocol. It includes only protocols for which the reference covers all SoA pages. The task therefore adds page localization to table transcription, while using the same table-content metrics as Track 1.

Activity–visit relations. Each scheduling mark defines a pair (a,v)(a,v) between an activity and a visit. The evaluator expands merged cells, combines hierarchical visit headers, and normalizes labels before forming the pair sets XX and X^\hat{X}. Normalization standardizes case, spacing, selected punctuation, and equivalent typographic forms; it does not perform semantic paraphrase matching. The Activity-Visit F1 is

FX=2∣X∩X^∣∣X∣+∣X^∣.(9)F_X = \frac{2\lvert X \cap\hat{X}\rvert}{\lvert X\rvert+ \lvert\hat{X}\rvert}. \tag*{(9)}

A scheduling mark assigned to the wrong visit counts as an incorrect relation. Duplicate identical pairs within an output are counted once.

Footnote attachment. SoA tables use superscript or subscript markers, such as “Hematologya^{a}” or “Xc^{c}”, to link an activity row, a single cell, or a visit column to a footnote below the table. Sub/sup F1 checks whether each marker is attached to the right place, not only whether it appears. A marker on an activity label is recorded as a pair (a,m)(a,m) of the activity aa and the marker mm; a marker inside a cell is recorded as a triple (a,v,m)(a,v,m) that also includes the visit vv; and a marker on a visit header is recorded as (∗,v,m)(\ast,v,m), with a placeholder ∗\ast in place of the activity. With AA and A^\hat{A} the resulting sets for the reference and the prediction,

FA=2∣A∩A^∣∣A∣+∣A^∣.(10)F_A = \frac{2\lvert A \cap\hat{A}\rvert}{\lvert A\rvert+ \lvert\hat{A}\rvert}. \tag*{(10)}

A marker that is recovered but attached to a different row, cell, or visit therefore does not count. Markers are recognized from <sup>/<sub> tags and Unicode superscript and subscript characters; a marker written as plain text next to a label is not counted. For both Activity-Visit F1 and Sub/sup F1, two empty sets score one, while a single empty side scores zero.

Fixed-gold-page aggregation. Document-level extraction uses every annotated SoA page, not only pages successfully located by a method. For protocol i=1,…,Ni = 1,\ldots,N, let LiL_i be its gold page set and fipf_{ip} the Activity-Visit or Sub/sup F1 for page pp, with fip=0f_{ip}=0 when that page is not recovered. The reported extraction metric is

Fˉ=1N∑i=1N1∣Li∣∑p∈Lifip.(11)\bar{F}=\frac{1}{N}\sum_{i=1}^{N}\frac{1}{|L_i|}\sum_{p\in L_i}f_{ip}. \tag*{(11)}

Thus, a protocol with no recovered gold page scores zero and remains in the denominator.

Structured Timeline Extraction

Input. The complete source PDF.

Output. A JSON object listing the study’s epochs, encounters, and activities.

  • Epoch: type, with epochs listed in study order.

  • Encounter: label and description, which identify the visit, and type and contactModes.

  • Activity: label.

Epoch accuracy. Let g1,…,gng_1,\ldots,g_n and p1,…,pmp_1,\ldots,p_m be the ordered reference and predicted epoch types. Types are case-folded, trimmed, and whitespace-normalized. Positional accuracy is

Aepoch=∑j=1min⁡(n,m)δ(gj,pj)max⁡(n,m).(12)A_{\mathrm{epoch}}=\frac{\sum_{j=1}^{\min(n,m)}\delta(g_j,p_j)}{\max(n,m)}. \tag*{(12)}

Here δ(g,p)=1\delta(g,p)=1 only when both types are non-missing and equal, and is zero otherwise. Missing types retain their positions, and there is no sequence realignment or synonym mapping, so an extra or omitted epoch shifts every later comparison. In the following example, one inserted epoch leaves only the first position matching, giving Aepoch=1/max⁡(3,4)=0.25A_{\mathrm{epoch}}=1/\max(3,4)=0.25:

Position1234
ReferenceScreeningTreatmentFollow-up–
PredictionScreeningRun-inTreatmentFollow-up
Match✓✗✗✗

Scores are averaged over all three documents, with failed extraction scored zero.

Activity recall. For study i=1,…,Ni=1,\ldots,N, let GiactivityG_i^{\mathrm{activity}} and G^iactivity\hat{G}_i^{\mathrm{activity}} be the reference and predicted activity labels. We use Opus-5 with Claude Code as an agentic matcher: given the two label lists, it identifies the reference and predicted labels that denote the same clinical activity. From these pairs, we compute a maximum-cardinality one-to-one matching MiM_i, in which each reference and each predicted activity is used at most once.

The reported recall is

Ractivity=1N∑i=1N∣Mi∣∣Giactivity∣.(13)R_{\mathrm{activity}}=\frac{1}{N}\sum_{i=1}^{N}\frac{|M_i|}{|G_i^{\mathrm{activity}}|}. \tag*{(13)}

A predicted activity with a blank label cannot be matched, and a failed extraction scores zero.

Encounter recall. For study ii, let GiencG_i^{\mathrm{enc}} and G^ienc\hat{G}_i^{\mathrm{enc}} be the reference and predicted encounters. The same agentic matcher first proposes pairs referring to the same visit using encounter labels, descriptions, and explicit timing context. A deterministic maximum-cardinality one-to-one matching is then computed before any attribute is checked. Let MiencM_i^{\mathrm{enc}} denote this matching, whose elements are pairs (g,p)(g,p) with g∈Giencg\in G_i^{\mathrm{enc}} and p∈G^iencp\in\hat{G}_i^{\mathrm{enc}}. A matched pair counts as a recovered encounter only when the two encounters also agree on two additional attributes, the encounter type and the contact modes. Let C(g,p)=1C(g,p)=1 if gg and pp agree on both attributes, and 00 otherwise. We report

Renc=∑i=1N∑(g,p)∈MiencC(g,p)∑i=1N∣Gienc∣.(14)R_{\mathrm{enc}}= \frac{\sum_{i=1}^{N}\sum_{(g,p)\in M_i^{\mathrm{enc}}}C(g,p)} {\sum_{i=1}^{N}|G_i^{\mathrm{enc}}|}. \tag*{(14)}

Unmatched gold visits and failed extractions contribute zero correct matches. Type uses case- and whitespace-normalized equality; contact modes use normalized unordered sets. This metric measures recovered visits with correct attributes.

Experimental Details

Coding Agents

Table 8 lists the evaluated models and harnesses. In addition to the nine models reported in the main text, we also evaluate GPT-4o with Codex, whose results are reported only in the appendix. Each task instance runs in an isolated container that contains the source PDF, the task instruction, and an output directory; reference annotations are never mounted. Qwen3.8-27B is served locally with SGLang (Zheng et al., 2024), with a 131,072-token context window and a maximum output of 16,384 tokens.

ModelModel identifierHarness
GPT-4ogpt-4oCodex
GPT-5.6-Solgpt-5.6-solCodex
GPT-6-Astragpt-6-astraCodex
Opus 4.6claude-opus-4-6Claude Code
Opus 4.8claude-opus-4-8Claude Code
Opus 5claude-opus-5Claude Code
Sonnet 5claude-sonnet-5Claude Code
Kimi-K3Kimi-K3Kimi Code
DeepSeek-V4-Flashdeepseek-v4-flash-0731DeepSeek Harness
Qwen3.8-27BQwen/Qwen3.8-27Bpi

Table 8. Evaluated models and coding-agent harnesses. GPT-4o is reported only in the appendix.

RAG Baseline

The RAG baseline follows the protocol information extraction system of Babaeipour et al. [2]. The generator is the same model that is evaluated as a coding agent. For retrieval, we use text-embedding-3-large.

OCR and Document-Understanding Baselines

We evaluate eight OCR and document-understanding baselines: Mistral OCR (Mistral AI Team, 2025), LightOnOCR-2-1B (Taghadouini et al., 2026), LandingAI (LandingAI, 2026), olmOCR-2-7B (Poznanski et al., 2025), PaddleOCR [9], PaddleOCR-VL [8], and the 2B and 4B variants of Qwen3-VL [3].

The eight OCR and document-understanding baselines process the same 86 single-page SoA inputs as the page-level task. Their raw table outputs are scored with the same evaluator. Because Sub/sup F1 requires footnote markers to be encoded as superscripts or subscripts, baselines that emit plain text, such as Mistral OCR, score low on this metric even when their Activity-Visit F1 is high.

Task Instructions

Each task instruction specifies the input file, the output path and format, and the conventions that define a correct output, such as verbatim transcription, one item per numbered criterion, or nesting endpoints under the objective they belong to. For page-level SoA extraction, a separate specification file defines the HTML format; for timeline extraction, a JSON schema following USDM v4.0 defines the output. The instructions do not prescribe how the agent should process the document.

Additional Analyses

Comparison with OCR and Document-Understanding Models

We compare coding agents with the eight OCR and document-understanding baselines of Appendix E.3 on page-level SoA extraction Figure 5.

Page-level SoA extraction, comparing coding agents with OCR and document-understanding baselines

Figure 5. Page-level SoA extraction, comparing coding agents with OCR and document-understanding baselines using (a) Activity-Visit F1 and (b) Sub/sup F1. Activity-Visit F1 measures the recovery of scheduling associations between activities and visits, usually represented by X marks in SoA table cells. Sub/sup F1 measures the recovery of subscript and superscript footnote markers.

Coding agents outperform specialist OCR and document-understanding models on SoA table extraction. On page-level SoA extraction Figure 5a, the six strongest agents reach 84.3-90.0% Activity-Visit F1, exceeding the best specialist baseline, Mistral OCR, at 71.7%. The advantage extends to footnote markers Figure 5b, where the best agent reaches 85.3% Sub/sup F1, compared with 70.8% for the strongest baseline, LightOnOCR-2-1B. Coding agents also handle the additional localization required at the document level: for five of the six strongest agents, document-level Activity-Visit F1 Table 18 remains within 5 points of the page-level score. General-purpose coding agents can therefore both find SoA tables in complete protocols and transcribe them more accurately than models designed specifically for document parsing.

ModelActivity-Visit F1
AgentRAG
GPT-4o2.14.7
GPT-5.6-Sol83.744.0
GPT-6-Astra86.851.5
Opus 4.654.733.5
Opus 4.881.419.8
Opus 586.031.7
Sonnet 574.725.0
Kimi-K383.927.1
DeepSeek-V4-Flash47.515.8
Qwen3.8-27B32.516.7

Table 18. Document-level SoA extraction results (%) on the 37 protocols. Activity-Visit F1 averages all annotated SoA pages within each protocol, with missing pages scored zero, and then across protocols.

Comparison with a RAG Pipeline

Each model is deployed both as a coding agent and as the generator of the RAG pipeline Appendix § 12.§ 2.

Coding agents substantially outperform a RAG pipeline on the protocol digitization tasks in TRIALPDB-BENCH. Coding agents outperform RAG with the same model on disease indication Figure 6a, eligibility criteria Figure 6b, objectives and endpoints Figure 6c, and SoA table extraction Table 18. For nine of the ten models, agents improve eligibility criteria F1 by 14.3-55.9% and endpoint F1 by 4.7-28.9%; among these nine, indication F1 also improves for all but Opus 4.6, which ties. The gap is largest for SoA table extraction, where the six strongest agents (GPT-5.6-Sol, GPT-6-Astra, Opus 4.8, Opus 5, Sonnet 5, and Kimi-K3) reach 74.7–86.8% Activity-Visit F1, whereas RAG with the same models reaches only 19.8–51.5%. One possible explanation is that a predefined pipeline determines in advance how documents are parsed and presented to the model, which may limit its generalization and flexibility across protocols and tasks, whereas coding agents can choose and adjust their document-processing strategy for each protocol and task.

Figure 6. Comparison of coding agents and the RAG baseline across (a) disease indication, (b) eligibility criteria, and (c) objectives and endpoints. Bars show F1 scores (%), and annotations report the difference between the coding agent and RAG for each model in percentage points (Δ=Agent−RAG\Delta= \text{Agent} - \text{RAG}). Positive values favor coding agents.

Eligibility Criteria by Category

Table 9 reports inclusion and exclusion F1. Category accuracy is at least 99.5% for every agent and RAG model, so criteria that are recovered are almost never filed under the wrong category, and the loss in criterion F1 comes from extraction rather than classification.

ModelInclusion F1 AgentInclusion F1 RAGExclusion F1 AgentExclusion F1 RAG
GPT-4o9.458.64.764.2
GPT-5.6-Sol81.867.690.977.1
GPT-6-Astra81.729.891.034.5
Opus 4.681.953.889.562.4
Opus 4.882.152.190.060.7
Opus 582.246.090.552.9
Sonnet 581.254.089.164.4
Kimi-K381.759.190.069.8
DeepSeek-V4-Flash74.247.585.558.3
Qwen3.8-27B63.341.169.248.2

Table 9. Eligibility criteria F1 (%) by category for coding agents and RAG.

Task-Level Results by PDF Text Accessibility

Table 10–Table 15 report coding-agent results separately for each task, with each metric grouped into all PDFs, text-sufficient PDFs, and vision-required PDFs.

AgentIndication F1All n=40n = 40Text n=33n = 33Vision n=7n = 7
GPT-4o41.744.428.6
GPT-5.6-Sol80.084.857.1
GPT-6-Astra82.587.957.1
Opus 4.667.569.757.1
Opus 4.872.572.771.4
Opus 585.087.971.4
Sonnet 575.078.857.1
Kimi-K380.081.871.4
DeepSeek-V4-Flash75.072.785.7
Qwen3.8-27B68.371.752.4

Table 10. Study indication. Agent results (%); higher is better. Each metric reports all PDFs, text-sufficient PDFs, and vision-required PDFs.

AgentEpoch accuracyActivity recallEncounter recall
AllTextVisionAllTextVisionAllTextVision
n=3n = 3n=3n = 3n=0n = 0n=3n = 3n=3n = 3n=0n = 0n=3n = 3n=3n = 3n=0n = 0
GPT-4o0.00.0—0.00.0—0.00.0—
GPT-5.6-Sol61.161.1—88.188.1—23.223.2—
GPT-6-Astra73.373.3—91.191.1—20.320.3—
Opus 4.661.161.1—85.385.3—0.00.0—
Opus 4.864.464.4—82.582.5—0.00.0—
Opus 538.638.6—87.287.2—0.00.0—
Sonnet 550.650.6—59.259.2—8.78.7—
Kimi-K361.161.1—50.250.2—21.721.7—
DeepSeek-V4-Flash48.548.5—72.272.2—2.92.9—
Qwen3.8-27B22.922.9—82.582.5—5.85.8—

Table 15. Structured timeline. Agent results (%); higher is better. Each metric reports all PDFs, text-sufficient PDFs, and vision-required PDFs. — denotes an empty cohort, not zero performance. All = all PDFs; Text = text-sufficient; Vision = vision-required. The labels describe task-relevant PDF text accessibility. Failed/missing outputs remain in the source metric denominator. Encounter recall counts a matched visit as recovered only when its type and contact modes are also correct. Encounter recall pools gold encounters, while Epoch accuracy and Activity recall are averaged over documents.

We divide the PDFs of each task into these two groups by whether the content needed for that task can be read from the PDF’s native text layer. Only the pages that hold this content are examined, such as the eligibility section for criteria extraction or the SoA page for table extraction. If native text extraction with Poppler and PyMuPDF recovers the content, the PDF is text-sufficient. If the content is scanned, garbled by encoding errors, or otherwise missing from the text layer, so that it can be read only from rendered pages or by OCR, the PDF is vision-required. Scans, encoding failures, mixed documents, and redactions were reviewed manually. Blank pages, scanned signatures, and other pages outside the task content do not affect the division, and model outputs and scores are not used. As a result, the same protocol can be text-sufficient for one task and vision-required for another. Vision-required describes the PDF, not the model: an agent can still read such content with OCR tools even if its language model does not accept images.

Task coverage. The all/text/vision sample counts are 40/33/7 for indication, 134/94/40 for eligibility criteria, 89/61/28 for objectives and endpoints, 86/61/25 for page-level SoA extraction, 37/29/8 for document-level SoA extraction, and 3/3/0 for structured timeline extraction. In SoA Track 1 each sample is a single PDF page, whereas in SoA Track 2 each sample is a whole protocol.

Scores and aggregation. Indication and criteria tables report F1. Objectives and endpoints include objective F1, endpoint F1, and objective-linked endpoint F1. SoA tables report Activity-Visit F1 and Sub/sup F1. Document-level extraction uses the fixed set of gold SoA pages: a missing page contributes zero, and scores are averaged first within each protocol and then across protocols. Timeline reports Epoch type positional accuracy, semantic Activity recall, and Encounter recall. For Encounter recall, a reference visit counts as recovered only when a matched prediction also has the correct type and contact modes. Encounter recall pools correct visits and gold visits across documents; other reported metrics are macro-averaged over task instances. Failed or missing outputs remain in their prescribed denominators. A dash denotes an empty cohort, not zero performance. Cohort sizes in table headers count PDFs, including for Encounter recall, whose metric denominator counts gold encounters.

Full Numerical Results

Tables 16 and 17 report the exact scores plotted in Figure 6 and Figure 5, respectively. Tables 18 and 19 report the document-level SoA and structured timeline results of coding agents and RAG.

Failure Analysis Details

Failure Taxonomy

We define a failing run as a coding-agent run with at least one detected defect, regardless of its score. Defects are detected automatically by comparing each prediction with the reference annotations using Opus-5. The five main types of failure are:

  • Transcription fidelity: a matching item exists in the prediction, but its text differs from the reference, for example through paraphrase, truncation, or changed operators and numbers.

  • Long-document localization and coverage: no similar item exists anywhere in the prediction, indicating that the relevant content was not found.

  • Relational structure reconstruction: the content is present but placed incorrectly, such as SoA marks in the wrong cells, endpoints under the wrong objective, or incorrect epoch order.

  • Domain concept grounding: the prediction selects a different entity, category, or level than the one requested, such as an incorrect encounter attribute.

  • Execution reliability: the run produces no usable output, such as a missing, empty, or un-parseable file.

Figure 4 shows the profile pooled over the nine main-text agents.

Per-Model Failure Profiles

Figure 7 shows the failure profile of each coding agent. GPT-4o differs from the other agents: execution reliability is its largest failure category in five of the six tasks. The remaining agents show broadly similar profiles within each task and differ more in how often they fail than in which categories dominate.

Additional Examples

Table 20 lists additional failures from each category.

TrialScribe Details

Development Protocols

The skills and audit checklists of TrialScribe were developed on a small set of protocols per task:

  • Indication (8): NCT00874614, NCT00942578, NCT02264574, NCT02320149, NCT02354586, NCT02436668, NCT02709512, NCT04573309.

  • Eligibility criteria (8): NCT02320149, NCT03439670, NCT03732820, NCT04770753, NCT04896008, NCT05042362, NCT05523895, NCT05740566.

  • Objectives and endpoints (8): NCT00874614, NCT02320149, NCT02727660, NCT03214380, NCT03439670, NCT03470922, NCT03732820, NCT03962543.

  • SoA tbl:1: NCT04573309.

  • Structured timeline (2): NCT00874614, NCT00942578.

These protocols form the development split and are excluded from the test split, on which all results in this paper are reported.

— denotes an empty cohort, not zero performance. All = all PDFs; Text = text-sufficient; Vision = vision-required. The labels describe task-relevant PDF text accessibility. Failed/missing outputs remain in the source metric denominator.

AgentCriterion F1All n=134n = 134Text n=94n = 94Vision n=40n = 40
GPT-4o6.27.72.7
GPT-5.6-Sol87.188.284.4
GPT-6-Astra87.889.184.6
Opus 4.686.888.582.9
Opus 4.887.288.983.0
Opus 587.088.483.7
Sonnet 586.487.683.6
Kimi-K386.988.782.7
DeepSeek-V4-Flash80.285.068.9
Qwen3.8-27B67.177.143.8

Table 11. Eligibility criteria. Agent results (%); higher is better. Each metric reports all PDFs, text-sufficient PDFs, and vision-required PDFs.

— denotes an empty cohort, not zero performance. All = all PDFs; Text = text-sufficient; Vision = vision-required. The labels describe task-relevant PDF text accessibility. Failed/missing outputs remain in the source metric denominator.

Task Skills

Tables 21-26 are illustrations of the skills.

Indication Extraction

The indication skill (Table 21) targets the disease being treated or prevented rather than the enrolled population. It covers four points.

---
name: indication-extraction
description: Use when extracting or auditing the treated or prevented indication of a clinical
  trial protocol, especially when wording, population restrictions or multiple diseases are
  ambiguous.
---

**Extract the indication, not the population sentence**

Write /app/output/indications.json as {"descriptions":["source disease phrase"]}. Use only this protocol.
The source helper is python3 /tools/pdf.py: search ’indication|disease|study population’, pages 1 3, or
render 18. [...]

**Resolve the source phrase**

Collect the disease wording from (a) the current full title, (b) an explicit Indication/disease field in the synopsis, and (c) the
purpose/primary objective. Do this before deciding. Save the competing source phrases, pages and your selection rationale in
/app/output/source_map.json. [...]

Resolve the three source locations by what each states, not by a fixed title-first or longest-phrase rule. A dedicated Indication
field containing a disease noun phrase is the preferred literal span when it agrees with the actual trial purpose. A shorter title
must not erase the field’s resectability, stage, resistance or other disease-defining qualifier. A field written as a
treatment/population sentence needs parsing: separate the disease from intervention, symptom endpoints, age and enrolment
boilerplate. [...]

Return the disease noun phrase. Remove “treatment of”, “patients/subjects with”, age-group wording and other enrolment
boilerplate. Retain disease-defining stage, severity, histology, recurrence/resistance and biomarkers when the indication itself
states them. [...]

Copy the selected phrase verbatim, including its case, hyphenation, spelling and printed abbreviation. Do not expand
acronyms or modernize terminology from memory. If OCR appears corrupted, inspect the page and corroborate in another
source location. Do not silently change a medical word into another plausible word.

Preserve a source’s combined disease phrase when it is presented as one indication for a common diagnostic population. The
presence of "or", two names or two abbreviations alone does not establish that separate output entries are required. Look for
explicit separate indications, diagnostic cohorts or primary anatomical sites before splitting. [...]

**Audit and repair**

Independently compare candidate against all three source locations. Check that it preserves the chosen source span, has not
dropped disease qualifiers in favor of a shorter title, has not split a combined population without source evidence, is the target
disease, is neither an overlong population sentence nor an unsupported short label, retains required qualifiers, and has the
right number of distinct conditions. [...]

Table 21. The TRIALSCRIBE skill for indication extraction (abridged).

  • Source selection. The agent collects candidate wording from three locations, the full title, an explicit indication field in the synopsis, and the primary objective, and decides among them by what each states. A dedicated indication field is preferred when it agrees with the trial purpose, and a shorter title may not remove a disease-defining qualifier. Substudy cohorts, amendment history, and background examples are excluded, and for prevention trials the prevented disease is taken.

  • Span normalization. The output is the disease noun phrase: enrolment boilerplate such as “treatment of” or “patients with” and age wording are removed, while disease-defining stage, severity, histology, resistance, and biomarkers are kept. Eligibility restrictions that follow the disease in a title are not appended.

  • Verbatim copying and entry count. The phrase is copied with its original spelling, case, and abbreviations, without expansion. A combined phrase that names one diagnostic population stays one entry; it is split only when the protocol states separate indications, and alternatives are never listed to hedge.

Eligibility Criteria Extraction

The criteria skill (Table 22) aims at a complete, verbatim list. It covers five points.

---
name: criteria-extraction
description: Use when extracting or auditing inclusion and exclusion criteria from a full clinical
  trial protocol, including numbered lists, cross-page continuations, cohorts and laboratory tables.
---

Table 22. The TRIALSCRIBE skill for eligibility criteria extraction (abridged).

  • Locating the section. The agent finds the detailed eligibility section rather than the synopsis or table of contents, identifies where the inclu-

AgentObjective F1: All, n=89n = 89Objective F1: Text, n=61n = 61Objective F1: Vision, n=28n = 28Endpoint F1: All, n=89n = 89Endpoint F1: Text, n=61n = 61Endpoint F1: Vision, n=28n = 28Objective-linked endpoint F1: All, n=89n = 89Objective-linked endpoint F1: Text, n=61n = 61Objective-linked endpoint F1: Vision, n=28n = 28
GPT-4o11.416.60.05.68.00.42.73.90.0
GPT-5.6-Sol80.482.176.663.664.461.754.756.650.6
GPT-6-Astra82.284.577.065.067.759.258.161.450.8
Opus 4.680.682.775.960.661.758.249.650.148.7
Opus 4.882.786.275.166.967.166.458.562.250.5
Opus 582.988.071.967.469.163.658.763.747.8
Sonnet 582.884.279.763.964.961.654.256.948.4
Kimi-K384.985.084.764.664.065.856.455.758.0
DeepSeek-V4-Flash63.364.660.458.559.955.536.839.331.4
Qwen3.8-27B56.067.131.846.754.829.132.139.516.0

Table 12. Objectives and endpoints. Agent results (%); higher is better. Each metric reports all PDFs, text-sufficient PDFs, and vision-required PDFs. — denotes an empty cohort, not zero performance. All = all PDFs; Text = text-sufficient; Vision = vision-required. The labels describe task-relevant PDF text accessibility. Failed/missing outputs remain in the source metric denominator.

AgentActivity–Visit F1: All, n=86n = 86Activity–Visit F1: Text, n=61n = 61Activity–Visit F1: Vision, n=25n = 25Sub/sup F1: All, n=86n = 86Sub/sup F1: Text, n=61n = 61Sub/sup F1: Vision, n=25n = 25
GPT-4o0.50.01.98.110.52.4
GPT-5.6-Sol88.286.991.384.080.792.0
GPT-6-Astra85.183.289.883.780.392.2
Opus 4.652.447.564.352.947.665.9
Opus 4.886.384.790.481.078.986.0
Opus 590.088.793.085.383.190.8
Sonnet 584.382.688.679.577.484.5
Kimi-K385.782.992.881.078.487.5
DeepSeek-V4-Flash38.750.410.144.958.910.6
Qwen3.8-27B57.354.065.265.161.075.1

Table 13. SoA page extraction. Agent results (%); higher is better. Each metric reports all PDFs, text-sufficient PDFs, and vision-required PDFs. — denotes an empty cohort, not zero performance. All = all PDFs; Text = text-sufficient; Vision = vision-required. The labels describe task-relevant PDF text accessibility. Failed/missing outputs remain in the source metric denominator.

sion and exclusion lists start and end, and follows continuation pages and cohort-specific sections, checking the page after each apparent end of a list.

  • Source inventory. Before extraction, the agent records the section pages and the printed numbering and counts per category and cohort, so that the output can later be checked against counts taken from the source.

  • Granularity. Each top-level numbered criterion becomes one item. Sub-items, qualifications, and tables stay inside their parent criterion, and separately numbered criteria are not merged.

  • Verbatim text and encoding. Criterion text is built from exact source spans in code rather than retyped, with running headers, footers, and top-level numbers removed but units, inequalities, exceptions, and printed dashes preserved. Paragraphs, sub-lists, and tables are encoded in HTML. Pages whose text layer loses characters or symbols are checked visually, and an empty text layer is not taken as evidence that no criteria exist.

Objectives and Endpoints Extraction

The objectives skill (Table 23) centers on attaching each endpoint to the right objective. It covers five points.

| ---<br>name: objectives-extraction<br>description: Use when extracting or auditing clinical trial objectives and their attached endpoints, including separate endpoint sections, mixed hierarchy levels and objective–endpoint tables.<br>---<br><br>Recover objectives and endpoint attachments<br>Output /app/output/objectives.json in the original task schema. Use only the source. Use python3 /tools/pdf.py search ’objective\|endpoint\|efficacy variable\|outcome\|estimand’ to locate sections, pages N M for bounded text, and render N followed by read for tables or damaged text. Do not confuse physical PDF pages with printed page numbers.<br><br>Build two inventories before linking them<br>Find the detailed objectives and all endpoint/efficacy/safety variable definitions, which can appear in different sections. Compare the synopsis with the detailed definitions; short summaries may merge separately defined endpoints or omit secondary and exploratory endpoints. [...]<br><br>Write /app/output/source_map.json with source pages, each objective’s printed level label and text, and each endpoint’s own label/text plus proposed parent and attachment evidence. Use one row per explicit objective, not one per clause or drug arm. [...]<br><br>Close each source list at a verified section boundary<br>A page ending is not an endpoint-list ending. For each endpoint subsection, read through every continuation page until the next same-level or higher-level heading. If the last retrieved page contains endpoint bullets, read the following page even when it has no repeated endpoint heading. [...]<br><br>In source_map.json, record an endpoint_sections inventory: subsection heading, physical start/end pages, top-level item count, first/last item, and the following heading that proves the list ended. A clipped tool response or a fixed page window does not establish that boundary. [...]<br><br>Preserve each field independently<br>• objectiveText: copy the complete objective sentence or printed list item; do not shorten a “To assess . . . ” sentence into its topic or combine separate objectives.<br>• objectiveLevel: PRIMARY, SECONDARY or EXPLORATORY (including tertiary/other).<br>• levelVerbatim: the level label actually used in the source at that objective. Prefer the direct adjacent level cell/label when present (e.g. “Primary”); do not append “Objectives”, numeric section prefixes or invented capitalization. Preserve meaningful phase/cohort distinctions when they are part of the level label. Check this field explicitly; correct objective text with the wrong label is incomplete. For a plain category heading consisting only of Primary, Secondary, Exploratory, Tertiary, Safety or Other followed by Objective(s), use the category word itself as the level-label span, preserving its printed capitalization. [...]<br>• endpointText: the detailed printed endpoint sentence/list item, including its timepoint, definition and units. Separate explicitly enumerated/co-primary endpoints instead of replacing them by an earlier summary sentence. [...]<br>• endpointLevel: read the endpoint’s own heading. Do not inherit the objective level automatically. A primary efficacy objective may have secondary/exploratory efficacy endpoints; they still belong to that primary efficacy objective.<br><br>Attach by the question measured, not by the hierarchy label<br>Prefer explicit table rows or cross-references. Otherwise compare the measurement, clinical domain, population, intervention comparison and time frame to the question posed by each objective. [...]<br>The same endpoint may legitimately occur under more than one objective if the source states this; do not globally deduplicate away valid attachments. An objective may have no endpoint: use [] when none is supplied. [...]<br><br>Audit and minimal fix<br>Independently check objective count, every verbatim level label, endpoint inventory, endpoint levels and each attachment. Count source endpoints before comparing output. For every unassigned source endpoint, either identify its objective or explain the source ambiguity; for every emitted endpoint, identify source evidence. Inspect cross-page table continuations and detailed definitions, not just the synopsis. Independently open the page after each claimed endpoint-list ending and verify the recorded closing heading. [...]

Table 23. The TrialScribe skill for objectives and endpoints extraction (abridged).

  • Two inventories. Objectives and endpoints are often defined in different sections, so the agent builds an inventory of each, compares the synopsis with the detailed definitions, and records each endpoint with its proposed parent objective and the evidence for that link.

  • List boundaries. A page break does not end a list. For each endpoint subsection, the agent reads until the next heading of the same or a higher level and records the first and last items

AgentActivity–Visit F1Sub/sup F1
AllTextVisionAllTextVision
n=37n = 37n=29n = 29n=8n = 8n=37n = 37n=29n = 29n=8n = 8
GPT-4o2.12.70.03.12.35.9
GPT-5.6-Sol83.784.680.481.079.586.3
GPT-6-Astra86.888.082.484.583.787.1
Opus 4.654.756.149.653.454.449.6
Opus 4.881.482.079.278.078.177.7
Opus 586.086.484.983.983.186.7
Sonnet 574.777.066.471.872.071.3
Kimi-K383.984.980.382.082.181.8
DeepSeek-V4-Flash47.556.315.554.461.329.5
Qwen3.8-27B32.534.026.942.544.535.3

Table 14. SoA document extraction. Agent results (%); higher is better. Each metric reports all PDFs, text-sufficient PDFs, and vision-required PDFs. — denotes an empty cohort, not zero performance. All = all PDFs; Text = text-sufficient; Vision = vision-required. The labels describe task-relevant PDF text accessibility. Failed/missing outputs remain in the source metric denominator.

and the heading that closes the list.

  • Field conventions. Objective and endpoint texts are copied as complete sentences, levels are normalized to primary, secondary, or exploratory, and each endpoint’s level is read from its own heading rather than inherited from its objective.

  • Attachment. Endpoints are linked through explicit table rows or cross-references when available, and otherwise by matching the measurement, clinical domain, population, comparison, and time frame to each objective, never by list position. An endpoint may appear under several objectives when the protocol says so, and an objective may have none.

SoA Table Extraction

For SoA table extraction, a skill file (Table 24 and Table 25) defines the workflow, and a PDF-processing skill supplies extraction patterns. The file covers three points.

routewhat it meansgo to
TEXTclean text layer, ruling lines presentStep 2a
VISIONtext layer exists but is unusableStep 2b
VISION_ONLYno text layer at all — a scan or a pictureStep 2c

Table 24. The TRIALSCRIBE skill file for SoA table extraction (part 1 of 2): triage and reading routes.

Table 25. The TrialScribe skill file for SoA table extraction (part 2 of 2): the fix loop.

  • Triage. A triage script first measures the page and selects one of three routes: a usable text layer, a text layer that exists but is unusable, or no text layer.

  • Reading routes. With a usable text layer, the table is parsed with pdfplumber following the PDF skill. With an unusable text layer, the grid may be taken from the text layer, but every character is read from the rendered page. Without a text layer, the table is built from the rendered page alone.

  • Fix loop. The agent runs a structural checker on its HTML until it reports no problems, such as rows that do not fill the grid, and then reads each visit column header back against the rendered page to confirm the number, order, and levels

ModelIndication F1Criterion F1Objective F1Endpoint F1Linked endpoint F1
AgentRAGAgentRAGAgentRAGAgentRAGAgentRAG
GPT-4o41.744.56.261.911.448.35.636.42.720.0
GPT-5.6-Sol80.074.287.172.880.470.263.650.354.745.0
GPT-6-Astra82.565.487.831.982.263.365.046.958.141.7
Opus 4.667.567.586.858.480.667.760.649.549.637.3
Opus 4.872.557.587.256.782.762.866.942.158.533.4
Opus 585.054.287.049.582.957.367.438.558.729.9
Sonnet 575.056.786.459.882.862.263.944.754.231.3
Kimi-K380.063.386.965.384.967.464.646.756.437.2
DeepSeek-V4-Flash75.055.080.253.763.363.458.542.336.835.2
Qwen3.8-27B68.352.767.145.556.054.346.742.032.127.5

caption: Table 16: Coding-agent and RAG results (%) on disease indication, eligibility criteria, and objectives and endpoints, corresponding to Figure 6. Linked endpoint F1 is the objective-linked endpoint F1 defined in Appendix § 11.§ 3; it is reported here but not plotted.

:::

MethodActivity-Visit F1Sub/sup F1
Coding agents
GPT-4o0.58.1
GPT-5.6-Sol88.284.0
GPT-6-Astra85.183.7
Opus 4.652.452.9
Opus 4.886.381.0
Opus 590.085.3
Sonnet 584.379.5
Kimi-K385.781.0
DeepSeek-V4-Flash38.744.9
Qwen3.8-27B57.365.1
OCR and document-understanding baselines
Mistral OCR71.725.3
LightOnOCR-2-1B63.670.8
LandingAI61.127.8
olmOCR-2-7B35.156.4
PaddleOCR7.19.8
PaddleOCR-VL19.39.3
Qwen3-VL-2B9.423.4
Qwen3-VL-4B37.750.4

caption: Table 17: Page-level SoA extraction results (%) on the 86 single-page inputs, corresponding to Figure 5a-Figure 5b.

:::

of the visit columns. Header cells that already match the page are not rewritten, because a single dropped footnote marker changes the identity of every column beneath it.

Structured Timeline Extraction

For structured timeline extraction, an integrated timeline skill (Table 26) is supported by a reference note on USDM v4.0. The timeline skill covers four points.

  • Source inventory. The agent first inventories stages, contacts and activity rows with their pages and quotations in a sidecar source map, and treats missing evidence as null rather than a guessed default.

  • Epochs. Stages are recorded in study order with

a source-supported classification. A visit, an arm or a residence setting is not a stage, and distinct stages are not merged because their types coincide.

  • Encounters. An encounter is a planned participant contact. Daily contacts in an inpatient period are expanded into day-specific records, and telephone components tied to a numbered visit keep both contact modes.

  • Activities and timing. Activity definitions are reused across visits and source groupings are preserved. Timing keeps its direction, start/end relationship and window, and refers to existing encounter names.

Verification Loop

The harness runs the verification loop after every draft. Each phase runs in a new agent session: the draft phase writes the candidate output, and the audit phase receives the protocol and the candidate with read-only access and follows the audit checklist in the task skill. The auditor writes a structured report containing a pass or fail verdict, concrete content issues with the affected output field, the problem, a source-supported correction, and the relevant pages, the source sections it checked, short quotes from the source as evidence, and any unresolved uncertainties. The revised output is then audited again, for at most two rounds. An incomplete report triggers one repeated audit. For SoA table extraction, verification instead runs within the agent’s current session: the agent repeatedly checks its HTML table against the rendered page and revises it until the checks pass (Figure 10).

SoA table extraction case study of TRIALSCRIBE showing four passes of study-procedure table extraction

Figure 10. (a) Pass 1: direct text-layer extraction. Merged cells appear as empty placeholders (“None”), footnote markers are fused into the text (“Screeninga”), and multi-row labels are broken. (b) Pass 2: structural correction. Merged cells are resolved, broken labels are joined, and empty continuation rows are removed; footnote markers are still inline. (c) Pass 3: footnote markers are separated as superscripts, header spans are resolved, and section headers are identified. (d) Pass 4: final output after visual verification against the source page; colors distinguish visit periods and mark variants.

ModelEpoch accuracyActivity recallEncounter recall
AgentRAGAgentRAGAgentRAG
GPT-4o0.06.70.03.70.00.0
GPT-5.6-Sol61.161.188.154.923.240.6
GPT-6-Astra73.367.891.146.020.30.0
Opus 4.661.149.485.383.30.00.0
Opus 4.864.461.182.580.30.00.0
Opus 538.661.187.287.20.00.0
Sonnet 550.645.959.225.28.70.0
Kimi-K361.157.450.281.621.727.5
DeepSeek-V4-Flash48.561.172.282.52.913.0
Qwen3.8-27B22.930.082.553.15.830.4

Table 19. Structured timeline extraction results (%) on the three official example protocols. Encounter recall counts a matched visit as recovered only when its type and contact modes are also correct (Appendix § 11.§ 5).

CategoryTaskReferencePrediction
Transcription fidelityCriteriaDisease duration of more than 10 years in participants with an EDSS ≤2.0\le2.0 at screeningDisease duration of more than 10 years in participants with an EDSS <2.0< 2.0 at screening
Transcription fidelityEndpointsThe cumulative change in EDSS scores measured in area under the concentration-time curve (AUC) by Week 96The cumulative change in EDSS scores, measured in AUC by Week 96
Localization and coverageObjectivesTo evaluate progression-free survival (PFS)Missing; 9 of the 11 reference objectives are omitted
Relational structureObjectivesEndpoint “The change in low-contrast visual acuity from baseline to Weeks 48 and 96” under the exploratory objectiveThe same endpoint attached to a different objective
Domain groundingIndicationRelapsed/Refractory Hematologic Malignanciesrelapsed/refractory Multiple Myeloma (MM)
Execution reliabilityCriteria–No output file written

Table 20. Additional failure examples.

A gold-free gate then checks the report for schema validity and internal consistency: the report must be well formed, a failing verdict must list concrete issues, a passing verdict must list none, the checked pages must exist in the document, and the report must refer to the candidate. The gate also checks that the candidate follows the task schema. Evidence quotes that cannot be found in the PDF text layer raise a warning without blocking the output. If errors remain, the agent applies minimal source-supported fixes in a new session: it reads the audit feedback, rechecks the source pages, corrects only the reported content or schema errors, and leaves supported text unchanged.

---
name: criteria-extraction
description: Use when extracting or auditing inclusion and exclusion criteria from a full clinical
  trial protocol, including numbered lists, cross-page continuations, cohorts and laboratory tables.
---

Complete criteria with source-preserving text

Output /app/output/criteria.json using the original task schema. Do not invent criteria from medical knowledge. /app/pages.json is a one-based physical-page array when addressed as page N -> index N-1. [...]

Locate, inventory, extract

  1. Find the authoritative detailed eligibility section, not just the synopsis or table of contents. Identify inclusion start/end, exclusion start/end, continuation pages, and separate cohort/substudy eligibility sections. [...]

  2. Save /app/output/source_map.json: section page ranges; printed top-level numbering and counts by category/cohort; any gaps or intentionally omitted duplicate synopsis. Counts must come from the source, not from your output.

  3. One output item per source top-level numbered criterion. Subletters, roman numerals, qualifications, exceptions and tables remain inside their parent. Separate genuinely separate numbered criteria even if topics overlap. Preserve additional cohort criteria without duplicating a repeated summary of the same list.

  4. Prefer constructing strings from exact source spans in Python instead of retyping/paraphrasing them. Join wrapped lines only within the same paragraph. Strip running headers/footers and top-level list numbers; preserve actual content, units, inequalities, exceptions, references, punctuation and abbreviation spelling. [...]

  5. Encode paragraphs as <p>, sublists as <ul>/<ol> containing <li><p>...</p></li>, and actual tabular criteria as <table>. Escape literal <, > and & in text. Preserve meaningful printed dash/label text inside subpoints; don’t convert a clinical minus sign into a bullet or discard words near numbering. In particular, when the printed subitem begins with a literal dash, retain that dash in the subitem text even inside <li><p>...</p></li>. [...]

  6. Use Inclusion/Exclusion exactly, IN01. . . / EX01. . . by category, and save valid JSON. Compare output category counts and list boundaries to the source inventory.

Audit the entire list

Use source numbering as a checklist. Verify every source top-level item has exactly one output counterpart and vice versa; inspect the final item and cross-page joins. Check missing tails, split subcriteria, omitted tables, negation, decimal thresholds, units and category inversions. For a large list, audit it in bounded page batches; do not inspect only the first few examples and declare the whole list correct. [...]

An empty list is valid only after locating and checking where eligibility would be stated, including scanned relevant pages. Readability failure means uncertainty, not a supported empty answer. Report concrete missing/incorrect rows with source pages and suggested minimal corrections. [...]

Reading an SoA page out of a PDF

The job is to reproduce one page of a clinical trial protocol — a Schedule of Activities table — as HTML.

There are two ways to read the page, and which one works is a property of the file, not a preference. Text extraction on a page whose text layer is broken produces confident, wrong output. [...]

Step 1 — Triage (always first, costs one command)

python3 /app/triage_pdf.py /app/inputs/protocol.pdf

It prints one of three routes and the numbers behind it. Follow the route it gives you. The thresholds sit in wide empty gaps in the measured distribution, so a borderline page is rare — if you get one, prefer VISION.

Do not skip this and do not argue with it. "The text extraction looked plausible" is exactly how the failures happen: a broken encoding yields well-formed rows full of wrong characters.

Step 2a — Route TEXT

The text layer is usable. Parse it.

python3 -c "import pdfplumber; print(pdfplumber.open('/app/inputs/protocol.pdf').pages[0].extract_table() is not None)"

pdfplumber and PyMuPDF are already installed — do not spend turns on pip install.

Follow .claude/skills/pdf/SKILL.md, section SoA Table Extraction, for the patterns that matter here: None vs ” semantics, column groups, normalize_row_v2, section-header merging, superscript handling, colspan validation, X-cell variants.

If extract_table() returns None or an empty table, stop and switch to Step 2b. That is the one case triage can miss when PyMuPDF is unavailable and the ruling-line check could not run.

Then go to Step 3.

Step 2b — Route VISION (text layer present but unusable)

Two different things are broken under this route, and the triage output tells you which:

"decodes to junk" — some fraction of the characters are wrong. The geometry is still sound, so you may use pdfplumber to find the grid: how many columns, where the row boundaries are, which cells are spanned. But every character you emit must be read off the rendered image, not copied from the extracted text. [...]

"no ruling lines" — extract_table() will return nothing, because it finds tables by their lines. There is no grid to recover from the text layer. Build the table from the image.

Either way, render it:

pdftoppm -png -r 200 -f 1 -l 1 /app/inputs/protocol.pdf /tmp/page

Re-render a region at higher DPI (300, 400) whenever a character is doubtful. That is cheap, and it is the only way to settle it.

If the render shows no schedule table on the page at all — just body text — say so plainly in your final message and write what the page does contain. Do not invent a table to fill the file.

Then go to Step 3.

Step 2c — Route VISION_ONLY (no text layer)

Same as Step 2b, with one thing to be explicit about:

Do not install or use pytesseract. The tesseract binary is not in this image, so OCR cannot run — the import will succeed and the call will fail. Your own vision is the extraction method here, not a fallback for it.

pdftoppm -png -r 200 -f 1 -l 1 /app/inputs/protocol.pdf /tmp/page

Then go to Step 3.

Step 3 — The fix loop

Applies to every route. A table that reads plausibly can still attach every mark to the wrong visit, and that scores zero.

/app/verify_soa.py reads only your own HTML — there is no answer key in this container — and reports structural problems.

# fix until the structural report is clean
while ! python3 /app/verify_soa.py /app/output/soa_table.html; do
    : read the findings, edit the HTML, run it again
done

Then read your own column names back against the page:

python3 /app/verify_soa.py /app/output/soa_table.html --keys

--keys prints, for every visit column, the full header path a reader would follow to name it:

col  1: Screening Assessments | Within 4 weeks (Day -28 to 0)
col  2: Screening Assessments | Within 1 week (Day -7 to 0)
col  3: Cycle 1 | 1 (1)

Put that beside the rendered page and walk the columns left to right:

  1. The count. As many printed columns as visit columns on the page.

  2. The order. Column nn names the nn-th visit column on the page. An off-by-one here is the single most common way to score zero: every mark lands one visit over, so nothing matches even though the table looks right and the checker is happy.

  3. The levels. Each key carries every level the page shows for that column — period, visit, visit number — and no level belonging to a neighbour.

If column 1’s key contains the row-label heading ("Study Procedure", "Visit Number", "Assessment/Procedure"), the label has leaked into the column header and every visit name is shifted by one. That is a shift, not a typo: fix the corner cell, do not patch the names.

Do not rewrite a header that is already right

Rewriting headers that did not need it can cancel out everything the loop gained elsewhere.

The reason: a column’s identity is its entire header path, including any footnote marker. Drop one <sup>a</sup> from a cell with colspan="15" and all 15 columns under it stop matching.

So:

  • If the structural report is clean and the rendered page agrees with your --keys output, you are done. Submit it.

  • Change a header cell only when you can point at the specific thing on the page that disagrees with it.

  • When you do change one, copy the cell’s text exactly, superscripts included.

What the checker cannot tell you

It has no access to the page. It cannot see a table that is internally perfect but uniformly shifted, or a cell whose text is misread. Many ways of failing this task are invisible to it — which is why the read-back against the render is not optional, and also why a clean report is not permission to start editing.

Output

Write the finished table to /app/output/soa_table.html.

Detailed extraction technique: .claude/skills/pdf/SKILL.md.


name: timeline-extraction description: Extract and audit USDM epochs, encounters and activity definitions &nbsp;&nbsp;from a protocol with source inventories, explicit attribute evidence and &nbsp;&nbsp;compatible timing output.

Source-grounded USDM components

Read USDM_REFERENCE.md, the supplied instruction and schema. The schema is a four-array projection, not the complete USDM graph. Preserve its field names. Never read gold, study-specific reference workbooks or same-study structured examples. A source plan and earlier audit are fallible model outputs.

Extract with a source inventory

  1. Locate study design, schedule tables, all continuation pages, visit descriptions, activity definitions and relevant footnotes. Inspect page images for ambiguous spans, composite rows and damaged text. Track physical PDF pages.

  2. Inventory source stages, contacts and activity rows/groups before deciding output counts. Retain source_id, page, quotation, scope and output row indices in source_map.json. Explain exclusions. Prioritize a usable timeline.json before elaborating the sidecar; update both when fixing output.

  3. For every row, keep a concise source-readable name and label. Put qualifications in description/notes, not synthetic ID-like names or long identity labels.

  4. Explicitly review the fields below; missing evidence means null, not a guessed default. An omitted field must not pass unnoticed merely because schema allows it.

Epoch: stage, classification and sequence

Record source-supported sequential stages in study order. Classification belongs in type, e.g. SCREENING, RUN-IN, TREATMENT, WASHOUT, FOLLOW-UP when appropriate. These examples are not an exhaustive ontology. Keep period numbers in name/label; use the same stage class for distinct treatment periods when the source defines them. Do not emit run_in, generic Study phase, an arm, or a residence setting as a stage classification. Never automatically split a stage at every dose or site change. Never merge genuinely distinct source stages solely because their types coincide.

[...]

Encounter: identity, kind, and mode

  1. Locate the schedule of activities AND its footnotes. Read the relevant visit/contact prose. Render a schedule page when merged headers make text ambiguous. Use a compact working inventory of visit/day columns, not a long planning document.

  2. An encounter is a planned participant contact, not an epoch or an individual procedure. Preserve distinct visit numbers and period/day identities. A continuous inpatient period contains daily encounters when daily clinical assessments, blood sampling, or staff-administered treatment are scheduled: expand an explicit daily range into day-specific records. [...] Distinguish conditional/unscheduled contacts from routine contacts.

  3. Read footnotes for telephone contacts tied to specific visits. If a numbered visit comprises an onsite component and a later telephone assessment, retain its identity and both contact modes, describe their different timing. [...]

  4. Use type "Visit" for clinical study visits; put screening, inpatient, unscheduled, early termination, and follow-up qualifiers in name/label/description, not invented type values such as "Visit (unscheduled)".

  5. contactModes is an array of display terms, e.g. ["In Person"], ["Telephone Call"], or both. [...] Use null only when the source and scheduled procedures do not establish a mode.

  6. Use short identifiable names/labels containing period and day or visit number. [...]

Required final consistency check: if your source evidence states a telephone component is attached to a numbered visit, that visit must include Telephone Call as well as its onsite mode. [...]

Keep encounter evidence in the shared source_map.json, alongside epoch, activity and timing evidence. [...]

Activity: definition, group and scheduled occurrence

Inventory exact schedule row designations and explicit presentation group headings. Read prose/footnotes for additional source-stated procedures. Preserve a composite row as a composite unless the source defines independent activities. Reuse an activity definition across visits; occurrence scheduling does not create new copies.

USDM permits grouping activities. [...]

Compact audit and repair

Review the actual source, not only candidate counts. Report specific errors with short literal quotes and physical page numbers. Uncertainty is a warning, not an automatic repair or deletion. [...]

Repair only explicitly identified errors after an independent source check; preserve correct values. [...]

For timing, FROM occurs BEFORE/AFTER TO, and start/end relationships and windows retain their original meaning. Use readable source event names and period context rather than anonymous TP IDs. A zero offset can legitimately relate distinct coincident events. Do not infer elapsed duration by subtracting nominal day labels. Reference existing encounter names when the endpoint is that encounter; a within-visit procedure endpoint must identify its own source event and period.

tbl:26: The TrialScribe skill for structured timeline extraction (abridged; omitted passages are marked [...]).

Figure 7. Failure profiles of ten coding agents, the nine main-text agents and GPT-4o, across six extraction tasks. Each bar shows the distribution of dominant failure categories among failing runs for a model and task, normalized to 100%. These profiles describe failure composition rather than failure rates.

Ablation of Skills and Verification

We ablate the two components of TrialScribe, the task skills and the verification loop, on 40 eligibility-criteria protocols randomly sampled from the test split, with Qwen3.8-27B. We compare four configurations: the base coding agent, skills only, verification only, and the full TrialScribe. As Table 27 shows, each component improves criterion F1 on its own, by 2.6 points for skills and 7.7 points for verification, and combining them gives the largest gain, 14.5 points over the base agent. Verification adds more when the skills are present (11.9 vs. 7.7 points).

ConfigurationSkillsVerificationCriterion F1 (%)
Base agent✗✗65.4
Skills only✓✗68.0
Verification only✗✓73.1
TrialScribe✓✓79.9

Table 27. Ablation of the task skills and the verification loop on eligibility-criteria protocols, with Qwen3.8-27B.

SoA Table Extraction Case Study

We present a case study on the two-page Schedule of Activities. Figure 8 shows the source pages and the TrialScribe output; Figure 9 shows the output of six OCR and document-understanding baselines on the same pages, and Figure 10 shows how the output changes over successive verification passes. In the annotated outputs, green cells are correctly placed scheduling marks, red cells are marks absent from the reference, and pink cells are reference marks that are missing.

Source page 14

(a) Source page 14.

Source page 15

(b) Source page 15.

TRIALSCRIBE output for both pages, compared with the reference

(c) TRIALSCRIBE output for both pages, compared with the reference.

Figure 8. SoA table extraction case study: source pages and the TRIALSCRIBE output.

Mistral OCR

(a) (a) Mistral OCR.

LightOnOCR

(b) (b) LightOnOCR.

LandingAI

(c) (c) LandingAI.

Qwen3-VL-4B

(d) (d) Qwen3-VL-4B.

PaddleOCR-VL

(e) (e) PaddleOCR-VL.

olmOCR

(f) (f) olmOCR.

Figure 9. SoA table extraction case study: OCR and document-understanding baselines on the same pages, annotated against the reference.

Future Work

Beyond SoA tables, protocols contain many other types of tables that downstream clinical systems rely on. Table 28 lists common examples. Extending TrialPD-Bench and TrialScribe to these table types is a natural direction for future work.

Table typeWhat it describes
PK samplingPK samples relative to dosing
PD sampling/assessmentPharmacodynamic measurements
Laboratory assessmentHematology, chemistry, urinalysis, etc.
Safety assessmentAEs, vitals, ECG, physical exam, etc.
Efficacy assessmentTumor assessments, disease scores, etc.
Study treatment/dosingDose, schedule, route, cycles
Randomization/stratificationArms, cohorts, strata
Visit/assessment windowTarget dates and allowable windows
Sample/specimenBlood, urine, tissue, storage, processing
Imaging/scan scheduleCT, MRI, PET, or other imaging
Dose modificationRules for interruption, reduction, or discontinuation
Stopping/discontinuation rulesTreatment or study discontinuation criteria

Table 28. Other common protocol table types beyond those covered in TrialPD-Bench.

Use of AI Assistants

We used AI assistants to polish the writing of this paper.

Data Sources and Licenses

The protocol documents in TrialPD-Bench are publicly posted on ClinicalTrials.gov (U.S. National Library of Medicine), the trial registry of the U.S. National Library of Medicine (NLM), where

sponsors upload protocols as part of results reporting. We do not redistribute the protocol PDFs. Instead, we release the NCT identifier and the ClinicalTrials.gov URL of each document, so that users obtain the documents directly from the registry. The structured timeline references are taken from the USDM example studies published by CDISC (CDISC), which we use as released and credit to CDISC. Our reference annotations and code are released under the Creative Commons Attribution 4.0 (CC BY 4.0) license.

References

  1. [2]Ramtin Babaeipour, François Charest, and Madison Wright. 2026. Ai-assisted protocol information extraction for improved accuracy and efficiency in clinical trial workflows. Journal of Biomedical Informatics, page 105036.DOI
  2. [3]Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, et al. 2025. Qwen3-vl technical report. arXiv preprint arXiv:2511.21631.arxiv.org/abs/2511.21631
  3. [4]Mary Regina Boland, Samson W Tu, Simona Carini, Ida Sim, and Chunhua Weng. 2012. Elixir-time: a temporal knowledge representation for clinical research eligibility criteria. AMIA summits on translational science proceedings, 2012:71.pubmed.ncbi.nlm.nih.gov/22779055
  4. [6]An-Wen Chan, Isabelle Boutron, Sally Hopewell, David Moher, Kenneth F Schulz, Gary S Collins, Ruth Tunn, Rakesh Aggarwal, Michael Berk wits, Jesse A Berlin, et al. 2025. Spirit 2025 statement: updated guideline for protocols of randomised trials. The Lancet, 405(10491):e19–e27.
  5. [7]Miao Chen, Ganhui Lan, Fang Du, and Victor Lobanov. 2020. Joint learning with pre-trained transformer on named entity recognition and relation extraction tasks for clinical analytics. In Proceedings of the 3rd Clinical Natural Language Processing Workshop, pages 234–242.DOI
  6. [8]Cheng Cui, Ting Sun, Suyin Liang, Tingquan Gao, Zelun Zhang, Jiaxuan Liu, Xueqing Wang, Changda Zhou, Hong en Liu, Manhui Lin, Yue Zhang, Yubo Zhang, Handong Zheng, Jing Zhang, Jun Zhang, Yi Liu, Danhai Yu, and Yanjun Ma. 2025a. Paddleocr-vl: Boosting multilingual document parsing via a 0.9b ultra-compact vision-language model. Preprint, arXiv:2510.14528.arxiv.org/abs/2510.14528
  7. [9]Cheng Cui, Ting Sun, Manhui Lin, Tingquan Gao, Yubo Zhang, Jiaxuan Liu, Xueqing Wang, Zelun Zhang, Changda Zhou, Hong en Liu, et al. 2025b. Paddleocr 3.0 technical report. arXiv preprint arXiv:2507.05595.arxiv.org/abs/2507.05595
  8. [10]Surabhi Datta, Kyeryoung Lee, Hunki Paek, Frank J Manion, Nneka Ofoegbu, Jingcheng Du, Ying Li, Liang-Chin Huang, Jingqi Wang, Bin Lin, et al. 2024. Autocriteria: a generalizable clinical trial eligibility criteria extraction system powered by large language models. Journal of the American Medical Informatics Association, 31(2):375–385.DOI
  9. [12]Murtaza Dhuliawala, Nicholas Fay, Daniel Gruen, and Amar Das. 2018. What happens when? interpreting schedule of activity tables in clinical trial documents. In Proceedings of the 2018 ACM International Conference on Bioinformatics, Computational Biology, and Health Informatics, pages 301–306.DOI
  10. [13]Nicholas J Dobbins, Tony Mullen, Özlem Uzuner, and Meliha Yetisgen. 2022. The leaf clinical trials corpus: a new resource for query generation from clinical trial eligibility criteria. Scientific Data, 9(1):490.DOI
  11. [15]Jack Edwards and Luke Emberson. 2026. Open models lag state-of-the-art closed models by 4 months. https://epoch.ai/data-insights/open-closed-eci-gap. Epoch AI. Accessed: 2026-09-24.
  12. [16]Harbor Framework Team. 2026. Harbor: A framework for evaluating and optimizing agents and models in container environments.DOI

Paper details

vlnc:W_tgzh5kty
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

AI assistants

View statement
Looking for related papers…
Contents