arXiv:2610.32041cs.CVOct 2026

Manuscript Offprint

arXiv:2610.32041

NUViT: Vision Transformers for Fourier Space Data

Jeffrey Gu, Robert C. Heeter, Ellen D. Zhong

ABSTRACT

Vision Transformers (ViTs) have demonstrated strong performance in many computer vision tasks but do not naturally extend beyond the natural image domain. One important example is Fourier-space data, which is used to represent a rich and diverse set of modalities, including medical imaging and microscopy. Standard ViT tokenization partitions an image into square patches on a Cartesian grid, which poorly fit the frequency and phase structure of Fourier-space data. We introduce Non-Uniform ViT, a simple, general-purpose vision transformer that redesigns image tokenization, data representation, and positional encoding to respect this structure. Experiments on Fourier-domain image classification, 2D crystal lattice identification, MRI annotation, and cryo-EM protein heterogeneity analysis show that NUViT consistently captures the structure of Fourier data better than standard architectures.

1 INTRODUCTION

Vision Transformers (ViTs) (Dosovitskiy et al., 2020) have become a widely-used architecture across a broad range of computer vision tasks. Motivated by their strong performance on natural images, there is growing interest in extending ViT-style models to other data modalities. However, Fourier-domain or Fourier-transformed representations are not inherently compatible with standard ViT designs, even though Fourier data is common in applications such as 3D sensing, medical imaging, and microscopy.

General-purpose architectures for Fourier-space data remain underexplored, and existing frequency-space ViTs are largely domain-specific (Buchholz & Jug, 2022; Duan et al., 2022; Alshaabi et al., 2025). Such a general transformer architecture would be valuable for 3D reconstruction methods that exploit the Fourier Slice Theorem (Bracewell, 1956) to avoid costly real-space integration, a standard practice in cryo-electron microscopy (cryo-EM), and in experimental modalities where sensor data is collected natively in frequency space, such as magnetic resonance imaging (MRI). It would also benefit hybrid methods that incorporate Fourier transforms into their processing pipeline, including a growing body of work on frequency-space token mixing as an alternative to attention (Li et al., 2020; Rao et al., 2021; Guibas et al., 2021; Lee-Thorp et al., 2022; Nguyen et al., 2022; Lingsch et al., 2023; Long et al., 2025).

Natural phenomena display a wide range of behavior in Fourier space. For example, speech and audio waveforms, natural images and video (Field, 1987; Van der Schaaf & van Hateren, 1996), 3D sensor measurements, and medical imaging such as MRI (Lustig et al., 2007) all follow a 1/fα1/f^{\alpha} spectral energy decay with spatial frequency ff (Figure 1). This Fourier power law is not the only common example of frequency-dependent behavior: also common are resonance- and dispersion-based phenomena. Resonance produces sharp peaks in a signal's Fourier spectrum, which is observed in atomic spectra and crystal structures. Dispersion describes how a wave's propagation speed varies with frequency, causing phenomena such as a prism splitting white light into its constituent colors.

A

Figure

B

Figure 1: Power spectral density of natural and cryo-EM images. Log-log plots of radially-averaged power versus spatial frequency for (A) natural images (Deng et al., 2009) and (B) cryo-EM images (Davis et al., 2016) demonstrate a characteristic Fourier power-law decay. Shaded regions indicate one standard deviation. Pink lines show the spatial frequency weighting induced by Cartesian grid patching in standard ViTs, which undersamples informative low-frequency components. Insets show low-pass filtered images at different spatial frequencies. In both natural and cryo-EM images, lower spatial frequencies capture broad semantic information. Note that cryo-EM images inherently contain imaging aberrations (CTF), producing characteristic power oscillations.

In this paper, we design a general-purpose transformer architecture for Fourier-space data that better captures these patterns. We observe that the standard ViT tokenization strategy that partitions images into square patches on a uniform Cartesian grid is ill-suited for capturing the wide variety of structures present in Fourier-space data. We argue that the non-uniform frequency and phase coordinates of the Cartesian grid hamper the encoder's ability to understand Fourier space structure, with uniform frequency and phase coordinates providing better inductive bias. Furthermore, in the common case that a signal follows the Fourier power law, traditional ViT tokenization oversamples high spatial frequencies and undersamples the information-dense low frequency components.

Based on this insight, we propose Non-Uniform Vision Transformers (NUViTs), a general-purpose transformer architecture for Fourier data. NUViTs sample the Fourier transform on a non-uniform grid using the non-uniform Fast Fourier Transform (NUFFT) (Fessler & Sutton, 2003), producing a grid that has uniform frequency and phase coordinates. To better capture phase information, we represent complex Fourier coefficients with amplitudes and phase components. Absolute positional encoding and channel encoding are applied, and the tokens are then processed by a typical transformer network (Vaswani et al., 2017).

We evaluate NUViT's effectiveness on a variety of experiments. In the more common case of data that follows the Fourier power law, we evaluate Fourier-space natural image classification, MRI disease classification, and cryo-EM conformation classification and 3D reconstruction. To evaluate NUViT for the opposite case when data that does not conform to the power law, we test 2D crystal lattice identification, for which spectral energy is concentrated at higher frequencies (Torquato & Stillinger, 2003; Torquato, 2018). Across these settings NUViT consistently outperforms standard ViT and MLP baselines, with clear improvements on tasks requiring fine-grained discrimination under high noise. Our experiments verify the effectiveness of NUViT over different data domains and Fourier structures, showing the importance of non-uniform tokenization for capturing Fourier space information.