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

ConsRoute:面向云-边-设备大语言模型的一致性感知自适应查询路由

ConsRoute:Consistency-Aware Adaptive Query Routing for Cloud-Edge-Device Large Language Models

Department of Computer Science and Technology, Harbin Institute of Technology(哈尔滨工业大学计算机科学与技术系);National Key Laboratory of Smart Farm Technologies and Systems(国家智能农业技术与系统重点实验室);Department of Computer Science and Technology, Harbin Institute of Technology (ShenZhen)(哈尔滨工业大学(深圳)计算机科学与技术系)

Haoyu Qiao, Hao Zhang, Shanwen Mao, Siyao Cheng, Jie Liu

AI总结:

本文提出ConsRoute框架,通过语义一致性评估和高效路由策略提升大语言模型推理效率,减少延迟和成本,实验表明其性能接近云端且优于现有方法。

摘要:

大型语言模型(LLMs)具备出色的性能,但推理延迟和成本较高,限制了其在延迟敏感和资源受限场景中的应用。云-边-设备协同推理通过动态路由查询到不同层级的模型来实现突破。本文提出ConsRoute,一种轻量、语义感知且自适应的路由框架,显著提升推理效率并最小化对响应质量的影响。不同于以往依赖预测粗粒度输出质量差距的路由方法,ConsRoute利用重排器直接评估不同层级模型生成响应之间的语义一致性,产生细粒度的软监督信号。为减少设备端开销,ConsRoute重用LLM预填充阶段的隐藏状态作为紧凑的查询表示,避免额外编码器或推理步骤。此外,这些表示被聚类,并采用贝叶斯优化学习集群特定的路由阈值,在异构查询分布下动态平衡质量、延迟和成本。大量实验表明,ConsRoute在接近云端性能(≥95%)的同时,将端到端延迟和推理成本减少近40%,在响应质量和系统效率上均优于现有路由基线。

英文摘要:

Large language models (LLMs) deliver impressive capabilities but incur substantial inference latency and cost, which hinders their deployment in latency-sensitive and resource-constrained scenarios. Cloud-edge-device collaborative inference has emerged as a promising paradigm by dynamically routing queries to models of different capacities across tiers. In this paper, we propose ConsRoute, a lightweight, semantic-aware, and adaptive routing framework that significantly improves inference efficiency while minimizing impact on response quality. Unlike prior routing methods that rely on predicting coarse-grained output quality gaps, ConsRoute leverages a reranker to directly assess the semantic consistency between responses generated by models at different tiers, yielding fine-grained soft supervision signals for routing. To minimize device-side overhead, ConsRoute reuses hidden states from the LLM prefilling stage as compact query representations, avoiding additional encoders or inference passes. Furthermore, these representations are clustered, and Bayesian optimization is employed to learn cluster-specific routing thresholds that dynamically balance quality, latency, and cost under heterogeneous query distributions. Extensive experiments demonstrate that ConsRoute achieves near-cloud performance (>=95%) while reducing end-to-end latency and inference cost by nearly 40%, consistently outperforming existing routing baselines in both response quality and system efficiency.

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

↑