DACO: Towards Application-Driven and Comprehensive Data Analysis via Code Generation
Not on the map. Why?
Abstract (arXiv)
Data analysis is a crucial analytical process to generate in-depth studies and conclusive insights to comprehensively answer a given user query for tabular data. In this work, we aim to propose new resources and benchmarks to inspire future research on this crucial yet challenging and under-explored task. However, collecting data analysis annotations curated by experts can be prohibitively expensive. We propose to automatically generate high-quality answer annotations leveraging the code-generation capabilities of LLMs with a multi-turn prompting technique. We construct the DACO dataset, containing (1) 440 databases (of tabular data) collected from real-world scenarios, (2) ~2k query-answer pairs that can serve as weak supervision for model training, and (3) a concentrated but high-quality test set with human refined annotations that serves as our main evaluation benchmark. We train a 6B supervised fine-tuning (SFT) model on DACO dataset, and find that the SFT model learns reasonable data analysis capabilities. To further align the models with human preference, we use reinforcement learning to encourage generating analysis perceived by human as helpful, and design a set of dense rewards to propagate the sparse human preference reward to intermediate code generation steps. Our DACO-RL algorithm is evaluated by human annotators to produce more helpful answers than SFT model in 57.72% cases, validating the effectiveness of our proposed algorithm. Data and code are released at https://github.com/shirley-wu/daco
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 46 of its 63 references that are in the map. First posted on arXiv 4 Mar 2024.
Builds on
46 of 63 references.
References · 46
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2023Let's Verify Step by Stepcited by 3,598
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
34 more
- 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,302
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,205
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 1,916
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2022BERTopic: Neural topic modeling with a class-based TF-IDF procedurecited by 779
- 2023Open Problems and Fundamental Limitations of Reinforcement Learning from Human Feedbackcited by 743
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
- 2021FinQA: A Dataset of Numerical Reasoning over Financial Datacited by 552
- 2015Compositional Semantic Parsing on Semi-Structured Tablescited by 509
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
- 2020TAPAS: Weakly Supervised Table Parsing via Pre-trainingcited by 432
- 2021TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Financecited by 402
- 2023Fine-Grained Human Feedback Gives Better Rewards for Language Model Trainingcited by 399
- 2023Chameleon: Plug-and-Play Compositional Reasoning with Large Language Modelscited by 352
- 2022Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoningcited by 347
- 2022The Effects of Reward Misspecification: Mapping and Mitigating Misaligned Modelscited by 312
- 2023Large Language Models as Tool Makerscited by 293
- 2020HybridQA: A Dataset of Multi-Hop Question Answering over Tabular and Textual Datacited by 263
- 2021TAPEX: Table Pre-training via Learning a Neural SQL Executorcited by 233
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
- 2023Secrets of RLHF in Large Language Models Part I: PPOcited by 226
- 2022Defining and Characterizing Reward Hackingcited by 184
- 2021FeTaQA: Free-form Table Question Answeringcited by 174
- 2020Open Question Answering over Tables and Textcited by 163
- 2024InfiAgent-DABench: Evaluating Agents on Data Analysis Taskscited by 134
- 2023CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsetscited by 122
- 2023Is GPT-4 a Good Data Analyst?cited by 69
- 2024Are LLMs Capable of Data-based Statistical and Causal Reasoning? Benchmarking Advanced Quantitative Reasoning with Datacited by 61
- 2022Execution-based Evaluation for Data Science Code Generation Modelscited by 31
- 2019A Survey of Data Quality Measurement and Monitoring Toolscited by 19
- 2023On Evaluating the Integration of Reasoning and Action in LLM Agents with Database Question Answeringcited by 10
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 3.
6 papers.
- 2024The Synergy between Data and Multi-Modal Large Language Models: A Survey from Co-Development Perspectivecited by 14
- 2025SPIO: Ensemble and Selective Strategies via LLM-Based Multi-Agent Planning in Automated Data Sciencecited by 7
- 2026LongDA: Benchmarking LLM Agents for Long-Document Data Analysiscited by 6
- 2025Table Question Answering in the Era of Large Language Models: A Comprehensive Survey of Tasks, Methods, and Evaluationcited by 4
- 2026IndustryCode: A Benchmark for Industry Code Generationcited by 1
- 2026SciTaRC: A Plan-Annotated Scientific Tabular QA Benchmark for Language Reasoning and Complex Computationcited by 0
- 2026IndustryCode: A Benchmark for Industry Code Generation3 Apr 2026
- 2026SciTaRC: A Plan-Annotated Scientific Tabular QA Benchmark for Language Reasoning and Complex Computation9 Mar 2026
- 2026LongDA: Benchmarking LLM Agents for Long-Document Data Analysis5 Jan 2026
- 2025Table Question Answering in the Era of Large Language Models: A Comprehensive Survey of Tasks, Methods, and Evaluation8 Oct 2025
- 2025SPIO: Ensemble and Selective Strategies via LLM-Based Multi-Agent Planning in Automated Data Science30 Mar 2025
- 2024The Synergy between Data and Multi-Modal Large Language Models: A Survey from Co-Development Perspective11 Jul 2024