FLAP: Flow-Adhering Planning with Constrained Decoding in LLMs
Not on the map. Why?
Abstract (arXiv)
Planning is a crucial task for agents in task oriented dialogs (TODs). Human agents typically resolve user issues by following predefined workflows, decomposing workflow steps into actionable items, and performing actions by executing APIs in order; all of which require reasoning and planning. With the recent advances in LLMs, there have been increasing attempts to use them for task planning and API usage. However, the faithfulness of the plans to predefined workflows and API dependencies, is not guaranteed with LLMs. Moreover, workflows in real life are often custom-defined and prone to changes; hence, adaptation is desirable. To study this, we propose the problem of faithful planning in TODs that needs to resolve user intents by following predefined flows and preserving API dependencies. To solve this problem, we propose FLAP, a Flow-Adhering Planning algorithm based on constrained decoding with lookahead heuristic for LLMs. Our algorithm alleviates the need for finetuning LLMs using domain specific (plan/dependency) data, enables quick adaptation to predefined flows, and outperforms other decoding and prompting-based baselines. Further, our algorithm empowers smaller LLMs (7B) to perform at par larger LLMs (30B-40B).
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 37 of its 65 references that are in the map. First posted on arXiv 9 Mar 2024.
Builds on
37 of 65 references.
References · 37
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
- 2022Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agentscited by 1,029
- 2020Language (Technology) is Power: A Critical Survey of "Bias" in NLPcited by 951
- 2019ALFRED: A Benchmark for Interpreting Grounded Instructions for Everyday Taskscited by 773
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 755
25 more
- 2023ToolAlpaca: Generalized Tool Learning for Language Models with 3000 Simulated Casescited by 383
- 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 377
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 374
- 2022PlanBench: An Extensible Benchmark for Evaluating Large Language Models on Planning and Reasoning about Changecited by 372
- 2023On the Planning Abilities of Large Language Models : A Critical Investigationcited by 308
- 2016Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Modelscited by 299
- 2023GPT4Tools: Teaching Large Language Model to Use Tools via Self-instructioncited by 245
- 2017Lexically Constrained Decoding for Sequence Generation Using Grid Beam Searchcited by 234
- 2023ADaPT: As-Needed Decomposition and Planning with Language Modelscited by 172
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 153
- 2020NeuroLogic Decoding: (Un)supervised Neural Text Generation with Predicate Logic Constraintscited by 146
- 2021Action-Based Conversations Dataset: A Corpus for Building More In-Depth Task-Oriented Dialogue Systemscited by 73
- 2023Making Language Models Better Tool Learners with Execution Feedbackcited by 69
- 2023Confucius: Iterative Tool Learning from Introspection Feedback by Easy-to-Difficult Curriculumcited by 64
- 2023Prompt-Based Monte-Carlo Tree Search for Goal-Oriented Dialogue Policy Planningcited by 60
- 2020STAR: A Schema-Guided Dialog Dataset for Transfer Learningcited by 43
- 2017Generating High-Quality and Informative Conversation Responses with Sequence-to-Sequence Modelscited by 42
- 2020Best-First Beam Searchcited by 40
- 2020Visually-Grounded Planning without Vision: Language Models Infer Detailed Plans from High-level Instructionscited by 36
- 2022Neuro-Symbolic Procedural Planning with Commonsense Promptingcited by 28
- 2021Understanding Multimodal Procedural Knowledge by Sequencing Multimodal Instructional Manualscited by 18
- 2023GEAR: Augmenting Language Models with Generalizable and Efficient Tool Resolutioncited by 17
- 2022AnyTOD: A Programmable Task-Oriented Dialog Systemcited by 10
- 2023Measuring and Mitigating Constraint Violations of In-Context Learning for Utterance-to-API Semantic Parsingcited by 6
Built on by
Citing papers per year: 2024: 3; 2025: 5; 2026: 3.
11 papers.
- 2025Large Language Models for Planning: A Comprehensive and Systematic Surveycited by 38
- 2024On the Brittle Foundations of ReAct Prompting for Agentic Large Language Modelscited by 17
- 2025SOP-Agent: Empower General Purpose AI Agent with Domain-Specific SOPscited by 11
- 2024Constrained Decoding with Speculative Lookaheadscited by 6
- 2025LLaPa: A Vision-Language Model Framework for Counterfactual-Aware Procedural Planningcited by 6
- 2024SED: Self-Evaluation Decoding Enhances Large Language Models for Better Generationcited by 5
- 2025Agent WARPP: Workflow Adherence via Runtime Parallel Personalizationcited by 3
- 2025TOD-ProcBench: Benchmarking Complex Instruction-Following in Task-Oriented Dialoguescited by 2
- 2026PolicyGuide: From Guarding One Action to Guiding the Whole Workflow for Policy-Compliant LLM Agentscited by 2
- 2026U-MASK: User-adaptive Spatio-Temporal Masking for Personalized Mobile AI Applicationscited by 0
- 2026An Empirical Analysis of Static Analysis Methods for Detection and Mitigation of Code Library Hallucinationscited by 0
- 2026PolicyGuide: From Guarding One Action to Guiding the Whole Workflow for Policy-Compliant LLM Agents20 Aug 2026
- 2026An Empirical Analysis of Static Analysis Methods for Detection and Mitigation of Code Library Hallucinations9 Apr 2026
- 2026U-MASK: User-adaptive Spatio-Temporal Masking for Personalized Mobile AI Applications11 Jan 2026
- 2025TOD-ProcBench: Benchmarking Complex Instruction-Following in Task-Oriented Dialogues20 Nov 2025
- 2025Agent WARPP: Workflow Adherence via Runtime Parallel Personalization23 Jul 2025
- 2025LLaPa: A Vision-Language Model Framework for Counterfactual-Aware Procedural Planning11 Jul 2025
- 2025Large Language Models for Planning: A Comprehensive and Systematic Survey26 May 2025
- 2025SOP-Agent: Empower General Purpose AI Agent with Domain-Specific SOPs16 Jan 2025
- 2024Constrained Decoding with Speculative Lookaheads9 Dec 2024
- 2024SED: Self-Evaluation Decoding Enhances Large Language Models for Better Generation26 May 2024
- 2024On the Brittle Foundations of ReAct Prompting for Agentic Large Language Models22 May 2024