Papers
Topics
Authors
Recent
Search
2000 character limit reached

Revisiting the Scale Loss Function and Gaussian-Shape Convolution for Infrared Small Target Detection

Published 11 Apr 2026 in cs.CV | (2604.09991v1)

Abstract: Infrared small target detection still faces two persistent challenges: training instability from non-monotonic scale loss functions, and inadequate spatial attention due to generic convolution kernels that ignore the physical imaging characteristics of small targets. In this paper, we revisit both aspects. For the loss side, we propose a \emph{diff-based scale loss} that weights predictions according to the signed area difference between the predicted mask and the ground truth, yielding strictly monotonic gradients and stable convergence. We further analyze a family of four scale loss variants to understand how their geometric properties affect detection behavior. For the spatial side, we introduce \emph{Gaussian-shaped convolution} with a learnable scale parameter to match the center-concentrated intensity profile of infrared small targets, and augment it with a \emph{rotated pinwheel mask} that adaptively aligns the kernel with target orientation via a straight-through estimator. Extensive experiments on IRSTD-1k, NUDT-SIRST, and SIRST-UAVB demonstrate consistent improvements in $mIoU$, $P_d$, and $F_a$ over state-of-the-art methods. We release our anonymous code and pretrained models.

Authors (2)

Summary

  • The paper proposes a diff-based scale loss ensuring strictly monotonic gradients, promoting stable and accurate target scale prediction.
  • It integrates a Gaussian-shaped spatial attention with a rotated pinwheel mask to capture IR target intensity patterns and directional features.
  • Experiments on standard IRSTD benchmarks demonstrate significant improvements in mIoU, detection probability, and false alarm rates compared to previous methods.

Revisiting Scale Loss and Gaussian-Shaped Convolution for Infrared Small Target Detection

Introduction and Motivation

Infrared small target detection (IRSTD) remains a technically challenging computer vision problem, particularly relevant for applications in surveillance, autonomous navigation, and defense. The unique constraints—tiny target scale (typically spanning a few pixels), low SNR, and lack of discriminative features—render generic object detection and segmentation frameworks inadequate for IR data. The paper "Revisiting the Scale Loss Function and Gaussian-Shape Convolution for Infrared Small Target Detection" (2604.09991) identifies two persistent limitations in recent IRSTD methods: (1) conventional scale losses induce unstable training due to their non-monotonic penalty landscape, and (2) standard convolutional spatial attention disregards the physical intensity and morphology priors particular to IR small targets.

Monotonic Diff-Based Scale Loss

A principal contribution is the introduction of a diff-based scale loss that re-weights the soft IoU with a strictly monotonic area-discrepancy factor. Unlike previous variance-based scale penalties, which induce local optima and oscillatory gradients, the proposed loss ensures smooth, directed convergence toward optimal scale alignment between prediction and ground truth. Figure 1

Figure 1: The diff-based scale loss yields strictly monotonic, stable gradients across the prediction-target area discrepancy, promoting convergence to correct target scale.

The authors formalize the diff-based scale weight as

α=min(Ap,At)+ApAt/2max(Ap,At)+ApAt/2\alpha = \frac{\min(A_p, A_t) + |A_p - A_t|/2}{\max(A_p, A_t) + |A_p - A_t|/2}

where ApA_p and AtA_t denote the predicted and ground-truth mask areas, respectively. The overall loss becomes 1αIoU+Lloc1 - \alpha \cdot \text{IoU} + \mathcal{L}_{\text{loc}}, where Lloc\mathcal{L}_{\text{loc}} provides a centroid-based location penalty. Systematic ablation confirms strict monotonicity is critical for eliminating gradient oscillations and spurious optima prevalent in the non-monotonic (variance-based) alternatives, directly translating into improved stability and accuracy during training. Figure 2

Figure 3: Visual comparison of four weighting functions; only the diff-based loss produces a smooth, monotonic surface, guaranteeing robust optimization behavior.

Gaussian-Shaped Spatial Attention and Pinwheel Mask Design

