Papers
Topics
Authors
Recent
Search
2000 character limit reached

GPSMamba: Infrared Super-Resolution Framework

Updated 7 July 2026
  • GPSMamba is a framework for infrared image super-resolution that integrates adaptive semantic-frequency prompts to preserve global 2D structure.
  • It employs an Adaptive Semantic-Frequency State Space Module (ASF-SSM) to fuse spatial and frequency cues, guiding the Mamba block for enhanced restoration.
  • The incorporation of Thermal-Spectral Attention and Phase Consistency loss drives state-of-the-art results across various benchmarks and upscaling factors.

Searching arXiv for GPSMamba and closely related papers to ground the article. GPSMamba, short for Global Phase and Spectral Prompt-guided Mamba, is a Mamba-based framework for infrared image super-resolution (IRSR) that targets a specific limitation of state-space image restoration: the tendency of causal 1D scanning to fragment the global context of 2D infrared imagery. The method combines an Adaptive Semantic-Frequency State Space Module (ASF-SSM), which injects fused semantic and frequency-domain prompts into the Mamba block, with Thermal-Spectral Attention and Phase Consistency (TSAPC) Loss, which supplies explicit non-causal supervision over spectral magnitude and Fourier phase. In the reported evaluation, the model is trained on M3FD, tested on result-A, result-C, and CVC10 under ×2\times 2 and ×4\times 4 upscaling, and is reported to achieve state-of-the-art performance, especially in the harder ×4\times 4 regime (Huang et al., 25 Jul 2025).

1. Problem setting and motivation

IRSR reconstructs a high-resolution infrared image ISRRH×W×CI_{SR}\in\mathbb{R}^{H\times W\times C} from a low-resolution input ILRRh×w×CI_{LR}\in\mathbb{R}^{h\times w\times C}, with h=H/sh=H/s, w=W/sw=W/s, and scaling factor ss, under the mapping

ISR=F(ILR).I_{SR}=F(I_{LR}).

Within this setting, GPSMamba is designed for infrared data characterized by low contrast, high noise / degradation, homogeneous backgrounds, and sparse high-frequency textures / details. These conditions reduce the availability of strong local cues and make long-range consistency unusually important.

The method is motivated by the observation that conventional Mamba-based image restoration inherits a mismatch between sequential modeling and image geometry. Standard Mamba uses a recurrence of the form

ht=Aht1+Bxt,yt=Cht,h_t=\mathbf{A}h_{t-1}+\mathbf{B}x_t,\qquad y_t=\mathbf{C}h_t,

with selective scan making ×4\times 40 input-dependent. For images, however, the usual adaptation is to flatten 2D patches into a 1D sequence and scan them causally. The reported consequence is that the fixed 1D scan path fragments 2D spatial structure, separates semantically related pixels in sequence order, and weakens fine-detail restoration. GPSMamba is therefore formulated as an attempt to preserve Mamba’s efficiency while compensating for its weak 2D global modeling in infrared restoration (Huang et al., 25 Jul 2025).

2. System architecture and design objective

GPSMamba is organized as a hierarchical restoration network with four stages. A shallow convolution first extracts low-level features from ×4\times 41. The deep body is then composed of stacked Adaptive Semantic-Frequency State Space Blocks (ASF-SSB). A reconstruction module upsamples the refined representation to produce ×4\times 42. Training is driven by the proposed TSAPC loss ×4\times 43.

The architectural objective is twofold. First, the model introduces architectural guidance inside the Mamba block through a fused semantic-frequency prompt. Second, it introduces non-causal supervision through frequency- and phase-based losses. This differentiates GPSMamba from restorers that simply flatten image tokens and rely on scan dynamics alone to propagate global context.

A central claim of the framework is that prompt injection and non-causal supervision act in complementary ways. The prompt mechanism reshapes the internal state-space computation, while the loss formulation constrains the final reconstruction using global spectral and structural criteria. The paper explicitly presents this as a systematic strategy for mitigating the limitations of causal modeling in 2D IRSR (Huang et al., 25 Jul 2025).

3. Adaptive Semantic-Frequency State Space Module

ASF-SSM is the core module of GPSMamba. It constructs a fused prompt tensor ×4\times 44 from a semantic / spatial branch and a global frequency-domain branch, then uses that prompt to guide the Mamba computation.

For the spatial branch, semantic features

×4\times 45

are passed through an MLP and linear projection to produce routing logits, and Gumbel-Softmax yields a discrete routing matrix

