TL;DR
This paper investigates whether Large Language Models (LLMs) can act as quantitative "experts" for tasks like eliciting prior distributions for Bayesian models and imputing missing data. The authors developed a framework to prompt LLMs for this information and found that while LLMs show promise, they don't consistently outperform traditional methods, highlighting areas for improvement and potential biases.
What Problem Does This Paper Address?
In data analysis, especially in fields like life sciences and engineering, complete and reliable data is crucial. However, datasets are often incomplete, leading to issues like overfitting and reduced statistical validity. Traditional methods to address this include data imputation (filling in missing values) and using expert knowledge (e.g., through prior distributions in Bayesian models). While data-driven imputation methods exist, they can be limited by data size and representativeness. Expert knowledge is valuable but costly and difficult to obtain and formalize. This paper explores if LLMs, with their vast training data, can serve as accessible and scalable "experts" to provide quantitative information for these tasks, bridging the gap between human expertise and automated analysis.
Methods
The authors developed a framework to leverage LLMs for quantitative knowledge retrieval. This involved:
- Expert Prompt Initialization (EPI): A system prompt guides the LLM to roleplay as a specific domain expert, tailored to the dataset's context. This aims to elicit relevant, context-specific information rather than generic advice.
- Data Serialization: Tabular data is converted into a natural language format that LLMs can process, mimicking how a human expert might read a row of data.
- Task Specification (TS): A prompt template is used to ask the LLM for specific quantitative outputs (e.g., a prior distribution parameter or an imputed value) in a machine-readable format.
- Zero-Shot Approach: The LLMs are used without task-specific fine-tuning, relying on their pre-trained knowledge.
- Evaluation:
- Prior Elicitation: LLM-elicited priors were compared to human experts and simple statistical models using metrics like prior effective sample size (informativeness) and calibration.
- Missing Data Imputation: LLM performance was evaluated using both upstream metrics (e.g., RMSE for continuous data, macro-F₁ for categorical data) and downstream performance (how well a supervised learning model performed on imputed data).
Datasets
The study utilized a diverse set of real-world datasets:
- Prior Elicitation: Datasets were sampled from various scientific and technical disciplines, including healthcare, economics, technology, environmental science, marketing, and education. Specific examples included psychological and meteorological data.
- Missing Data Imputation: The OpenML-CC18 Curated Classification benchmark, comprising 72 classification datasets across domains like credit scoring, biology, medicine, and marketing, was used. Datasets ranged in size from 500 to tens of thousands of samples.
Key Insights and Ideas
- LLMs as "Experts" are Plausible but Imperfect: The core idea is that LLMs, having processed vast amounts of text, might encapsulate domain-specific knowledge that can be elicited quantitatively. This paper tests this hypothesis.
- Prompting is Key: The way LLMs are prompted significantly influences the quality and nature of the elicited information. Tailoring prompts to roleplay specific experts and specifying output formats are crucial.
- LLM Variability: Different LLMs (e.g., GPT-4, Llama, Mistral) exhibit varying levels of informativeness and confidence in their responses, mirroring human expert variability.
- Data Leakage Concerns: The study raises concerns about potential data leakage, where LLMs might have prior exposure to evaluation datasets, leading to inflated performance metrics. This highlights the need for carefully curated datasets in evaluations.
- Context Matters for Imputation: The effectiveness of LLM imputation is heavily dependent on the quality and detail of the provided metadata (feature descriptions, units). Ambiguous or insufficient descriptions hinder LLM performance.
Key Results
- Prior Elicitation:
- LLM priors showed variations similar to human experts, with no clear pattern of superiority across different task categories.
- GPT-4 was generally more informative than Llama-based models.
- LLM-elicited priors for Pearson correlations had little in common with human experts, often showing a "bathtub" distribution.
- For meteorological data, LLM priors showed a slight bias towards larger, more populous cities, but no strong trend for English-speaking countries.
- Missing Data Imputation:
- Upstream Performance: LLMs generally underperformed traditional methods like k-NN and Random Forest in terms of imputation quality (RMSE/macro-F₁).
- Downstream Performance: The gap in performance narrowed when using imputed data for downstream tasks, suggesting that LLM imputations, while not always accurate individually, can still improve model performance. However, k-NN and Random Forest still outperformed LLMs.
- Domain Differences: Performance varied significantly across different domains, with some LLMs showing better results in specific areas.
Limitations and Future Work
- Limitations:
- Data Leakage: The study acknowledges the risk of LLMs having seen evaluation data during training, which could inflate results.
- Metadata Dependency: LLM imputation performance is highly sensitive to the quality of dataset descriptions. Datasets with poor metadata lead to poor imputation.
- Variability: LLM performance is inconsistent across different models and tasks, and can be influenced by biases in their training data.
- Lack of Benchmarks: There is no established benchmark for evaluating LLM-elicited priors.
- Future Work:
- Fine-tuning: Fine-tuning LLMs on domain-specific tasks could improve their imputation accuracy.
- Hybrid Approaches: Combining LLMs with traditional imputation methods might yield better results.
- Richer Prompts: Developing more advanced prompt engineering techniques or multi-agent frameworks could enhance LLM capabilities.
- Curated Datasets: Using less accessible, curated datasets with richer descriptions is recommended for more accurate evaluation of LLM capabilities and to mitigate data leakage.
- Experimental Design: Extending the prior elicitation framework to Bayesian experimental design could illustrate the utility of LLM-generated priors.
Summary updated