arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.18566cs.AIcs.CR
收藏

重新思考大语言模型路由中的质量:安全条件下的模型与预算选择

Rethinking Quality in Large Language Model Routing: Security-Conditioned Model-and-Budget Selection

The Pennsylvania State University(宾夕法尼亚州立大学);The University of Hong Kong(香港大学)

Yichi Zhang, Zhenxiang Huang, Yuyang Zhang, Yuchen Yang

AI总结:

针对混合工作负载下LLM路由的安全与效用平衡问题,提出SCRouter路由方法,构建SCRouterBench基准,在域内和域外均显著优于基线。

摘要:

大语言模型(LLM)路由通过为每个查询选择调用的模型及授予的输出令牌数量来降低服务成本。现有路由使用单一质量指标对模型-预算动作进行排序,这不适用于混合工作负载。对于普通查询,良好的回答应正确且有用(效用);对于安全敏感查询,良好的回答应拒绝有害请求或抵制恶意指令(安全)。这两个目标偏好不同的模型和预算。我们提出SCRouter,一种学习何时优先考虑安全以及如何分配令牌预算的路由。对于每个模型-预算对,它估计响应在预算内完成的概率,并利用该概率分别预测效用和安全。一个小型探测机制确定如何为每个查询权衡这两个预测,SCRouter随后通过权衡加权后的效用、安全与成本来选择模型和预算。我们还构建了SCRouterBench,这是一个包含38869个效用和安全查询的基准,涵盖9个安全维度,每个查询在12种模型与12种预算的全部144种组合下得到回答,另有2753个域外查询。SCRouter在域内将基线提升13-29个点,在域外提升19-23个点。

英文摘要:

Large language model (LLM) routers reduce serving cost by choosing which model to call and how many output tokens to grant it for each query. Existing routers rank model-budget actions using a single quality metric. This does not work for mixed workloads. For ordinary queries, a good answer is correct and useful (utility); for security-sensitive queries, a good answer refuses harmful requests or resists malicious instructions (security). These two objectives prefer different models and budgets. We propose SCRouter, a router that learns when to prioritize security and how to allocate the token budget. For each model-budget pair, it estimates the probability that the response finishes within budget. It uses this probability to predict utility and security separately. A small probe determines how to weight these two predictions for each query. SCRouter then selects the model and budget by balancing the weighted utility and security against cost. We also build SCRouterBench, a benchmark of 38,869 utility and security queries spanning nine security dimensions, each answered under all 144 combinations of 12 models and 12 budgets, plus 2,753 out-of-domain queries. SCRouter improves the baselines by 13-29 points in-domain and 19-23 points out-of-domain.

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

↑