Abstract
Large Language Models (LLMs), particularly smaller variants, still struggle with complex reasoning tasks. While inference-time prompting can guide reasoning, existing methods often rely on sequential queries. Ensemble approaches offer a promising path to performance gains, especially given recent batch inference speed-ups. This work introduces DIPPER, a novel, training-free framework that transforms a single LLM into an effective inference-time ensemble. By feeding the model an optimized and diverse set of prompts in parallel, DIPPER elicits varied reasoning paths, leading to performance gains. We empirically demonstrate significant improvements on reasoning benchmarks, such as MATH, where a DIPPER ensemble of three Qwen2-MATH-1.5B instances (via parallel prompting of a single model) outperforms a larger 7B model.
Introduction
Large Language Models, especially "small" variants under 7B parameters, often struggle with multi-step reasoning. While techniques like Chain-of-Thought (CoT) improve performance, they typically require sequential queries, increasing latency. Traditional ensembles using multiple models are memory-intensive, requiring several large models to be loaded simultaneously. Conversely, self-consistency methods that sample the same prompt multiple times often lack the diversity needed to overcome suboptimal initial prompts.
DIPPER (Diversity in Prompts for Producing Ensembles in Reasoning) addresses these challenges by creating an ensemble from a single model using a parallel batch of diverse queries. This approach leverages inference-time compute efficiency to achieve performance gains without the memory overhead of multi-model ensembles.
Methodology
DIPPER utilizes a three-stage pipeline to maximize inference-time efficiency:
- Prompt Generation: A powerful "teacher" model (e.g., GPT-4o) generates a pool of 200 candidate system prompts. These prompts represent diverse personas and strategies, such as "Answer as a scientist" or "Use mathematical logic."
- Prompt Selection via FASV: To avoid "groupthink," DIPPER uses a novel metric called Fidelity-Adjusted Semantic Volume (FASV). This metric balances prompt performance (Fidelity) with semantic diversity (Diversity) using sentence embeddings. By adjusting a hyperparameter $\alpha$, the system selects a set of prompts that are both accurate and provide varied perspectives.
- Response Aggregation: The selected prompts are processed by the base LLM in a single parallel batch. Results are aggregated using Majority Voting or a Best-of-N approach with a reward model.
Experimental Results
The framework was evaluated on rigorous benchmarks including MATH, GSM8K, MMLU-STEM, and BigBench.
Performance Gains and Scaling
A key finding is that DIPPER allows smaller models to "punch above their weight." On the MATH benchmark, an ensemble of three Qwen2-MATH-1.5B instances using DIPPER outperformed a single Qwen2-MATH-7B model. This demonstrates that diverse parallel prompting can be more effective than simply increasing model size.
Diversity vs. Fidelity
The research highlights a critical balance in diversity. If diversity is ignored (low $\alpha$), the ensemble becomes redundant. If diversity is prioritized at the expense of fidelity, the ensemble includes creative but incorrect reasoning paths. The FASV metric effectively finds the "sweet spot" between these extremes, as shown by the peak in correlation at intermediate $\alpha$ values.
Efficiency
Due to modern LLM serving optimizations like prompt caching and batching, running multiple diverse prompts in parallel is significantly faster and more cost-effective than running multiple different models or sequential reasoning steps. DIPPER consistently outperformed standard self-consistency (sampling the same prompt multiple times), providing nearly a 20% relative accuracy gain over a single-model baseline on the MATH dataset.
Conclusion
DIPPER demonstrates that system prompts are a powerful lever for eliciting diverse reasoning pathways from a single set of model weights. By mathematically balancing diversity and fidelity, DIPPER provides a training-free method to significantly boost the performance of small LLMs on complex tasks. Future work will explore heterogeneous ensembles and self-generation of prompts by smaller models to further reduce reliance on larger teacher models.
Summary updated