Zephyrus: An Agentic Framework for Weather Science

Sumanth Varambally, Marshall Fisher, Jas Thakker, Yiwei Chen, Zhirui Xia, Yasaman Jafari, Ruijia Niu, Manas Jain, Veeramakali Vignesh Manivannan, Zachary Novack, Luyu Han, Srikar Eranky, Salva Rühling Cachay, Taylor Berg-Kirkpatrick, Duncan Watson-Parris, Yi-An Ma, Rose Yu

TL;DR

The paper introduces Zephyrus, the first agentic framework designed to bridge the gap between Large Language Models (LLMs) and high-dimensional meteorological data. By equipping LLMs with a suite of specialized weather tools and an iterative code-execution environment, Zephyrus outperforms text-only baselines by up to 44 percentage points on a newly introduced comprehensive benchmark, ZephyrusBench.

What Problem Does This Paper Address?

In recent years, AI foundation models for weather forecasting (like Stormer or Climax) have achieved state-of-the-art performance, frequently outperforming traditional physics-based simulations. However, these models operate strictly on structured numerical grids and lack language-based reasoning capabilities, making them impossible to use in interactive scientific workflows or decision-support systems.

Conversely, frontier LLMs excel at conversational reasoning and text generation but are fundamentally incapable of processing or reasoning over high-dimensional, multi-scale spatiotemporal meteorological datasets (such as ERA5 reanalysis data). Existing attempts to bridge this gap have been narrow, focusing only on isolated tasks like extreme wind detection. Zephyrus addresses this disconnect by creating a unified environment where LLMs can interact programmatically with weather data and forecasting models to solve complex, open-ended meteorological problems.

Methods

The authors develop an agentic ecosystem consisting of three core pillars:

  1. ZephyrusWorld (The Agentic Environment): A sandboxed Python environment that exposes high-level APIs for essential weather science tools:
  2. WeatherBench 2 Data Indexer: Provides clean access to global atmospheric data via xarray.
  3. Geolocator: Translates natural language place names to coordinates and generates spatial masks using the Natural Earth dataset.
  4. Forecaster: Integrates the Stormer model, a transformer-based neural weather prediction system.
  5. Simulator: Incorporates the JCM simulator (built on JAX) for intermediate-complexity climate simulations.
  6. Climatology Module: Queries precomputed historical statistics (means, quantiles, extremes) from 1979–2000.
  7. Parallel Code Execution Server: To handle multiple complex analysis tasks simultaneously without resource conflicts, the authors implement a FastAPI-based server-client architecture. It manages resource pools for each tool and executes agent-generated code with strict timeout protections.
Figure 1: Overview: We develop ZEPHYRUS, an agentic framework for weather science. Given a query, the LLM-based agent ZEPHYRUS writes a code block which is sent to the code execution server. The server orchestrates several tools to execute the code block and returns the execution results to the agent. The agent either decides to execute more code to refine its output or respond back to the user. Refer to Appendix A.3 for the full prompt.
  1. The Zephyrus Agent Family: The authors design two distinct workflows:
  2. Zephyrus-Direct: Generates a complete Python solution in a single attempt, running an error-correction loop up to 20 times if execution fails.
  3. Zephyrus-Reflective: Implements a multi-turn, ReAct-style workflow. The agent executes individual code blocks, observes the data outputs, evaluates scientific plausibility, and iteratively refines its approach.

Datasets & Benchmarks

To rigorously evaluate these agents, the authors introduce ZephyrusBench, a benchmark built on top of the ERA5 reanalysis dataset. It comprises 2,230 question-answer pairs across 49 distinct tasks, categorized by difficulty (Easy, Medium, Hard).

ZephyrusBench Dataset Statistics

The benchmark is constructed using two methods:

  • Human-Generated Tasks: 19 tasks curated with domain experts, ranging from basic data lookups to complex operational workflows like generating ENSO (El Niño–Southern Oscillation) outlook reports or identifying disasters using the EM-DAT database.
  • Semi-Synthetic Tasks: 30 tasks generated via a pipeline that extracts quantifiable claims from NOAA meteorological reports using an LLM, converts them into reusable templates, and programmatically verifies them against raw ERA5 data.
Figure 3: Semi-synthetic task generation pipeline: Weather-related texts are processed by a claim extraction agent to identify scientifically meaningful observational claims. Verified claims are transformed into reusable templates and manually reviewed. Code is generated by an LLM and verified by humans to validate each sample from a template against ERA5 meteorological data. We combine the verifier code with the templates and WeatherBench data to produce novel samples.

Key Insights and Ideas

  • Code Execution as a Grounding Mechanism: Directly feeding high-dimensional data into an LLM context window is impossible due to token limits and reasoning constraints. Translating the problem into code generation allows the LLM to offload heavy numerical processing to specialized Python libraries (xarray, geopandas), effectively grounding its text responses in real data.
  • The "Tool Confusion" Phenomenon: In ablation studies, removing the climate simulator occasionally improved performance on short-term forecasting tasks. This revealed that agents sometimes mistakenly select the more complex physics simulator over the faster neural forecaster, highlighting a subtle failure mode in LLM instruction-following.
  • The Reflection Advantage in Text Generation: While Zephyrus-Direct and Zephyrus-Reflective perform similarly on purely numerical tasks, the reflective agent significantly shines in generating descriptive meteorological reports. The execute-observe-refine loop allows the model to synthesize nuanced textual narratives from data observations.

Key Results

The evaluation compared five frontier LLM backbones (including GPT-5.2, Gemini 2.5 Flash, and Qwen3-30B) across text-only baselines and the two Zephyrus agent variants.

  • Massive Performance Gains: Zephyrus agents drastically outperformed text-only baselines across all models, achieving up to a 44 percentage point increase in overall correctness.
  • Difficulty Breakdown:
  • Easy Tasks: Agents achieved stellar performance, ranging from 76.2% to 90.9% correctness.
  • Medium Tasks: Performance was moderate, sitting between 49.3% and 63.5%.
  • Hard Tasks: All models struggled significantly, peaking at just 37.7% correctness (achieved by Zephyrus-Reflective + GPT-5-Mini).
  • Geospatial Accuracy: For location-based tasks, Zephyrus-Reflective powered by GPT-5.2 achieved an impressive 90.4% location accuracy, compared to just 18.2% for the text-only baseline.

Limitations and Future Work

Despite the success of the framework, the authors note several critical bottlenecks:

  • Long-Term and Large-Scale Reasoning: All models failed completely on global climate forecasting tasks spanning three months, showing that long-horizon scientific planning remains an open challenge.
  • Textual Report Generation: Even the best-performing model scored low (0.27 discussion score) on generating comprehensive textual weather reports, often producing rigid outputs rather than nuanced scientific discussions.
  • Future Directions: The authors plan to extend ZephyrusWorld's modular architecture to support adjacent earth science fields, such as hydrology, geosensing, and broader climate science, while incorporating larger-scale datasets.

Summary updated

BibTeX
@inproceedings{varambally2026zephyrus,
  author = {Sumanth Varambally and Marshall Fisher and Jas Thakker and Yiwei Chen and Zhirui Xia and Yasaman Jafari and Ruijia Niu and Manas Jain and Veeramakali Vignesh Manivannan and Zachary Novack and Luyu Han and Srikar Eranky and Salva Rühling Cachay and Taylor Berg-Kirkpatrick and Duncan Watson-Parris and Yi-An Ma and Rose Yu},
  title = {{Zephyrus: An Agentic Framework for Weather Science}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=aVeaNahsID},
}
Figure