Formal-LLM: Integrating Formal Language and Natural Language for Controllable LLM-based Agents
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks
Abstract (arXiv)
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 process controllable. We conduct experiments on both benchmark tasks and practical real-life tasks, and our framework achieves over 50% overall performance increase, which validates the feasibility and effectiveness of employing Formal-LLM to guide the plan generation of agents, preventing the agents from generating invalid and unsuccessful plans. Further, more controllable LLM-based agents can facilitate the broader utilization of LLM in application scenarios where high validity of planning is essential. The source code of this work is available at https://github.com/agiresearch/Formal-LLM.
Key facts. Cited by 39 papers in the map (data through 7 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 36 of its 52 references that are in the map. First posted on arXiv 1 Feb 2024.
Builds on
36 of 52 references.
Closest ancestors · 3
Same direction, newest first
- 2023The Rise and Potential of Large Language Model Based Agents: A Survey14 Sep
- 2023A Survey on Large Language Model based Autonomous Agents22 Aug
- 2023CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Society31 Mar
Other references · 33
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
21 more
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2021CLIPScore: A Reference-free Evaluation Metric for Image Captioningcited by 2,388
- 2021Restormer: Efficient Transformer for High-Resolution Image Restorationcited by 1,618
- 2022Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agentscited by 1,029
- 2022GIT: A Generative Image-to-text Transformer for Vision and Languagecited by 536
- 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 333
- 2023Tool Learning with Foundation Modelscited by 302
- 2022Quark: Controllable Text Generation with Reinforced Unlearningcited by 236
- 2023OpenAGI: When LLM Meets Domain Expertscited by 196
- 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 186
- 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 159
- 2024EASYTOOL: Enhancing LLM-based Agents with Concise Tool Instructioncited by 153
- 2023War and Peace (WarAgent): Large Language Model-based Multi-Agent Simulation of World Warscited by 143
- 2017Real-Time User-Guided Image Colorization with Learned Deep Priorscited by 123
- 2022Swin2SR: SwinV2 Transformer for Compressed Image Super-Resolution and Restorationcited by 72
- 2019Positional Encoding to Control Output Sequence Lengthcited by 56
- 2023LLM as OS, Agents as Apps: Envisioning AIOS, Agents and the AIOS-Agent Ecosystemcited by 35
- 2022A Distributional Lens for Multi-Aspect Controllable Text Generationcited by 33
- 2024Benchmarking Large Language Models on Controllable Generation under Diversified Instructionscited by 26
- 2024Sketch-Guided Constrained Decoding for Boosting Blackbox Large Language Models without Logit Accesscited by 9
Built on by
Citing papers per year: 2024: 11; 2025: 20; 2026: 8.
39 papers.
Sort:
By area:
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2024AI Agents Under Threat: A Survey of Key Security Challenges and Future Pathwayscited by 122
- 2024Internet of Agents: Weaving a Web of Heterogeneous Agents for Collaborative Intelligencecited by 80
- 2024AutoFlow: Automated Workflow Generation for Large Language Model Agentscited by 76
- 2025OctoTools: An Agentic Framework with Extensible Tools for Complex Reasoningcited by 69
- 2024Agent Planning with World Knowledge Modelcited by 66
- 2024KnowAgent: Knowledge-Augmented Planning for LLM-Based Agentscited by 61
- 2024Ask-before-Plan: Proactive Language Agents for Real-World Planningcited by 59
- 2025Logical Reasoning in Large Language Models: A Surveycited by 52
- 2024Benchmarking Agentic Workflow Generationcited by 36
- 2025MPO: Boosting LLM Agents with Meta Plan Optimizationcited by 36
- 2024Planning Anything with Rigor: General-Purpose Zero-Shot Planning with LLM-based Formalized Programmingcited by 35
27 more
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Surveycited by 26
- 2025A Goal Without a Plan Is Just a Wish: Efficient and Effective Global Planner Training for Long-Horizon Agent Taskscited by 17
- 2025AgentGuard: Runtime Verification of AI Agentscited by 16
- 2026A Framework for Formalizing LLM Agent Securitycited by 16
- 2024CATP-LLM: Empowering Large Language Models for Cost-Aware Tool Planningcited by 14
- 2024RuleR: Improving LLM Controllability by Rule-based Data Recyclingcited by 11
- 2025Pre3: Enabling Deterministic Pushdown Automata for Faster Structured LLM Generationcited by 11
- 2024AIOS Compiler: LLM as Interpreter for Natural Language Programming and Flow Programming of AI Agentscited by 8
- 2025Agentic Knowledgeable Self-awarenesscited by 8
- 2025PGPO: Enhancing Agent Reasoning via Pseudocode-style Planning Guided Preference Optimizationcited by 8
- 2025SPIRAL: Symbolic LLM Planning via Grounded and Reflective Searchcited by 7
- 2025Generative Evaluation of Complex Reasoning in Large Language Modelscited by 6
- 2025Simulation to Rules: A Dual-VLM Framework for Formal Visual Planningcited by 4
- 2025Lean Meets Theoretical Computer Science: Scalable Synthesis of Theorem Proving Challenges in Formal-Informal Pairscited by 3
- 2026Can Agents Secure Hardware? Evaluating Agentic LLM-Driven Obfuscation for IP Protectioncited by 3
- 2025Dr Genre: Reinforcement Learning from Decoupled LLM Feedback for Generic Text Rewritingcited by 2
- 2025Planet as a Brain: Towards Internet of AgentSites based on AIOS Servercited by 2
- 2026Neuro-Symbolic Verification on Instruction Following of LLMscited by 2
- 2025Are Agents Probabilistic Automata? A Trace-Based, Memory-Constrained Theory of Agentic AIcited by 1
- 2025RepV: Safety-Separable Latent Spaces for Scalable Neurosymbolic Plan Verificationcited by 1
- 2026Efficient and Sound Probabilistic Verification for AI Agentscited by 1
- 2025Foundation Models for Logistics: Toward Certifiable, Conversational Planning Interfacescited by 0
- 2025Towards Reliable Multi-Agent Systems for Marketing Applications via Reflection, Memory, and Planningcited by 0
- 2025Bridging Language Models and Formal Methods for Intent-Driven Optical Network Designcited by 0
- 2026Retcon -- a Prompt-Based Technique for Precise Control of LLMs in Conversationscited by 0
- 2026Meituan Merchant Business Diagnosis via Policy-Guided Dual-Process User Simulationcited by 0
- 2026A Formal Hierarchical Architecture for Agentic Orchestration with Stack-Based Execution and Lazy Discoverycited by 0
- 2026A Formal Hierarchical Architecture for Agentic Orchestration with Stack-Based Execution and Lazy Discovery13 Jul 2026
- 2026Efficient and Sound Probabilistic Verification for AI Agents18 Jun 2026
- 2026Meituan Merchant Business Diagnosis via Policy-Guided Dual-Process User Simulation16 Apr 2026
- 2026Can Agents Secure Hardware? Evaluating Agentic LLM-Driven Obfuscation for IP Protection14 Apr 2026
- 2026A Framework for Formalizing LLM Agent Security19 Mar 2026
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Survey11 Mar 2026
- 2026Retcon -- a Prompt-Based Technique for Precise Control of LLMs in Conversations9 Feb 2026
- 2026Neuro-Symbolic Verification on Instruction Following of LLMs25 Jan 2026
- 2025SPIRAL: Symbolic LLM Planning via Grounded and Reflective Search29 Dec 2025
- 2025RepV: Safety-Separable Latent Spaces for Scalable Neurosymbolic Plan Verification30 Oct 2025
- 2025Are Agents Probabilistic Automata? A Trace-Based, Memory-Constrained Theory of Agentic AI27 Oct 2025
- 2025A Goal Without a Plan Is Just a Wish: Efficient and Effective Global Planner Training for Long-Horizon Agent Tasks7 Oct 2025
27 more
- 2025Simulation to Rules: A Dual-VLM Framework for Formal Visual Planning3 Oct 2025
- 2025AgentGuard: Runtime Verification of AI Agents28 Sep 2025
- 2025Bridging Language Models and Formal Methods for Intent-Driven Optical Network Design26 Sep 2025
- 2025Lean Meets Theoretical Computer Science: Scalable Synthesis of Theorem Proving Challenges in Formal-Informal Pairs21 Aug 2025
- 2025Towards Reliable Multi-Agent Systems for Marketing Applications via Reflection, Memory, and Planning14 Aug 2025
- 2025Foundation Models for Logistics: Toward Certifiable, Conversational Planning Interfaces15 Jul 2025
- 2025Pre3: Enabling Deterministic Pushdown Automata for Faster Structured LLM Generation4 Jun 2025
- 2025PGPO: Enhancing Agent Reasoning via Pseudocode-style Planning Guided Preference Optimization2 Jun 2025
- 2025Planet as a Brain: Towards Internet of AgentSites based on AIOS Server19 Apr 2025
- 2025Agentic Knowledgeable Self-awareness4 Apr 2025
- 2025Generative Evaluation of Complex Reasoning in Large Language Models3 Apr 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025Dr Genre: Reinforcement Learning from Decoupled LLM Feedback for Generic Text Rewriting9 Mar 2025
- 2025MPO: Boosting LLM Agents with Meta Plan Optimization4 Mar 2025
- 2025OctoTools: An Agentic Framework with Extensible Tools for Complex Reasoning16 Feb 2025
- 2025Logical Reasoning in Large Language Models: A Survey13 Feb 2025
- 2024CATP-LLM: Empowering Large Language Models for Cost-Aware Tool Planning25 Nov 2024
- 2024Planning Anything with Rigor: General-Purpose Zero-Shot Planning with LLM-based Formalized Programming15 Oct 2024
- 2024Benchmarking Agentic Workflow Generation10 Oct 2024
- 2024Internet of Agents: Weaving a Web of Heterogeneous Agents for Collaborative Intelligence9 Jul 2024
- 2024AutoFlow: Automated Workflow Generation for Large Language Model Agents1 Jul 2024
- 2024RuleR: Improving LLM Controllability by Rule-based Data Recycling22 Jun 2024
- 2024Ask-before-Plan: Proactive Language Agents for Real-World Planning18 Jun 2024
- 2024AI Agents Under Threat: A Survey of Key Security Challenges and Future Pathways4 Jun 2024
- 2024Agent Planning with World Knowledge Model23 May 2024
- 2024AIOS Compiler: LLM as Interpreter for Natural Language Programming and Flow Programming of AI Agents11 May 2024
- 2024KnowAgent: Knowledge-Augmented Planning for LLM-Based Agents5 Mar 2024
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2024Internet of Agents: Weaving a Web of Heterogeneous Agents for Collaborative Intelligencecited by 80
- 2024AutoFlow: Automated Workflow Generation for Large Language Model Agentscited by 76
- 2024KnowAgent: Knowledge-Augmented Planning for LLM-Based Agentscited by 61
- 2024Ask-before-Plan: Proactive Language Agents for Real-World Planningcited by 59
- 2024Benchmarking Agentic Workflow Generationcited by 36
- 2025MPO: Boosting LLM Agents with Meta Plan Optimizationcited by 36
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Surveycited by 26
- 2025A Goal Without a Plan Is Just a Wish: Efficient and Effective Global Planner Training for Long-Horizon Agent Taskscited by 17
- 2025AgentGuard: Runtime Verification of AI Agentscited by 16
- 2026A Framework for Formalizing LLM Agent Securitycited by 16
- 2024AIOS Compiler: LLM as Interpreter for Natural Language Programming and Flow Programming of AI Agentscited by 8
12 most cited of 17 All 17 (JSON)
- 2026A Formal Hierarchical Architecture for Agentic Orchestration with Stack-Based Execution and Lazy Discovery13 Jul 2026
- 2026Can Agents Secure Hardware? Evaluating Agentic LLM-Driven Obfuscation for IP Protection14 Apr 2026
- 2026A Framework for Formalizing LLM Agent Security19 Mar 2026
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Survey11 Mar 2026
- 2025Are Agents Probabilistic Automata? A Trace-Based, Memory-Constrained Theory of Agentic AI27 Oct 2025
- 2025A Goal Without a Plan Is Just a Wish: Efficient and Effective Global Planner Training for Long-Horizon Agent Tasks7 Oct 2025
- 2025AgentGuard: Runtime Verification of AI Agents28 Sep 2025
- 2025Towards Reliable Multi-Agent Systems for Marketing Applications via Reflection, Memory, and Planning14 Aug 2025
- 2025Agentic Knowledgeable Self-awareness4 Apr 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025MPO: Boosting LLM Agents with Meta Plan Optimization4 Mar 2025
- 2024Benchmarking Agentic Workflow Generation10 Oct 2024
12 newest of 17 All 17 (JSON)
- 2025OctoTools: An Agentic Framework with Extensible Tools for Complex Reasoningcited by 69
- 2025Logical Reasoning in Large Language Models: A Surveycited by 52
- 2025PGPO: Enhancing Agent Reasoning via Pseudocode-style Planning Guided Preference Optimizationcited by 8
- 2025SPIRAL: Symbolic LLM Planning via Grounded and Reflective Searchcited by 7
- 2025Generative Evaluation of Complex Reasoning in Large Language Modelscited by 6
- 2025Lean Meets Theoretical Computer Science: Scalable Synthesis of Theorem Proving Challenges in Formal-Informal Pairscited by 3
- 2025SPIRAL: Symbolic LLM Planning via Grounded and Reflective Search29 Dec 2025
- 2025Lean Meets Theoretical Computer Science: Scalable Synthesis of Theorem Proving Challenges in Formal-Informal Pairs21 Aug 2025
- 2025PGPO: Enhancing Agent Reasoning via Pseudocode-style Planning Guided Preference Optimization2 Jun 2025
- 2025Generative Evaluation of Complex Reasoning in Large Language Models3 Apr 2025
- 2025OctoTools: An Agentic Framework with Extensible Tools for Complex Reasoning16 Feb 2025
- 2025Logical Reasoning in Large Language Models: A Survey13 Feb 2025
- 2024Agent Planning with World Knowledge Modelcited by 66
- 2024Agent Planning with World Knowledge Model23 May 2024
- 2024AI Agents Under Threat: A Survey of Key Security Challenges and Future Pathwayscited by 122
- 2024Planning Anything with Rigor: General-Purpose Zero-Shot Planning with LLM-based Formalized Programmingcited by 35
- 2024CATP-LLM: Empowering Large Language Models for Cost-Aware Tool Planningcited by 14
- 2024RuleR: Improving LLM Controllability by Rule-based Data Recyclingcited by 11
- 2025Pre3: Enabling Deterministic Pushdown Automata for Faster Structured LLM Generationcited by 11
- 2025Planet as a Brain: Towards Internet of AgentSites based on AIOS Servercited by 2
- 2026Neuro-Symbolic Verification on Instruction Following of LLMscited by 2
- 2025RepV: Safety-Separable Latent Spaces for Scalable Neurosymbolic Plan Verificationcited by 1
- 2026Efficient and Sound Probabilistic Verification for AI Agentscited by 1
- 2025Foundation Models for Logistics: Toward Certifiable, Conversational Planning Interfacescited by 0
- 2025Bridging Language Models and Formal Methods for Intent-Driven Optical Network Designcited by 0
- 2026Retcon -- a Prompt-Based Technique for Precise Control of LLMs in Conversationscited by 0
12 most cited of 13 All 13 (JSON)
- 2026Efficient and Sound Probabilistic Verification for AI Agents18 Jun 2026
- 2026Meituan Merchant Business Diagnosis via Policy-Guided Dual-Process User Simulation16 Apr 2026
- 2026Retcon -- a Prompt-Based Technique for Precise Control of LLMs in Conversations9 Feb 2026
- 2026Neuro-Symbolic Verification on Instruction Following of LLMs25 Jan 2026
- 2025RepV: Safety-Separable Latent Spaces for Scalable Neurosymbolic Plan Verification30 Oct 2025
- 2025Bridging Language Models and Formal Methods for Intent-Driven Optical Network Design26 Sep 2025
- 2025Foundation Models for Logistics: Toward Certifiable, Conversational Planning Interfaces15 Jul 2025
- 2025Pre3: Enabling Deterministic Pushdown Automata for Faster Structured LLM Generation4 Jun 2025
- 2025Planet as a Brain: Towards Internet of AgentSites based on AIOS Server19 Apr 2025
- 2024CATP-LLM: Empowering Large Language Models for Cost-Aware Tool Planning25 Nov 2024
- 2024Planning Anything with Rigor: General-Purpose Zero-Shot Planning with LLM-based Formalized Programming15 Oct 2024
- 2024RuleR: Improving LLM Controllability by Rule-based Data Recycling22 Jun 2024
12 newest of 13 All 13 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024Understanding the planning of LLM agents: A survey
- 2024Large Language Model based Multi-Agents: A Survey of Progress and Challenges
- 2024Designing Algorithms Empowered by Language Models: An Analytical Framework, Case Studies, and Insights
- 2025LLM Reasoner and Automated Planner: A new NPC approach
- 2024Practical Considerations for Agentic LLM Systems
- 2023On the Planning Abilities of Large Language Models (A Critical Investigation with a Proposed Benchmark)
- 2024Creating an LLM-based AI-agent: A high-level methodology towards enhancing LLMs with APIs
- 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Review