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

拓宽你的 SCOPE!利用语义空间实现 LLM 的高效多轮对话规划

Broaden your SCOPE! Efficient Multi-turn Conversation Planning for LLMs with Semantic Space

Department of Computer Science, National University of Singapore(新加坡国立大学计算机科学系);Institute for Infocomm Research (I2R), A*STAR, Singapore(新加坡A*STAR信息与通信研究所);Centre for Frontier AI Research (CFAR), A*STAR, Singapore(新加坡A*STAR前沿人工智能研究中心)

Zhiliang Chen, Xinyuan Niu, Chuan-Sheng Foo, Bryan Kian Hsiang Low

AI总结:

针对基于模拟的多轮对话规划需大量 LLM 查询、难以实时部署的问题,提出 SCOPE,在语义空间中建模状态转移与奖励,实现免模拟查询的高效规划,速度提升 70 倍且奖励更高。

摘要:

大语言模型(LLM)被用于聊天机器人或 AI 助手中,以与人类用户进行对话。在此类应用中,对话的质量(例如用户参与度、安全性)非常重要,而且只有在对话结束时才能确切知道。为了最大化预期质量,对话规划会对对话中的随机转移进行推理,以在每一轮选择最优的 LLM 回复。现有的基于模拟的对话规划算法通常通过在每一轮使用大量 LLM 查询来模拟未来对话,从而选择最优回复。然而,这一过程极其耗时,因此不适用于实时对话。本文提出了一种名为 Semantic space COnversation Planning with improved Efficiency(SCOPE)的新方法,该方法利用对话的稠密语义表示来高效执行对话规划。具体而言,SCOPE 对对话语义中的随机转移及其相关奖励进行建模,从而完全在语义空间内进行规划。这使我们能够在每个对话轮次选择最优的 LLM 回复,而无需额外的 LLM 查询来进行模拟。因此,当应用于现实世界中出现的多种对话开场白和两个奖励函数时,SCOPE 的对话规划速度比传统的基于模拟的规划算法快 70 倍,同时在实际规划预算内取得更高的奖励。我们的代码可在 https://github.com/chenzhiliang94/convo-plan-SCOPE 获取。

英文摘要:

Large language models (LLMs) are used in chatbots or AI assistants to hold conversations with a human user. In such applications, the quality (e.g., user engagement, safety) of a conversation is important and can only be exactly known at the end of the conversation. To maximize its expected quality, conversation planning reasons about the stochastic transitions within a conversation to select the optimal LLM response at each turn. Existing simulation-based conversation planning algorithms typically select the optimal response by simulating future conversations with a large number of LLM queries at every turn. However, this process is extremely time-consuming and hence impractical for real-time conversations. This paper presents a novel approach called Semantic space COnversation Planning with improved Efficiency (SCOPE) that exploits the dense semantic representation of conversations to perform conversation planning efficiently. In particular, SCOPE models the stochastic transitions in conversation semantics and their associated rewards to plan entirely within the semantic space. This allows us to select the optimal LLM response at every conversation turn without needing additional LLM queries for simulation. As a result, SCOPE can perform conversation planning 70 times faster than conventional simulation-based planning algorithms when applied to a wide variety of conversation starters and two reward functions seen in the real world, yet achieving a higher reward within a practical planning budget. Our code can be found at: https://github.com/chenzhiliang94/convo-plan-SCOPE.

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

↑