Abstract
Large Language Models (LLMs) have demonstrated impressive reasoning abilities, but their generated rationales often suffer from issues such as reasoning inconsistency and factual errors, undermining their reliability. Prior work has explored improving rationale quality via multi-reward fine-tuning or reinforcement learning (RL), where models are optimized for diverse objectives. While effective, these approaches train the model in a fixed manner and do not have any inference-time adaptability, nor can they generalize reasoning requirements for new test-time inputs. Another approach is to train specialized reasoning experts using reward signals and use them to improve generation at inference time. Existing methods in this paradigm are limited to using only a single expert and cannot improve upon multiple reasoning aspects. To address this, we propose MIXIE, a novel inference-time expert mixing framework that dynamically determines mixing proportions for each expert, enabling contextualized and flexible fusion. We demonstrate the effectiveness of MIXIE on improving chain-of-thought reasoning in LLMs by merging commonsense and entailment reasoning experts finetuned on reward-filtered data. Our approach outperforms existing baselines on three question-answering datasets: StrategyQA, CommonsenseQA, and ARC, highlighting its potential to enhance LLM reasoning with efficient, adaptable expert integration.
Introduction: The Reliability Gap in LLM Reasoning
While Large Language Models (LLMs) can generate impressive Chain-of-Thought (CoT) rationales, they are often "unreliable narrators." They frequently suffer from two primary issues: reasoning inconsistency, where the explanation does not logically lead to the final answer, and factual errors, where the explanation contains hallucinations or incorrect common sense.
The fundamental challenge is that reasoning is not a monolithic task. As shown in the figure below, a single sentence might require different types of expertise at different points. Predicting a logical conclusion like "bank" requires an understanding of consistency with the preceding context, whereas choosing a descriptor like "more" requires a grasp of plausibility and everyday common sense.
Current solutions, such as multi-reward fine-tuning or static model merging (e.g., TIES or DARE), are often too rigid. They either create a single model that cannot adapt to specific test-time inputs or use fixed proportions that fail to capture the token-by-token nuance required for complex reasoning.
The MIXIE Framework: Dynamic Token-Level Fusion
To address these limitations, we introduce MIXIE (Mixing Inference-time Experts). The core innovation of MIXIE is the use of a lightweight, learnable mixer that dynamically adjusts the influence of different experts for every single token generated.
Specialized Experts
MIXIE begins with a base LLM and creates specialized experts by fine-tuning on "reward-filtered" data. Two specific dimensions are targeted:
- Consistency: Ensuring the explanation entails the final prediction.
- Plausibility: Ensuring the statements align with general common sense.
Logit Mixer Module
The heart of the framework is the Logit Mixer Module, a tiny 2-layer Feed-Forward Network (FFN). During inference, this module processes the hidden state (encoding) of the previous token from the base model to predict a set of weights ($w$) for the base model and each expert.
As illustrated above, the final probability distribution for the next token is calculated as a weighted product of the experts' and base model's logits. This "Product of Experts" approach allows the model to lean on its "logic expert" for structural connectors and its "knowledge expert" for factual content within the same sentence. Crucially, the LLMs themselves remain frozen; only the tiny mixer module is trained, making the process highly efficient.
Experimental Evaluation
The researchers evaluated MIXIE on three prominent reasoning benchmarks: StrategyQA (multi-step strategy), CommonsenseQA (everyday logic), and ARC (science exams). To train the experts, they used a dataset of 40 CoT rationales per question sampled from ChatGPT, filtered using reward models to create high-quality training sets.
Key Results
MIXIE was tested using Llama-2-7B and Llama-3-8B-Instruct as base models, showing significant improvements:
- Llama-2-7B: MIXIE achieved an Average Relative Gain (ARG) of 19.87, significantly outperforming the best baseline, IPA (15.54). This included a 7.5% improvement in raw task accuracy over standard supervised fine-tuning.
- Llama-3-8B-Instruct: Even on this stronger base model, MIXIE provided a boost (ARG of 4.14), whereas traditional merging techniques often degraded performance.
- Ablation Success: Removing the learnable mixer and reverting to fixed weights resulted in a ~2.2% drop in ARG, confirming that dynamic, token-level mixing is the primary driver of MIXIE's success.
Conclusion and Future Work
MIXIE demonstrates that dynamic, inference-time expert integration is a powerful tool for enhancing LLM reasoning. By allowing experts to contribute selectively at the token level, the framework achieves a level of adaptability that static methods cannot match.
While currently limited by the "VRAM tax" of loading multiple models and the need for logit access, future work aims to explore sparse routing to activate only the most relevant experts at each step. This would reduce computational overhead and allow the framework to scale to a wider variety of specialized domains, such as mathematics, coding, and safety.
Summary updated