mlsanityData to 7 Oct 2026

Formal-LLM: Integrating Formal Language and Natural Language for Controllable LLM-based Agents

arXiv 2402.00798 ↗First posted 1 Feb 2024cs.LG cs.AI cs.CLcited by 39

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

  1. 2023The Rise and Potential of Large Language Model Based Agents: A Survey14 Sep
  2. 2023A Survey on Large Language Model based Autonomous Agents22 Aug
  3. 2023CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Society31 Mar

Other references · 33

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  5. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  8. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  9. 2020End-to-End Object Detection with Transformerscited by 7,384
  10. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  11. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
  12. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
21 more
  1. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  2. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  3. 2021CLIPScore: A Reference-free Evaluation Metric for Image Captioningcited by 2,388
  4. 2021Restormer: Efficient Transformer for High-Resolution Image Restorationcited by 1,618
  5. 2022Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agentscited by 1,029
  6. 2022GIT: A Generative Image-to-text Transformer for Vision and Languagecited by 536
  7. 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 333
  8. 2023Tool Learning with Foundation Modelscited by 302
  9. 2022Quark: Controllable Text Generation with Reinforced Unlearningcited by 236
  10. 2023OpenAGI: When LLM Meets Domain Expertscited by 196
  11. 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 186
  12. 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 159
  13. 2024EASYTOOL: Enhancing LLM-based Agents with Concise Tool Instructioncited by 153
  14. 2023War and Peace (WarAgent): Large Language Model-based Multi-Agent Simulation of World Warscited by 143
  15. 2017Real-Time User-Guided Image Colorization with Learned Deep Priorscited by 123
  16. 2022Swin2SR: SwinV2 Transformer for Compressed Image Super-Resolution and Restorationcited by 72
  17. 2019Positional Encoding to Control Output Sequence Lengthcited by 56
  18. 2023LLM as OS, Agents as Apps: Envisioning AIOS, Agents and the AIOS-Agent Ecosystemcited by 35
  19. 2022A Distributional Lens for Multi-Aspect Controllable Text Generationcited by 33
  20. 2024Benchmarking Large Language Models on Controllable Generation under Diversified Instructionscited by 26
  21. 2024Sketch-Guided Constrained Decoding for Boosting Blackbox Large Language Models without Logit Accesscited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 11; 2025: 20; 2026: 8.

39 papers.

Sort:

By area:

  1. 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
  2. 2024AI Agents Under Threat: A Survey of Key Security Challenges and Future Pathwayscited by 122
  3. 2024Internet of Agents: Weaving a Web of Heterogeneous Agents for Collaborative Intelligencecited by 80
  4. 2024AutoFlow: Automated Workflow Generation for Large Language Model Agentscited by 76
  5. 2025OctoTools: An Agentic Framework with Extensible Tools for Complex Reasoningcited by 69
  6. 2024Agent Planning with World Knowledge Modelcited by 66
  7. 2024KnowAgent: Knowledge-Augmented Planning for LLM-Based Agentscited by 61
  8. 2024Ask-before-Plan: Proactive Language Agents for Real-World Planningcited by 59
  9. 2025Logical Reasoning in Large Language Models: A Surveycited by 52
  10. 2024Benchmarking Agentic Workflow Generationcited by 36
  11. 2025MPO: Boosting LLM Agents with Meta Plan Optimizationcited by 36
  12. 2024Planning Anything with Rigor: General-Purpose Zero-Shot Planning with LLM-based Formalized Programmingcited by 35
27 more
  1. 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Surveycited by 26
  2. 2025A Goal Without a Plan Is Just a Wish: Efficient and Effective Global Planner Training for Long-Horizon Agent Taskscited by 17
  3. 2025AgentGuard: Runtime Verification of AI Agentscited by 16
  4. 2026A Framework for Formalizing LLM Agent Securitycited by 16
  5. 2024CATP-LLM: Empowering Large Language Models for Cost-Aware Tool Planningcited by 14
  6. 2024RuleR: Improving LLM Controllability by Rule-based Data Recyclingcited by 11
  7. 2025Pre3: Enabling Deterministic Pushdown Automata for Faster Structured LLM Generationcited by 11
  8. 2024AIOS Compiler: LLM as Interpreter for Natural Language Programming and Flow Programming of AI Agentscited by 8
  9. 2025Agentic Knowledgeable Self-awarenesscited by 8
  10. 2025PGPO: Enhancing Agent Reasoning via Pseudocode-style Planning Guided Preference Optimizationcited by 8
  11. 2025SPIRAL: Symbolic LLM Planning via Grounded and Reflective Searchcited by 7
  12. 2025Generative Evaluation of Complex Reasoning in Large Language Modelscited by 6
  13. 2025Simulation to Rules: A Dual-VLM Framework for Formal Visual Planningcited by 4
  14. 2025Lean Meets Theoretical Computer Science: Scalable Synthesis of Theorem Proving Challenges in Formal-Informal Pairscited by 3
  15. 2026Can Agents Secure Hardware? Evaluating Agentic LLM-Driven Obfuscation for IP Protectioncited by 3
  16. 2025Dr Genre: Reinforcement Learning from Decoupled LLM Feedback for Generic Text Rewritingcited by 2
  17. 2025Planet as a Brain: Towards Internet of AgentSites based on AIOS Servercited by 2
  18. 2026Neuro-Symbolic Verification on Instruction Following of LLMscited by 2
  19. 2025Are Agents Probabilistic Automata? A Trace-Based, Memory-Constrained Theory of Agentic AIcited by 1
  20. 2025RepV: Safety-Separable Latent Spaces for Scalable Neurosymbolic Plan Verificationcited by 1
  21. 2026Efficient and Sound Probabilistic Verification for AI Agentscited by 1
  22. 2025Foundation Models for Logistics: Toward Certifiable, Conversational Planning Interfacescited by 0
  23. 2025Towards Reliable Multi-Agent Systems for Marketing Applications via Reflection, Memory, and Planningcited by 0
  24. 2025Bridging Language Models and Formal Methods for Intent-Driven Optical Network Designcited by 0
  25. 2026Retcon -- a Prompt-Based Technique for Precise Control of LLMs in Conversationscited by 0
  26. 2026Meituan Merchant Business Diagnosis via Policy-Guided Dual-Process User Simulationcited by 0
  27. 2026A Formal Hierarchical Architecture for Agentic Orchestration with Stack-Based Execution and Lazy Discoverycited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Understanding the planning of LLM agents: A survey
  2. 2024Large Language Model based Multi-Agents: A Survey of Progress and Challenges
  3. 2024Designing Algorithms Empowered by Language Models: An Analytical Framework, Case Studies, and Insights
  4. 2025LLM Reasoner and Automated Planner: A new NPC approach
  5. 2024Practical Considerations for Agentic LLM Systems
  6. 2023On the Planning Abilities of Large Language Models (A Critical Investigation with a Proposed Benchmark)
  7. 2024Creating an LLM-based AI-agent: A high-level methodology towards enhancing LLMs with APIs
  8. 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Review