arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.06274cs.LG
收藏

IPR:具有用户可控质量-成本权衡的智能提示路由

IPR: Intelligent Prompt Routing with User-Controlled Quality-Cost Trade-offs

AWS AI(AWS人工智能)
Aosong Feng, Balasubramaniam Srinivasan, Yun Zhou, Zhichao Xu, Kang Zhou, Sheng Guan, Yueyan Chen, Xian Wu, Ninad Kulkarni, Yi Zhang, Zhengyuan Shen, Dmitriy Be… 展开作者

Aosong Feng, Balasubramaniam Srinivasan, Yun Zhou, Zhichao Xu, Kang Zhou, Sheng Guan, Yueyan Chen, Xian Wu, Ninad Kulkarni, Yi Zhang, Zhengyuan Shen, Dmitriy Bespalov, Soumya Smruti Mishra, Yifei Teng, Darren Yow-Bang Wang, Haibo Ding, Lin Lee Cheong

AI总结:

IPR是一个智能提示路由框架,通过质量估计器和用户可控容差参数动态选择最优LLM,在保持质量的同时实现43.9%的成本降低,并支持快速集成新模型。

摘要:

在大型商业系统中,将传入查询路由到最具成本效益的大语言模型(LLM)同时保持响应质量,是优化性能-成本权衡的一个基本挑战。我们提出了IPR——一个质量受限的智能提示路由(Intelligent Prompt Routing)框架,它基于预测的响应质量和用户指定的容差水平动态选择最优模型。IPR引入了三项关键创新:(1)一个模块化架构,配备在150万条带有校准质量分数标注的提示上训练的轻量级质量估计器,能够跨模型系列实现细粒度质量预测;(2)一个用户控制的路由机制,带有容差参数τ∈[0,1],可对质量-成本权衡提供显式控制;(3)一种可扩展设计,使用冻结编码器搭配模型特定适配器,将新模型集成时间从数天缩短至数小时。为严格训练和评估IPR,我们构建了工业级数据集IPRBench(IPRBench将在获得法律批准后发布),这是一个包含150万个示例、涵盖11个LLM候选模型并带有响应质量标注的综合基准。部署在主流云平台上后,IPR实现了43.9%的成本降低,同时与Claude系列中最强模型保持质量持平,并以低于150毫秒的延迟处理请求。已部署的系统及其他产品详情可在https://aws.amazon.com/bedrock/intelligent-prompt-routing/公开获取。

英文摘要:

Routing incoming queries to the most cost-effective LLM while maintaining response quality poses a fundamental challenge in optimizing performance-cost trade-offs for large-scale commercial systems. We present IPR\, -- \,a quality-constrained \textbf{I}ntelligent \textbf{P}rompt \textbf{R}outing framework that dynamically selects optimal models based on predicted response quality and user-specified tolerance levels. IPR introduces three key innovations: (1) a modular architecture with lightweight quality estimators trained on 1.5M prompts annotated with calibrated quality scores, enabling fine-grained quality prediction across model families; (2) a user-controlled routing mechanism with tolerance parameter $τ\in [0,1]$ that provides explicit control over quality-cost trade-offs; and (3) an extensible design using frozen encoders with model-specific adapters, reducing new model integration from days to hours. To rigorously train and evaluate IPR, we curate an industrial-level dataset IPRBench\footnote{IPRBench will be released upon legal approval.}, a comprehensive benchmark containing 1.5 million examples with response quality annotations across 11 LLM candidates. Deployed on a major cloud platform, IPR achieves 43.9\% cost reduction while maintaining quality parity with the strongest model in the Claude family and processes requests with sub-150ms latency. The deployed system and additional product details are publicly available at https://aws.amazon.com/bedrock/intelligent-prompt-routing/

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