Saved in:
Bibliographic Details
Main Authors: Chiang, Chao-Kai, Ishida, Takashi, Sugiyama, Masashi
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2510.00841
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908571849981952
author Chiang, Chao-Kai
Ishida, Takashi
Sugiyama, Masashi
author_facet Chiang, Chao-Kai
Ishida, Takashi
Sugiyama, Masashi
contents We study LLM routing, the problem of selecting the best model for each query while balancing user satisfaction, model expertise, and inference cost. We formulate routing as contextual dueling bandits, learning from pairwise preference feedback rather than absolute scores, thereby yielding label-efficient and dynamic adaptation. Building on this formulation, we introduce Category-Calibrated Fine-Tuning (CCFT), a representation-learning method that derives model embeddings from offline data using contrastive fine-tuning with categorical weighting. These embeddings enable the practical instantiation of Feel-Good Thompson Sampling for Contextual Dueling Bandits (FGTS.CDB), a theoretically grounded posterior-sampling algorithm. We propose four variants of the categorical weighting that explicitly integrate model quality and cost, and we empirically evaluate the proposed methods on the RouterBench and MixInstruct datasets. Across both benchmarks, our methods achieve lower cumulative regret and faster convergence, with better robustness and performance-cost balance than strong baselines built with a general-purpose OpenAI embedding model.
format Preprint
id arxiv_https___arxiv_org_abs_2510_00841
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LLM Routing with Dueling Feedback
Chiang, Chao-Kai
Ishida, Takashi
Sugiyama, Masashi
Machine Learning
We study LLM routing, the problem of selecting the best model for each query while balancing user satisfaction, model expertise, and inference cost. We formulate routing as contextual dueling bandits, learning from pairwise preference feedback rather than absolute scores, thereby yielding label-efficient and dynamic adaptation. Building on this formulation, we introduce Category-Calibrated Fine-Tuning (CCFT), a representation-learning method that derives model embeddings from offline data using contrastive fine-tuning with categorical weighting. These embeddings enable the practical instantiation of Feel-Good Thompson Sampling for Contextual Dueling Bandits (FGTS.CDB), a theoretically grounded posterior-sampling algorithm. We propose four variants of the categorical weighting that explicitly integrate model quality and cost, and we empirically evaluate the proposed methods on the RouterBench and MixInstruct datasets. Across both benchmarks, our methods achieve lower cumulative regret and faster convergence, with better robustness and performance-cost balance than strong baselines built with a general-purpose OpenAI embedding model.
title LLM Routing with Dueling Feedback
topic Machine Learning
url https://arxiv.org/abs/2510.00841