DAK-UCB: 为LLMs和生成模型的多样性感知提示路由
DAK-UCB: Diversity-Aware Prompt Routing for LLMs and Generative Models
AI总结:
本文提出DAK-UCB方法,结合保真度与多样性指标,用于在线选择生成模型,以提升生成结果的多样性同时保持保真度。
摘要:
生成AI和LLM服务的扩展凸显了需要适应机制来选择合适的可用模型响应用户提示的迫切需求。最近的研究提出了离线和在线学习方法,基于最大化基于提示的保真度评估分数(如文本到图像生成中的CLIP-Score)来识别最优生成AI模型。然而,此类基于保真的选择方法忽略了生成输出的多样性,因此可能无法解决生成响应中的潜在多样性不足问题。本文引入了多样性感知的核化上置信界(DAK-UCB)方法,作为上下文老虎机算法,用于具有多样性考虑的生成模型在线选择。所提出的DAK-UCB方法将保真度和多样性相关指标纳入选择过程。我们基于提示感知的多样性评分函数设计了该框架,该函数分解为基于前一轮生成的两样本期望。具体而言,我们通过联合核距离和核熵度量展示了该框架的应用。实验结果表明,DAK-UCB在促进多样性感知的模型选择的同时,能够保持生成的保真度。代码可在https://github.com/Donya-Jafari/DAK-UCB获取。
英文摘要:
The expansion of generative AI and LLM services underscores the growing need for adaptive mechanisms to select an appropriate available model to respond to a user's prompts. Recent works have proposed offline and online learning formulations to identify the optimal generative AI model for an input prompt, based solely on maximizing prompt-based fidelity evaluation scores, e.g., CLIP-Score in text-to-image generation. However, such fidelity-based selection methods overlook the diversity of generated outputs, and hence, they can fail to address potential diversity shortcomings in the generated responses. In this paper, we introduce the Diversity-Aware Kernelized Upper Confidence Bound (DAK-UCB) method as a contextual bandit algorithm for the online selection of generative models with diversity considerations. The proposed DAK-UCB method incorporates both fidelity and diversity-related metrics into the selection process. We design this framework based on prompt-aware diversity score functions that decompose to a two-sample-based expectation over prompt-output pairs in the previous generation rounds. Specifically, we illustrate the application of our framework using joint kernel distance and kernel entropy measures. Our experimental results demonstrate the effectiveness of DAK-UCB in promoting diversity-aware model selection while maintaining fidelity in the generations for a sequence of prompts. The code is available at https://github.com/Donya-Jafari/DAK-UCB.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。