TL;DR
Current LLM evaluations often focus on the quality of a single "best" response, but many real-world tasks require a diverse set of high-quality options. This paper introduces diversity coverage, a metric for quantifying how well a model explores the valid answer space, and demonstrates that no single LLM dominates this metric across all queries. By training a specialized router to select the best model for a given prompt, the authors significantly outperform the best single-model baselines.
What Problem Does This Paper Address?
When you ask an LLM for "a funny joke" or "potential titles for a research paper," there isn't one correct answer—there is a vast space of valid, high-quality responses. Ideally, a model should be able to provide a comprehensive set of these options to satisfy different user preferences.
However, existing research has two major gaps:
- Measurement: Standard metrics struggle to quantify the "coverage" of an open-ended answer space while simultaneously accounting for the quality of those answers.
- Model Heterogeneity: While we know LLMs behave differently, we haven't fully exploited the idea that one model might be better at brainstorming creative titles, while another excels at generating diverse coding solutions.
The authors address these by formalizing the task of "sample diversity" and investigating whether a multi-model system can outperform any individual "state-of-the-art" model.
Methods
The researchers propose a two-pronged approach: a new evaluation framework and a routing system.
- Diversity Coverage (div-cov): This metric calculates the sum of quality scores for all unique answers in a generated set, normalized by the best possible score achievable for a set of that size. To identify "unique" answers, they use a semantic equivalence classifier to group responses that mean the same thing, ensuring models aren't rewarded for just paraphrasing themselves.
- The Diversity Router: The authors trained a classifier (using MLP and BERT architectures) to predict which LLM from a pool of 18 (including Llama, Qwen, OLMo, and Gemma families) would yield the highest diversity coverage for a specific input query. They experimented with two types of query encodings:
- Model-agnostic: Using a general-purpose retriever to encode the prompt.
- Model-specific: Using the internal hidden states of the candidate models themselves to capture how a specific model "perceives" the query.
Datasets
The study utilizes four primary datasets to test different aspects of diversity:
- Simple Questions (SQ): Queries with a fixed, finite set of ground-truth answers (e.g., "List countries in North America").
- NB-Curated: A collection of open-ended questions designed to have multiple valid answers.
- NB-WildChat: Real-world user prompts extracted from chat logs, representing "in-domain" data for the router.
- Infinity-Chat: A large-scale dataset used specifically for scaling experiments to see if more training data improves the router.
Key Insights and Ideas
- No "Diversity King": A pilot study of 18 models revealed that no single model is the best at diversity for all prompts. Even when comparing frontier models like GPT-4o and Claude 3.5 Sonnet, the "best" model varies significantly depending on the query.
- The Oracle Gap: There is a massive performance gap (nearly 10% on NB-WildChat) between the best overall model and an "Oracle" that perfectly picks the best model for every individual query. This confirms that query-level model selection is a high-value strategy.
- The "Generate-All" Trade-off: The authors found that prompting a model to "list all possible answers" in one go (sequential prompting) produces more unique answers than sampling single answers in parallel. However, there's a catch: as the list gets longer, the quality of the answers tends to degrade.
- Hidden States Matter: Routers using model-specific hidden states generally outperformed those using model-agnostic retrievers, suggesting that a model's internal representation of a prompt is a strong signal for its eventual output diversity.
Key Results
The routing approach proved highly effective, particularly on open-ended datasets where diversity is most challenging.
As shown in the table above, on the NB-WildChat dataset, the trained router achieved a diversity coverage of 26.3%, a significant jump over the best single-model baseline of 23.8%. When the router was allowed to pick the top two models and ensemble their outputs, performance climbed further to 26.7%. The researchers also found that router performance scales predictably: increasing the training data from 500 to 2,000 examples led to steady improvements in coverage scores.
Limitations and Future Work
- Computational Latency: While the router itself is lightweight, routing often selects larger, more expensive models. The authors note that their current sequential sampling method is 2-3x slower than just using the smallest "best" baseline model.
- Fixed Budgets: The study assumes a fixed generation budget (e.g., 50 answers). Future work could explore "efficiency-aware routing" that dynamically adjusts the number of samples based on the query's complexity.
- Ensemble Proportions: Currently, when two models are selected, they contribute equally to the answer set. Optimizing the ratio of contributions from different models (e.g., 40 samples from Model A, 10 from Model B) remains an open area for optimization.
Summary updated