Transformers for Stratified Spectropolarimetric Inversion: Proof of Concept

Abstract Solar spectropolarimetric inversion—inferring atmospheric conditions from the Stokes vector—is a key diagnostic tool for understanding solar magnetism, but traditional inversion methods are computationally expensive and sensitive to local minima. Advances in artificial intelligence offer faster solutions, but are often restricted to shallow models or a few spectral lines. We present a proof-of-concept study using a transformer machine learning model for multiline, full-Stokes inversion, to infer stratified parameters from synthetic spectra produced from 3D magnetohydrodynamic simulations. We synthesize a large set of Stokes vectors using forward modeling across 15 spectral lines spanning the deep photosphere toward the chromosphere. The model maps full-Stokes input to temperature, magnetic field strength, inclination, azimuth (encoded as <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> <mml:mi>sin</mml:mi> <mml:mn>2</mml:mn> <mml:mi>ϕ</mml:mi> </mml:math> , <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> <mml:mi>cos</mml:mi> <mml:mn>2</mml:mn> <mml:mi>ϕ</mml:mi> </mml:math> ), and line-of-sight velocity as a function of optical depth. The transformer incorporates an attention mechanism that allows the model to focus on the most informative regions of the spectrum for each inferred parameter, and uses positional embedding to encode wavelength and depth order. We benchmark it against a multilayer perceptron (MLP), test robustness to noise, and assess generalization. The transformer outperforms the MLP, especially in the higher layers and for magnetic parameters, yielding higher correlations and more regularized stratifications. The model retains strong performance across a range of noise levels typical for real observations, with magnetic parameter inference degrading predictably while temperature and velocity remain stable. We explore attention maps, linking the transformer’s learned behaviour to line-formation physics.

Authors

Publication Details

Journal
The Astrophysical Journal
Published
2025-12-24
DOI
https://doi.org/10.3847/1538-4357/ae1ba5
Primary Topic
Solar and Space Plasma Dynamics
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Transformers for Stratified Spectropolarimetric Inversion: Proof of Concept

C. Quintero Noda, Mihalis Mathioudakis, Ryan J. Campbell
The Astrophysical Journal
Solar and Space Plasma Dynamics
article

Transformers for Stratified Spectropolarimetric Inversion: Proof of Concept

C. Quintero Noda, Mihalis Mathioudakis, Ryan J. Campbell
article en

Abstract

Abstract Solar spectropolarimetric inversion—inferring atmospheric conditions from the Stokes vector—is a key diagnostic tool for understanding solar magnetism, but traditional inversion methods are computationally expensive and sensitive to local minima. Advances in artificial intelligence offer faster solutions, but are often restricted to shallow models or a few spectral lines. We present a proof-of-concept study using a transformer machine learning model for multiline, full-Stokes inversion, to infer stratified parameters from synthetic spectra produced from 3D magnetohydrodynamic simulations. We synthesize a large set of Stokes vectors using forward modeling across 15 spectral lines spanning the deep photosphere toward the chromosphere. The model maps full-Stokes input to temperature, magnetic field strength, inclination, azimuth (encoded as <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> <mml:mi>sin</mml:mi> <mml:mn>2</mml:mn> <mml:mi>ϕ</mml:mi> </mml:math> , <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> <mml:mi>cos</mml:mi> <mml:mn>2</mml:mn> <mml:mi>ϕ</mml:mi> </mml:math> ), and line-of-sight velocity as a function of optical depth. The transformer incorporates an attention mechanism that allows the model to focus on the most informative regions of the spectrum for each inferred parameter, and uses positional embedding to encode wavelength and depth order. We benchmark it against a multilayer perceptron (MLP), test robustness to noise, and assess generalization. The transformer outperforms the MLP, especially in the higher layers and for magnetic parameters, yielding higher correlations and more regularized stratifications. The model retains strong performance across a range of noise levels typical for real observations, with magnetic parameter inference degrading predictably while temperature and velocity remain stable. We explore attention maps, linking the transformer’s learned behaviour to line-formation physics.

The Astrophysical JournalVol. 996(1)
Nvidia, UK Research and Innovation, Instituto de Astrofísica de Canarias, Science and Technology Facilities Council
Openalex Percentile: Top 31%
Solar and Space Plasma Dynamics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.