VITA: Variational Pretraining of Transformers for Climate-Robust Crop Yield Forecasting

Adib Hasan, Mardavij Roozbehani, Munther A. Dahleh

TL;DR

This paper introduces VITA, a novel variational pretraining framework for crop yield forecasting that excels in extreme weather years. By learning robust weather representations from rich satellite data and transferring them to limited ground-based inputs, VITA achieves state-of-the-art performance, even outperforming larger models with less computational cost. This advancement is crucial for improving global food security in the face of climate change.

What Problem Does This Paper Address?

Accurate crop yield forecasting is vital for global food security, but current AI models struggle when yields deviate significantly from historical trends, especially during extreme weather events. This underperformance is largely due to a lack of rich, physically grounded datasets that directly link atmospheric conditions to crop yields. Existing methods often rely on extensive auxiliary data (like soil surveys and planting records), limiting their applicability in data-scarce regions. Furthermore, general-purpose time-series pretraining methods often assume consistent input features between pretraining and fine-tuning, creating a "data asymmetry problem" when pretraining uses abundant satellite data and fine-tuning uses limited ground-based data. This paper aims to bridge this gap by developing a framework that can effectively learn from abundant, diverse weather data and generalize to sparser, real-world operational conditions.

Methods

The core of VITA is a two-stage variational pretraining framework:

  1. Self-Supervised Pretraining: A transformer encoder is pretrained on a large dataset of detailed meteorological variables from satellite data. To address the "data asymmetry problem," a progressive feature-wise masking strategy is employed, where a portion of the input features are masked and the model learns to predict them. Crucially, VITA uses a variational objective that maximizes the likelihood of latent weather representations while regularizing them with a prior. This encourages the model to learn robust, generalizable representations rather than simply memorizing specific weather patterns. A key innovation here is the use of a seasonality-aware sinusoidal prior, which explicitly models temporal patterns in weather data, leading to richer representations.
  2. Variational Fine-Tuning: In this stage, the pretrained transformer is fine-tuned for crop yield prediction using only limited, basic weather statistics (e.g., temperature, precipitation) and historical yield data. A significant aspect of VITA's fine-tuning is its decoder-free objective. The authors argue that established physical relationships between basic weather variables and atmospheric states make a direct decoder unnecessary, simplifying the model and reducing computational requirements. The fine-tuning objective balances yield prediction accuracy with the KL divergence term from the pretraining phase, ensuring the learned representations remain well-behaved.

Datasets

  • Pretraining Dataset: NASA POWER dataset (1984-2022) with 31 meteorological variables aggregated weekly at a 0.5° resolution across the Americas. This dataset is used to learn general weather representations.
  • Fine-tuning Dataset: A dataset of county-level corn and soybean yields for 763 U.S. Corn Belt counties (1982-2018) from Khaki, Wang, and Archontoulis (2019). This dataset includes 6 basic ground-based weather measurements per county.

The paper does not introduce new datasets but leverages existing public datasets to address the challenge of data asymmetry.

Key Insights and Ideas

  • Data Asymmetry is Key: The paper highlights that the mismatch between abundant pretraining data (satellite weather) and sparse fine-tuning data (ground weather) is a critical challenge in agricultural AI, and VITA directly addresses this.
  • Variational Pretraining for Robustness: Using a variational objective during pretraining, especially with a seasonality-aware prior, leads to more robust and generalizable weather representations that are less prone to overfitting and better capture underlying atmospheric dynamics.
  • Sinusoidal Prior for Seasonality: Explicitly modeling seasonality with a sinusoidal prior significantly improves the learned representations, allowing the model to better understand and leverage temporal patterns in weather.
  • Decoder-Free Fine-Tuning: Eliminating the decoder in the fine-tuning stage, leveraging established physical relationships, simplifies the model and makes it more efficient without sacrificing performance.
  • Spatial Transferability: Pretraining on broader geographical regions (even climatically distinct ones) significantly improves performance on the target region, demonstrating that VITA learns universal weather-agriculture relationships.

Key Results

  • State-of-the-Art Performance: VITA-Sinusoidal achieved state-of-the-art performance on extreme weather years, with R² scores of 0.729 for corn and 0.722 for soybean. This represents a significant improvement over baselines like T-BERT (+10.5% for corn, +4.2% for soybean) and even larger models like Chronos-Bolt.
  • Extreme Year Specialization: VITA showed substantial gains (up to +7.2% relative improvement over T-BERT) specifically in extreme weather years, demonstrating its ability to handle yield deviations from historical trends.
  • Efficiency: VITA adds minimal parameters and trains end-to-end in under 2.5 hours on a single GPU, making it practical for real-world deployment, especially in data-scarce regions.
  • Robustness: VITA demonstrated robustness across various hyperparameter settings and maintained strong performance even with reduced temporal context (5 years of weather data instead of 7).
  • Spatial Generalization: Pretraining on Central/South American weather significantly improved U.S. Corn Belt predictions, highlighting the model's ability to learn universal weather-agriculture relationships.

Limitations and Future Work

  • Geographic and Crop Specificity: The current evaluation focuses on U.S. Corn Belt corn and soybean. Extending the model to other crops and regions is a natural direction for future work.
  • Data Privacy: While the current approach uses aggregated public meteorological data, future applications might involve more sensitive data, requiring careful consideration of privacy.
  • Operational Constraints: While VITA performs well with reduced temporal context and early-season cutoffs, further research could explore more sophisticated ways to handle real-time operational constraints.
  • Broader Applicability: The paper suggests the decoder-free variational framework could be applied beyond agriculture to other domains with similar data asymmetry challenges (e.g., healthcare, industrial IoT).

Summary updated

BibTeX
@inproceedings{hasan2026vita,
  author = {Adib Hasan and Mardavij Roozbehani and Munther A. Dahleh},
  title = {{VITA: Variational Pretraining of Transformers for Climate-Robust Crop Yield Forecasting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i45.41197},
}
Figure