A Dual-Domain Vision Transformer with Spectral Positional Bias
Abdulaziz Alshamsi, Abdulla Alghfeli, Chenghua Lin, Hujun Yin
NeurIPS page · OpenReview · Open on the map
Category: 3D Vision & Image Restoration › Structured Multi-Domain Vision · Type: new method · Keywords: frequency-domain positional bias, Vision Transformer, spectral mixer, dual-domain residual, ImageNet classification
Areas: Model Architectures & Sequence Modeling › Vision and Generative Architectures › Diffusion Model Architectures
Summary
DDR introduces a frequency-domain positional bias that reduces parameters and enables exact resolution transfer while co-designing spectral mixing and attention in a dual-domain Vision Transformer.
Explained to a 5-year-old
When we look at a picture, we want a computer to know where things are. Usually, the computer remembers a lot of numbers for each spot in the picture. That takes a lot of space. The new idea uses a different way to remember where things are, like using a pattern that works like music notes. This pattern uses far fewer numbers, so it saves memory.
Explained to a 5-year-old, longer
When we look at a picture, we want a computer to know where things are. Usually, the computer remembers a lot of numbers for each spot in the picture. That takes a lot of space. The new idea uses a different way to remember where things are, like using a pattern that works like music notes. This pattern uses far fewer numbers, so it saves memory. It also works perfectly when we change the picture size, without needing to guess. The computer also learns to mix parts of the picture using a special tool that works alongside the memory. This tool helps the computer understand the picture better. The result is a computer that can recognize pictures more accurately and uses less memory. It also learns to focus more on early parts of the picture and later parts. This makes the computer faster and easier to run on small devices. It can be used in many places where we need to look at images, like phones or robots. The new method is simple, works well, and helps computers see better.
For a technical reader
The paper addresses the inefficiency of spatial positional encodings in Vision Transformers by moving the bias to the frequency domain. This reduces the number of parameters and allows exact transfer when the image resolution changes, unlike interpolation-based methods. The proposed Dual-Domain Residual framework stacks a spectral mixer and a gated attention head in parallel, sharing the same frequency-domain substrate. Experiments on ImageNet-1K show consistent accuracy gains over Swin RelPos, bias-free designs, and SpectFormer while using fewer parameters. The approach also reveals a natural division of labor, with spectral processing concentrated early and attention later in the network.
Problem
Positional encoding in Vision Transformers suffers a trade-off between parameter overhead (e.g., Swin’s spatial tables) and lack of bias (no-bias designs), making it hard to transfer across resolutions and keep models efficient.
Method
The approach parameterizes relative positional bias in the frequency domain, allowing exact transfer across patch grids and sharing a substrate with a spectral mixer. Within each transformer block, a spectral mixer and a gated attention head act as parallel residuals, jointly learning token mixing and positional bias. This design reduces parameter count and improves accuracy compared to spatial tables and bias-free alternatives.
Results
The frequency-domain bias yields +1.98 pp gains over Swin RelPos and +2.74 pp over no bias; removing attention or spectral branches reduces accuracy by 5.35 pp and 2.22 pp respectively. On ImageNet-1K, DDR beats SpectFormer by up to +2.0 pp at the Tiny scale and +0.4 pp at the Base scale, and surpasses it by +1.0 pp with fewer parameters.
Contributions
It introduces a frequency-domain positional bias that uses 3.25× fewer parameters than spatial tables, enables exact resolution transfer, and shares a substrate with a spectral mixer for joint token mixing and bias. The DDR framework demonstrates superior accuracy and parameter efficiency on ImageNet-1K compared to prior hybrid and bias-free designs.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction