arXiv:2503.11586cs.AIcs.CL2025-03被引 1

用语义空间替代模拟,让大模型对话规划快70倍且更优。

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

  • 在语义空间中建模对话转移和奖励,避免反复调用大模型
  • 比传统方法快70倍,相同预算下获得更高对话质量奖励
  • 适合需要实时响应的智能客服、聊天机器人等场景

大型语言模型用于聊天机器人或人工智能助手与用户进行对话。对话质量(如用户参与度、安全性)通常只能在对话结束后才能准确评估。为最大化预期质量,对话规划需基于对话中的随机转移选择每轮最优响应。现有基于模拟的规划算法在每一轮都需大量调用语言模型进行未来对话模拟,耗时极长,难以用于实时对话。本文提出一种名为语义空间对话规划(SCOPE)的新方法,利用对话的密集语义表示实现高效规划。具体而言,SCOPE在语义空间中建模对话的随机转移及其对应奖励,完全在该空间内完成规划,无需额外语言模型查询进行模拟。因此,当应用于多种对话起始场景及两种真实世界奖励函数时,SCOPE相比传统模拟方法快70倍,且在合理规划预算内获得更高奖励。代码已公开:https://github.com/chenzhiliang94/convo-plan-SCOPE。

原文摘要 · Abstract (English)

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.

对话规划大模型效率优化语义空间

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。