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

RouteNLP: 带有符合性级联和蒸馏协同优化的闭环大语言模型路由

RouteNLP: Closed-Loop LLM Routing with Conformal Cascading and Distillation Co-Optimization

The University of Hong Kong(香港大学);Stellaris AI Limited(Stellaris AI有限公司)

Dongxin Guo, Jikun Wu, Siu Ming Yiu

AI总结:

RouteNLP通过闭环框架优化大语言模型在多样化NLP任务中的路由,减少成本并满足任务质量约束,通过级联和蒸馏协同优化实现显著成本降低。

摘要:

使用大语言模型服务多样化NLP工作负载成本高昂:在一家企业合作伙伴处,推理成本超过每月20万美元,尽管70%的查询属于小型模型能处理的常规任务。我们提出了RouteNLP,一个闭环框架,通过分层模型组合路由查询以最小化成本并满足每任务质量约束。该框架集成了三个组件:一个具有难度意识的路由器,使用共享任务条件表示,通过偏好数据和质量信号训练;置信度校准的级联,使用符合性预测进行分布无关的阈值初始化;以及蒸馏-路由协同优化循环,聚类升级失败,将针对性知识蒸馏应用于更便宜的模型,并自动重新训练路由器,从而实现比无针对性蒸馏高两倍的成本改进。在为期八周的试点部署中,处理每天约5,000个查询的企业客户服务中心,RouteNLP将推理成本降低了58%,同时保持91%的响应接受率,并将p99延迟从1,847毫秒降至387毫秒。在六个任务基准测试中,涵盖金融、客户服务和法律领域,该框架实现了40-85%的成本降低,同时在结构化任务中保持96-100%的质量,在生成任务中保持96-98%的质量,人类评估确认74.5%的路由生成输出匹配或超过前沿模型质量。

英文摘要:

Serving diverse NLP workloads with large language models is costly: at one enterprise partner, inference costs exceeded $200K/month despite over 70% of queries being routine tasks well within the capability of smaller models. We present RouteNLP, a closed-loop framework that routes queries across a tiered model portfolio to minimize cost while satisfying per-task quality constraints. The framework integrates three components: a difficulty-aware router with shared task-conditioned representations trained on preference data and quality signals; confidence-calibrated cascading that uses conformal prediction for distribution-free threshold initialization; and a distillation-routing co-optimization loop that clusters escalation failures, applies targeted knowledge distillation to cheaper models, and automatically retrains the router, yielding over twice the cost improvement of untargeted distillation. In an 8-week pilot deployment processing ~5K queries/day at an enterprise customer-service division, RouteNLP reduced inference costs by 58% while maintaining 91% response acceptance and reducing p99 latency from 1,847 ms to 387 ms. On a six-task benchmark spanning finance, customer service, and legal domains, the framework achieves 40-85% cost reduction while retaining 96-100% quality on structured tasks and 96-98% on generation tasks, with human evaluation confirming that 74.5% of routed generation outputs match or exceed frontier-model quality.

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

↑