arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2606.22840cs.LG
收藏

RLM-Cascade:用于成本高效LLM API服务的响应级推测解码

RLM-Cascade: Response-Level Speculative Decoding for Cost-Efficient LLM API Serving

PayPal

Haifeng Wu, Srinivasan Manoharan, Fangbo Tu, Junhua Zhao, Jian Wan

AI总结:

提出RLM-Cascade代理层系统,通过响应级推测解码降低LLM API成本,在真实编码工作负载上实现45.8%成本降低和1.83倍延迟加速,同时保持或超越基线质量。

摘要:

我们提出RLM-Cascade,一个代理层系统,在响应级别应用推测解码,以降低LLM API成本,无需模型架构访问或共享词汇表。一个快速、廉价的草稿模型生成候选响应;一个有能力的验证模型根据轻量级复杂度路由器接受、增强或完全绕过该响应。在真实世界的智能体编码工作负载(Claude Code)上,RLM-Cascade在125个生产请求中实现了88.8%的草稿使用率,相对于直接Opus基线降低了45.8%的API成本。反直觉的是,该代理还降低了端到端延迟:中位响应时间为2,026毫秒,而Native Opus为3,698毫秒——在p50上实现了1.83倍加速,因为SKIPPED路径(仅DeepSeek,无Opus调用)主导了工作负载分布。质量达到或超过Opus基线:在20个任务的Code/Math/Instruct基准测试上通过率为100%,而Native Opus为95%。我们进一步描述了一个基于规则的复杂度路由器,为简单的智能体轮次选择SKIPPED路径,以及一个混合工具调用策略,为模式关键的工具选择轮次绕过推测流水线。RLM-Cascade已作为企业AI基础设施组件在生产中部署,并作为开源发布,附带实时指标仪表板和Prometheus端点。

英文摘要:

We present RLM-Cascade, a proxy-layer system that applies speculative decoding at the response level to reduce LLM API costs without requiring model architecture access or a shared vocabulary. A fast, inexpensive draft model generates a candidate response; a capable verify model accepts, enhances, or is bypassed entirely depending on a lightweight complexity router. On a real-world agentic coding workload (Claude Code), RLM-Cascade achieves a draft-use rate of 88.8% across 125 production requests, reducing API cost by 45.8% relative to a direct Opus baseline. Counter-intuitively, the proxy also reduces end-to-end latency: median response time is 2,026 ms versus 3,698 ms for Native Opus -- a 1.83X speedup at p50 -- because the SKIPPED path (DeepSeek only, no Opus call) dominates the workload distribution. Quality matches or exceeds the Opus baseline: 100% pass rate on a 20-task Code/Math/Instruct benchmark versus 95% for Native Opus. We further describe a rule-based complexity router that selects the SKIPPED path for simple agentic turns and a hybrid tool-call strategy that bypasses the speculative pipeline for schema-critical tool-selection turns. RLM-Cascade is deployed in production as an enterprise AI infrastructure component and published as open source with a live metrics dashboard and Prometheus endpoint.

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

↑