AutoMix: Automatically Mixing Language Models
Authors:
- Ankit AnandAAAnkit Anand
- Srividya Pranavi PotharajuSPSrividya Pranavi Potharaju
- Swaroop MishraSMSwaroop Mishra
- Pei ZhouPZPei Zhou
- Aditya GuptaAGAditya Gupta
- Dheeraj RajagopalDRDheeraj Rajagopal
- Karthik KappaganthuKKKarthik Kappaganthu
- MausamMAMausam
Preprint
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 is a few-shot self-verification mechanism, which estimates the reliability of its own outputs without requiring training. Given that verifications can be noisy, we employ a meta-verifier in AutoMix to refine the accuracy of these assessments. Our experiments using LLAMA2-13B and GPT-4, on five context-grounded reasoning datasets demonstrate that AutoMix surpasses established baselines, improving the incremental benefit per cost by up to 86%. Our code and data are available at https://github.com/automix-llm/automix.Keywords
All Related Versions
This publication has 16 references indexed in Scilit:
- Automatically Correcting Large Language Models: Surveying the Landscape of Diverse Automated Correction StrategiesTransactions of the Association for Computational Linguistics, 2024
- Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language ProcessingACM Computing Surveys, 2023
- Fact-Checking Complex Claims with Program-Guided Reasoning2023
- Algorithmic Learning in a Random World2022
- Reframing Instructional Prompts to GPTk’s Language2022
- A survey on Recognizing Textual Entailment as an NLP Evaluation2020
- MuTual: A Dataset for Multi-Turn Dialogue Reasoning2020
- CoQA: A Conversational Question Answering ChallengeTransactions of the Association for Computational Linguistics, 2019
- The NarrativeQA Reading Comprehension ChallengeTransactions of the Association for Computational Linguistics, 2018
- State of the Art—A Survey of Partially Observable Markov Decision Processes: Theory, Models, and AlgorithmsManagement Science, 1982