Interpreting User Requests in the Context of Natural Language Standing Instructions
作者: Nikita Moghe, Patrick Xia, Jacob Andreas, Jason Eisner, Benjamin Van Durme, Harsh Jhamtani
分类: cs.CL, cs.AI
发布日期: 2023-11-16 (更新: 2024-03-07)
备注: Updated with results from LLaMA-2
💡 一句话要点
提出基于用户持续指令的对话建模以改善自然语言接口
🎯 匹配领域: 支柱九:具身大模型 (Embodied Foundation Models)
关键词: 自然语言处理 对话建模 用户偏好 持续指令 大型语言模型 数据集构建 API调用
📋 核心要点
- 现有自然语言接口需要用户每次重复表达偏好,导致用户体验不佳。
- 本文提出通过引入用户的持续指令,增强LLM对话建模的上下文理解能力。
- 在NLSI数据集上进行实验,API预测的准确匹配率达到44.7%,展示了方法的有效性。
📝 摘要(中文)
自然语言接口的用户通常需要每次重复表达他们的偏好。本文提出了一种基于大型语言模型(LLM)的对话建模方法,利用用户的持续指令作为额外上下文。例如,当用户说“我饿了”时,可以自动添加之前表达的对波斯食物的偏好,从而影响相关餐厅的搜索。我们开发了NLSI数据集,包含超过2400个对话,涵盖17个领域,每个对话都配有用户特定的持续指令和相应的结构化表示。NLSI的一个关键挑战是识别适用于特定对话的持续指令子集。实验结果显示,在API预测上达到44.7%的准确匹配,展示了识别相关持续指令及其转化为API调用的挑战。
🔬 方法详解
问题定义:本文旨在解决自然语言接口中用户需重复表达偏好的问题。现有方法缺乏对用户持续指令的有效利用,导致对话上下文理解不足。
核心思路:通过将用户的持续指令作为上下文信息,增强大型语言模型对用户偏好的理解,从而提高对话的相关性和准确性。
技术框架:整体架构包括数据集构建、对话建模和API调用生成三个主要模块。首先,构建包含用户持续指令的对话数据集NLSI;其次,利用LLM进行对话建模;最后,将识别出的指令转化为API调用。
关键创新:最重要的创新在于引入用户的持续指令作为对话上下文,解决了传统方法中对用户偏好识别不足的问题。
关键设计:在数据集构建中,设计了多种用户指令的表现形式,并在模型训练中采用了适应性损失函数,以提高对不同指令的识别能力。
🖼️ 关键图片
📊 实验亮点
实验结果表明,在NLSI数据集上,使用大型语言模型进行API预测时,准确匹配率达到了44.7%。这一结果显著高于传统方法,展示了引入用户持续指令的有效性和必要性。
🎯 应用场景
该研究的潜在应用领域包括智能助手、在线客服和个性化推荐系统等。通过有效理解用户的持续指令,可以显著提升用户体验,减少重复输入,提高服务的智能化水平。未来,该方法有望推广到更多自然语言处理任务中,进一步增强人机交互的自然性和流畅性。
📄 摘要(原文)
Users of natural language interfaces, generally powered by Large Language Models (LLMs),often must repeat their preferences each time they make a similar request. We describe an approach to LLM-based dialogue modeling in which persistent user constraints and preferences -- collectively termed standing instructions -- as additional context for such interfaces. For example, when a user states "I'm hungry", a previously expressed preference for Persian food can be automatically added to the LLM prompt, influencing the search for relevant restaurants. We develop NLSI, a language-to-program dataset consisting of over 2.4K dialogues spanning 17 domains, where each dialogue is paired with a user profile (a set of users specific standing instructions) and corresponding structured representations (API calls). A key challenge in NLSI is to identify which subset of the standing instructions is applicable to a given dialogue. NLSI contains diverse phenomena, from simple preferences to interdependent instructions such as triggering a hotel search whenever the user is booking tickets to an event. We conduct experiments on NLSI using prompting with large language models and various retrieval approaches, achieving a maximum of 44.7% exact match on API prediction. Our results demonstrate the challenges in identifying the relevant standing instructions and their interpretation into API calls.