TRANSMISSION // 2611.24877v2

Can an AI audit a clinical prediction model by querying it?

Source published

In a controlled stroke-model test, an LLM closely reproduced predictions and found most planted flaws. Many extra warnings and proposed relationships still needed independent checks.

AI-generated conceptual illustration for Can an AI audit a clinical prediction model by querying it?
AI-generated conceptual illustration; not documentary evidence.

If a clinical prediction model is available only through its outputs, can an AI work out what it does—and spot problems? Researchers tested one language model by letting it construct inputs and query four kinds of stroke-outcome model. The results are promising within this experiment, but do not establish that the approach can reliably audit clinical models in general.

Clinical prediction models estimate outcomes from patient information. Checking one can be difficult when its inner workings are hidden. A large language model (LLM) might infer the model’s behavior by choosing inputs, sending them through a query tool and examining the predictions. But a close description is not the same as a useful audit: the LLM might report small quirks as problems, or mistake patterns in a model for discoveries about patients.

Zhiyu Liu and Xinyu Yang tested these questions using data from the International Stroke Trial. They trained four kinds of model—logistic regression, an explainable boosting machine, gradient-boosted trees and a neural network—to predict two six-month outcomes: death, and death or dependency. Earlier trial patients were used for training, with later patients reserved for testing.

The researchers created 24 altered copies of eight original models, adding one artificial flaw to each: under-prediction for a subgroup, a reversed risk-factor effect, or an implausible abrupt change in risk. The 24 altered and eight unaltered models were assigned random identifiers. GPT-6 Astra received information about each model’s task and inputs, but not its internal parameters or the key to the planted flaws. It constructed input arrays and queried a tool that returned the model’s predictions.

The judging rules were specified internally before the runs, then amended before the first run; the plan was not publicly registered. The researchers applied the rules using code.

A close approximation, with many extra warnings

The LLM produced a mathematical approximation, or surrogate, for each model’s predictions. Across the models, the surrogate’s mean R² was 0.976, compared with 0.959 for an analyst-built surrogate. The LLM’s approximations were longer—a median of 128 terms versus 42—and least faithful for neural networks. This indicates that the LLM closely reproduced model behavior in this test, not that its descriptions would be easy for clinicians to use.

It identified the planted flaw in 69 of 72 runs (96%). The three runs on each flawed model agreed, so they were not 72 independent tests; the authors’ confidence interval accounted for this clustering. A purpose-written script found all 24 flaws. That comparison is not like-for-like: the script was designed around the three flaw types and given a list of established risk factors. The LLM did not receive that list, but its prompt asked it to identify departures from medical knowledge and named the kinds of problems to look for.

The LLM also reported many additional problems. Of 1,089 checkable reports, 655 (60%; 95% confidence interval 53%–67%) failed the pre-specified check. That check measured average model behavior and required a reported departure of at least 0.25 on the log-odds scale. It did not fit the LLM’s often-local claims particularly well. In a post-hoc analysis, 412 failed reports described features present in the model in the reported direction but below the threshold; many were small steps in tree-based models. Another 164 reports—15% of checkable reports—were not found in the model. The authors caution these might apply only to a patient profile the LLM constructed, or might not hold at all. The post-hoc categories used thresholds chosen after results were known. These findings do not show that every failed report was invented, nor that small features are clinically important. They do show why proposed warnings need programmatic checks against the model.

Patterns in a model are not automatically discoveries

In the unaltered models, the LLM proposed 601 unexpected relationships. In the later-patient test, 68 (11%) met the study’s criterion: an adjusted regression interval excluded zero in the proposed direction. A regression scan proposed a shorter list of 101 relationships, of which 28 (28%) met that criterion. After checking candidates on the training data, 34 of 103 LLM relationships (33%) and 25 of 82 scan relationships (30%) held in later patients. The difference was three percentage points, with a 95% confidence interval from −11 to 16—so the study did not establish that the LLM’s rate was higher. The LLM’s estimates of which relationships would hold were only weakly informative (C statistic 0.66; Brier score 0.30).

These results concern associations in this dataset, not causal effects or general medical discoveries. The authors also required candidate findings to retain their direction in at least 80% of refits leaving out one country at a time. Even a relationship that passes these tests is not necessarily clinically useful: models can encode noise, and faithfully describing a model does not make its patterns true of patients.

This is a preprint reporting a controlled test, not a peer-reviewed clinical validation. It used one LLM, one public stroke-trial dataset and three announced flaw types. The planted subgroup and step changes were one log-odds unit, while reversals targeted sizeable effects; the smallest reversal was missed. The authors note the trial is well studied, which could matter more for proposed relationships than for testing model behavior. Some analyses were added after results were seen.

The cautious conclusion is narrow: in this setup, query access let one LLM describe these models closely and detect most of the specified planted flaws. It does not show general clinical auditing performance or certify a model as safe. Warnings must be checked against the model, and proposed relationships against data before being treated as knowledge.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.