Smoothie: Label Free Language Model Routing

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Guha, Neel, Chen, Mayee F., Chow, Trevor, Khare, Ishan S., Ré, Christopher
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913599555895296
author Guha, Neel
Chen, Mayee F.
Chow, Trevor
Khare, Ishan S.
Ré, Christopher
author_facet Guha, Neel
Chen, Mayee F.
Chow, Trevor
Khare, Ishan S.
Ré, Christopher
contents Large language models (LLMs) are increasingly used in applications where LLM inputs may span many different tasks. Recent work has found that the choice of LLM is consequential, and different LLMs may be good for different input samples. Prior approaches have thus explored how engineers might select an LLM to use for each sample (i.e. routing). While existing routing methods mostly require training auxiliary models on human-annotated data, our work explores whether it is possible to perform unsupervised routing. We propose Smoothie, a weak supervision-inspired routing approach that requires no labeled data. Given a set of outputs from different LLMs, Smoothie constructs a latent variable graphical model over embedding representations of observable LLM outputs and unknown "true" outputs. Using this graphical model, we estimate sample-dependent quality scores for each LLM, and route each sample to the LLM with the highest corresponding score. We find that Smoothie's LLM quality-scores correlate with ground-truth model quality (correctly identifying the optimal model on 9/14 tasks), and that Smoothie outperforms baselines for routing by up to 10 points accuracy.
format Preprint
id arxiv_https___arxiv_org_abs_2412_04692
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Smoothie: Label Free Language Model Routing
Guha, Neel
Chen, Mayee F.
Chow, Trevor
Khare, Ishan S.
Ré, Christopher
Artificial Intelligence
Machine Learning
Large language models (LLMs) are increasingly used in applications where LLM inputs may span many different tasks. Recent work has found that the choice of LLM is consequential, and different LLMs may be good for different input samples. Prior approaches have thus explored how engineers might select an LLM to use for each sample (i.e. routing). While existing routing methods mostly require training auxiliary models on human-annotated data, our work explores whether it is possible to perform unsupervised routing. We propose Smoothie, a weak supervision-inspired routing approach that requires no labeled data. Given a set of outputs from different LLMs, Smoothie constructs a latent variable graphical model over embedding representations of observable LLM outputs and unknown "true" outputs. Using this graphical model, we estimate sample-dependent quality scores for each LLM, and route each sample to the LLM with the highest corresponding score. We find that Smoothie's LLM quality-scores correlate with ground-truth model quality (correctly identifying the optimal model on 9/14 tasks), and that Smoothie outperforms baselines for routing by up to 10 points accuracy.
title Smoothie: Label Free Language Model Routing
topic Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2412.04692