AutoMix: Automatically Mixing Language Models

Aman Madaan, Pranjal Aggarwal, Ankit Anand, Srividya Pranavi Potharaju, Swaroop Mishra +8 more
2/12/2026

No official code found. Best implementation: automix-llm/automix (119 stars, Apache-2.0, last commit 2024-12-12).

Abstract

Large language models (LLMs) are now available from cloud API providers in various sizes and configurations. While this diversity offers a broad spectrum of choices, effectively leveraging the options to optimize computational cost and performance remains challenging. In this work, we present Automix, an approach that strategically routes queries to larger LMs, based on the approximate correctness of outputs from a smaller LM. Central to Automix are two key technical contributions. First, it has a few-shot self-verification mechanism, which estimates the reliability of its own outputs without requiring extensive training. Second, given that self-verification can be noisy, it employs a POMDP based router that can effectively select an appropriately sized model, based on answer confidence. Experiments across five language models and five challenging datasets show that Automix consistently surpasses strong baselines, reducing computational cost by over 50% for comparable performance.

View on arXivView PDF

Code Implementations(1)

automix-llm/automixCommunity100%
Apache-2.0

Mixing Language Models with Self-Verification and Meta-Verification

11910Python, Jupyter NotebookOct 9, 20231 years agoApache-2.0
few-shot-learninglarge-language-modelsmodel-selectionpromptingquestion-answering

Similar Papers

Cite this paper

@article{madaan2026automix,
  title  = {AutoMix: Automatically Mixing Language Models},
  author = {Aman Madaan and Pranjal Aggarwal and Ankit Anand and Srividya Pranavi Potharaju and Swaroop Mishra and Pei Zhou and Aditya Gupta and Dheeraj Rajagopal and K. Kappaganthu and Yiming Yang and Shyam Upadhyay and Mausam and Manaal Faruqui},
  year   = {2026},
  eprint = {2310.12963},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.12963},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.12963.svg)](https://codeofpaper.com/paper/2310.12963)

Discussion