Textual Environmental Context and Spatial Graphs for LLM-Based Regional SST Forecasting

Xiong Li, Xiaowei Zhou, Yanwei Yu, Qian Cui, Junyu DongarXiv 2026

TL;DR

This paper introduces a novel framework for regional Sea Surface Temperature (SST) forecasting that bridges the gap between numerical data and Large Language Models (LLMs). By combining textual environmental context (like typhoon records and climate indices) with dual-graph neural networks that capture spatial dependencies, the model achieves state-of-the-art accuracy while providing human-readable scientific explanations for its predictions.

What Problem Does This Paper Address?

Sea Surface Temperature (SST) forecasting is critical for marine monitoring, but it is notoriously difficult because it depends on three distinct types of information:

  1. Local Persistence: What happened at this specific spot yesterday?
  2. Regional Spatial Dependence: How are neighboring ocean cells influencing each other?
  3. Environmental Context: How do large-scale events like El Niño (ENSO) or localized tropical cyclones shift the thermal balance?

While LLMs are excellent at processing complex textual context, they struggle to ingest raw, high-dimensional spatial grids. Simply "serializing" an entire ocean grid into text is inefficient and loses structural information. The authors tackle the challenge of how to jointly present these heterogeneous conditions to an LLM for multi-step forecasting without overwhelming the model's input window.

Methods

The authors propose a hybrid Text–Graph interface that treats forecasting as a "conditional numerical generation" task. The architecture consists of three main components:

  • Textual Contextualization: Historical SST sequences, anomaly data, and "date-aligned" environmental records (e.g., ENSO indices, wind fields, and typhoon intensity) are formatted into natural language prompts. This allows the LLM to leverage its pre-trained reasoning capabilities on domain-specific ocean knowledge.
  • Dual-Graph Spatial Encoding: Instead of text, regional spatial states are handled by two Graph Neural Networks (GNNs):
  • Static Graph: Encodes permanent geographic proximity and climatological features.
  • Dynamic Graph: Encodes real-time SST correlations and localized influence from active tropical cyclones.
  • Spatial-Prefix Fusion: To "talk" to the LLM, the GNN outputs are passed through a factorized projector that converts spatial representations into a compact sequence of continuous prefix tokens. These tokens are concatenated with the text embeddings, allowing the LLM to "see" the spatial state of the ocean without a single word of grid coordinates.
Fig. 1. Overview of the framework. At forecast origin t, target-cell SST and anomaly histories, environmental records, and static ocean knowledge form a textual condition. Regional observations construct a static geographic–climatological graph and a date-specific dynamic graph. Two GNN branches encode the target-node state, which a factorized projector maps to continuous prefix tokens for autoregressive LLM forecasting. A separate rule-based module then matches forecast trends and environmental factors with knowledge entries for source-linked post-hoc contextualization.

Finally, a rule-based Explainable Module matches the model's predicted trends against a knowledge base to generate post-hoc scientific justifications for the forecast.

Datasets

The model was evaluated on SST forecasting in the South China Sea (SCS):

  • SST Data: 0.25° resolution OISST (Optimum Interpolation Sea Surface Temperature) data spanning from 1981 to 2025.
  • Tropical Cyclones: Records from the IBTrACS database.
  • Atmospheric Data: 850-hPa wind fields from the ERA5 reanalysis.
  • Climate Indices: Monthly Niño 3.4 anomalies for ENSO context.

Key Insights and Ideas

  • Text vs. Graphs: The authors found that text is great for "global" context (like El Niño), but poor for "local" neighborhood aggregation. By assigning these roles to text and graphs respectively, they maximize the strengths of both.
  • The Power of Prefixes: Using continuous prefixes instead of text descriptions for spatial data reduced the number of trainable parameters in the projector by ~91% compared to a direct mapping, making the system much more efficient.
  • Dynamic Topology: The dynamic graph isn't just about distance; it incorporates "event topology." When a typhoon hits, the graph structure actually changes to reflect the storm's physical influence on the water column.

Key Results

The "Full" configuration of the model outperformed several specialized spatiotemporal baselines, including PCFNet and ConvLSTM.

  • Accuracy: On average across a 10-day forecast horizon, the model achieved a Mean Absolute Error (MAE) of 0.323 and an $R^2$ of 0.955.
  • Backbone Flexibility: The framework was tested with multiple LLMs (Qwen2.5, Llama-3.1, Mistral). While Llama-3.1-8B showed the best raw RMSE at early leads, Qwen2.5-7B provided the most consistent performance across all metrics.
Comparison of the proposed model against various baselines over a 10-day forecast period.

Ablation studies (Table III) confirmed that removing either the textual context or the GNN branches significantly degraded performance, proving that both "words" and "graphs" are essential for accurate ocean forecasting.

Limitations and Future Work

  • Regional Specificity: The current study focuses on the South China Sea. Future work is needed to see how well these "ocean knowledge" prompts generalize to other basins with different dynamics (e.g., the Arctic or the Gulf Stream).
  • Rule-Based Explanations: The explanation module is currently rule-based and post-hoc. It doesn't represent the internal causal reasoning of the LLM, but rather a best-guess scientific justification based on the output.
  • Computational Cost: While the prefix projector is efficient, running a 7B+ parameter LLM for daily SST updates is computationally heavier than traditional numerical weather prediction models.
Examples of the scientific explanations generated by the module.

Summary updated

BibTeX
@misc{li2026textual,
  author = {Xiong Li and Xiaowei Zhou and Yanwei Yu and Qian Cui and Junyu Dong},
  title = {{Textual Environmental Context and Spatial Graphs for LLM-Based Regional SST Forecasting}},
  year = {2026},
  eprint = {2610.07895},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.07895},
}
Figure