×4\times 46

where ×4\times 47 is the prompt pool size. Given a learnable prompt pool ×4\times 48, the spatial prompt is

×4\times 49

This makes prompt selection content-aware at the token level.

For the global branch, the same semantic sequence is reshaped and transformed with FFT: ×4\times 40 The frequency representation is projected to

×4\times 41

and a self-attention-like operation produces the global prompt

×4\times 42

The final fused prompt is then defined by element-wise addition,

×4\times 43

The significance of ASF-SSM lies in the division of labor between the two prompt sources. The spatial prompt supplies local semantic routing, while the frequency-domain prompt provides holistic image structure. The reported intent is not merely to add another context branch, but to inject non-local information into the Mamba block itself, so that the scan is informed by both token semantics and global frequency content (Huang et al., 25 Jul 2025).

4. Prompt injection and semantic-guided selective scan

After prompt generation, GPSMamba injects the fused prompt into the state-space computation. The semantic input is first projected,

×4\times 44

and then split into ×4\times 45, ×4\times 46, and ×4\times 47. The state matrix is parameterized as

×4\times 48

Prompt injection occurs in the output projection: ×4\times 49 where ISRRH×W×CI_{SR}\in\mathbb{R}^{H\times W\times C}0 denotes the time-specific prompt token selected from ISRRH×W×CI_{SR}\in\mathbb{R}^{H\times W\times C}1. The resulting recurrence is

ISRRH×W×CI_{SR}\in\mathbb{R}^{H\times W\times C}2

ISRRH×W×CI_{SR}\in\mathbb{R}^{H\times W\times C}3

The output sequence is then normalized and projected back by

ISRRH×W×CI_{SR}\in\mathbb{R}^{H\times W\times C}4

A further modification is the semantic-guided scan path. Tokens are sorted by semantic routing through the argmax of the routing matrix ISRRH×W×CI_{SR}\in\mathbb{R}^{H\times W\times C}5, so the scan order is no longer a fixed raster or simple flatten-and-scan traversal. The paper characterizes this as “breaking the rigid causal chain” more effectively than a standard Mamba implementation.

This component is central to GPSMamba’s interpretation of selective scan. Rather than treating causality as an immutable sequence prior, the method uses semantic routing to reorganize the effective scan trajectory and uses prompt injection to modulate the state-space output. In the reported formulation, this is the primary architectural mechanism for restoring global coherence in 2D infrared reconstruction (Huang et al., 25 Jul 2025).

5. Thermal-spectral attention and phase-consistency supervision

GPSMamba supplements architectural guidance with a composite objective called Thermal-Spectral Attention and Phase Consistency Loss, denoted ISRRH×W×CI_{SR}\in\mathbb{R}^{H\times W\times C}6. The loss has two terms: ISRRH×W×CI_{SR}\in\mathbb{R}^{H\times W\times C}7

The thermal-spectral attention term begins with a thermal mask generated from the ground-truth high-resolution image ISRRH×W×CI_{SR}\in\mathbb{R}^{H\times W\times C}8. A pretrained VGG19 feature extractor ISRRH×W×CI_{SR}\in\mathbb{R}^{H\times W\times C}9 and a lightweight gating network ILRRh×w×CI_{LR}\in\mathbb{R}^{h\times w\times C}0 with sigmoid produce

ILRRh×w×CI_{LR}\in\mathbb{R}^{h\times w\times C}1

After resizing to image resolution, the mask is applied to both reconstructed and reference images, and the spectral loss is

ILRRh×w×CI_{LR}\in\mathbb{R}^{h\times w\times C}2

The stated purpose is to focus learning on thermally salient regions and preserve spectral magnitude where infrared structure is most informative.

The phase consistency term is defined as

ILRRh×w×CI_{LR}\in\mathbb{R}^{h\times w\times C}3

The paper stresses that phase carries structural layout information, including edges, contours, and object geometry. The combined loss therefore enforces both structural fidelity and thermally weighted spectral fidelity. In the reported ablations, the best setting is

ILRRh×w×CI_{LR}\in\mathbb{R}^{h\times w\times C}4

The significance of TSAPC is that it provides non-causal supervision. Instead of relying only on local reconstruction targets or implicit state propagation, it constrains the output using global Fourier-domain structure. This is a defining feature of GPSMamba’s attempt to compensate for causal scan limitations (Huang et al., 25 Jul 2025).

6. Training protocol, benchmarks, and empirical findings

