Paper: 2603.23140 Authors: Donya Jafari, Farzan Farnia Categories: cs.LG Venue: ICLR 2026

Abstract

Existing model selection and prompt routing methods for LLMs and generative models focus primarily on fidelity scores, overlooking the diversity of generated outputs. This paper introduces DAK-UCB (Diversity-Aware Kernelized Upper Confidence Bound), a contextual bandit algorithm for online model selection that jointly considers both fidelity and diversity. The method incorporates prompt-aware diversity score functions that decompose into two-sample expectations over prompt-output pairs, applying joint kernel distance and kernel entropy measures. By extending the kernelized UCB framework with a diversity-oriented term, DAK-UCB addresses the critical fairness concern that diversity-unaware selection can lead to restricted representation of sensitive attributes such as gender and ethnicity in generated content. Code is available at github.com/Donya-Jafari/DAK-UCB.

Key Contributions

  • Diversity-aware model selection: Formulates the prompt routing problem as a contextual bandit that optimizes for both output fidelity and diversity, moving beyond fidelity-only approaches
  • Prompt-aware diversity scores: Introduces diversity score functions that decompose into two-sample expectations over prompt-output pairs, enabling tractable diversity estimation
  • Kernel-based diversity measures: Applies joint kernel distance and kernel entropy as principled diversity metrics within the selection framework
  • Fairness-motivated design: Demonstrates that diversity-unaware routing can systematically underrepresent sensitive attributes (gender, ethnicity), framing diversity as a fairness requirement
  • Extended kernelized UCB: Augments the standard kernelized UCB bandit framework with a diversity-oriented exploration term

Methodology

DAK-UCB extends the kernelized UCB framework for contextual bandits to incorporate diversity considerations:

  1. Problem formulation: Online model selection is cast as a contextual bandit problem where the context is the input prompt and the arms are available models/configurations
  2. Fidelity-diversity objective: The reward function combines a fidelity score (measuring output quality) with a diversity score (measuring variety across generated outputs)
  3. Prompt-aware diversity decomposition: Diversity scores are decomposed into two-sample expectations over prompt-output pairs, making them amenable to kernel-based estimation
  4. Joint kernel measures: Two kernel-based diversity metrics are employed — kernel distance (measuring distributional spread) and kernel entropy (measuring information-theoretic diversity)
  5. UCB exploration: The upper confidence bound naturally balances exploitation (selecting high-fidelity models) with exploration (trying models that may improve diversity)

Results

  • Diversity-unaware model selection methods can lead to restricted representation of sensitive attributes in generated outputs, confirming the fairness motivation
  • DAK-UCB effectively balances fidelity and diversity in online model selection, outperforming fidelity-only baselines on combined metrics
  • The kernel-based diversity measures provide a principled and computationally tractable way to quantify output variety
  • The contextual bandit formulation enables adaptive routing that improves over time as more prompt-output observations are collected

Takeaways

  • Fidelity alone is insufficient for model selection in generative systems — diversity of outputs matters for both quality and fairness
  • The fairness dimension is underappreciated: routing that maximizes only quality scores can systematically produce outputs with narrow demographic representation
  • Kernel methods provide a natural framework for measuring diversity in high-dimensional output spaces without requiring explicit attribute labels
  • The contextual bandit formulation is well-suited for online prompt routing, as it handles the exploration-exploitation tradeoff inherent in learning which models produce diverse, high-quality outputs
  • DAK-UCB is a modular extension to existing UCB-based routing — the diversity term can be integrated without redesigning the entire selection pipeline

论文: 2603.23140 作者: Donya Jafari, Farzan Farnia 分类: cs.LG 会议: ICLR 2026

摘要

现有的大语言模型和生成模型的模型选择与提示路由方法主要关注保真度分数,忽视了生成输出的多样性。本文提出DAK-UCB(多样性感知核化置信上界),一种用于在线模型选择的上下文赌博机算法,同时考虑保真度和多样性。该方法引入了提示感知的多样性评分函数,将其分解为提示-输出对上的双样本期望,并应用联合核距离和核熵度量。通过在核化UCB框架中扩展多样性导向项,DAK-UCB解决了一个关键的公平性问题:不考虑多样性的选择可能导致生成内容中性别、种族等敏感属性的表示受限。代码已开源于github.com/Donya-Jafari/DAK-UCB

主要贡献

  • 多样性感知模型选择:将提示路由问题建模为同时优化输出保真度和多样性的上下文赌博机,超越仅关注保真度的方法
  • 提示感知多样性评分:引入可分解为提示-输出对上双样本期望的多样性评分函数,实现可计算的多样性估计
  • 基于核的多样性度量:在选择框架中应用联合核距离和核熵作为有原则的多样性指标
  • 公平性驱动设计:证明不考虑多样性的路由会系统性地低估敏感属性(性别、种族)的表示,将多样性定位为公平性要求
  • 扩展核化UCB:在标准核化UCB赌博机框架中增加多样性导向的探索项

方法论

DAK-UCB扩展了上下文赌博机的核化UCB框架以纳入多样性考量:

  1. 问题建模:将在线模型选择建模为上下文赌博机问题,其中上下文是输入提示,臂是可用的模型/配置
  2. 保真度-多样性目标:奖励函数结合了保真度分数(衡量输出质量)和多样性分数(衡量生成输出的多样程度)
  3. 提示感知多样性分解:将多样性分数分解为提示-输出对上的双样本期望,使其适用于基于核的估计
  4. 联合核度量:采用两种基于核的多样性指标——核距离(衡量分布扩展程度)和核熵(衡量信息论多样性)
  5. UCB探索:置信上界自然地平衡了利用(选择高保真度模型)和探索(尝试可能提升多样性的模型)

实验结果

  • 不考虑多样性的模型选择方法会导致生成输出中敏感属性表示受限,验证了公平性动机
  • DAK-UCB在在线模型选择中有效平衡了保真度和多样性,在综合指标上优于仅关注保真度的基线方法
  • 基于核的多样性度量提供了一种有原则且计算可行的方式来量化输出多样性
  • 上下文赌博机建模支持自适应路由,随着收集更多提示-输出观测而持续改进

要点总结

  • 仅靠保真度不足以进行生成系统的模型选择——输出多样性对质量和公平性都至关重要
  • 公平性维度被低估:仅最大化质量分数的路由可能系统性地产生人口统计表示狭窄的输出
  • 核方法为衡量高维输出空间中的多样性提供了自然框架,无需显式的属性标签
  • 上下文赌博机建模非常适合在线提示路由,因为它处理了学习哪些模型产生多样高质量输出时固有的探索-利用权衡
  • DAK-UCB是对现有基于UCB路由的模块化扩展——多样性项可以在不重新设计整个选择流程的情况下集成