NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Robust Planning with LLM-Modulo Framework: Case Study in Travel Planning

Atharva Gundawar, Mudit Verma, Lin Guan, Karthik Valmeekam, Siddhant Bhambri, Subbarao KambhampatiarXiv 2024 · DOI

Introduction

While Large Language Models (LLMs) have demonstrated remarkable versatility across various domains, they notoriously struggle with complex "System 2" tasks, such as long-term planning. These tasks require maintaining a consistent internal model of constraints and logical dependencies over multiple steps. In the context of travel planning—which involves juggling budgets, flight timings, hotel availability, and personal preferences—LLMs often "hallucinate" valid-looking but practically impossible itineraries.

This paper introduces the LLM-Modulo framework, an iterative architecture designed to bridge the reasoning gap by embedding LLMs within a loop of generation, external verification, and refinement. By utilizing external "critics" to provide structured feedback, the framework achieves a significant 4.6x performance boost on the challenging TravelPlanning benchmark, raising GPT-4's success rate from a baseline of 4.4% to 20.6%.

The Challenge of Multi-Constraint Planning

Planning a multi-day trip is a high-dimensional optimization problem. Current state-of-the-art prompting techniques, such as Chain-of-Thought (CoT) or ReAct, often fail in this domain, achieving less than 1% accuracy on standardized benchmarks where humans typically score 100%. The primary reason for this failure is the LLM's lack of an internal mechanism to verify its own plans against hard constraints. Without external grounding, the model cannot reliably ensure that a proposed flight fits within a budget or that two activities do not overlap in time.

The LLM-Modulo Framework

The authors propose the LLM-Modulo framework, which treats the LLM as a single component within a larger, verifiable system rather than a standalone solver. The architecture follows a "generate-test-refine" loop:

  1. Generator: The LLM produces an initial itinerary based on a natural language user query.
  2. Reformatter: A secondary LLM process converts the natural language plan into a structured JSON format suitable for programmatic verification.
  3. Critics (The "Modulo" Component): A suite of external verifiers checks the structured plan against various constraints. These include Format Critics (ensuring JSON validity), Hard Constraint Critics (verifying budget, transportation, and lodging rules), and Commonsense Critics (ensuring logical consistency, such as not being in two places at once).
  4. Metacontroller: If any critic identifies an error, the metacontroller aggregates this feedback into a "backprompt." This prompt is sent back to the LLM generator to refine the plan. This cycle repeats for up to 10 iterations or until all critics are satisfied.
The LLM-Modulo framework architecture, illustrating the iterative loop between the LLM generator and external critics.

A notable innovation in this work is the use of the LLM itself to generate the Python code for these critics. By providing the LLM with database schemas and documentation, it can automate the creation of the verification suite, demonstrating that LLMs are often better at building tools than they are at solving the end-task directly.

Experimental Setup and Datasets

The study utilizes the TravelPlanning Benchmark, a rigorous evaluation set consisting of 180 validation queries. Each query describes a multi-day trip with specific constraints. To prevent the LLM from relying on memorized training data, the environment provides "sandboxed" data for flights, restaurants, and hotels. Plans are evaluated based on their ability to satisfy both mathematical/logical "hard" constraints and general "commonsense" constraints.

Performance Gains and Results

The LLM-Modulo framework significantly outperformed all baseline agentic paradigms, including Direct prompting, CoT, and Reflexion.

Performance comparison of various prompting techniques and the LLM-Modulo framework on the TravelPlanning benchmark.

As shown in the results table, GPT-4-Turbo's baseline "Direct" success rate was only 4.4%. Under the LLM-Modulo framework, this jumped to 20.6%. Even more striking was the improvement for GPT-3.5-Turbo; while its baseline performance was near 0%, the framework enabled it to reach a 5% success rate, effectively outperforming the unassisted GPT-4. The framework saw massive gains in the "Hard Pass Rate"—the ability to meet all budget and transportation rules—which rose from 24.4% to 39.4% for GPT-4.

Discussion and Key Insights

The research highlights several critical insights into the nature of LLM reasoning:

  • External Verification is Essential: Standard "internal" reasoning enhancements like CoT provided almost zero improvement. For complex planning, an external "ground truth" or verification mechanism is necessary to correct hallucinations.
  • Composability of Critics: Ablation studies revealed that the system's robustness depends on the interaction of multiple critic types. Checking only one constraint (e.g., budget) often leads to the violation of others.
  • Iterative Refinement Dynamics: Most formatting issues are resolved in the initial iterations, whereas satisfying hard constraints often requires multiple rounds of back-and-forth between the generator and the critics.

Conclusion and Future Work

While the 4.6x improvement is a significant step forward, a 20.6% success rate remains far below human-level performance. The authors identify several avenues for future research, including developing more sophisticated metacontrollers that can strategically prioritize feedback and exploring how constraints correlate. Future iterations will also move beyond the "sole-planning" mode to "tool-use" scenarios, where agents must actively query databases to gather information during the planning process.

The LLM-Modulo framework demonstrates that by surrounding LLMs with structured, external verification systems, we can significantly enhance their utility for complex, real-world planning tasks.

Summary updated

BibTeX
@misc{gundawar2024robust,
  author = {Atharva Gundawar and Mudit Verma and Lin Guan and Karthik Valmeekam and Siddhant Bhambri and Subbarao Kambhampati},
  title = {{Robust Planning with LLM-Modulo Framework: Case Study in Travel Planning}},
  year = {2024},
  eprint = {2405.20625},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.20625},
}
Figure