English

Automaton-Based Representations of Task Knowledge from Generative Language Models

Formal Languages and Automata Theory 2023-08-11 v5 Computation and Language

Abstract

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).

Keywords

Cite

@article{arxiv.2212.01944,
  title  = {Automaton-Based Representations of Task Knowledge from Generative Language Models},
  author = {Yunhao Yang and Jean-Raphaël Gaglione and Cyrus Neary and Ufuk Topcu},
  journal= {arXiv preprint arXiv:2212.01944},
  year   = {2023}
}

Comments

Submitted to JAIR

R2 v1 2026-06-28T07:21:43.275Z