Before a clinical trial begins, its protocol, the document that says how the trial will run, is supposed to cover 33 items listed in a reporting checklist called SPIRIT. Checking whether protocols actually do this has so far meant trained methodologists reading each one by hand. The best such audit covered 549 protocols. It found that the effects driving better reporting are modest: odds ratios of 1.44 for support from a professional trials unit, 1.33 for approval after SPIRIT was published, and 1.18 for multicentre design (ASPIRE-SCAGE). Language models could read tens of thousands of public protocols instead of hundreds. The catch is that a model's per-item mistakes can be as large as the effects we want to measure. Worse, the mistakes can differ by group. Industry protocols follow templates and may be easier to read correctly, so a naive machine audit could create or hide exactly the sponsor gap under study.
We propose treating the automated audit the way statistical geneticists treat genome-wide studies: as a problem of estimating many small effects spread across many units. The audit would combine three parts. A language model reads every protocol. A small human-labeled subsample is used to correct the model's errors. A shrinkage model then pools information across the 33 checklist items grouped by checklist section, so that item-level effects are neither lost in noise nor inflated by multiple testing. The claim is specific. With a few hundred human labels plus machine reading of the full corpus, the audit should reproduce the effect estimates of a full manual audit, with honest confidence intervals, where plugging in machine labels directly fails.
Core Claim
The problem is not whether a language model can extract SPIRIT items. Given results elsewhere in clinical text, it probably can do so reasonably well. The problem is whether small associations estimated from machine-extracted labels are valid.
Clinical extraction systems routinely land close to, but below, human agreement:
- CheXbert reaches an average F1 of 0.798 against 0.805 for radiologists (CheXbert).
- A MetaMap plus BERT pipeline for adverse events reaches F1 0.8080 against inter-annotator agreement of 0.9095 (SAE text mining).
A gap of a few points is harmless for labeling. It is not harmless when the quantity of interest is a 12-point shift in median adherence, or an item-level odds ratio near 1.2. I found no reported result on Lacuna for automated SPIRIT item extraction accuracy, so that number is itself a deliverable.
The genetics literature supplies the statistical lesson. Genome-wide studies of childhood anxiety and of brachial circumference returned no significant hits despite known heritability, because per-unit testing under a strict threshold erases signals spread across many units (childhood anxiety GWAS; brachial circumference meta-analysis). The response was to pool signal across biologically meaningful groups. Two examples are gene-set enrichment (miR-137 pathways) and grouped spike-and-slab regression. Spike-and-slab regression is a prior under which most effects are exactly zero and the rest come from a spread-out distribution. In genetics it is grouped by functional annotation, as in BayesRR-RC (GMRM).
We reuse that technique. SPIRIT items play the role of variants, and SPIRIT sections play the role of annotations: administrative items, methods, and ethics and dissemination. The idea of borrowing strength across a label hierarchy also has a text-side precedent. On rare diagnosis codes, graph-based pooling lifts micro F1 from 0.00 to 6.72 (Rare Codes Count). That result motivates pooling; it does not supply our estimator.
Research Program
Build the corpus. ClinicalTrials.gov hosts uploaded protocol documents for a substantial subset of registered trials. The structured registry fields give sponsor type, country, start date and number of sites, drawn from the same trial metadata that PyTrial standardizes (PyTrial). Two points need stating honestly. First, the ASPIRE-SCAGE protocols came from ethics committees and are probably not public, so an exact replication requires collaborating with those authors. Second, public uploaded protocols are a selected sample, and we will report that selection rather than hide it.
Extract. A language model reads each full protocol and returns, for each of the 33 items, a present-or-absent judgment and a supporting quote. The whole document goes in, because two-stage pipelines lose what the first stage misses. In the adverse-event pipeline, MetaMap dropped 118 true events that the BERT classifier never saw (SAE text mining).
Label a validation subsample. Trained annotators label a random subsample of about 300 protocols against the published SPIRIT scoring. The sample is stratified by sponsor type and era, so that error rates can be estimated within each group.
Correct the estimates. For any association parameter $\theta$, such as the log odds ratio for trials-unit support on item $j$, we use the rectified estimator below. It follows the general logic of prediction-powered inference, which uses a small labeled set to correct estimates computed on many machine labels:
$$\hat\theta = \hat\theta^{\text{LLM}}_{N} - \left(\hat\theta^{\text{LLM}}_{n} - \hat\theta^{\text{human}}_{n}\right)$$
Here $N$ is the full corpus, $n$ is the human-labeled subsample, and the superscript says whose labels are used. The bracketed term estimates the model's bias on this parameter, including bias that differs by group. The variance of $\hat\theta$ is estimated by bootstrap over both samples.
Pool across items. Item-level corrected effects $\beta_j$ then enter a grouped spike-and-slab model:
$$\beta_j \sim \pi_s\,\delta_0 + (1-\pi_s)\,\mathcal{N}(\mu_s, \tau_s^2)$$
Here $s$ is the SPIRIT section of item $j$, $\pi_s$ is the share of items in that section with no effect, and $\mu_s, \tau_s^2$ are the mean and spread of non-zero effects in that section. This yields per-item posterior probabilities of a real effect and a section-level partition of improvement. The partition is analogous to GMRM's split of heritability across introns, coding and regulatory regions.
Apply the method to an open question. ASPIRE-SCAGE could not separate the effect of the SPIRIT guideline from the 2014 Swiss Human Research Act, because 72% of its protocols were Swiss. A multi-country corpus with dates allows a difference-in-differences design, comparing countries with and without concurrent legislation around 2013–2014. The resulting effects are small and differ by item, which is exactly the regime this method is built for.
Baselines
Human-only estimate. The naive reference point analyzes only the roughly 300 human-labeled protocols, as ASPIRE-SCAGE did with 549. It is unbiased but underpowered. The reported numbers we treat as the manual-audit standard are:
- median adherence rising from 64% to 76% for investigator-sponsored protocols, against 77% for industry;
- odds ratios of 1.44, 1.33 and 1.18 (ASPIRE-SCAGE).
Our method beats this baseline if it produces confidence intervals that are materially narrower, targeting at least 40% narrower on the three headline odds ratios, while keeping nominal coverage.
Plug-in machine audit. The strongest competitor in practice uses the same language model, prompt and corpus, and treats its labels as ground truth. It has the same compute and a fair tuning budget: prompt development on a held-out development set that is disjoint from the evaluation subsample. It is the method a practitioner would actually deploy. Beating it means showing lower bias and correct coverage where it undercovers, especially for the sponsor-type comparison.
Agentic self-checking pipeline. The strongest existing extraction system is the six-agent pipeline that uses document-level item counts to trigger reconciliation loops (Agentic LLM Pipeline; companion version). We adapt it so that the expected count is the 33 items. The authors note that count matching checks structure, not correctness. If our correction still removes measurable bias from this pipeline's output, that shows self-verification is not enough.
Two ablations. The first applies correction without pooling, testing whether the spike-and-slab layer is what controls false item-level discoveries. The second applies pooling to uncorrected labels, testing whether correction is what removes bias.
Why not just…?
Why not just use a strong model and trust it, since accuracy will be high? This is the real threat. If per-item error is tiny and equal across groups, correction adds variance and little else. The field's track record points the other way. Systems near human F1 on radiology and adverse events still show gaps of 0.007–0.1, and CTBench shows models missing trial-specific variables at F1 0.4–0.5 (CTBench). The key point is that differences in error between groups bias a comparison even when overall accuracy is high. The validation sample measures these error rates by group directly. If they turn out negligible, we will report that the plug-in audit is adequate, which is itself a useful finding.
Why not just hand-label more protocols? A two-sided comparison at an odds ratio of 1.18 needs far more protocols than a manual audit can afford. ASPIRE-SCAGE's 549 protocols already required methodologist time. Manual labeling also cannot reach the multi-country, multi-year coverage the Swiss question needs. The human-only baseline puts a number on this: the width of its interval is the cost of not scaling.
Why not just analyze the total adherence score and skip item-level modeling? For the headline trend, a summed score may suffice. Item errors may also partly cancel in a sum, and we will check whether they do. But the policy-relevant findings are item-level. Registration plans gained 41%, dissemination policies 36%, and declarations of interest 31%. Testing 33 items separately repeats the multiple-testing trap that genome-wide studies hit. The first ablation shows whether pooling earns its place over simply summing.
Proposed Experiments
Fully labeled comparison. The decisive check uses a set of about 600 protocols labeled entirely by humans. That could be the ASPIRE-SCAGE set if collaboration succeeds; otherwise it is a new annotation of public protocols. The full human analysis is treated as ground truth. We repeatedly draw 100–300 labeled protocols, run each method, and measure three things for the sponsor, era and multicentre odds ratios and for item-level effects:
- bias relative to the full human estimate;
- 95% interval coverage;
- interval width.
The method succeeds if its coverage stays near 95% while the plug-in audit falls well below, and its intervals are narrower than the human-only baseline.
Semi-synthetic stress test. We keep the measured error rates for each item and group, plant item-level effects of known size between an odds ratio of 1.05 and 1.5, and trace the smallest effect each method detects at a fixed false discovery rate. This mirrors the power curves used to argue for pooling in genetics.
Extraction quality. We report per-item accuracy, F1 and the difference in error between sponsor types. This is the first such benchmark, since no reported result was found on Lacuna for automated SPIRIT extraction.
Application. Once the method is validated, the corrected and pooled audit runs on the public corpus to estimate SPIRIT-era effects separately from national legislation. Results are reported with the selection caveats of publicly uploaded protocols.
References
- Reporting quality of clinical trial protocols: a repeated cross-sectional study about the Adherence to SPIrit Recommendations in Switzerland, CAnada and GErmany (ASPIRE-SCAGE)
- Combining Automatic Labelers and Expert Annotations for Accurate Radiology Report Labeling Using BERT
- Text Mining of Adverse Events in Clinical Trials: Deep Learning Approach
- Correction: First Genome-Wide Association Study on Anxiety-Related Behaviours in Childhood
- Genome-Wide Association Study to Identify Common Variants Associated with Brachial Circumference: A Meta-Analysis of 14 Cohorts
- Meta gene set enrichment analyses link miR-137-regulated pathways with schizophrenia risk
- Probabilistic inference of the genetic architecture underlying functional enrichment of complex traits
- Rare Codes Count: Mining Inter-code Relations for Long-tail Clinical Text Classification
- PyTrial: Machine Learning Software and Benchmark for Clinical Trial Applications
- An Agentic LLM Pipeline for Transforming Unstructured Clinical AI Literature into Structured Data
- CTBench: A Comprehensive Benchmark for Evaluating Language Model Capabilities in Clinical Trial Design