Cleared for Takeoff? Compositional & Conditional Reasoning may be the Achilles Heel to (Flight-Booking) Language Agents

Harsh Kohli, Huan Sun

Introduction: The Reasoning Gap in Autonomous Agents

As large language models (LLMs) transition from conversational interfaces to autonomous agents capable of executing complex tasks like travel booking or logistics management, a critical question emerges: can they handle the "messy" logic of real-world decision-making? While LLMs excel at pattern matching, they often struggle with compositional reasoning (combining multiple sub-requirements) and conditional reasoning (if-then logic).

Consider a typical user request: "I want a flight under $500, but if it has a layover in London, I'm willing to pay up to $800." This requires the agent to map interdependent natural language constraints to a fixed set of data options. This paper introduces GroundCocoa, a rigorous new benchmark designed to test this specific brand of logical grounding. The findings reveal a significant "reasoning gap": even industry-leading models like GPT-4 Turbo fail to exceed 67% accuracy, suggesting that current AI often relies on training shortcuts rather than genuine logical deduction.

Methodology: The GroundCocoa Generation Pipeline

To ensure logical complexity and mathematical validity, the authors developed a five-stage automated pipeline to generate the GroundCocoa dataset. This pipeline ensures that every natural language query is backed by a verifiable logical structure.

The GroundCocoa generation pipeline transforms logical constraints into natural language user requests through a multi-step process involving symbolic math and LLM paraphrasing.
  1. Data Collection: Real-time flight data was scraped from Google Flights for the top 50 busiest airports using Selenium.
  2. Product-of-Sums (POS) Generation: Using SymPy, the researchers created "Product-of-Sums" expressions. This mathematical approach allows for a mix of AND/OR conditions that are guaranteed to be satisfiable.
  3. Primitive Generation: Logical slots (e.g., price, airline, layover time) are converted into dry logical primitives (e.g., "Ticket price should be under $1000").
  4. LLM Paraphrasing: GPT-4 Turbo transforms these primitives into diverse, natural-sounding user requests.
  5. Option Matching: Each query is paired with five flight options, where exactly one satisfies all the complex conditions.

Benchmarking LLM Performance

The GroundCocoa benchmark consists of 4,849 test samples derived from 728 unique complex queries. These queries range in complexity from 2 to 6 attributes (slots). Crucially, the dataset includes "atypical" queries—contrarian needs like "I want at least 2 layovers"—to test if models are simply biased toward common travel preferences found in their training data.

Performance comparison of open-source and closed-source models on the GroundCocoa benchmark, highlighting the drop in accuracy for atypical requests.

Key Results

  • GPT-4 Turbo emerged as the top performer but reached a ceiling of 66.92% accuracy using partial Chain-of-Thought (CoT) prompting.
  • Llama 3.1-70B achieved a respectable ~58%, but smaller models like Llama 2-7B hovered around 14-15%, performing worse than random guessing (20%) on a five-option task.
  • Gemini Pro struggled significantly, with accuracy landing at approximately 41%.
  • Complexity Sensitivity: As the number of logical slots increased from 2 to 6, accuracy across all models showed a sharp, steady decline.

Insights: Bias and Prompting Paradoxes

The study revealed several counter-intuitive findings regarding how LLMs process logic:

The "Atypical" Bias: Models performed significantly worse on atypical requests. For instance, Llama 3.1-70B with L2M prompting dropped from 68.18% on regular queries to 50.89% on atypical ones. This suggests models are often "guessing" based on typical traveler behavior rather than reasoning through the specific constraints provided.

The Prompting Paradox: Advanced techniques like Chain-of-Thought (CoT) and Least-to-Most (L2M) prompting yielded mixed results. In several instances, CoT actually hindered performance. The authors hypothesize that the resulting long-form context became so complex that the model lost track of the original requirements.

Structural Complexity: By mapping requirements to dependency graphs, the researchers found that "reasoning width"—the number of variables a model must consider simultaneously—is the primary driver of model failure.

Conclusion and Future Work

GroundCocoa exposes a fundamental weakness in current language agents: they are not yet "cleared for takeoff" when it comes to complex, conditional reasoning. While the benchmark is currently focused on flight booking, the underlying logic is generalizable. Future work will look to expand GroundCocoa into multi-turn dialogues, existential quantification, and other domains like e-commerce. The authors have released their code and pipeline to encourage the community to bridge this reasoning gap.

Summary updated

BibTeX
@inproceedings{kohli2025cleared,
  author = {Harsh Kohli and Huan Sun},
  title = {{Cleared for Takeoff? Compositional \& Conditional Reasoning may be the Achilles Heel to (Flight-Booking) Language Agents}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.420},
}
Figure