atlas

Research map / Large language models / Instruction and fine-tuning

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

NeurIPS 2024 · Large language models › Instruction and fine-tuning · approach: Fine-tuning generalization and delta compression · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Builds DACO, a dataset of 440 real-world databases with ~2k GPT-4 code-generated data analysis answers plus a human-refined test set, and trains CodeGeeX2-6B with SFT and fine-grained RLHF using contribution and regularization reward models.

Problem

Existing table QA work focuses on simple factual lookup or arithmetic, while real-world application-driven data analysis requires diverse mathematical, logical and strategic reasoning over databases.

Approach

Generate application-driven queries and multi-turn Python code-execution analyses with GPT-4 as weak supervision, refine a test subset by humans, and apply fine-grained RLHF with dense step-level contribution reward and a regularization reward model to address sparse reward for code steps.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add code generation to GPT-4 (ablation)GPT-4 · DACO Test^Ahelpfulness: 30.43 -> 50.79Helped
Add code generation to GPT-4 (ablation)GPT-4 · DACO Test^Hhelpfulness: 20.50 -> 43.92Helped
Add code generation to ChatGPT (ablation)ChatGPT · DACO Test^Ahelpfulness: 19.31 -> 26.51Helped
Add code generation to ChatGPT (ablation)ChatGPT · DACO Test^Hhelpfulness: 13.50 -> 21.38Helped
Train SFT using code-generation trajectories as well as final answers (ablation)CodeGeeX2-6B SFT · DACO Test^Ahelpfulness: 18.96 -> 13.73Hurt
Train SFT using code-generation trajectories as well as final answers (ablation)CodeGeeX2-6B SFT · DACO Test^Hhelpfulness: 11.33 -> 9.83Hurt
Apply standard RLHF to the code-generation SFT model (ablation)CodeGeeX2-6B · DACO Test^Ahelpfulness: 13.73 -> 10.64Hurt
Apply standard RLHF to the code-generation SFT model (ablation)CodeGeeX2-6B · DACO Test^Hhelpfulness: 9.83 -> 7.51Hurt
Use fine-grained RLHF with dense contribution and regularization rewards instead of SFT (ablation)CodeGeeX2-6B · DACO Test^Ahelpfulness: 13.73 -> 19.42Helped
Use fine-grained RLHF with dense contribution and regularization rewards instead of SFT (ablation)CodeGeeX2-6B · DACO Test^Hhelpfulness: 9.83 -> 12.50Helped
Use FG-RLHF instead of SFT (ablation)CodeGeeX2-6B · Human pairwise comparison on DACOwin rate: 57.72Helped
Use FG-RLHF instead of SFT (ablation)CodeGeeX2-6B · InfiAgent-DAaccuracy: 12.92 -> 14.61Helped

Surprising findings

Limitations

Experimental setup

Datasets: Spider Kaggle databases DACO train split InfiAgent-DA FeTaQA

Benchmarks: DACO Test^A DACO Test^H InfiAgent-DA FeTaQA

Metrics: helpfulness win rate entailment probability BLEU Rouge-L BERTScore point-wise helpfulness

Baselines: TAPAS TAPEX ChatGPT GPT-4 SFT

Builds on: ReAct RLHF fine-grained RLHF TAPAS TAPEX

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy