Routesplain:面向软件相关任务的可信赖且可干预的路由方法
Routesplain: Towards Faithful and Intervenable Routing for Software-related Tasks
AI总结:
Routesplain是首个面向软件相关任务的LLM路由工具,通过提取可解释概念路由,在8项软件任务上的16种LLM中,其性能优于单个模型且不逊于黑盒基线,可提升响应质量并降低成本。
摘要:
大型语言模型(LLMs)如今可处理各类软件相关任务,但我们发现其在这些任务间及任务内部的性能存在显著差异。因此,将用户查询路由至合适的LLM有助于提升响应质量并降低成本。然而,现有研究主要聚焦于通过黑盒模型实现通用LLM路由。我们提出了Routesplain,这是首个面向软件相关任务的LLM路由工具,涵盖多语言代码生成与修复、输入/输出预测以及计算机科学问答等任务。与现有路由方法不同,Routesplain会先从每个查询中提取人类可解释的概念(如任务、领域、推理复杂度),并仅基于这些概念进行路由,从而提供可理解、可信赖的依据。我们在8项软件相关任务上,针对16种最先进的LLM对Routesplain进行评估;结果显示,Routesplain在准确率和成本方面均优于单个模型,且与所有黑盒基线方法相当或更优,概念层面的干预也为路由工具的进一步改进指明了方向。
英文摘要:
LLMs now tackle a wide range of software-related tasks, yet we show that their performance varies markedly both across and within these tasks. Routing user queries to the appropriate LLMs can therefore help improve response quality while reducing cost. Prior work, however, has focused mainly on general-purpose LLM routing via black-box models. We introduce Routesplain, the first LLM router for software-related tasks, including multilingual code generation and repair, input/output prediction, and computer science QA. Unlike existing routing approaches, Routesplain first extracts human-interpretable concepts from each query (e.g., task, domain, reasoning complexity) and only routes based on these concepts, thereby providing intelligible, faithful rationales. We evaluate Routesplain on 16 state-of-the-art LLMs across eight software-related tasks; Routesplain outperforms individual models both in terms of accuracy and cost, and equals or surpasses all black-box baselines, with concept-level intervention highlighting avenues for further router improvements.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。