arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.26728cs.DBcs.AIcs.CL
收藏

SEAR:基于模式的LLM网关评估与路由

SEAR: Schema-Based Evaluation and Routing for LLM Gateways

Zecheng Zhang, Han Zheng, Yue Xu

AI总结:

SEAR通过定义可扩展的关系模式,统一LLM评估与路由,实现细粒度质量信号和操作决策,支持大规模生产会话中的高效路由决策。

摘要:

评估生产LLM响应并在LLM网关中跨供应商路由请求需要细粒度的质量信号和基于操作的决策。为解决这一缺口,我们提出了SEAR,一种基于模式的评估与路由系统,适用于多模型、多供应商的LLM网关。SEAR定义了一个可扩展的关系模式,涵盖LLM评估信号(上下文、意图、响应特征、问题归因和质量评分)和网关操作指标(延迟、成本、吞吐量),并跨约一百个类型化的、可查询的SQL列建立跨表一致性链接。为了可靠地填充评估信号,SEAR提出了自包含的信号指令、在模式内推理和多阶段生成,产生数据库友好的结构化输出。由于信号是通过LLM推理而非浅层分类器生成的,SEAR能够捕捉复杂的请求语义,使路由解释可被人类理解,并在单一查询层中统一评估与路由。在数千个生产会话中,SEAR在人工标注数据上实现了强大的信号准确性,并支持实际的路由决策,包括在质量相当的情况下实现显著的成本降低。

英文摘要:

Evaluating production LLM responses and routing requests across providers in LLM gateways requires fine-grained quality signals and operationally grounded decisions. To address this gap, we present SEAR, a schema-based evaluation and routing system for multi-model, multi-provider LLM gateways. SEAR defines an extensible relational schema covering both LLM evaluation signals (context, intent, response characteristics, issue attribution, and quality scores) and gateway operational metrics (latency, cost, throughput), with cross-table consistency links across around one hundred typed, SQL-queryable columns. To populate the evaluation signals reliably, SEAR proposes self-contained signal instructions, in-schema reasoning, and multi-stage generation that produces database-ready structured outputs. Because signals are derived through LLM reasoning rather than shallow classifiers, SEAR captures complex request semantics, enables human-interpretable routing explanations, and unifies evaluation and routing in a single query layer. Across thousands of production sessions, SEAR achieves strong signal accuracy on human-labeled data and supports practical routing decisions, including large cost reductions with comparable quality.

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

↑