<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Vision Transformers |</title><link>https://lelain.net/tags/vision-transformers/</link><atom:link href="https://lelain.net/tags/vision-transformers/index.xml" rel="self" type="application/rss+xml"/><description>Vision Transformers</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Wed, 22 Jul 2026 00:00:00 +0000</lastBuildDate><image><url>https://lelain.net/media/icon.svg</url><title>Vision Transformers</title><link>https://lelain.net/tags/vision-transformers/</link></image><item><title>Reading the Aurora: What Transformer Attention Sees in Auroral Spectra</title><link>https://lelain.net/blog/aurora-spectra-vit/</link><pubDate>Wed, 22 Jul 2026 00:00:00 +0000</pubDate><guid>https://lelain.net/blog/aurora-spectra-vit/</guid><description>&lt;p&gt;Auroras are the visible trace of energetic particles precipitating into the upper atmosphere. The energy of these particles sets how deep they penetrate, and therefore which emission lines they produce: soft electrons stay high and glow red (OI 630 nm), harder electrons go deeper and light up the green OI 557.7 nm line and the violet N₂⁺ band at 427.8 nm, while protons leave their signature in Hα. A spectrum is thus a fingerprint of what is raining down on the atmosphere, and classifying it still relies on expert visual inspection, which does not scale.&lt;/p&gt;
&lt;p&gt;In a paper with Gaël Cessateur (Royal Belgian Institute for Space Aeronomy) and Sébastien Lefèvre (IRISA), presented at
in Montpellier, we introduce the multi-label classification of auroral emission spectra as a novel task: 719 spectra from the ASIS spectrograph in Skibotn, Norway, each annotated by experts with five binary labels. And we ask a simple question: can Transformer attention double as a physical interpretability mechanism?&lt;/p&gt;
&lt;h2 id="a-tiny-vit-for-1d-spectra"&gt;A tiny ViT for 1D spectra&lt;/h2&gt;
&lt;p&gt;A 1D spectrum is just a single-row image. We split each 1024-bin spectrum into 8 patches and feed them to a small Vision Transformer (ViT-1D), compared against an MLP baseline built from the same backbone with a single full-spectrum patch, so that any interpretability gain must come from patch-level attention.&lt;/p&gt;
&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="ViT-1D architecture: patch tokenisation, learnable CLS token, Transformer encoder, classification head"
srcset="https://lelain.net/blog/aurora-spectra-vit/architecture_hu_232cba6791841a0.webp 320w, https://lelain.net/blog/aurora-spectra-vit/architecture_hu_feb8dc6998e32bd8.webp 480w, https://lelain.net/blog/aurora-spectra-vit/architecture_hu_151aa2fdb562394e.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://lelain.net/blog/aurora-spectra-vit/architecture_hu_232cba6791841a0.webp"
width="760"
height="372"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;Both models classify well (macro average precision: 81.1% for the MLP, 77.8% for the ViT-1D), and the ViT-1D wins precisely on the hardest, most diffuse class, the molecular N₂ bands.&lt;/p&gt;
&lt;h2 id="attention-rediscovers-the-emission-lines"&gt;Attention rediscovers the emission lines&lt;/h2&gt;
&lt;p&gt;The real result is elsewhere. For each class, we compare the attention of positive versus negative samples along the wavelength axis. The resulting maps align with known spectroscopy: N₂⁺ attention peaks exactly on its 427.8 nm band head, Hα attention rises toward 656 nm, and the low-energy-electron class attends to the red oxygen region above 630 nm. The model was never told where these lines are; supervision came from the labels alone.&lt;/p&gt;
&lt;p&gt;
&lt;figure &gt;
&lt;div class="flex justify-center "&gt;
&lt;div class="w-full" &gt;
&lt;img alt="Differential attention per class. Red: increased attention for positive samples; dashed lines: known emission wavelengths"
srcset="https://lelain.net/blog/aurora-spectra-vit/attention_hu_199b9e18378235b3.webp 320w, https://lelain.net/blog/aurora-spectra-vit/attention_hu_d4fdbc616b157832.webp 480w, https://lelain.net/blog/aurora-spectra-vit/attention_hu_b9ceb4b6af4e09c7.webp 760w"
sizes="(max-width: 480px) 100vw, (max-width: 768px) 90vw, (max-width: 1024px) 80vw, 760px"
src="https://lelain.net/blog/aurora-spectra-vit/attention_hu_199b9e18378235b3.webp"
width="760"
height="283"
loading="lazy" data-zoomable /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;Not every class is read from its own line, though. Molecular N₂ is recognised through co-occurring emissions at 427.8 and 557.7 nm, consistent with the co-production of these nitrogen species by energetic particle impact on N₂, and the unlabelled 557.7 nm line is attended by both N₂ mol. and N₂⁺ 1NG, a co-excitation recovered without supervision. N(I) 520 is the intriguing case: the model reads it from the co-occurring red oxygen doublet at 630/636 nm, while its own 520.0 nm line is never attended, an open question for further study.&lt;/p&gt;
&lt;p&gt;Attention maps thus act as a built-in attribution mechanism on ordered 1D scientific signals, something the MLP simply cannot offer, and a promising basis for self-supervised spectral categorisation.&lt;/p&gt;
&lt;p&gt;To go further: the
, the
presented at RFIAP 2026, and the
.&lt;/p&gt;</description></item><item><title>Multi-label Classification of Ground-based Auroral Emission Spectra Using 1D Vision Transformers</title><link>https://lelain.net/events/rfiap2026/</link><pubDate>Mon, 06 Jul 2026 00:00:00 +0000</pubDate><guid>https://lelain.net/events/rfiap2026/</guid><description>&lt;p&gt;Poster presented at the RFIAP 2026 conference (Reconnaissance des Formes, Image, Apprentissage et Perception), held jointly with CAp 2026 in Montpellier, France, July 6-8, 2026.&lt;/p&gt;
&lt;p&gt;This work, in collaboration with the Royal Belgian Institute for Space Aeronomy and IRISA, introduces the multi-label classification of ground-based auroral emission spectra as a novel task, and shows that the attention maps of a 1D Vision Transformer align with known auroral emission lines. See the
and the
for details.&lt;/p&gt;</description></item><item><title>Multi-label Classification of Ground-based Auroral Emission Spectra Using 1D Vision Transformers</title><link>https://lelain.net/publications/aurora-vit/</link><pubDate>Mon, 06 Jul 2026 00:00:00 +0000</pubDate><guid>https://lelain.net/publications/aurora-vit/</guid><description>&lt;p&gt;Paper presented at RFIAP 2026 (Reconnaissance des Formes, Image, Apprentissage et Perception), July 6-8, 2026, Montpellier, France. A joint work with the Royal Belgian Institute for Space Aeronomy, based on auroral spectra acquired by the ASIS spectrograph in Skibotn, Norway.&lt;/p&gt;</description></item></channel></rss>