Manuscript Offprint

arXiv:2609.08788

Adaptive Anisotropic Attention for Axis-Structured Signals

Mahir Jain, Parshva Runwal, Aditya Ray Mishra, Arvasu Kulkarni, Sandeep Singh, Siddharth Panwar

Mahir Jain

Mannas AI

mahir@mannas.ai

Parshva Runwal

Mannas AI

parshva@mannas.ai

Aditya Ray Mishra

Mannas AI

aditya@mannas.ai

Arvasu Kulkarni

Mannas AI

arvasu@mannas.ai

Siddharth Panwar

Mannas AI

siddharth@mannas.ai

Sandeep Singh

Mannas AI

sandeep@mannas.ai

Abstract

Dense self-attention treats all token pairs as equally plausible before learning—an interaction-isotropic prior that can be mismatched to structured signals. For structured, low signal-to-noise ratio (SNR) signals such as EEG, dependencies are organized along the electrode and time axes, and this uniform prior exposes each token to many irrelevant interactions. We introduce Adaptive Anisotropic Attention (AAA), which splits attention into two paths: a temporal path, where each token attends to the tokens of its own electrode across time, and a spatial path, where it attends to the tokens of the other electrodes at the same time step. A small gate predicts, for every token, a convex combination and the token's update is the weighted sum of the two path outputs. On six EEG downstream tasks, the resulting model, AXON (AXis-factorized Operator Network), improves mean balanced accuracy over a dense baseline under both linear probing and full fine-tuning. We show that both paths (temporal and spatial) are necessary and that the weighted sum beats a hard choice of one path; most of the benefit comes from the gate learning a different temporal/spatial balance at each layer of the network. Controlled audio spectrogram experiments show that axis factorization transfers beyond EEG. These results suggest that aligning attention with the natural axes of structured signals provides a useful inductive bias.

1 Introduction

Transformers [Vaswani et al., 2017] process tokens: small input segments represented as vectors. In EEG and audio, tokens form two-dimensional grids. An EEG token contains one second of signal from one electrode; an audio token covers one frequency band over one spectrogram frame. Dense self-attention connects all tokens directly, allowing long-range interactions without distinguishing the electrode-time or frequency-time axes.

For structured spatiotemporal signals such as EEG, which lie on electrodes × time, this interaction-isotropic prior may be mismatched. In masked autoencoding (MAE) [He et al., 2022], the model learns to reconstruct masked patches, not to distinguish downstream classes. Our hypothesis is that dense global attention encourages reconstruction shortcuts: for example, estimating a masked patch from a broad average across electrodes and time. This dilutes localized or axis-specific signals that are critical for downstream tasks such as motor imagery classification.

We introduce Adaptive Anisotropic Attention (AAA), which replaces dense encoder attention with two parallel paths. The temporal path attends within each electrode across time; the spatial path attends across electrodes at the same time step. A small gate combines their outputs through a convex

Preprint.

combination. This soft mixture can vary across tokens and layers. We call the resulting model AXON (AXis-factorized Operator Network) and evaluate it on six EEG tasks under linear probing (LP) and full fine-tuning (FT), against dense baselines including a parameter-matched model.

We analyse learned axis mixtures and task-dependent temporal context, and test the design on audio spectrograms as a second axis-structured modality. Axis factorization helps both modalities.

Related work. Factorized attention. Axial attention [Ho et al., 2019] and divided space-time attention [Bertasius et al., 2021, Arnab et al., 2021] were built for images and video and attend along one axis at a time. The axis order is set by hand and is the same for every token and every layer, and these designs were not built for, or tested on, low-SNR signals such as EEG. AXON keeps the two axes but runs them in parallel and lets a gate set the balance per token and per layer. EEG foundation models. EEGPT, LaBraM, CBraMod, BIOT, CSBrain and REVE [Wang et al., 2024, Jiang et al., 2024, Wang et al., 2025, Yang et al., 2023, Zhou et al., 2025, El Ouahidi et al., 2025] pretrain large encoders on unlabelled EEG so that one model transfers to many tasks. They differ in tokenisation and pretraining objective; CBraMod, attends along time and along channels in parallel and combines the two with a fixed split of attention heads. None of them tests whether the dense all-to-all path should be removed, or lets the time/channel balance be learned per token and per layer. We evaluate all six under one protocol (Tables 3 and 4).

References (29)