arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2212.01944cs.FLcs.CL
收藏

基于生成式语言模型的任务知识的自动机表示

Automaton-Based Representations of Task Knowledge from Generative Language Models

University of Texas at Austin(德克萨斯大学奥斯汀分校)

Yunhao Yang, Jean-Raphaël Gaglione, Cyrus Neary, Ufuk Topcu

AI总结:

本文提出 GLM2FSA 算法,利用生成式语言模型从自然语言任务描述中提取知识并构建可形式化验证的有限状态自动机,并通过验证反馈迭代优化查询,填补自然语言描述与自动机表示之间的空白。

摘要:

基于自动机的任务知识表示在顺序决策问题的控制与规划中发挥着重要作用。然而,获取构建此类自动机所需的高层任务知识通常十分困难。与此同时,大规模生成式语言模型(GLMs)能够自动生成相关的任务知识。然而,GLMs 的文本输出无法被形式化验证,也不能直接用于顺序决策。我们提出了一种名为 GLM2FSA 的新算法,该算法根据任务目标的简短自然语言描述,构建一个编码高层任务知识的有限状态自动机(FSA)。GLM2FSA 首先向 GLM 发送查询以提取文本形式的任务知识,然后构建一个 FSA 来表示这种基于文本的知识。因此,所提出的算法填补了自然语言任务描述与基于自动机的表示之间的空白,并且构建出的 FSA 可以针对用户定义的规范进行形式化验证。据此,我们提出了一种方法,根据验证结果(例如反例)迭代地细化发送给 GLM 的查询。我们展示了 GLM2FSA 构建和细化日常任务(例如过马路)以及需要高度专业化知识的任务(例如执行安全多方计算)的基于自动机的表示的能力。

英文摘要:

Automaton-based representations of task knowledge play an important role in control and planning for sequential decision-making problems. However, obtaining the high-level task knowledge required to build such automata is often difficult. Meanwhile, large-scale generative language models (GLMs) can automatically generate relevant task knowledge. However, the textual outputs from GLMs cannot be formally verified or used for sequential decision-making. We propose a novel algorithm named GLM2FSA, which constructs a finite state automaton (FSA) encoding high-level task knowledge from a brief natural-language description of the task goal. GLM2FSA first sends queries to a GLM to extract task knowledge in textual form, and then it builds an FSA to represent this text-based knowledge. The proposed algorithm thus fills the gap between natural-language task descriptions and automaton-based representations, and the constructed FSA can be formally verified against user-defined specifications. We accordingly propose a method to iteratively refine the queries to the GLM based on the outcomes, e.g., counter-examples, from verification. We demonstrate GLM2FSA's ability to build and refine automaton-based representations of everyday tasks (e.g., crossing a road), and also of tasks that require highly-specialized knowledge (e.g., executing secure multi-party computation).

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

↑