The reported implementation uses PyTorch on an NVIDIA A6000 with Adam, learning rate ILRRh×w×CI_{LR}\in\mathbb{R}^{h\times w\times C}5, and batch size 32. Training is performed on M3FD. Evaluation is carried out on result-A, result-C, and CVC10 with bicubic downsampling under ILRRh×w×CI_{LR}\in\mathbb{R}^{h\times w\times C}6 and ILRRh×w×CI_{LR}\in\mathbb{R}^{h\times w\times C}7 super-resolution. Full-reference evaluation uses PSNR and SSIM on the Y channel in YCbCr space, while no-reference evaluation uses DBCNN, NIQE, BRISQUE, and CLIP-IQA (Huang et al., 25 Jul 2025).

Aspect Reported setting
Training data M3FD
Test sets result-A, result-C, CVC10
Scaling factors ILRRh×w×CI_{LR}\in\mathbb{R}^{h\times w\times C}8, ILRRh×w×CI_{LR}\in\mathbb{R}^{h\times w\times C}9
Metrics PSNR, SSIM, DBCNN, NIQE, BRISQUE, CLIP-IQA
Optimization PyTorch, NVIDIA A6000, Adam, h=H/sh=H/s0, batch 32

The comparison set includes EDSR, ESRGAN, FSRCNN, SRGAN, SRCNN, RCAN, SwinIR, PSRGAN, ShuffleMixer, HAT, RGT, MambaIR, ATD, CATANet, MambaOut, VisionMamba, IRSRMamba, and MambaIRv2. The main reported findings are that GPSMamba is best or second-best across all datasets and metrics at h=H/sh=H/s1 and becomes the clear leader at h=H/sh=H/s2, achieving the best performance on all three datasets and across metrics. A concrete example is the 35.4007 dB PSNR reported on result-C at h=H/sh=H/s3, which improves over the previous best IRSRMamba by about 0.1 dB. The paper also reports improved no-reference performance, especially on CLIP-IQA, and presents visual evidence of sharper textures, clearer object contours, crisper text and sign details, better-preserved pedestrian silhouettes, and cleaner residual maps (Huang et al., 25 Jul 2025).

Ablation studies support the decomposition of the method. Starting from a pure Mamba baseline, adding ASF-SSM improves PSNR/SSIM, and adding the full TSAPC loss yields the best result. Batch sizes 16, 32, and 64 are tested, with 32 selected. Increasing the number of ASF-SSB blocks improves performance up to 8 blocks, which becomes the final configuration. Effective receptive field visualization is reported to expand from a compact localized region to a broader anisotropic one under ASF-SSM, and frequency-domain visualization indicates that TSAPC reduces phase-spectrum artifacts (Huang et al., 25 Jul 2025).

7. Interpretation, scope, and relation to adjacent Mamba variants

GPSMamba is best understood as a domain-specific adaptation of selective state-space modeling for infrared restoration rather than as a generic Mamba replacement. Its principal claim is that Mamba’s linear-time sequence modeling remains useful, but only if complemented by mechanisms that reintroduce non-local 2D structure through prompt construction, semantic routing, and frequency-domain supervision. A common simplification is to describe it as merely “adding attention” to Mamba; the reported formulation is narrower and more specific, because the decisive operations are prompt injection into the state-space output path and explicit phase/spectral constraints during training (Huang et al., 25 Jul 2025).

The term should also be distinguished from other prompt-guided or geometry-guided Mamba variants in computer vision. In semantic segmentation, for example, geometry-guided Mamba modules have been studied as plug-and-play replacements for CNN context heads, where selective scan is modulated by boundary cues, centripetal potential, and directional flow, rather than by global phase and spectral prompting (Chan et al., 7 Jun 2026). The two lines of work share the broader objective of overcoming isotropic or structurally blind context aggregation, but they operate on different tasks, prompts, and supervision signals.

The paper does not present an explicit extended limitations section, but it states enough to support several cautious inferences. It implies that GPSMamba is more parameter-heavy than some lightweight baselines, that it relies on FFT-based global prompting and an additional gating network for thermal masking, and that the reported training protocol is specific to current IRSR datasets. This suggests that broader cross-domain generalization remains an open empirical question rather than an established property. Within the scope of the reported experiments, however, GPSMamba represents a technically explicit attempt to reconcile causal state-space efficiency with the global structural and spectral requirements of infrared super-resolution (Huang et al., 25 Jul 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

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

Follow Topic

Get notified by email when new papers are published related to GPSMamba.