mlsanityData to 7 Oct 2026

DACO: Towards Application-Driven and Comprehensive Data Analysis via Code Generation

arXiv 2403.02528 ↗First posted 4 Mar 2024cs.CL cs.AIcited by 6

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

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2017Proximal Policy Optimization Algorithmscited by 14,441
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  6. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  7. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  8. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
  9. 2023Let's Verify Step by Stepcited by 3,598
  10. 2021Program Synthesis with Large Language Modelscited by 3,509
  11. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  12. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
34 more
  1. 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,302
  2. 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,205
  3. 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
  4. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
  5. 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 1,916
  6. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  7. 2021Measuring Coding Challenge Competence With APPScited by 879
  8. 2022BERTopic: Neural topic modeling with a class-based TF-IDF procedurecited by 779
  9. 2023Open Problems and Fundamental Limitations of Reinforcement Learning from Human Feedbackcited by 743
  10. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
  11. 2021FinQA: A Dataset of Numerical Reasoning over Financial Datacited by 552
  12. 2015Compositional Semantic Parsing on Semi-Structured Tablescited by 509
  13. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  14. 2020TAPAS: Weakly Supervised Table Parsing via Pre-trainingcited by 432
  15. 2021TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Financecited by 402
  16. 2023Fine-Grained Human Feedback Gives Better Rewards for Language Model Trainingcited by 399
  17. 2023Chameleon: Plug-and-Play Compositional Reasoning with Large Language Modelscited by 352
  18. 2022Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoningcited by 347
  19. 2022The Effects of Reward Misspecification: Mapping and Mitigating Misaligned Modelscited by 312
  20. 2023Large Language Models as Tool Makerscited by 293
  21. 2020HybridQA: A Dataset of Multi-Hop Question Answering over Tabular and Textual Datacited by 263
  22. 2021TAPEX: Table Pre-training via Learning a Neural SQL Executorcited by 233
  23. 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
  24. 2023Secrets of RLHF in Large Language Models Part I: PPOcited by 226
  25. 2022Defining and Characterizing Reward Hackingcited by 184
  26. 2021FeTaQA: Free-form Table Question Answeringcited by 174
  27. 2020Open Question Answering over Tables and Textcited by 163
  28. 2024InfiAgent-DABench: Evaluating Agents on Data Analysis Taskscited by 134
  29. 2023CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsetscited by 122
  30. 2023Is GPT-4 a Good Data Analyst?cited by 69
  31. 2024Are LLMs Capable of Data-based Statistical and Causal Reasoning? Benchmarking Advanced Quantitative Reasoning with Datacited by 61
  32. 2022Execution-based Evaluation for Data Science Code Generation Modelscited by 31
  33. 2019A Survey of Data Quality Measurement and Monitoring Toolscited by 19
  34. 2023On Evaluating the Integration of Reasoning and Action in LLM Agents with Database Question Answeringcited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 2; 2026: 3.

6 papers.