TLDR: LENS (Learning ENsemble confidence from Neural States) is a novel method that significantly enhances the performance of multi-LLM systems. It achieves this by learning to estimate each Large Language Model’s confidence in its predictions through the analysis of its internal neural representations. This allows for more intelligent weighting of model outputs, leading to superior accuracy and robustness in tasks like question answering, without requiring modifications to the base LLMs.
Large Language Models (LLMs) have become incredibly powerful tools, excelling at everything from writing text to answering complex questions. However, even the most advanced LLMs have their limitations, and a single model might not always be the best choice for every task. Different LLMs have unique strengths based on their training data and architecture, meaning they can perform with varying accuracy and reliability depending on the context.
To overcome these individual limitations and enhance overall performance, researchers often use ‘ensemble methods,’ which combine the predictions from multiple LLMs. Traditionally, these methods rely on simple techniques like majority voting or averaging probabilities. The problem with these approaches is that they don’t account for how confident or reliable each model is in a given situation. An LLM might be excellent in one area but struggle in another, and simple voting doesn’t capture this nuance.
Introducing LENS: Learning Ensemble Confidence from Neural States
A new research paper introduces LENS (Learning ENsemble confidence from Neural States), a novel approach designed to make LLM ensembles much smarter. Instead of just looking at the final answer, LENS learns to estimate each model’s confidence by analyzing its ‘internal representations’ – essentially, the hidden thought processes within the neural network.
Here’s how it works: For each LLM in the ensemble, LENS trains a lightweight, simple confidence predictor. This predictor takes information from the LLM’s internal layers (called ‘hidden states’) and its normalized probabilities as input. By doing this, LENS can assign a more precise ‘confidence score’ to each model’s prediction, reflecting how reliable it is for that specific context. This allows the system to give more weight to predictions from models that are more confident and reliable in a particular task.
One of the key advantages of LENS is its efficiency. It doesn’t require any modifications or retraining of the individual LLMs, and it adds very little computational overhead. This makes it a practical and scalable solution for improving existing LLM systems.
Experimental Validation and Results
The researchers put LENS to the test on various question-answering tasks, including multiple-choice and boolean questions. They used an ensemble of five state-of-the-art LLMs: LLaMA-2-7B, Mistral-7B, BLOOM-7B1, GPT-J-6B, and Pythia-6.9B. These models were chosen for their diverse architectures and training objectives, providing a robust foundation for the ensemble.
LENS was evaluated against traditional ensemble methods like ‘Majority Vote’ and ‘Probability Max’ across six different datasets, including logical reasoning (CoinFlip, ProofWriter), binary question answering (BoolQ), pronoun resolution (PrOntoQA), commonsense inference (SWAG), and mathematics (MathQA).
The results were impressive: LENS consistently outperformed or matched the baseline methods across most datasets. Specifically, the ‘Max Confidence’ strategy employed by LENS achieved the best performance on 5 out of 6 datasets, demonstrating that learning model-specific confidence patterns significantly improves ensemble decisions.
Also Read:
- Enhancing LLM Reliability: Learning from a Model’s Own Confidence
- Unlocking LLM Performance: The Power of Diverse Question Interpretations
Future Directions and Impact
While LENS shows promising results, the authors acknowledge some limitations, such as its current restriction to decoder-only transformer architectures and the need for access to intermediate layer representations. However, the findings suggest that these internal representations, often discarded after a prediction is made, contain valuable signals that can be effectively used to gauge model confidence and enhance ensemble learning.
This work contributes significantly to the field of model ensemble learning, offering a new methodology for incorporating confidence estimates into combined predictions. It opens doors for future research into areas like cross-task transferability of confidence patterns, integration into multi-agent LLM systems, and even leveraging these patterns for better model interpretability. For more technical details, you can read the full research paper here.


