Wix Helpmate引入确定性执行门控,LLM技能选择缩减90.5%上下文

Don't Offer What Can't Be Done: Deterministic Executability Gating for LLM Skill Selection at Scale

精选理由

Wix用确定性门控砍掉59.4%无用技能调用,省2.3亿token,还量化了不设门控的7.8%误选率。做客服Agent的可以参考。

AI 摘要

Wix在客服助手Helpmate中部署三阶段技能选择管线:语义匹配、确定性可执行性门控、LLM决策。在756.6K条用户消息和267.6K对话中,门控移除了59.4%的技能-消息对,节省228.8百万token。相比暴露全部十个技能,上下文减少90.5%。反事实测试中,若不设门控,模型会在7.8%的对话中选择无法执行的技能。

原文 · arXiv cs.AI

Don't Offer What Can't Be Done: Deterministic Executability Gating for LLM Skill Selection at Scale

Production LLM agents that select from large skill libraries face a limitation that semantic relevance alone cannot resolve: a skill may match a user's topic yet be impossible to execute in the current account state. We present a deployed three-stage selection pipeline for Helpmate, Wix's customer-care assistant. First, a recall-oriented semantic matcher identifies messages related to a ten-skill domain family without consulting account state. Second, a deterministic executability gate removes candidates whose internal hard-stop conditions hold. Because the gate and the skill evaluate the same exit predicates, every blocked candidate would be unable to complete under the same account state, provided predicate parity is preserved and both checks observe fresh authoritative state. Finally, the LLM decides whether to invoke one of the remaining candidates. In a post-launch production analysis of 756.6K user messages across 267.6K conversations, semantic matching retained 174,927 messages (23.1%). Within this matched stream, the gate removed 1,039,462 of 1,749,270 skill-message pairs (59.4%), saving 228.8 million skill-description tokens -- 59.1% of the post-semantic skill-description footprint. Together, semantic matching and executability gating reduced skill-description context by 90.5% relative to exposing all ten skills to every message. To test whether this pruning affects model behavior rather than context size alone, we replayed a risk-enriched cohort of 1,000 conversations with all ten skills exposed. The model selected a production-blocked skill in 78 conversations (7.8%). This counterfactual result shows that deterministic gating prevents non-executable candidates from influencing model selection, while not claiming downstream tool execution or customer-outcome effects.