Introduction
GroundCocoa is a novel benchmark designed to evaluate the ability of large language models (LLMs) to navigate complex, conditional user requirements within a realistic flight booking scenario. While LLMs excel at linear deductive tasks, GroundCocoa reveals a significant performance gap in compositional and conditional reasoning. Even state-of-the-art models like GPT-4 Turbo struggle, failing to exceed 67% accuracy when faced with interdependent constraints.
Standard benchmarks often focus on "linear" reasoning chains (e.g., if A then B, if B then C). However, real-world decision-making is frequently non-linear and highly conditional. The authors identify two primary deficiencies in current LLM evaluations: conditional reasoning, the ability to handle "if-then" rules where requirements are mutually dependent, and compositional reasoning, the integration of multiple sub-constraints into a single, coherent decision.
Methodology: The GroundCocoa Pipeline
The researchers developed a five-stage pipeline to generate the GroundCocoa benchmark, ensuring both logical rigor and natural language variety.
- Data Scraping: Real-time flight data was collected via Selenium from Google Flights for the top 50 busiest airports.
- Constraint Generation: Random constraints were generated for specific "slots" or attributes, such as price, number of layovers, and airline.
- Symbolic Logic (Product-of-Sums): Using the SymPy library, the pipeline generates Product-of-Sums (POS) expressions. This mathematical framework creates complex interdependencies between flight attributes, ensuring the logic is challenging and sound.
- Primitive Generation: Logical primitives are defined for each attribute.
- LLM Paraphrasing: To simulate natural human interaction, GPT-4 Turbo paraphrased raw logical constraints into conversational English.
The final step involves matching these requirements against five flight options, ensuring that exactly one correct answer exists for each multiple-choice question.
The GroundCocoa Benchmark
The resulting GroundCocoa benchmark consists of 4,849 test samples derived from 728 unique queries. The dataset is categorized by complexity, varying the number of "slots" (from 2 to 6) and "minterms" (logical combinations). Additionally, an "atypical" subset was created to test for training biases (e.g., a user requesting more layovers), challenging the model's ability to follow logic over statistical probability.
Analysis of Compositional Reasoning
The evaluation of various LLMs on GroundCocoa yielded several critical insights into the nature of model failure:
- The "Reasoning Width" Challenge: Unlike benchmarks testing reasoning "depth" (long chains), GroundCocoa tests "width"—the number of variables a model must track simultaneously. Performance drops sharply as the number of slots increases.
- Bias Toward Conventionality: Models performed significantly worse on "atypical" requests, suggesting they rely on training patterns (e.g., "users prefer fewer layovers") rather than strict logical adherence.
- Prompting Paradox: Advanced techniques like Chain-of-Thought (CoT) and Least-to-Most (L2M) prompting showed inconsistent results. In some instances, the increased context length appeared to confuse the models, resulting in lower performance than direct prompting.
Experimental Results
The performance gap between models is stark. GPT-4 Turbo achieved the highest accuracy at approximately 67%, while smaller models like Llama 2-7B performed near the level of random chance (~14.6%). While Llama 3.1-70B showed improvement (~58-60%), it still falls short of the leading proprietary models.
Complexity sensitivity is a major factor; for GPT-4 Turbo, accuracy plummeted from 70% on low-complexity graphs (LCC=2) to 55% on high-complexity ones (LCC=5). The authors also found a clear correlation between Shannon entropy (uncertainty in answer choices) and model failure.
Conclusion and Future Work
While GroundCocoa provides a rigorous test of reasoning, it is currently limited to the flight booking domain. Future work aims to extend this pipeline to other domains and incorporate more advanced logical structures, such as existential quantification and aggregations (e.g., "find the cheapest flight that meets X"). The benchmark serves as a vital tool for identifying and addressing the "reasoning width" bottleneck in current language models.
Summary updated