TL;DR
This paper introduces an automated framework that leverages large language models (LLMs) to discover unsupervised uncertainty quantification (UQ) methods for hallucination detection. By representing UQ methods as Python programs and optimizing them via evolutionary search, the evolved methods outperform strong hand-crafted baselines by up to 6.7% in ROC-AUC. Furthermore, the study uncovers striking differences in how different frontier LLMs navigate open-ended algorithmic design spaces.
What Problem Does This Paper Address?
Detecting when a Large Language Model is hallucinating is critical for deploying reliable AI systems. A common strategy is Uncertainty Quantification (UQ)—calculating a score based on the model's internal states (like token probabilities) where higher uncertainty correlates with a higher likelihood of error.
However, existing UQ methods are almost entirely hand-crafted by human researchers using intuition and heuristics. This manual approach limits scalability and often results in brittle metrics that fail to generalize across different domains. The authors address this gap by automating the design of unsupervised UQ methods, treating the discovery process as an open-ended program synthesis problem driven by evolutionary optimization.
Methods
The authors employ the EvoTune framework to establish an LLM-powered evolutionary search loop:
- Initialization: The candidate pool is initialized with a standard baseline method (Sequence Probability).
- Generation: An evolution-driving LLM (such as Gpt-oss-120B or members of the Claude family) acts as the mutation operator, generating new UQ methods written as Python programs.
- Evaluation: Each program is executed on a training dataset to compute its fitness (AUC-ROC). The inputs to these programs are precomputed internal states (logits, token log-probabilities, etc.) from a target model (Llama-3.1-8B-Instruct).
- Selection & Prompting: High-performing candidates are selected to populate the prompt context for the next round, guiding the LLM toward better-performing code structures over 500 rounds.
Datasets
The evolved methods were evaluated across two primary tasks:
- Atomic Claim Verification: Comprised of 9 distinct datasets (including PopQA, AVeriTeC, X-Fact, and WildHallucinations) containing short claims. The training/evolutionary feedback was strictly limited to the PopQA training split, leaving the other 8 datasets as pure out-of-distribution (OOD) tests.
- Selective Prediction: Comprised of 8 datasets (such as CoQA, MMLU, GSM8K, and SAMSum) spanning math reasoning, translation, and summarization to evaluate how well the short-claim UQ methods transfer to long-form generation tasks.
Key Insights and Ideas
- LLM "Search Personalities": When prompted with a soft constraint to "use up to 3 features," Gpt-oss-120B strictly adhered to the rule, creating simple, interpretable formulas based on token positions. In contrast, Claude models systematically ignored the constraint, engineering highly complex linear estimators utilizing 10 to 30 features.
- Overparameterization Without Overfitting: Classical learning theory suggests that Claude’s high feature count should lead to overfitting. Surprisingly, Claude's complex programs generalized better to out-of-distribution datasets than simpler models, indicating that the LLM's prior knowledge acts as an effective implicit regularizer during program synthesis.
- The Complexity Ceiling: More advanced models are not universally better at open-ended optimization. Only Claude Sonnet 4.5 and Opus 4.5 successfully leveraged increased code complexity to boost performance. The newer Claude Opus 4.6 actually showed a performance regression and a flat complexity-to-performance profile, hinting at a potential drop in output diversity.
Key Results
- Baseline Defeat: Both Gpt-oss-120B and Claude-evolved methods consistently outperformed strong hand-engineered baselines like Perplexity and Sequence Probability.
- Claim Verification Gains: Evolved methods achieved up to a 6.7% relative improvement in average ROC-AUC across the 9 claim verification datasets, demonstrating robust out-of-distribution generalization from a single training set.
- Cross-Task Adaptability: While direct zero-shot transfer from short claims to long-form selective prediction was limited, running the evolutionary loop directly in-domain yielded methods that matched or exceeded state-of-the-art hand-crafted methods (like RAUQ) without requiring expensive attention maps.
Limitations and Future Work
- Single-Dataset Feedback: The evolutionary search relied entirely on the PopQA dataset for fitness scoring, meaning some discovered heuristics might still be subtly coupled to its specific properties.
- Constrained Search Space: The framework was restricted to lightweight, unsupervised Python programs using precomputed statistics, leaving supervised or deep-neural detector architectures unexplored.
- Generator Dependency: Internal signals were extracted exclusively from Llama-3.1-8B-Instruct; how well these evolved estimators transfer to other model families or decoding configurations remains an open question.
Summary updated