Abstract
While recent large language models (LLMs) improve on various question answering (QA) datasets, it remains difficult for a single model to generalize across question types that require distinct reasoning abilities. We provide empirical evidence that state-of-the-art LLMs suffer from poor generalizability on reasoning types beyond those seen in the prompt. To remedy this, we propose a Mixture-of-Reasoning-Experts (MoRE) framework that ensembles diverse specialized language models. We specialize the backbone language model with prompts optimized for different reasoning categories, including factual, multihop, mathematical, and commonsense reasoning. Our key insight is to leverage agreement among the specialized experts to select the best answer for each question, or to abstain from answering. This gives MoRE higher accuracy than any single specialized model on a collection of 12 QA datasets from four reasoning types. Beyond generalizability, the interpretable design of MoRE improves selective question answering results compared to baselines without incorporating inter-expert agreement. This framework is also more interpretable and useful to human consumers of QA outputs. Our human study confirms that presenting expert predictions and the answer selection process helps annotators more accurately calibrate when to trust the system's output. We release all code and data to facilitate future work.
Introduction
State-of-the-art Large Language Models (LLMs) like GPT-3 or Codex are impressive generalists, yet they often struggle to generalize across different types of reasoning. A model prompted to excel at multi-step math problems often performs poorly on factual recall or commonsense logic, and vice versa. Furthermore, LLMs are notorious for "hallucinating" or providing confident-sounding wrong answers. In high-stakes environments, it is often better for a model to abstain (say "I don't know") than to guess incorrectly. Existing methods for deciding when to abstain usually rely on the model's internal probability scores, which are often poorly calibrated. This research introduces the Mixture-of-Reasoning-Experts (MoRE) framework to build a system that is both a "master of all trades" and self-aware enough to remain silent when it's likely to be wrong.
Methodology: The MoRE Framework
The MoRE framework operates in two primary stages: specialization via prompting and ensembling via answer selection.
Specialization via Prompting
The system utilizes a backbone LLM (Codex) to create four specialized "experts" using distinct prompting strategies:
- Factual Expert: Employs retrieval-augmented prompting, pulling the top 10 Wikipedia passages to ground answers in fact.
- Multihop Expert: Uses Chain-of-Thought (CoT) prompting to decompose complex, multi-step questions.
- Math Expert: Utilizes CoT prompting specifically tailored for mathematical logic and symbolic manipulation.
- Commonsense Expert: Uses "generated knowledge" prompting to elicit implicit world knowledge from the model.
Ensembling and Selective Prediction
Instead of a simple heuristic, MoRE runs all four experts for every query. A Random Forest classifier (the Answer Selector) then scores candidate answers based on features like expert type, answer length, and inter-expert agreement. If the top-scoring answer falls below a learned confidence threshold, the system abstains from answering, enhancing reliability.
Results and Evaluation
The researchers evaluated MoRE on a diverse collection of 12 QA datasets categorized into four reasoning types: Factual (NQ, TriviaQA, SQuAD), Multihop (HotpotQA, BeerQA3+, MuSiQue), Math (GSM8K, SVAMP, MultiArith), and Commonsense (CSQA, CSQA2.0, QASC).
Key Findings
- The Specialization Trap: Specialization is a double-edged sword. While the Math Expert significantly improved GSM8K accuracy (from 19.5% to 61.8%), its performance on factual questions was markedly inferior to the Factual Expert.
- Superior Generalization: MoRE achieved a macro-average accuracy of 57.6% across all 12 datasets, outperforming the best single specialized expert (49.6%) and a "majority vote" baseline (43.6%).
- Better Abstention: In selective QA, the MoRE calibrator significantly outperformed the standard "MaxProb" baseline. At a 90% accuracy requirement, MoRE covered 34.3% of questions, compared to only 12.4% for the baseline.
- Human Interpretability: By showing users the "internal debate" among experts, humans become better at judging reliability. In a human study, annotators improved their decision accuracy from 57.0% to 67.5% and made decisions faster when presented with the expert breakdown.
Discussion and Future Work
While MoRE demonstrates significant gains in accuracy and reliability, it introduces higher computational costs, as running four experts is roughly four times more expensive than a single model query. Future work will explore the framework's performance with open-source LLMs and expand the range of reasoning types to include nuances like sarcasm or false presuppositions. Adding more heterogeneous experts, including non-Transformer models, could further refine the system's robustness.
Summary updated