Breaking Self-Attention Failure: Rethinking Query Initialization for Infrared Small Target Detection

Yuteng Liu, Duanni Meng, Yimian Dai, Maoxun Yuan, Xingxing Wei, Bo liarXiv 2026

TL;DR

DETR-based object detectors struggle with infrared small target detection (IRSTD) because global self-attention dilutes tiny target features into the dominant background. To fix this, the authors introduce SEF-DETR, a framework that leverages local frequency-domain signatures to guide query initialization through screening, examination, and fusion. This plug-and-play approach achieves state-of-the-art detection performance with minimal computational overhead.

What Problem Does This Paper Address?

Infrared small target detection (IRSTD) is a critical component in applications like aerial surveillance, wildland fire monitoring, and maritime search and rescue. However, infrared small targets are notoriously difficult to detect: they are often just a few pixels wide, lack distinctive textures, and suffer from extremely low signal-to-noise ratios within highly cluttered backgrounds.

While DEtection TRansformer (DETR) models excel at general object detection due to their global context modeling, they fail significantly in IRSTD. Because a tiny target occupies only a fraction of a percent of the total image pixels, the vast majority of visual tokens belong to the background. The authors reveal that standard global self-attention causes target-relevant embeddings to become progressively "diluted" and overwhelmed by background features as they pass deeper through the encoder layers. This leads to unreliable query initialization and missed targets.

Methods

The authors propose SEF-DETR, which injects frequency-domain priors into the DETR architecture to rescue target embeddings from dilution. The framework introduces three core components:

  1. Patch-wise Spectral Screening (PSS): This module divides the input image into overlapping patches and computes their 2D Fast Fourier Transform (FFT). Because small targets and background clutter distribute energy differently across frequency scales and directions, PSS encodes these patterns into spectral tokens. Overlapping patches then use Hough voting to generate a target-relevant spatial density map ($S_{freq}$).
  2. Frequency-Routed Examination (FRE): Rather than performing a single check, FRE is inserted after every encoder layer. It uses the PSS density map to route sparse, deformable attention to top candidate locations, allowing the model to dynamically re-examine and recover missed targets.
  3. Reliability-Consistency-aware Fusion (RCF): This module adaptively re-ranks candidate queries for the decoder. It evaluates both the spatial confidence from the encoder and the frequency prior from PSS, mathematically boosting queries where both domains agree and discounting uncertain responses.
Figure 4: Overview of SEF-DETR. PSS produces a pixel-wise target-relevant density map, FRE routes sparse re-examination through the encoder, and RCF uses spatial–frequency reliability and consistency to select decoder queries.

Datasets

The model was comprehensively evaluated on three widely recognized public IRSTD benchmarks:

  • IRSTD-1k: Contains 1,000 challenging images featuring various backgrounds (land, sea, sky) with precise annotations.
  • NUAA-SIRST: Consists of 427 infrared images.
  • NUDT-SIRST: A larger dataset containing 1,327 images.

For all experiments, the datasets were split into a standard 3:1:1 ratio for training, validation, and testing.

Key Insights and Ideas

  • The "Embedding Dilution" Proof: The authors empirically quantify how standard self-attention betrays tiny objects. By measuring the cosine similarity between target and background mean embeddings across encoder layers, they show a steady increase in similarity as depth increases (Figure 3). This proves that targets gradually lose their distinctiveness in standard architectures. Target-background embedding similarity across encoder layers
  • Frequency Domain Distinctiveness: While a dim target and a patch of background clutter might look nearly identical in spatial intensity, their Fourier spectra are remarkably distinct. True targets exhibit unique radial and directional energy distributions that act as a robust signature against false alarms (Figure 2). Fourier spectrum comparison of targets, false alarms, and background
Figure 3: Target–background embedding similarity s from encoder layers l = 0 to 6 on IRSTD-1k, NUAA-SIRST, and NUDT-SIRST. The s increases with depth across all datasets.
Figure 2: Illustration of local patches of IRST from the IRSTD-1k dataset. We compute the FFT spectrum for each local patch. The red, yellow, and gray boxes denote the target, target-like interference, and background, respectively.

Key Results

  • State-of-the-Art Accuracy: Built on a DINO baseline, SEF-DETR achieved top marks on the IRSTD-1k dataset with 38.9% AP, 86.7% $\text{AP}_{50}$, and 32.8% $\text{AP}_{vt}$ (specifically targeting very tiny objects under $8\times8$ pixels), outperforming both advanced CNNs and standard DETR variants.
  • High Transferability: The proposed modules function as plug-and-play components. Integrating them into other architectures like RT-DETR and LW-DETR yielded notable AP gains of 1.2 and 2.9 points, respectively.
  • Low Overhead: The entire SEF framework adds only 1.56M parameters and 0.22 GFLOPs to the DINO baseline, proving that frequency-guided query initialization is computationally efficient.

Limitations and Future Work

The primary limitation of SEF-DETR is its strict focus on bounding-box object detection rather than pixel-level mask segmentation. Consequently, the model does not output fine-grained target shapes, and pixel-level Intersection over Union (IoU) metrics were not evaluated. The authors suggest that future work could explore extending this spatial-frequency joint modeling approach to dense, pixel-level segmentation heads.

Summary updated

BibTeX
@misc{liu2026breaking,
  author = {Yuteng Liu and Duanni Meng and Yimian Dai and Maoxun Yuan and Xingxing Wei and Bo li},
  title = {{Breaking Self-Attention Failure: Rethinking Query Initialization for Infrared Small Target Detection}},
  year = {2026},
  eprint = {2601.02837},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.02837},
}
Figure