TL;DR
This paper introduces COTA, a robust new benchmark for evaluating how well Large Language Models (LLMs) handle complex, multi-turn conversational tabular data analysis. To help models bridge the performance gap in this challenging domain, the authors also propose Adaptive Conversation Reflection (ACR), a strategy that allows agents to learn from their own successful histories, yielding performance gains of up to 35%.
What Problem Does This Paper Address?
While we’ve seen massive strides in LLMs' ability to write code and answer questions, "Conversational Tabular Data Analysis" remains a frontier. Real-world data science isn't just a single prompt; it’s a back-and-forth process involving ambiguous user queries, the need for clarification, and the use of proprietary or "private" code libraries.
Existing benchmarks often fall short because they focus on single-turn tasks (like Text-to-SQL) or lack the "messiness" of human-agent interaction. Furthermore, collecting high-quality, realistic conversational logs is prohibitively expensive and raises privacy concerns. The authors tackle two main questions: How do we measure an LLM's data analysis "fluency" across multiple turns, and how can we make them better at it?
Methods
The researchers introduced two major innovations to address these challenges:
- DECISION COMPANY: A multi-agent sandbox used to generate the benchmark data. It features four specialized GPT-4 agents (Administrator, Client, Data Scientist, and AI Chatbot) interacting under human expert supervision. This "human-in-the-loop" multi-agent approach allowed the team to generate high-quality, diverse data at a fraction of the cost of traditional crowdsourcing.
- Adaptive Conversation Reflection (ACR): A self-evolution strategy for LLM agents. Instead of just feeding the raw dialogue history back into the model, ACR uses a two-step process:
- Pseudo Code Logic Generation: The model reflects on previous successful turns to extract the underlying "logic" or pseudocode.
- Re-Org One-Shot Reasoning: This logic is reorganized into a self-generated one-shot example that guides the model's current reasoning process.
The COTA Benchmark
The primary contribution is the COTA (COnversational Tabular data Analysis) benchmark.
- Scale: 1,013 conversations with 1,162 unique user intents.
- Scenarios: It covers four distinct modes: Normal (explicit requirements), Action (requires clarification/ambiguity handling), Private (using unseen custom packages), and Private Action (a combination of both).
- Comparison: Unlike previous benchmarks like Spider or BIRD, COTA is multi-turn, supports Python-based analysis, and specifically tests the ability to use "private" (user-defined) libraries.
Key Insights and Ideas
- The "Lazy" LLM: A significant portion of errors (39%) came from "Lazy Assumptions," where the model assumed intermediate dataframes or files were already saved on disk without actually creating them.
- Private Libraries are a Bottleneck: Models struggle significantly when they can't rely on standard libraries like Pandas alone. Understanding and retrieving custom, user-defined functions is a major hurdle for current state-of-the-art models.
- Reflection > Raw History: Simply providing a long dialogue history can lead to "contextual noise." ACR’s approach of distilling history into "logic" helps the model stay on track without getting lost in the weeds of previous turns.
- Human Calibration is Essential: The paper shows that while LLMs can generate data, human expert "calibration" (fixing bugs, refining scenarios) raised the dataset acceptance ratio from roughly 0.4 to 0.95, proving that fully automated benchmark generation isn't quite there yet.
Key Results
- Performance Gap: Even the best-performing model configuration (Claude-3.5-Sonnet with ACR) only achieved a score of 40.0% on the overall benchmark. This highlights that multi-turn data analysis is far from "solved."
- ACR Effectiveness: The Adaptive Conversation Reflection strategy provided a massive boost. For Claude-3.5-Sonnet, it resulted in a 35.14% relative improvement over the base model.
- Model Rankings: Claude-3.5-Sonnet and Llama-3.3-70B generally outperformed the GPT-4 family on the base tasks, suggesting that the benchmark is not overfitted to the GPT models used to generate it.
Limitations and Future Work
The authors acknowledge that while ACR helps, it can sometimes make agents too reliant on history. In "Best_Guess" scenarios—where a model should make an educated guess about an ambiguous query—ACR-enabled models sometimes defaulted to "None of the Above" because they couldn't find a historical precedent for the guess.
Future work will likely focus on striking a better balance between following historical logic and reacting to real-time user behavior, as well as improving the "retrieval" phase for private libraries, which remains a weak spot for even the most advanced agents.
Summary updated