Dual-Granularity Semantic Prompting for Language Guidance Infrared Small Target Detection
Organizations: School of Automation, Northwestern Polytechnical University Xi’an, Shaanxi 710072, China
Abstract
Infrared small target detection remains challenging due to limited feature representation and severe background interference, resulting in sub-optimal performance. While recent CLIP-inspired methods attempt to leverage textual guidance for detection, they are hindered by inaccurate text descriptions and reliance on manual annotations. To overcome these limitations, we propose DGSPNet, an end-to-end language prompt-driven framework. Our approach integrates dual-granularity semantic prompts: coarse-grained textual priors (e.g., 'infrared image', 'small target') and fine-grained personalized semantic descriptions derived through visual-to-textual mapping within the image space. This design not only facilitates learning fine-grained semantic information but also can inherently leverage language prompts during inference without relying on any annotation requirements. By fully leveraging the precision and conciseness of text descriptions, we further introduce a text-guide channel attention (TGCA) mechanism and text-guide spatial attention (TGSA) mechanism that enhances the model's sensitivity to potential targets across both low- and high-level feature spaces. Extensive experiments demonstrate that our method significantly improves detection accuracy and achieves state-of-the-art performance on three benchmark datasets.
Figures & tables
| Method | Backbone | Size | IRSTD-1K | NUDT-SIRST | NUAA-SIRST | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| IoU | P | F | IoU | P | F | IoU | P | F | |||
| IPI [ 40 ] | Traditional | 256 | 27.92 | 81.37 | 16.18 | 17.76 | 74.49 | 41.23 | 25.67 | 84.63 | 16.67 |
| PSTNN [ 41 ] | Traditional | 256 | 24.57 | 71.99 | 35.26 | 14.85 | 66.13 | 44.17 | 30.30 | 72.80 | 48.99 |
| MSLSTIPT [ 42 ] | Traditional | 256 | 11.43 | 79.03 | 1524 | 8.342 | 47.40 | 888.1 | 10.30 | 82.13 | 1131 |
| RKformer [ 43 ] | Hybird | 512 | 64.12 | 93.27 | 18.65 | 92.25 | 96.86 | 6.580 | 77.24 | 99.11 | 1.580 |
| IAANet [ 44 ] | Hybird | 256 | 66.25 | 93.15 | 14.20 | 90.22 | 97.26 | 8.320 | 74.22 | 93.53 | 22.70 |
| Prompt-driven Module Variant | IRSTD-1K | NUDT-SIRST | |||||||
| Baseline | TGCA | Cross-Attention | TGSA | IoU | IoU | ||||
| ✓ | 65.31 | 91.91 | 17.72 | 94.38 | 98.15 | 8.66 | |||
| ✓ | ✓ | 66.99 | 92.25 | 20.89 | 94.43 | 98.83 | 2.69 | ||
| ✓ | ✓ | ✓ | 67.54 | 92.92 | 26.93 | 94.66 | 98.73 | 2.64 | |
| ✓ | ✓ | ✓ | 67.87 | 92.59 | 27.97 | 95.27 | 99.04 | 2.57 | |
| ✓ | ✓ | ✓ | 67.81 | 91.91 | 36.00 | 94.81 | 98.94 | 1.49 | |
| #Tokens | Text Variant | IoU | ||
|---|---|---|---|---|
| 0 | A photo of an infrared image, with targets in the background. | 66.41 | 91.92 | 22.43 |
| 1 | A photo of an infrared image, with in the background. | 69.29 | 92.25 | 17.78 |
| 2 | A photo of an infrared image, with in background. | 70.87 | 93.26 | 14.23 |
| 3 | A photo of an infrared image, with in background. | 67.37 | 93.26 | 16.45 |
| 4 | A photo of an infrared image, with in background. | 69.22 | 91.58 | 19.91 |
| Method | IoU | P | F |
|---|---|---|---|
| w/o pre-training | 67.78 | 93.60 | 33.78 |
| w/o freezing the inversion network | 68.22 | 93.93 | 37.34 |
| Ours | 70.87 | 93.26 | 14.23 |
| IoU | ||||
| 1 | 0.5 | 69.91 | 92.78 | 15.64 |
| 1 | 1 | 70.87 | 93.26 | 14.23 |
| 2 | 1 | 69.75 | 92.51 | 16.89 |
| 1 | 2 | 68.92 | 91.83 | 21.47 |
| 1 | 0 | 68.83 | 92.25 | 20.26 |
| 0 | 1 | 66.60 | 91.91 | 39.01 |
| Encoder Dimension | IRSTD-1K | |||
|---|---|---|---|---|
| IoU | P | F | Param. | |
| (8, 16, 32, 64, 128) | 70.49 | 90.57 | 23.64 | 1.16 |
| (16, 32, 64, 128, 256) | 70.02 | 93.60 | 17.97 | 2.23 |
| (32, 64, 128, 256, 512) | 70.87 | 93.26 | 14.23 | 6.39 |
| (64, 128, 256, 512, 1024) | 67.51 | 89.90 | 24.46 | 22.78 |
| No. | Layers | IRSTD-1K | ||
|---|---|---|---|---|
| IoU | P | F | ||
| 1 | (1, 2) | 67.70 | 89.90 | 10.68 |
| 2 | (1, 2, 3) | 70.87 | 93.26 | 14.23 |
| 3 | (1, 2, 3, 4) | 69.39 | 91.92 | 18.56 |
| 4 | (1, 2, 3, 4, 5) | 68.63 | 90.91 | 20.53 |
| Loss coefficients Variant | IRSTD-1K | |||
|---|---|---|---|---|
| IoU | P | F | ||
| 1 | 1 | 70.87 | 93.26 | 14.23 |
| 1 | 0.5 | 69.36 | 91.92 | 19.64 |
| 0.5 | 1 | 69.04 | 94.27 | 21.67 |
| 1 | 0 | 66.01 | 91.24 | 19.01 |
| 0 | 1 | 68.53 | 90.91 | 20.19 |
| Methods | ALCNet [ 26 ] | ISNet [ 5 ] | AGPCNet [ 52 ] | DNANet [ 48 ] | UIUNet [ 49 ] | MSHNet [ 56 ] | L2SKNet [ 55 ] | DGSPNet ( Ours ) |
|---|---|---|---|---|---|---|---|---|
| FPS | 97.08 | 57.80 | 41.15 | 33.22 | 31.54 | 40.81 | 86.20 | 89.9 |
| Variant | Ablation Study | IoU | P | F |
|---|---|---|---|---|
| - | Full model | 70.87 | 93.26 | 14.23 |
| w/o text (similar capacity) | Visual-only baseline | 65.31 | 91.91 | 17.72 |
| Visual-only attention | 65.75 | 92.26 | 15.42 | |
| Visual-only attention w/ pre-training | 66.12 | 88.89 | 16.26 | |
| prompt tuning-like design | Learnable query in Inversion Net | 67.83 | 91.24 | 35.18 |
| Learnable fine-grained tokens | 69.17 | 89.89 | 35.67 |
Infrared Small Target Detection
Infrared small target detection finds faint, often sub-pixel objects against cluttered thermal backgrounds while limiting false alarms.
See all 46 papers