AutoElicit: Using Large Language Models for Expert Prior Elicitation in Predictive Modelling

Alexander Capstick, Rahul G. Krishnan, Payam Barnaghi

TL;DR

AutoElicit is a new framework that uses Large Language Models (LLMs) to automate "prior elicitation"—the process of defining starting assumptions for statistical models. By treating LLMs as domain experts to generate prior distributions for interpretable linear models, the authors show they can achieve high predictive accuracy with significantly less labeled data, saving over six months of clinical labeling effort in a real-world study on dementia care.

What Problem Does This Paper Address?

In high-stakes fields like healthcare, we face a difficult trade-off. We want the vast knowledge of Large Language Models, but we need the transparency, privacy, and reliability of simple linear models. Furthermore, labeling medical data is notoriously slow and expensive.

Bayesian inference offers a solution: if we start with a good "prior" (an educated guess about model parameters), we need far fewer data points to reach a reliable conclusion. However, traditional "expert prior elicitation"—interviewing doctors or scientists to turn their intuition into math—is a grueling, time-consuming process. The authors ask: Can we skip the interviews and just ask an LLM to provide these priors instead?

Methods

The authors introduce AutoElicit, a pipeline that bridges the gap between LLM knowledge and robust statistical modeling. The process works as follows:

  1. Prompting for Priors: An LLM is given a task description (e.g., "Predicting UTI risk from activity data") and asked to provide its best guess for the mean and standard deviation of each feature's impact.
  2. Robustness through Rephrasing: To avoid being misled by a single "lucky" prompt, the system rephrases the task description 100 times. It then combines the LLM's responses into a Mixture of Gaussians prior.
  3. Expert Refinement: Human experts can supplement the process by adding simple natural language hints (e.g., "Frequent bathroom visits correlate with infection") to the prompt, which the LLM then translates into mathematical priors.
  4. Bayesian Modeling: These priors are plugged into standard linear or logistic regression models, which are then updated with real-world data using Monte Carlo methods.

The researchers also developed a clever way to "peek under the hood" of In-Context Learning (ICL). By forcing the LLM to make predictions on synthetic data and using Maximum Likelihood Estimation (MLE) to extract the implicit model the LLM was using, they could compare AutoElicit's explicit priors to the LLM's internal, hidden assumptions.

Datasets

The framework was evaluated across a diverse range of tasks:

  • Synthetic Data: A controlled regression task ($y = 2x_1 - x_2 + x_3$) to test if LLMs can follow explicit mathematical instructions.
  • Public Clinical Datasets: Heart Disease (diagnosis), Diabetes (progression), Hypothyroid (biomarkers), and Breast Cancer (mass diagnosis).
  • Private Healthcare Dataset: A real-world study on dementia care, using passive sensor data (PIR sensors and sleep mats) from 78 participants to predict Urinary Tract Infections (UTIs).

Key Insights and Ideas

  • LLMs are better "Consultants" than "Calculators": While LLMs often struggle with direct numerical prediction (In-Context Learning), they are remarkably good at providing the parameters for a model that a separate, reliable algorithm can then run.
  • ICL is not consistently Bayesian: By extracting the implicit priors used during in-context learning, the authors found that LLMs do not consistently follow Bayes' rule when updated with new data. AutoElicit solves this by using the LLM only for the initial guess and letting rigorous Bayesian math handle the updates.
  • Natural Language as a Bridge: AutoElicit allows experts to communicate with models in plain English. Adding a few sentences of domain knowledge to the prompt resulted in more accurate, physically meaningful priors.
  • Prompt Ensembling Matters: Using a mixture of 100 different task rephrasings makes the elicited priors more resilient to LLM hallucinations and better at capturing the model's true "belief."

Key Results

AutoElicit consistently outperformed both uninformative priors and direct In-Context Learning across all tasks.

  • Accelerating Clinical Research: In the UTI study, AutoElicit achieved peak accuracy using only ~15 labels. To reach that same level of performance using standard uninformative priors, researchers would have needed to collect data for an additional 220 days (over 7 months).
Figure 1. AutoElicit: Prior elicitation using a language model. The left-hand figure demonstrates the process, whilst the right-hand figure illustrates the benefits of using AutoElicit, achieving the same peak accuracy after n ≈15 labels, 220 days earlier in the study.
  • Superior Performance: As shown in Figure 2, AutoElicit priors (using models like GPT-4 or DeepSeek-R1) provided significantly higher accuracy and lower Mean Squared Error (MSE) than uninformative priors, especially when the number of training examples was very small ($n < 20$).
Figure 2. Test performance of the posterior distribution for varied training data sizes. The average and 95% confidence interval of the mean posterior accuracy or Mean Squared Error (MSE) of 10 splits of the dataset using AutoElicit priors and an uninformative prior (θ ∼N(θ|0, 1)). These are calculated on a test set of each dataset, with the green arrow pointing in the direction of metric improvement.
  • Reasoning Models Excel: The study found that newer "reasoning" models like DeepSeek-R1-32B-Q4 were particularly effective at eliciting high-quality priors for classification tasks.

Limitations and Future Work

  • Training Data Bias: LLM-elicited priors are a product of their training data. If the training data contains biases, the priors will too. The authors suggest using the Bayes Factor to detect when an elicited prior is performing poorly compared to a neutral one.
  • Linear Constraints: Currently, the framework is designed for linear models. While these are preferred in medicine for their interpretability, future work could extend this to non-linear models like Gaussian Processes or Neural Networks.
  • Cost vs. Privacy: While high-end models like GPT-4 provide the best priors, they incur API costs and privacy concerns. The authors demonstrate that open-source models (like Llama 3 or DeepSeek) can be used locally to mitigate these issues, though their performance varies by task.

Summary updated

BibTeX
@inproceedings{capstick2025autoelicit,
  author = {Alexander Capstick and Rahul G. Krishnan and Payam Barnaghi},
  title = {{AutoElicit: Using Large Language Models for Expert Prior Elicitation in Predictive Modelling}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=GekXB58ZS7},
}
Figure