S^2-KD: Semantic-Spectral Knowledge Distillation Spatiotemporal Forecasting

Wenshuo Wang, Yaomin Shen, Yingjie Tan, Yihao Chen

TL;DR

$S^2$-KD is a novel knowledge distillation framework that enriches lightweight spatiotemporal forecasting models by transferring both semantic reasoning (the "why") and spectral fidelity (the "what") from a large multimodal teacher. By leveraging Large Multimodal Models (LMMs) to generate textual narratives during training, the framework enables vision-only student models to achieve state-of-the-art performance on complex tasks like weather and traffic prediction without any extra overhead at inference time.

What Problem Does This Paper Address?

Spatiotemporal forecasting—predicting how patterns like weather systems or traffic flow evolve over time—is computationally expensive. While massive Transformer-CNN hybrids achieve high accuracy, they are often too "heavy" to run on edge devices like autonomous vehicles or remote weather stations.

Researchers typically use Knowledge Distillation (KD) to compress these giants into smaller "student" models. However, the authors argue that current KD methods operate in a "semantic vacuum." They are great at mimicking pixel-level patterns (spectral properties) but remain blind to the underlying causes of events. For example, a standard model might recognize the visual signature of a traffic jam but can't distinguish if it's a predictable rush hour or an unpredictable accident. This lack of causal understanding makes them fragile in non-stationary or "extreme" scenarios.

Methods

The authors introduce $S^2$-KD (Semantic-Spectral Knowledge Distillation), which uses a two-stage approach to bridge this gap:

  1. The Multimodal Privileged Teacher: The authors train a powerful teacher model that sees more than just pixels. It uses "privileged information" in the form of textual narratives generated by a Large Multimodal Model (LMM), such as DeepSeek-VL. These narratives describe the scene (e.g., "A strong cold front is approaching"), providing the causal context the visual data lacks. The teacher uses a Cross-Modal Alignment Module (via cross-attention) to fuse these text embeddings with visual features.
  2. Semantic-Spectral Distillation: The knowledge is then transferred to a lightweight, vision-only student (like a small U-Net or ResNet) using a composite loss function:
  3. Semantic Alignment Loss: Forces the student’s internal representations to match the teacher’s fused, "semantically-informed" features. This helps the student internalize the "thought process" behind the predictions.
  4. Spectral Alignment Loss: Uses Fast Fourier Transforms (FFT) to ensure the student captures both high-frequency details (sudden changes) and low-frequency trends (seasonal patterns).

Crucially, the text narratives are only used during training. At inference time, the student model operates purely on visual data, maintaining its efficiency.

Datasets

The framework was evaluated on three diverse benchmarks to test generalization:

  • WeatherBench (ERA5): Global weather forecasting (Geopotential and Temperature) involving large-scale atmospheric dynamics.
  • TaxiBJ+: Urban traffic flow data from Beijing, representing a highly non-stationary system with periodic patterns and stochastic events.
  • Prometheus: A fire simulation dataset designed to test out-of-distribution (OOD) fluid dynamics, where models are tested on physical parameters they didn't see during training.

Key Insights and Ideas

  • Language as a Bridge: The "aha moment" is that natural language can serve as a high-level bridge for causality that raw pixels cannot provide. By describing why a pattern is forming, the LMM provides a "cheat sheet" that helps the teacher build a more robust internal representation.
  • The "Semantic Vacuum" is Real: Qualitative results show that baseline models often produce blurry, "average" predictions because they don't understand the structural logic of the scene. $S^2$-KD students produce much sharper, physically plausible results.
  • Architecture Agnostic: The method works across various student architectures (U-Net, ResNet, MLP-Mixer), proving that the benefit comes from the quality of knowledge transferred, not just the model's capacity.
  • LMM Quality Matters: The authors found a direct correlation between the capability of the LMM used (e.g., GPT-4V vs. LLaVA) and the eventual performance of the distilled student.

Key Results

  • Closing the Gap: On the TaxiBJ+ dataset, a distilled U-Net with only 5.1M parameters achieved an MSE of 0.1180, nearly matching the performance of the massive 125.8M parameter EarthFarseer teacher (0.1172).
  • Superiority over Baselines: On WeatherBench, $S^2$-KD improved the MSE of a standard U-Net by approximately 16% compared to the baseline and significantly outperformed other feature-based distillation methods like FitNet.
  • Visual Fidelity: In weather forecasting, $S^2$-KD successfully reconstructed complex vortex structures that were completely smeared into blurry patches by traditional distillation methods.

Limitations and Future Work

  • Training Complexity: While the student is efficient, the training process is more complex, requiring an LMM to generate captions for the entire training set and the training of a large multimodal teacher.
  • Prompt Sensitivity: The quality of the semantic transfer depends on the prompts used to generate the LMM narratives. The authors used a standardized prompt, but "prompt engineering" for better causal descriptions remains an open area.
  • Future Directions: The authors suggest exploring how this framework could handle even more modalities (like sensor data or physical constraints) to further deepen the student's "understanding" of the physical world.

Summary updated

BibTeX
@inproceedings{wang2026s,
  author = {Wenshuo Wang and Yaomin Shen and Yingjie Tan and Yihao Chen},
  title = {{S^2-KD: Semantic-Spectral Knowledge Distillation Spatiotemporal Forecasting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  url = {https://openreview.net/forum?id=pySCjZFAa0},
}
Figure