arXiv:2608.27797cs.AIAug 2026

Manuscript Offprint

arXiv:2608.27797

CEDAR: Automata as Verifiable Interfaces for Language-Guided Embodied Action

Lekai Chen, Alvaro Velasquez, Ashutosh Trivedi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Natural-language tasking of embodied agents is rarely just goal specification: users also impose constraints that must persist while the world changes. Code-generating LLM agents can produce plausible behaviors for such instructions, but their free-form programs provide no stable object to verify, compose with new constraints, or repair from a failing trace. We present CEDAR, a counterexample-guided framework that grounds instructions as regular languages over environment event traces. CEDAR uses a language model for semantic judgments and execution traces for correction, then represents both skills and specifications as deterministic finite automata. This turns constraints into executable finite-state objects: a learned skill can be intersected with a learned sleep at night or stay in this biome specification, yielding a controller that enforces the learned constraint by construction rather than by repeated prompting. In Minecraft, with the same simulator/API observations available to a program-generating baseline, CEDAR maintains temporal and spatial constraints that the baseline fails to preserve and amortizes reuse of learned skills, reducing cumulative LLM queries. These results suggest that regular languages offer a practical verification layer between natural-language instructions and embodied-agent policies.

1 Introduction

Natural language is an attractive interface for tasking embodied agents, but instructions rarely describe only a terminal goal. They also encode temporal, spatial, and safety constraints: collect diamonds but sleep at night; explore the world but stay in the windswept forest; mine minerals only at night. A useful agent must not merely execute a plausible program for the main goal; it must maintain a persistent interpretation of the user's constraints while acting in a changing environment.

Recent large-language-model (LLM) agents address open-world decision making by generating code, decomposing goals into subtasks, storing skills, or interleaving reasoning and action (Yao et al., 2023; Wang et al., 2023; Zhu et al., 2023; Liu et al., 2023; Wang et al., 2024). These systems are flexible, but their learned skills are usually free-form programs or text memories. Such representations are hard to inspect formally. A generated program may satisfy a constraint once and then forget it; two skills may be hard to compose safely; and a failure trajectory may not provide a precise object to repair.

This paper studies a different interface between language and action: grounding a natural-language instruction into a regular language over environment event traces. Instead of treating the LLM as the final policy, we use it as a noisy semantic teacher. The LLM helps select a compact alphabet of action, object, and event-predicate symbols and answers membership queries about whether a trace is consistent with an instruction. A DFA learner builds an explicit automaton, while an environment-backed equivalence oracle tests the automaton and returns counterexamples. The resulting controller is less expressive than arbitrary code, but it is minimal up to isomorphism for the learned regular language, can be checked by replaying event traces, and is closed under operations such as intersection and concatenation.

We instantiate this idea in CEDAR, a Counterexample-Driven Agent with Regular-language controllers. CEDAR represents both skills and specifications as DFAs. Skill DFAs define executable progress toward goals, while specification DFAs encode constraints induced by natural language. A learned skill and specification can be combined through product intersection; prerequisite and follow-up skills can be combined through concatenation; and a failing execution trace can be returned to the learner as a counterexample. When a new task resembles a stored one, CEDAR reuses the DFA through template adaptation over a substi-

Figure

Figure 1: CEDAR workflow. The system grounds a natural-language goal or constraint into a compact symbolic alphabet, learns skill and specification DFAs using LLM membership queries (MQs) and environment or human counterexamples (CEs), stores reusable skill automata, and verifies execution by DFA composition. EQ denotes equivalence-query feedback from execution or human inspection.

tuted verb-object alphabet.

A common point of confusion is the word monitor. In this paper, an event predicate or logger monitor is a read-only function over simulator/API state, such as time of day, biome, inventory, or whether an interaction changed the world. It is not a hidden perception module and not a hand-written safety shield. The code generated by VOYAGER has access to the same underlying state variables through the environment API. The difference is representational and architectural: CEDAR converts natural-language goals and constraints into persistent finite-state objects that can be intersected, checked, reused, and repaired, whereas free-form code skills do not expose an formal language-level operation analogous to DFA intersection.

To our knowledge, CEDAR is the first embodied-agent framework to use regular languages as a shared executable representation for both learned skills and learned natural-language constraints. This shared representation enables product intersection, concatenation, skill reuse under newly supplied constraints, and counterexample-guided relearning within one agent architecture. The main contribution is therefore not a new DFA-learning algorithm. CA-PAL, active automata learning, and the use of an LLM as a semantic teacher build on prior work. The Minecraft experiments evaluate persistent constraint enforcement and amortized skill reuse. The iTHOR study evaluates only whether alphabet grounding and environment-backed counterexample repair can be instantiated in another simulator.

References (16)