TL;DR
VESTA (Visual Exploration with Statistical Tool Agents) is a novel framework that empowers Vision-Language Models (VLMs) to automate quantitative model fitting by dynamically creating and reusing a toolkit of visual diagnostic subroutines. By actively exploring data through custom-generated visualizations and statistical tests, VESTA significantly outperforms existing text-only and static agentic pipelines on complex distribution fitting and time-series tasks.
What Problem Does This Paper Address?
Fitting quantitative models to scientific data is a foundational yet notoriously stubborn bottleneck in automated science workflows. While Large Language Models (LLMs) and VLMs excel at generating initial code or high-level hypotheses, they struggle with the iterative refinement loop—traditionally known as "Box's Loop"—when dealing with complex, real-world data distributions or noisy time series.
Prior agentic approaches typically rely on text-based critiques or basic, single-use plotting tools. They lack the ability to perform deep, hypothesis-driven data exploration, apply domain-specific transformations (like log-log scaling), or run robust statistical tests. Without these capabilities, agents frequently fail to diagnose model misspecifications, such as misaligned peaks or heavy-tailed behaviors.
Methods
VESTA addresses this gap by implementing a four-step iterative loop that combines probabilistic programming with dynamic tool creation:
- Propose: The agent generates a set of diverse candidate models defined in PyMC, a Bayesian probabilistic programming framework.
- Generate/Retrieve Tools: Instead of relying on a fixed set of functions, VESTA features a Tool Manager. The agent can either retrieve an existing diagnostic tool from a growing registry or dynamically write new Python code to create a custom visual tool tailored to its current hypothesis. Crucially, these tools persist in the registry and can be reused across iterations.
- Critique: A VLM critic inspects the visual and statistical outputs generated by the tool (e.g., residual plots, Q-Q plots) to evaluate the model's fit and suggest refinements.
- Summarize: The iteration's findings are compressed into a structured summary to prevent context window explosion while preserving the refinement trajectory.
Datasets
To rigorously evaluate VESTA, the authors introduced DAWN (Dataset for Automated Workflows and Numerical Modeling), a benchmark consisting of 200 discrete probability distributions and 200 time-series datasets. DAWN is split into three difficulty tiers:
- Easy: Unimodal distributions and simple linear trends with basic periodic components.
- Hard: Complex mixtures of distinct distributions (e.g., Gaussian-Laplace mixtures) and non-linear time-series dynamics (e.g., random walks, sigmoidal trends).
- Astro: Real-world astronomy challenges requiring domain-specific conventions, including modeling stellar Initial Mass Functions (IMFs) and detecting gravitational-wave chirp signals embedded in heavy noise.
Key Insights and Ideas
- The Power of Tool Persistence: Unlike baseline systems that treat code execution as single-use cells, VESTA reuses its dynamically generated tools in 79.5% of problem instances. This allows the agent to maintain a consistent baseline for evaluating model improvements over time.
- Spontaneous Tool Composition: When allowed to write its own code, VESTA independently "discovers" and composes multiple classic statistical techniques into sophisticated, multi-panel diagnostic dashboards. For instance, it frequently combines histograms, box plots, and complementary cumulative distribution functions (CCDFs) into a single visual artifact to test multiple hypotheses at once.
- Domain Adaptation: VESTA dynamically tailors its tools to the nature of the data. On the Astro split, which features heavy-tailed IMF distributions, VESTA automatically increases its usage of tail-diagnostic transformations (like log-log plots) from 55.4% (on Easy tasks) to 91.8%.
Key Results
The authors benchmarked VESTA against two prominent baselines: BoxLM (a text-centric iterative refinement loop) and PyVision (a dynamic tool-use VLM framework). Performance was measured using Jensen-Shannon (JS) Divergence for distributions and Expected Log Predictive Density (ELPD-LOO) for time series.
- Superior Accuracy: VESTA consistently outperformed both baselines across all difficulty tiers, with the most pronounced performance gains observed in the Hard and Astro splits.
- Approaching the Human Upper Bound: VESTA with dynamic tool generation closely approached the performance of an "oracle" configuration equipped with static, expert-written tools, proving that autonomous tool discovery is highly effective.
- Robustness: While PyVision suffered from high failure rates (40–60% of runs failing due to code execution or MCMC convergence issues), VESTA maintained stable, high-quality MCMC-based inference.
Limitations and Future Work
Despite its success, VESTA faces a few notable limitations:
- VLM Perceptual Blindness: While VESTA can generate highly sophisticated multi-panel diagnostic plots, current VLMs occasionally struggle to fully unpack and reason over these dense visual layouts.
- Computational Cost: Running full MCMC sampling or MAP estimations for multiple PyMC model proposals at every iteration incurs significant computational overhead, limiting immediate scalability to massive datasets.
- Synthetic vs. Observational Data: While the Astro split mimics real-world physics, the DAWN benchmark is ultimately synthetically generated. Testing VESTA on fully observational, messy scientific data where the ground truth is entirely unknown remains an important next step.
Summary updated