JW-Flare: Accurate Solar Flare Forecasting Method Based on Multimodal Large Language Models

Mingfu Shao, Hui Wang, Yuyang Li, Jiaben Lin, Jifeng Liu, Baolin Tan, Juan Guo, Yin Zhang, Jing Huang, Jiangtao Su, Yongkang Sun, Xu Haiqing, Jie Chen, Suo Liu, Yuanyong Deng, Lingling Tong, Yang Bai, Cunshi Wang, Kaifan Ji, Yuanchun ZhouarXiv 2025 · DOI

Abstract

Solar flares, the most powerful explosive phenomena in the solar system, may pose significant hazards to spaceborne satellites and ground-based infrastructure. Despite decades of intensive research, reliable flare prediction remains a challenging task. Large Language Models, as a milestone in artificial intelligence, exhibit exceptional general knowledge and next-token prediction capabilities. Here we introduce JW-Flare, the first Multimodal Large Language Models (MLLMs) explicitly trained for solar flare forecasting through fine-tuning on textual physic parameters of solar active regions and magnetic field images. This method demonstrates state-of-the-art (SOTA) performance for large flares prediction on the test dataset. It effectively identifies all 79 X-class flares from 18,949 test samples, yielding a True Skill Statistic (TSS) of 0.95 and a True Positive Rate (TPR) of 1.00, outperforming traditional predictive models. We further investigate the capability origins of JW-Flare through explainability experiments, revealing that solar physics knowledge acquired during pre-training contributes to flare forecasting performance. Additionally, we evaluate models of different parameter scales, confirming the Scaling Law of Large Language Models in domain-specific applications, such as solar physics. This study marks a substantial advance in both the scale and accuracy of solar flare forecasting and opens a promising avenue for AI-driven methodologies in broader scientific domains.

Introduction

Solar flares are massive explosions of radiation from the Sun that can disrupt satellite communications, GPS navigation, and power grids on Earth. As the solar cycle approaches its maximum in 2024, the frequency and intensity of these events are increasing, highlighting the urgent need for accurate forecasting. Traditional forecasting methods typically rely on either physics-based simulations, which are computationally intensive, or standard deep learning architectures like Convolutional Neural Networks (CNNs). However, these approaches often struggle to integrate diverse data modalities, such as high-resolution magnetic field imagery and textual physical indices, which are both critical for understanding the complex evolution of solar active regions.

Methodology

JW-Flare addresses these limitations by leveraging the power of Multimodal Large Language Models (MLLMs). Built upon the Qwen2-VL-7B-Instruct architecture, the model is designed to "reason" across different types of solar data.

Multimodal Fusion and Model Architecture

The core of JW-Flare is its ability to process both visual and textual information simultaneously. The model takes a temporal sequence of 15 Line-of-Sight (LoS) magnetograms, covering a 3-hour window, to capture the dynamic evolution of magnetic fields. This visual input is paired with textual descriptions of key physical parameters, such as magnetic neutral line length and total unsigned magnetic flux.

The architecture of JW-Flare, showing the integration of image series and textual physical parameters through a visual encoder and word embedding into the LLM backbone.

Training Strategy

To optimize the model for solar physics, the researchers employed Supervised Fine-Tuning (SFT) using Low-Rank Adaptation (LoRA). This approach allows for efficient training by freezing the primary weights of the vision encoder and updating only specific adapter layers within the language model. Furthermore, a "Triple-Guidance Prompting" framework was implemented, providing the model with a clear task description, relevant physical parameters, and strict output constraints to ensure consistent and interpretable responses.

Key Results and Discussion

JW-Flare demonstrates exceptional performance, particularly in predicting high-intensity flares that pose the greatest risk to Earth's infrastructure.

State-of-the-Art Performance

In evaluations against a test dataset of nearly 19,000 samples, JW-Flare achieved a True Positive Rate (TPR) of 1.00 for X-class flares, successfully identifying every major event. Its True Skill Statistic (TSS) of 0.95 for these flares significantly outperforms traditional statistical models like Support Vector Machines (SVM) and standard computer vision models like VGG or Swin Transformers.

Performance comparison of JW-Flare across different flare intensity levels (C, M5, and X), highlighting high TSS and TPR values.

Scaling Laws and Domain Knowledge

The study also explored the impact of model scale, testing variants from 1B to 7B parameters. The results confirmed a "Scaling Law" in the context of solar physics: as model size increased, the TSS improved linearly. This suggests that larger LLMs possess a greater latent capacity for scientific reasoning. Furthermore, explainability experiments using Chain-of-Thought (CoT) prompting revealed that the model activates specific neurons associated with solar phenomena learned during its general pre-training, effectively distilling general knowledge into specialized scientific expertise.

Conclusion

JW-Flare represents a significant milestone in space weather forecasting. By successfully fine-tuning a multimodal LLM on specialized solar data, this research demonstrates that the advanced reasoning capabilities of modern AI can be effectively harnessed for critical scientific challenges. Future work will focus on extending the forecasting window beyond 24 hours and integrating data from higher atmospheric layers of the Sun, such as the chromosphere and corona, to provide a more comprehensive 3D view of solar activity.

Summary updated

BibTeX
@misc{shao2025jw,
  author = {Mingfu Shao and Hui Wang and Yuyang Li and Jiaben Lin and Jifeng Liu and Baolin Tan and Juan Guo and Yin Zhang and Jing Huang and Jiangtao Su and Yongkang Sun and Xu Haiqing and Jie Chen and Suo Liu and Yuanyong Deng and Lingling Tong and Yang Bai and Cunshi Wang and Kaifan Ji and Yuanchun Zhou},
  title = {{JW-Flare: Accurate Solar Flare Forecasting Method Based on Multimodal Large Language Models}},
  year = {2025},
  eprint = {2511.08970},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.08970},
  howpublished = {arXiv},
}
Figure