arXiv:2604.23577cs.CLcs.LG2026-04中稿 · ACL被引 1

用闭环路由优化大模型服务,省钱又提速,还保持高质。

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

  • 根据任务难度和质量信号动态分配模型,实现智能分流。
  • 成本降58%,延迟从1.8秒降至387毫秒,91%响应被接受。
  • 适合需要降本提效的大规模NLP服务场景,如客服、金融。

在某企业客户服务中心,尽管70%以上的查询属于小模型可处理的常规任务,但大模型推理成本仍超过每月20万美元。本文提出RouteNLP,一种闭环式多级模型路由框架,通过整合三部分:基于偏好数据与质量信号训练的难度感知路由器;利用置信度校准的无分布阈值初始化的分层级联机制;以及聚类升级失败案例、针对性蒸馏并自动重训路由器的协同优化循环。在为期8周的试点中,日均处理约5000个请求,推理成本降低58%,响应接受率维持在91%,p99延迟由1847毫秒降至387毫秒。在涵盖金融、客服、法律领域的六项任务基准上,成本减少40%-85%,结构化任务质量保持96%-100%,生成任务质量保持96%-98%,人工评估显示74.5%的生成输出达到或超越前沿模型水平。

原文摘要 · Abstract (English)

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.

模型路由成本优化大模型部署

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。