Another key technical advancement is the adoption of a Gaussian-shaped spatial attention kernel, parameterized by a learnable scale σ\sigma and modulated by a rotated pinwheel mask. This approach is motivated by empirical observations that IR small targets exhibit a center-bright and radially decaying intensity pattern, well-approximated by a Gaussian profile. Figure 3

Figure 4: Infrared small targets characteristically display a Gaussian-like, center-concentrated intensity, justifying a spatial attention mechanism with a Gaussian prior.

However, many targets also manifest directional elongation (e.g., due to motion blur, sensor characteristics, or actual object shape). The pinwheel mask is designed as a binary directional strip—implemented via a differentiable straight-through estimator—allowing the kernel's dominant orientation to be optimized end-to-end during training. Figure 4

Figure 5: The rotated pinwheel mask enables anisotropic, directionally adaptive spatial attention, aligning the kernel with target morphology.

The final 7×77 \times 7 kernel is the product of the Gaussian prior and the binary/differentiable pinwheel mask, effectively encoding both the generic intensity prior and the locally dominant direction of the observed IR target. Figure 5

Figure 2: Overall framework architecture, integrating U-Net backbone, channel attention, and the proposed Gaussian + pinwheel spatial attention. Final mask prediction is optimized using the diff-based scale loss.

Experimental Results and Ablations

Evaluations across three standard IRSTD benchmarks (IRSTD-1k, NUDT-SIRST, SIRST-UAVB) demonstrate that the combination of monotonic diff-based scale loss and Gaussian-shaped attention yields consistent improvements over strong recent baselines across mIoU, probability of detection (PdP_d), and false alarm rate (FaF_a). For example, on IRSTD-1k, the best configuration achieves 69.19% mIoU, 94.22% PdP_d, and ApA_p0 ApA_p1, outperforming prior state-of-the-art methods.

Qualitative results highlight that L1-GP-Rotated (i.e., diff-based loss plus Gaussian + rotated pinwheel attention) produces segmentations that are compact, with clean boundaries, minimal false positives, and reduced missed detections, particularly in noisy backgrounds and for elongated targets. Figure 6

Figure 6: The proposed method achieves cleaner segmentation outputs and superior suppression of false alarms compared to baselines.

Figure 7

Figure 7: 3D heatmap comparison emphasizes the concentration of detection response at the true target location and suppression of spurious activations.

Systematic ablation further confirms:

  • Strict monotonicity of the diff-based loss is necessary for stable, reliable convergence.
  • Plug-and-play evaluations show immediate benefit when the Gaussian-shaped convolution replaces standard convs even in strong detection backbones (YOLOv8n, RetinaNet) without increased parameter count.
  • Location regularization does not systematically increase false alarms, as shown by comparative experiments.

Implications and Future Directions

The results underscore the importance of loss design tailored to the peculiarities of IR small target morphology and the necessity of physically motivated inductive biases in spatial modeling. The proposed primitives—monotonic diff-based scale loss, Gaussian-shaped convolution, and directional pinwheel attention—are lightweight, interpretable, and broadly compatible with various backbone architectures.

Practically, the diff-based scale loss can be extended or further analyzed in other modalities that involve small, sparse detection regimes (e.g., medical imaging, remote sensing). The Gaussian + pinwheel kernel may inspire new attention mechanisms in contexts where spatial priors are strong but morphological diversity is constrained.

Future work may consider:

  • Extending the approach to video-based IRSTD, leveraging temporal consistency,
  • Exploring more flexible orientation parameterizations or multi-directional pinwheel masks,
  • Unifying Gaussian and transformer-based self-attention for hybrid receptive fields,
  • Adapting these losses and kernels to unsupervised or semi-supervised small target detection.

Conclusion

The paper provides a rigorous analysis of scale-sensitive loss landscape properties and proposes a loss formulation that yields strictly monotonic, stable training for IRSTD. Combined with physically inspired, Gaussian-shaped and directionally adaptive spatial attention, the approach achieves consistently superior detection performance and strong generalization across benchmarks and detection backbones. These contributions offer principled, effective tools for advancing IR small target detection and related sparse object discovery problems in computer vision.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.