Formal-LLM: Integrating Formal Language and Natural Language for Controllable LLM-based Agents
Zelong Li, Wenyue Hua, Hao Wang, He Zhu, Yongfeng Zhang

TL;DR
Formal-LLM introduces a framework that combines natural language and formal language to control LLM-based agents, significantly improving plan validity and performance in complex tasks.
Contribution
It presents a novel automaton-supervised plan generation method that enhances control and validity of LLM-based agents' plans.
Findings
Over 50% performance increase on benchmark and real-life tasks.
Effective prevention of invalid and unsuccessful plans.
Enhanced control facilitates broader application of LLM agents.
Abstract
Recent advancements on Large Language Models (LLMs) enable AI Agents to automatically generate and execute multi-step plans to solve complex tasks. However, since LLM's content generation process is hardly controllable, current LLM-based agents frequently generate invalid or non-executable plans, which jeopardizes the performance of the generated plans and corrupts users' trust in LLM-based agents. In response, this paper proposes a novel "Formal-LLM" framework for LLM-based agents by integrating the expressiveness of natural language and the precision of formal language. Specifically, the framework allows agent developers to express their requirements or constraints for the planning process as an automaton. A stack-based LLM plan generation process is then conducted under the supervision of the automaton to ensure that the generated plan satisfies the constraints, making the planning…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSemantic Web and Ontologies · Natural Language Processing Techniques · Multi-Agent Systems and Negotiation
