SAE-Audit: Clinical-Trial Prediction via Inference-Time Optimization of Black-Box LLMs Audited by Sparse Autoencoder Evidence
Organizations: Independent Researcher
Abstract
Clinical trials are costly and often take years to complete, making early outcome prediction valuable for trial planning. Large language models (LLMs) are increasingly used to forecast clinical-trial outcomes, yet their predictions remain unreliable and their rationales may not faithfully reflect the evidence underlying their answers. On tasks such as predicting whether a registered clinical trial will complete or terminate early, frontier LLMs perform only modestly above chance in our experiments. We introduce SAE-Audit, which optimizes a black-box LLM at inference time with evidence obtained from a deployable open model. A frozen sparse autoencoder (SAE) on Llama-3.1-8B-Instruct is converted into a vocabulary of clinical concepts. Sparse probes fitted on past trials determine which concepts are associated with the outcome. For a new protocol, the concepts detected by the probe are written as evidence, each with the direction and strength of its association with the outcome, and the LLM being audited optimizes its answer in the light of this evidence. Without additional training, SAE-Audit raises balanced accuracy of deepseek-v4-flash by 9.6--12.0 points on five clinical-trial prediction tasks and raises GPT-5.6-terra by 8.0 points on trial completion, exceeding other agentic inference-time optimization methods by a large margin. As an auxiliary, SAE probes module within SAE-Audit is itself accurate and auditable, providing natural-language explanations directly derived from verified concept contributions and protocol evidence, without requiring additional LLMs at inference time. SAE-Audit provides verifiable, concept-level evidence for more accurate and auditable clinical-trial prediction. It can also be embedded into biomedical AI agents such as Biomni to optimize their performance.
Figures & tables
| LLM | Inference-time optimization | LLM + SAE | Concept | LLM + | Improvement | ||||
|---|---|---|---|---|---|---|---|---|---|
| Task | alone | Self-Refine | Debate | TextGrad | Biomni | concepts | probe | SAE-Audit | [95% CI] |
| LLM: deepseek-v4-flash | |||||||||
| Trial completion | 61.0 | 54.7 | 61.4 | 58.2 | 70.9 | 59.4 | 65.2 | 71.2 | [ , ] |
| Adverse events | 66.4 | 50.0 | 67.5 | 69.9 | – | 65.7 | 75.0 | 77.5 | [ , ] |
| Duration | 66.0 | 56.8 | 64.5 | 67.2 | – | 58.9 | 75.4 | 75.6 | [ , ] |
| Sample size | 57.2 | 64.7 | 60.8 | 63.5 | – | 61.1 | 67.5 | 67.6 | [ , ] |
| Completion | Duration | Adverse events | Dropout | Sample size (995) | ||
| Method | (1,000) | (1,000) | (1,000) | (1,000) | median | regression MAE |
| Prompted directly | ||||||
| deepseek-v4-flash | 61.2 | 63.6 | 64.1 | 54.9 | 60.6 | 422 |
| GPT-5.6-luna | 64.5 | 66.5 | 81.1 | 55.3 | 77.1 | 409 |
| SAE probes module | ||||||
| Concept probe | 64.8 | 74.3 | 75.6 | 64.9 | 64.0 | 363 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Task | Source | Train / test | Original label | Predicted |
|---|---|---|---|---|
| Trial completion | TrialPanorama | 6,000 / 1,000 | completed or terminated | same |
| Sample size | TrialPanorama | 1,129 / 995 | participants enrolled | number; above median (153)? |
| Adverse events | TrialBench | 6,000 / 1,000 | any serious adverse event? | same |
| Duration | TrialBench | 6,000 / 1,000 | length in years | above median (1.545 y)? |
| Dropout | TrialBench | 6,000 / 1,000 | any dropout? | same |
| Completion | Duration | Adverse events | Sample size | |
|---|---|---|---|---|
| SAE concepts, continuous | 69.3 | 76.2 | 80.3 | 74.1 |
| Dense activations | 70.4 | 74.4 | 81.0 | 72.1 |
| Difference [95% CI] | [ , ] | [ , ] | [ , ] | [ , ] |
| MedCPT embeddings | 65.0 | 73.0 | 75.8 | 67.4 |
| SAE concepts, binary | 64.8 | 74.3 | 75.6 | 64.0 |
| Completion (1,000) | Sample size, MAE (995) | |
| GPT-4o | 59.3 | 452 |
| o3-mini | 51.0 | – |
| GPT-4o-mini, Qwen3-8B, Llama-3-70B | 51.3–52.6 | – |
| Concept probe | 64.8 | 363 |
| Auxiliary prediction probe | 69.3 | 337 |
| Quotations | ||||||
| Method | Comprehensiveness | Sufficiency | Unchanged | Direction | verbatim | located |
| Trial completion | ||||||
| SAE probe’s direct reasoning | [0.069, 0.096] | [0.068, 0.099] | 0% | 78.8% | 100% | 100% |
| deepseek-v4-flash | [0.009, 0.074] | [0.016, 0.082] | 37% | 73.4% | 77.7% | 82.9% |
| GPT-5.6-terra | [0.001, 0.037] | [0.012, 0.054] | 14% | 73.7% | 79.1% | 83.6% |
| Sample size | ||||||
| Concept | Favours | Factor | Present |
| Trial completion (162 concepts; factor on the odds of termination) | |||
| mentions specific drug names or drug classes | complete | 0.65 | 78% |
| specifies a threshold or range for a lab value or test result | complete | 0.68 | 25% |
| severe or advanced disease severity criteria | complete | 0.70 | 33% |
| time intervals after procedures or events | terminate | 1.34 | 33% |
| concurrent medication or trial participation restrictions | complete | 0.75 | 16% |
| Verified | |||||||
|---|---|---|---|---|---|---|---|
| Task | Basis | standard | harder | Median MCC | Simulation | Generation AUROC | |
| Completion | SAE features | 162 | 46% | 25% | 0.44 | 0.55 | 0.76 |
| Dense neurons | 92 | 25% | 7% | 0.31 | 0.40 | 0.68 | |
| Random dictionary | 162 | 20% | 4% | 0.23 | 0.43 | 0.71 | |
| Sample size | SAE features | 107 | 38% | 16% | 0.50 | 0.52 | 0.74 |
| Dense neurons | 28 | 18% | 7% | 0.35 | 0.35 | 0.56 | |
| Task | Basis | Pool | Verified | Median MCC | Simulation | Generation | Accuracy | |
| Completion | SAE features | 1,520 | 162 | 46% / 23% / 25% | 0.65 / 0.44 | 0.55 | 0.76 | 64.8 |
| Completion | Dense neurons | 96 | 92 | 25% / 8% / 7% | 0.47 / 0.31 | 0.40 | 0.68 | 56.9 |
| Completion | Random dictionary | 38,115 | 162 | 20% / 6% / 4% | 0.47 / 0.23 | 0.43 | 0.71 | 62.9 |
| Sample size | SAE features | 1,462 | 107 | 38% / 15% / 16% | 0.58 / 0.50 | 0.52 | 0.74 | 363 |
| Sample size | Dense neurons | 73 | 28 | 18% / 7% / 7% | 0.47 / 0.35 | 0.35 | 0.56 | 383 |
| Sample size | Random dictionary | 35,958 | 107 | 16% / 4% / 7% | 0.42 / 0.30 | 0.36 | 0.68 | 379 |
| Setting | Auditor | Completion | Adverse events | Duration | Sample size | Dropout | Mean [95% CI] |
|---|---|---|---|---|---|---|---|
| Evidence | |||||||
| draft-first | audits the draft | [ , ] | |||||
| draft-first | none | [ , ] | |||||
| evidence-first | writes hypotheses | [ , ] | |||||
| evidence-first | writes hypotheses ∗ | – | [ , ] | ||||
| evidence-first | none | [ , ] | |||||
| Task | Concept probe | LLM + SAE-Audit | Difference to probe [95% CI] | Gain over LLM [95% CI] | |
|---|---|---|---|---|---|
| Trial completion | 750 | 59.1 | 63.6 | [ , ] | [ , ] |
| 1,500 | 64.3 | 67.1 | [ , ] | [ , ] | |
| 3,000 | 60.8 | 66.4 | [ , ] | [ , ] | |
| 6,000 | 65.2 | 71.2 | [ , ] | [ , ] | |
| Adverse events | 750 | 68.7 | 73.6 | [ , ] | [ , ] |
| 1,500 | 72.6 | 78.1 | [ , ] | [ , ] |
| Method | Completion | Adverse events | Duration | Sample size | Dropout | Mean diff. [95% CI] |
|---|---|---|---|---|---|---|
| LLM alone | 61.0 | 66.4 | 66.0 | 57.2 | 52.8 | |
| No external information | ||||||
| Self-Refine | 54.7 | 50.0 | 56.8 | 64.7 | 48.9 | [ , ] |
| Multi-agent debate | 61.4 | 67.5 | 64.5 | 60.8 | 54.2 | [ , ] |
| TextGrad | 58.2 | 69.9 | 67.2 | 63.5 | 53.2 | [ , ] |
| With SAE information: concept names appended to the protocol | ||||||
Clinical Outcome Prediction
Clinical outcome prediction uses patient records, imaging, signals, and biomarkers to estimate risks, disease trajectories, treatment response, and survival.
See all 292 papers