NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Jupiter: Enhancing LLM Data Analysis Capabilities via Notebook and Inference-Time Value-Guided Search

Shuocheng Li, Yihao Liu, Silin Du, Wenxuan Zeng, Zhe Xu, Mengyu Zhou, Yeye He, Haoyu Dong, Shi Han, Dongmei Zhang

TL;DR

JUPITER is a new framework that significantly boosts the data analysis capabilities of Large Language Models (LLMs) by training them on NbQA, a massive new dataset of 38,000+ real-world Jupyter notebook solutions. By combining this specialized training with an inference-time value-guided search (MCTS), open-source models like Qwen2.5-14B can now match or even outperform proprietary giants like GPT-4o on complex, multi-step data science benchmarks.

What Problem Does This Paper Address?

While LLMs are great at writing snippets of code, they often stumble when faced with a complete data science workflow. Real-world data analysis isn't a single prompt-and-response; it’s an iterative, multi-step process involving data cleaning, exploration, visualization, and modeling.

Existing models struggle with two main things:

  1. Lack of Authentic Training Data: Most "tool-use" datasets are synthetic and don't capture the messy, interdependent nature of real Jupyter notebooks.
  2. Sparse Search Spaces: In data science, there are a million ways to write incorrect code and only a few ways to get the right insight. Standard "greedy" decoding (picking the most likely next word) often leads the model down a dead-end path of execution errors.

Methods

The authors introduce a two-pronged solution:

1. The NbQA Dataset Pipeline

The researchers built a scalable pipeline to "mine" expertise from the web. They crawled 1.6 million Jupyter notebooks from GitHub, filtered them for quality and executability, and used GPT-4o to extract standardized task-solution pairs. Unlike synthetic datasets, NbQA reflects how human experts actually use tools like pandas, matplotlib, and scikit-learn to solve problems.

2. The JUPITER Framework

JUPITER treats data analysis as a search problem.

  • Trajectory Collection: During training, the system uses Monte Carlo Tree Search (MCTS) to explore different code-execution paths, identifying which sequences of "thoughts" and "actions" lead to correct answers.
  • Value Model Training: They train a specialized "Value Model" (VM) to predict the probability of success for any given state of a notebook.
  • Value-Guided Inference: At test time, instead of just guessing the next step, the model uses the VM to look ahead. It explores multiple potential code steps and prioritizes the ones the VM deems most promising, effectively "searching" for the correct solution path.

Datasets

  • NbQA (New): The core contribution, containing 38,635 high-quality task-solution pairs extracted from real-world notebooks.
  • InfiAgent-DABench: A benchmark for evaluating data analysis agents.
  • DSBench: A challenging benchmark focused on data modeling and Kaggle-style competition tasks.
  • AIME 2025: Used to test the model's generalization to out-of-domain mathematical reasoning.

Key Insights and Ideas

  • Real-World > Synthetic: The "aha moment" here is that the inherent structure of Jupyter notebooks—which record the trial-and-error process of human experts—is a goldmine for training reasoning agents.
  • Search is a Superpower: By removing the "exploration" term during inference and relying purely on the Value Model, the authors found they could discover correct solutions much more efficiently. This suggests that for data science, the challenge isn't just "creativity," but "navigation" through a space of potential errors.
  • Context Matters: On the DSBench (Kaggle) tasks, the authors found that simply asking the model to "simplify" the long, redundant competition descriptions before solving them led to a massive performance boost.

Key Results

The results are a wake-up call for those who believe only the largest proprietary models can do complex data science:

  • Beating the Giants: A fine-tuned Qwen2.5-14B using JUPITER search achieved an accuracy of 86.38% on InfiAgent-DABench, surpassing GPT-4o (85.99%).
  • Massive Gains from Fine-Tuning: Supervised fine-tuning on the NbQA dataset alone improved the accuracy of 7B-parameter models by over 21% absolute.
  • Near-Perfect Modeling: On the DSBench data modeling tasks, the 14B model reached a staggering 98.65% task completion rate after 50 search iterations.

Limitations and Future Work

  • Compute Cost: Inference-time search is significantly more expensive than direct inference, as it requires running multiple code execution loops.
  • Reward Sparsity: The current reinforcement learning (RL) approach uses rule-based matching for rewards, which can be "sparse" (the model only gets feedback at the very end).
  • Future Direction: The authors suggest moving toward model-based reward functions, where a learned "judge" model provides more nuanced, step-by-step feedback during the training process.

Summary updated

BibTeX
@inproceedings{li2026jupiter,
  author = {Shuocheng Li and Yihao Liu and Silin Du and Wenxuan Zeng and Zhe Xu and Mengyu Zhou and Yeye He and Haoyu Dong and Shi Han and Dongmei Zhang},
  title = {{Jupiter: Enhancing LLM Data Analysis Capabilities via Notebook and Inference-Time Value-Guided Search}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i37.40440},
}
Figure