Papers
Topics
Authors
Recent
Search
2000 character limit reached

Scale-Attentive maMBA (SAMBA) in RetinexDual

Updated 8 July 2026
  • 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

Reff,Leff=ψd(x),R^=S(Reff),L^=F(Leff),R_{eff},L_{eff}=\psi_d(x), \qquad \hat R=-\mathcal S(R_{eff}), \qquad \hat L=-\mathcal F(L_{eff}),

with S\mathcal S denoting SAMBA and F\mathcal F denoting FIA. The restored image is reconstructed as

I=RL,I = R \odot L,

where

R=ReffR^,L=LeffL^.R = R_{eff}-\hat R,\qquad L=L_{eff}-\hat L.

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 ii-th pixel can only observe the previous i1i-1 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

S\mathcal S0

where S\mathcal S1 is the block input, S\mathcal S2 is the locally refined feature, S\mathcal S3 and S\mathcal S4 are the S\mathcal S5 and S\mathcal S6 downsampled features, S\mathcal S7 is bilinear interpolation, S\mathcal S8 is channel concatenation, and S\mathcal S9 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 F\mathcal F0. The final fusion is scale-wise and multiplicative: F\mathcal F1 followed by residual addition with F\mathcal F2. 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

F\mathcal F3

with

F\mathcal F4

After upsampling,

F\mathcal F5

and concatenation gives

F\mathcal F6

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

F\mathcal F7

where F\mathcal F8, F\mathcal F9 is Layer Normalization, I=RL,I = R \odot L,0 is a convolutional feed-forward network, and I=RL,I = R \odot L,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 I=RL,I = R \odot L,2 and global embedding I=RL,I = R \odot L,3 to construct an image-specific embedding

I=RL,I = R \odot L,4

where I=RL,I = R \odot L,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

I=RL,I = R \odot L,6

and the discretization

I=RL,I = R \odot L,7

SAMBA modifies the readout in GSSM to

I=RL,I = R \odot L,8

Here I=RL,I = R \odot L,9 is the image-specific embedding. This makes the state-space readout image-adaptive rather than using only a fixed R=ReffR^,L=LeffL^.R = R_{eff}-\hat R,\qquad L=L_{eff}-\hat L.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 R=ReffR^,L=LeffL^.R = R_{eff}-\hat R,\qquad L=L_{eff}-\hat L.1 to R=ReffR^,L=LeffL^.R = R_{eff}-\hat R,\qquad L=L_{eff}-\hat L.2 and SSIM from R=ReffR^,L=LeffL^.R = R_{eff}-\hat R,\qquad L=L_{eff}-\hat L.3 to R=ReffR^,L=LeffL^.R = R_{eff}-\hat R,\qquad L=L_{eff}-\hat L.4. Second, the Mamba-based GSSB matters: removing it yields an even larger PSNR drop to R=ReffR^,L=LeffL^.R = R_{eff}-\hat R,\qquad L=L_{eff}-\hat L.5. Third, the combination matters most: removing both gives the worst result, R=ReffR^,L=LeffL^.R = R_{eff}-\hat R,\qquad L=L_{eff}-\hat L.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 R=ReffR^,L=LeffL^.R = R_{eff}-\hat R,\qquad L=L_{eff}-\hat L.7 and R=ReffR^,L=LeffL^.R = R_{eff}-\hat R,\qquad L=L_{eff}-\hat L.8 gives R=ReffR^,L=LeffL^.R = R_{eff}-\hat R,\qquad L=L_{eff}-\hat L.9, using SAMBA for both branches gives ii0, removing the FIA branch gives ii1, removing the SAMBA branch gives ii2, and the full dual-branch model reaches ii3. 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 ii4. Upsampling is bilinear interpolation. GSSB uses LayerNorm, a convolutional FFN, and learnable residual scales. Full RetinexDual training uses AdamW, an initial learning rate of ii5, a final learning rate of ii6 via cosine annealing, crop size ii7, batch size ii8, and 4 NVIDIA H100 GPUs (Kishawy et al., 6 Aug 2025).

The full model loss is

ii9

with

i1i-10

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 i1i-11 s, ERR i1i-12 s, D2Net i1i-13 s, and RetinexDual i1i-14 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).

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 Scale-Attentive maMBA (SAMBA).