Scale-Attentive maMBA (SAMBA) in RetinexDual
- The paper introduces SAMBA as a reflectance restoration branch in RetinexDual, employing a coarse-to-fine, Mamba-based mechanism to correct artifacts and restore fine details.
- SAMBA processes multi-scale features at full, half, and quarter resolutions using encoder–decoder architecture and a Group State Space Block for adaptive state-space modeling.
- Empirical results show a marked improvement in PSNR and SSIM, confirming the benefit of specialized reflectance correction in ultra-high-definition image restoration.
Searching arXiv for the exact SAMBA usage and related naming ambiguities. Scale-Attentive maMBA (SAMBA) is the reflectance-restoration sub-network in RetinexDual, a Retinex-based dual-branch framework for generalized ultra-high-definition image restoration. In RetinexDual, a degraded image is decomposed into an effective reflectance component and an effective illumination component; SAMBA operates on the reflectance branch, while the Frequency Illumination Adaptor (FIA) operates on the illumination branch. Within this formulation, SAMBA is designed to correct artifacts and distortions in reflectance, reduce artifacts, and restore intricate details through a coarse-to-fine, multi-scale, Mamba-based mechanism (Kishawy et al., 6 Aug 2025).
1. Definition within RetinexDual
RetinexDual models a degraded image through a Retinex decomposition in which reflectance and illumination are restored by different modules. The paper writes
with denoting SAMBA and denoting FIA. The restored image is reconstructed as
where
In this decomposition, SAMBA is assigned to reflectance because reflectance is treated as carrying object structure, textures, hidden details, and degradation artifacts, whereas illumination correction is handled in the frequency domain by FIA (Kishawy et al., 6 Aug 2025).
The architectural role is therefore narrower and more specific than the acronym alone might suggest. SAMBA is not the whole RetinexDual system; it is the reflectance-restoration branch placed after the decomposer and before final recombination. Its target degradations are the spatially localized failures that dominate UHD restoration: local blur, localized corruption, texture loss, and fine-structure degradation. This division of labor is central to RetinexDual’s design, because the paper argues that pure downsampling loses crucial details irreversibly, while pure frequency-domain restoration is weak for spatially localized artifacts due to loss of degradation locality (Kishawy et al., 6 Aug 2025).
2. Motivation and meaning of “scale-attentive”
SAMBA is introduced against two lines of criticism. First, prior UHD restoration pipelines based on “Downsampling–Enhancement–Upsampling” are said to be ill-suited to UHD inputs because extreme downsampling removes crucial details irreversibly. Second, pure frequency-domain pipelines are described as useful for global degradations such as illumination or haze patterns, but weak for spatially localized artifacts because the frequency representation loses the locality of degradation. RetinexDual answers this by restoring reflectance spatially with SAMBA and illumination in the frequency domain with FIA (Kishawy et al., 6 Aug 2025).
A second motivation is specific to Mamba-like vision models. The paper argues that many vision adaptations of Mamba still inherit causal modeling: in the authors’ formulation, the -th pixel can only observe the previous pixels in the scanned sequence. This produces three problems for image restoration: causal information restriction, mismatch with spatial inductive bias, and long-range decay defects. SAMBA is introduced to mitigate these issues through a coarse-to-fine design that makes Mamba aware of multiple feature-map scales (Kishawy et al., 6 Aug 2025).
In this paper, “scale-attentive” does not mean standard attention over scales in the Transformer sense. It refers instead to using three explicit feature-map scales—$1$, $1/2$, and $1/4$ resolution versions of the same feature—and letting the Mamba-based processing adapt according to relations among regions at different scales. Coarser scales are used to expose long-range and semantically similar structures that are difficult to connect causally at full resolution, while the fine scale preserves textures and local structure. This suggests that scale-attentiveness in SAMBA is implemented as content-adaptive weighting and fusion of multi-scale features inside a Mamba-derived restoration block, rather than as a separate scale-attention operator (Kishawy et al., 6 Aug 2025).
3. Encoder–decoder structure and the Scale Adaptive Mamba Block
SAMBA is described as an encoder–decoder-based model with 3 Scale Adaptive Mamba Blocks (SAMBs). The paper does not provide a full stage-by-stage table with exact channel widths or block counts, but it states that each SAMB uses a Residual Diluted Block (RDB), a Diluted convolution Block (DB) over three scales, a Group State Space Block (GSSB), split/fusion operations, and residual addition (Kishawy et al., 6 Aug 2025).
The core SAMB equations are
0
where 1 is the block input, 2 is the locally refined feature, 3 and 4 are the 5 and 6 downsampled features, 7 is bilinear interpolation, 8 is channel concatenation, and 9 is the split operation (Kishawy et al., 6 Aug 2025).
Operationally, the block first performs local feature refining with RDB. It then constructs three scale-aligned feature maps: full, half, and quarter resolution, all upsampled back to the original size. These are concatenated and passed through GSSB, then split back into three scale-specific modulators 0. The final fusion is scale-wise and multiplicative: 1 followed by residual addition with 2. This is the paper’s practical meaning of scale adaptivity: the block does not average scales uniformly, but modulates each scale content-adaptively before fusion (Kishawy et al., 6 Aug 2025).
The explicit tensor convention given in the paper is
3
with
4
After upsampling,
5
and concatenation gives
6
This makes SAMB a joint cross-scale mixer rather than a late-fusion pyramid (Kishawy et al., 6 Aug 2025).
4. Group State Space Block and attentive state-space modeling
The Mamba-derived sequence modeling enters through the Group State Space Block (GSSB), whose internal token mixer is the Group State Space Module (GSSM). GSSB is formulated as
7
where 8, 9 is Layer Normalization, 0 is a convolutional feed-forward network, and 1 are learnable residual scaling weights (Kishawy et al., 6 Aug 2025).
GSSM introduces two mechanisms intended to offset the causal limitation of Mamba. First, it applies positional encoding and uses local embedding 2 and global embedding 3 to construct an image-specific embedding
4
where 5 is a classification policy over embeddings for flattened input tokens and Gumbel-softmax is used to produce one-hot selection. Second, instead of a naive raster scan it uses Semantic Guided Neighboring (SGN), adopted from MambaIRv2, to order regions by semantic similarity across scales (Kishawy et al., 6 Aug 2025).
The paper’s most explicit change to the state-space equations is in the output equation. After presenting the standard preliminaries
6
and the discretization
7
SAMBA modifies the readout in GSSM to
8
Here 9 is the image-specific embedding. This makes the state-space readout image-adaptive rather than using only a fixed 0 (Kishawy et al., 6 Aug 2025).
This modification is important because SAMBA’s remedy for causal blindness is not merely to change scan direction. The paper’s claim is that coarse-to-fine multi-scale features, semantic-guided scanning, and the image-specific embedding jointly provide missing information from unseen regions. A plausible implication is that SAMBA approximates a more non-causal, globally informed restoration process while retaining the efficiency advantages associated with Mamba-like state-space modeling (Kishawy et al., 6 Aug 2025).
5. Empirical evidence and implementation profile
The strongest direct evidence for SAMBA comes from the UHD-LL ablations reported inside RetinexDual. Under “Scale Attentive maMBA (SAMBA),” removing either the multi-scale design or the GSSB degrades restoration quality substantially (Kishawy et al., 6 Aug 2025).
| Variant | PSNR | SSIM |
|---|---|---|
| w/o Multi-scale | 26.96 | 0.906 |
| w/o GSSB | 25.49 | 0.908 |
| w/o GSSB & Multi-scale | 24.83 | 0.876 |
| Full model | 28.79 | 0.934 |
These results support three claims made in the paper. First, the multi-scale design matters: removing it drops PSNR from 1 to 2 and SSIM from 3 to 4. Second, the Mamba-based GSSB matters: removing it yields an even larger PSNR drop to 5. Third, the combination matters most: removing both gives the worst result, 6 (Kishawy et al., 6 Aug 2025).
The branch-level RetinexDuality ablation further supports SAMBA’s specific role on reflectance. On UHD-LL, using FIA for both 7 and 8 gives 9, using SAMBA for both branches gives 0, removing the FIA branch gives 1, removing the SAMBA branch gives 2, and the full dual-branch model reaches 3. This indicates that SAMBA is specifically well matched to the reflectance component, but the specialized dual-branch decomposition remains superior to using SAMBA alone for both branches (Kishawy et al., 6 Aug 2025).
The implementation details explicitly given for SAMBA are limited but consequential. SAMBA is an encoder–decoder model with 3 SAMBs, each using 3 scales 4. Upsampling is bilinear interpolation. GSSB uses LayerNorm, a convolutional FFN, and learnable residual scales. Full RetinexDual training uses AdamW, an initial learning rate of 5, a final learning rate of 6 via cosine annealing, crop size 7, batch size 8, and 4 NVIDIA H100 GPUs (Kishawy et al., 6 Aug 2025).
The full model loss is
9
with
0
Deep supervision is applied at 3 output scales (Kishawy et al., 6 Aug 2025).
The paper also reports overall 4K-image inference time for RetinexDual: Wave-Mamba 1 s, ERR 2 s, D2Net 3 s, and RetinexDual 4 s. The conclusion explicitly states that the model is not optimized in inference time and size, so SAMBA is not presented as the fastest UHD solution (Kishawy et al., 6 Aug 2025).
6. Terminology, scope, and naming ambiguity
Within arXiv usage, “SAMBA” is not a unique acronym. The exact phrase “Scale-Attentive maMBA” is used for the reflectance branch in RetinexDual (Kishawy et al., 6 Aug 2025), but several other papers use “SAMBA” or “Samba” for unrelated models. In finance, “Mamba Meets Financial Markets” introduces SAMBA as a Graph-Mamba framework for stock return prediction and explicitly notes that the paper does not expand SAMBA as “Scale-Attentive maMBA” (Mehrabian et al., 2024). In long-context language modeling, “Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modeling” uses Samba for a hybrid Mamba–Sliding Window Attention LLM, again without the scale-attentive expansion (Ren et al., 2024). In EEG modeling, “SAMBA: Toward a Long-Context EEG Foundation Model via Spatial Embedding and Differential Mamba” defines yet another SAMBA, also not as Scale-Attentive maMBA (Hong et al., 23 Nov 2025). In salient object detection, “Samba+” means Saliency Mamba rather than Scale-Attentive maMBA (Zhao et al., 2 Feb 2026).
For the specific Scale-Attentive maMBA of RetinexDual, several limitations remain explicit. The paper does not provide exact channel widths, exact GSSM dimensionalities, exact downsampling operators in SAMB, the exact encoder–decoder stage layout, or a definitive statement on whether scanning is bidirectional or only SGN-reordered unidirectional. It also notes that the overall model is not optimized for inference time or size and still struggles on some hard images (Kishawy et al., 6 Aug 2025).
Taken in its own terms, SAMBA is best understood not as a general-purpose Mamba backbone, but as a UHD image restoration sub-network specialized for reflectance correction. Its defining idea is that coarse-to-fine, scale-attentive processing compensates for Mamba’s causal limitations by combining three-scale feature construction, joint cross-scale state-space mixing, and semantically guided image-adaptive readout inside a Retinex decomposition framework (Kishawy et al., 6 Aug 2025).