Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

AutoMix: Automatically Mixing Language Models

About

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.

Pranjal Aggarwal, Aman Madaan, Ankit Anand, Srividya Pranavi Potharaju, Swaroop Mishra, Pei Zhou, Aditya Gupta, Dheeraj Rajagopal, Karthik Kappaganthu, Yiming Yang, Shyam Upadhyay, Manaal Faruqui, Mausam• 2023

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningAGIEval MATH
Accuracy54.9
99
Mathematical ReasoningMinervaMath
Accuracy32.7
61
Visual Question AnsweringChest X-ray VQA (test)
Overall Accuracy24.27
43
Disease DiagnosisOpen-i
Accuracy51.14
41
Dialogue ReasoningMuTual--
38
Computer-Aided Diagnosis (CAD)VinDr
AUC0.3706
32
Mathematical ReasoningMATH lighteval
Accuracy59.4
26
Code and Software EngineeringCode/SE Macro-aggregate
Pass@146.9
22
Reading ComprehensionReading Macro-aggregate
Pass@142.5
22
Knowledge retrievalKnowledge Macro-aggregate
Pass@153.5
22
Showing 10 of 33 rows

Other info

Code

Follow for update