Can LLMs Audit Black-Box Clinical Prediction Models Using Query Access Alone?

Blinded test: LLMs reproduce black-box models with high fidelity and detect 96% of implanted defects, but reports need external validation.
A blinded study tested whether LLMs can audit clinical prediction models using only query access. LLM-built surrogate models achieved an average R² of 0.976 and detected 69 of 72 implanted defects (96%), close to a dedicated script's 100%. However, many extra reports were unreliable: 60% of checkable reports failed pre-specified checks, some were real but tiny steps, 15% did not exist, and only 11% of 601 unexpected relationships held in subsequent data. LLMs are powerful auditing aids but not fully reliable automatic auditors; their outputs require programmatic checks and data validation.
Large language models (LLMs) are increasingly being used to explain clinical prediction models, with promises of clarifying what a model computes, identifying its flaws, and even revealing new knowledge from it. But are these promises reliable? A blinded test examined these three claims under verifiable conditions by implanting defects into models.

Experimental Design: A Blinded Test with Implanted Defects
The research team trained four types of models on earlier-randomized patients from the International Stroke Trial for two outcomes: logistic regression, an explainable boosting machine, gradient boosted trees, and a neural network. They then created 24 copies with implanted defects, each containing one type of defect: an under-estimated-risk subgroup, a direction-reversed risk factor, or an implausible step. These defective models were mixed with 8 clean models.
The audit tool only returns the model's predictions, without providing any internal parameters or structural information. GPT-6 Astra conducted three audits of each model under fully blinded conditions. The judging rules were fixed before any run began and were executed automatically by program, avoiding human judgment bias.
Explainable Boosting Machine (EBM) is a modern implementation of a generalized additive model (GAM), proposed by Microsoft Research. It learns a separate shape function for each feature and then sums all feature functions to obtain the final prediction, thereby providing a fully interpretable model structure while maintaining relatively high predictive accuracy. Unlike black-box models such as gradient boosted trees, each feature's contribution in an EBM can be directly visualized, so it has attracted attention in high-stakes domains requiring transparency, such as clinical and financial applications. In this experiment, EBM served as one of the four audited models; it is itself somewhat interpretable, but the study focused on whether an LLM can reproduce its behavior and discover implanted defects using query access alone, providing a reference for comparing models with different levels of transparency.
Gradient Boosting Trees (GBT) are a class of ensemble learning methods that sequentially train a series of weak learners (usually decision trees), with each tree fitting the residuals of the preceding model, and finally summing the predictions of multiple trees. GBT performs excellently on structured data, but the model internally contains hundreds or even thousands of trees, making it difficult to interpret directly. In this study, GBT served as one of the representative black-box models; its complexity makes auditing via query access alone more challenging, and it also highlights the potential value of the LLM surrogate model approach.
Surrogate Models and Defect Detection
The surrogate models built by the LLM through queries, with a median of 128 terms, were able to reproduce the audited models' log-odds with an average R²=0.976. By comparison, a 42-term additive surrogate model fitted by an analyst achieved an R² of 0.959. This indicates that, using query access alone, the LLM can describe the computational behavior of black-box models quite faithfully.
In terms of defect detection, the LLM found 69 implanted defects out of 72 runs (96%; 95% confidence interval 80% to 99%). A script written specifically for this purpose found all 24 defects. This shows that the LLM's detection ability is close to but not yet at the level of a dedicated script.
Surrogate Model in the context of model auditing refers to using a relatively simple, interpretable model to approximate the input-output relationship of another complex black-box model. In this study, the LLM sent queries to the audited model (i.e., inputting different combinations of patient features and obtaining prediction results), collected a batch of input-output pairs, and then fitted a surrogate model to reproduce the black-box model's log-odds. The fidelity of a surrogate model is usually measured by R²; the closer R² is to 1, the better the surrogate model explains the black-box model's behavior. Notably, the quality of a surrogate model depends on the query strategy and the number of queries: the surrogate models built by the LLM in this study had a median of 128 terms, far more than the 42-term additive surrogate model manually fitted by the analyst, which may be one reason for their higher R². The core advantage of the surrogate model approach is that it does not require access to the model's internal parameters, making it suitable for scenarios where only a prediction interface is provided (such as commercial APIs or clinically deployed systems).
Massive Reports and Post-hoc Validation
The LLM also reported a large number of additional issues. Of 1,089 checkable reports, 60% failed the pre-specified checks targeting the model's average behavior. Post-hoc analysis showed that most of these were indeed real but tiny steps; another 15% of checkable reports did not exist in the model at all.
In addition, the LLM read out 601 unexpected relationships from the clean models. Of these, 11% still held in subsequently randomized patients (compared with 6% for random pairings; and 28% for the strongest candidates from a regression sweep). After checking on the training data, the proportion became 33% versus 30%.
Post-hoc Validation in this study refers to using independent programmatic checks or additional data to verify each claim in the LLM's audit reports after they are generated. Specifically, for the "abnormal average model behavior" reported by the LLM, the research team re-checked on the model itself using pre-specified check procedures; for the "unexpected relationships" read out by the LLM from clean models, they tested whether these still held on subsequently randomized patient data. This design reflects an important principle in the auditing field: any automatically generated finding must undergo independent verification before it can be accepted. The post-hoc validation rates (e.g., 11% of unexpected relationships holding in subsequent data) provide a quantitative basis for evaluating the signal-to-noise ratio of LLM reports, and also indicate that LLM outputs should be treated as "hypotheses to be verified" rather than "confirmed conclusions."
Conclusion: Capability and Limitations Coexist
Using query access alone, the LLM was able to faithfully describe black-box models and find almost all implanted defects—a dedicated script also achieved this. But the key point is that the issues reported by the LLM must be checked on the model, and the new knowledge it discovers must be validated on data. This means the LLM is a powerful auditing aid, but not a fully reliable automatic auditor.
The study also suggests that the LLM produces a huge number of reports, mixed with real but tiny findings, non-existent problems, and new relationships awaiting verification. In practical applications, programmatic checks and data validation must be combined to effectively leverage the LLM's auditing capabilities.
Implications for Clinical AI Auditing
This blinded test provides verifiable evidence for the role of LLMs in model auditing. LLMs can serve as an efficient preliminary screening tool to help discover potential defects and unexpected behaviors in black-box models. However, the reliability of their outputs requires external validation. For high-stakes applications such as clinical prediction models, combining LLM audit reports with programmatic checks and data validation is the more prudent path.
In the future, as LLM capabilities improve and auditing methods mature, auditing via query access alone may become one of the standard steps in model evaluation—but only if rigorous validation processes and judging criteria are established.
One-line Summary
A blinded test shows LLMs can reproduce black-box models with high fidelity and detect 96% of implanted defects, but reports require external validation.
Paragraph Summary
A blinded study on LLMs auditing clinical prediction models implanted 24 defective models and mixed them with 8 clean models to test whether an LLM, using query access alone, can explain models, detect defects, and reveal new knowledge. Results showed that LLM-built surrogate models achieved an average R² of 0.976 and faithfully reproduced black-box model behavior; across 72 runs, 69 implanted defects were detected (96%), close to the 100% achieved by a dedicated script. However, the LLM also reported many additional issues: 60% of checkable reports failed pre-specified checks on average model behavior, some were real but tiny steps, 15% did not exist in the model at all; and of 601 unexpected relationships read from clean models, only 11% held in subsequent data. The conclusion is that LLMs are powerful auditing aids but not fully reliable automatic auditors, and their outputs must be combined with programmatic checks and data validation.
Related articles

Pure-Code Video Generation Tested: Which AI Model Actually Follows Instructions?
A Bilibili creator tested three AI models' pure-code video generation with unified prompts and three revisions each: Xiaonaomao has a high ceiling but lacks stability, GPT 6.2 Extra models well but only follows half the instructions, and OPAS 5.5 remains the benchmark.

GPT-6 Six-Tier Hands-On Test: Astra Ultra Dominates but Bills Double
GPT-6 six-tier test: Astra Ultra sweeps 3:0 in 3D tasks thanks to sub-agents and runs 14% faster, but hidden backend bills make its real cost 2.6x single-threaded.

GPT-6.2 Astra vs Fable 5.2: Huge Cost-Efficiency Gap Across 12 Real-World Tests
Bilibili creator tests GPT-6.2 Astra vs Fable 5.2 across 12 real tasks: Fable wins 7-5 but costs 7.2x more and takes nearly 5x longer. Token efficiency emerges as the key selection metric.