Papers
Topics
Authors
Recent
Search
2000 character limit reached

State Space Channel Swapping (SSCS)

Updated 5 March 2026
  • State Space Channel Swapping (SSCS) is a neural network module for shallow fusion that interleaves RGB and infrared channels to mitigate modality disparity.
  • It employs a lightweight Visual State Space (VSS) block with directional 1D scanning to aggregate spatial and contextual features from mixed-channel tensors.
  • Empirical studies on the FLIR-Aligned dataset show SSCS improves mAP performance, underscoring its effectiveness in early cross-modal alignment.

State Space Channel Swapping (SSCS) is a neural network module designed for shallow, semantically meaningful cross-modal fusion of feature representations—specifically developed for combining information from RGB and infrared modalities in object detection tasks. SSCS operates as the initial sub-block within each Fusion-Mamba Block (FMB), preceding deeper state-space fusion mechanisms, with the goal of explicitly reducing modality disparities that arise from inherent differences in image style, texture, luminance, and noise patterns between modalities. By interleaving feature channels and embedding them into a lightweight state-space model, SSCS enables downstream components to process features that are already partially aligned in representation, thereby facilitating more effective and robust cross-modality fusion (Dong et al., 2024).

1. Motivation and Purpose

The principal challenge addressed by SSCS is the pervasive issue of modality disparity. Conventional fusion strategies in CNN- and Transformer-based cross-modal detection—such as channel-wise concatenation or summation of raw features—are susceptible to domination or corruption by the modality with stronger signals, due to incompatible feature statistics (e.g., textures and noise). SSCS targets this bottleneck by introducing controlled channel mixing as an explicit, shallow fusion mechanism. The aim is to ensure that each modality’s early-stage features are already influenced by their counterpart, reducing the alignment burden on deeper, more complex fusion stages (such as the Dual State Space Fusion, DSSF).

2. Mathematical Formulation and Channel-Swapping Mechanism

At a particular stage ii, let FRi∈RB×Ci×Hi×WiF_{R_i} \in \mathbb{R}^{B\times C_i\times H_i\times W_i} and FIRi∈RB×Ci×Hi×WiF_{IR_i} \in \mathbb{R}^{B\times C_i\times H_i\times W_i} denote the feature maps extracted from RGB and infrared modalities, respectively, where BB is batch size, CiC_i the number of channels, and Hi,WiH_i, W_i the spatial dimensions.

The SSCS channel-swapping operation proceeds as follows:

  • Each feature map is split into four channel groups:

FRi=[FRi(1),FRi(2),FRi(3),FRi(4)],FIRi=[FIRi(1),FIRi(2),FIRi(3),FIRi(4)]F_{R_i} = [F_{R_i}^{(1)}, F_{R_i}^{(2)}, F_{R_i}^{(3)}, F_{R_i}^{(4)}], \quad F_{IR_i} = [F_{IR_i}^{(1)}, F_{IR_i}^{(2)}, F_{IR_i}^{(3)}, F_{IR_i}^{(4)}]

with each F(k)∈RB×(Ci/4)×Hi×WiF^{(k)} \in \mathbb{R}^{B\times (C_i/4)\times H_i\times W_i}.

  • The channel-swapping operator forms two mixed-channel tensors:

TRi=CS(FRi,FIRi)=[FRi(1),FIRi(2),FRi(3),FIRi(4)],T_{R_i} = \mathrm{CS}(F_{R_i},F_{IR_i}) = [F_{R_i}^{(1)}, F_{IR_i}^{(2)}, F_{R_i}^{(3)}, F_{IR_i}^{(4)}],

TIRi=CS(FIRi,FRi)=[FIRi(1),FRi(2),FIRi(3),FRi(4)]T_{IR_i} = \mathrm{CS}(F_{IR_i},F_{R_i}) = [F_{IR_i}^{(1)}, F_{R_i}^{(2)}, F_{IR_i}^{(3)}, F_{R_i}^{(4)}]

  • This process ensures that exactly half of the feature channels in each modality are swapped at this early stage.

3. Visual State Space Block (VSS) Integration

The channel-swapped features TRiT_{R_i} and TIRiT_{IR_i} are then fed into a lightweight Visual State Space (VSS) block:

F~Ri=VSS(TRi),F~IRi=VSS(TIRi)\tilde F_{R_i} = \mathrm{VSS}(T_{R_i}), \quad \tilde F_{IR_i} = \mathrm{VSS}(T_{IR_i})

VSS processes each mixed-channel map through four directional 1D scans (top–down, bottom–up, left–right, right–left) using the Mamba-based S6 block as its core. These directional streams enable the model to aggregate spatial and contextual information efficiently. After separate directional processing, the results are merged back into a 2D feature map, resulting in fused features F~Ri,F~IRi∈RB×Ci×Hi×Wi\tilde F_{R_i}, \tilde F_{IR_i} \in \mathbb{R}^{B\times C_i\times H_i\times W_i}. The SSCS operation at stage ii is fully described by:

TRi=CS(FRi,FIRi),TIRi=CS(FIRi,FRi) F~Ri=VSS(TRi),F~IRi=VSS(TIRi)\begin{aligned} T_{R_i} &= \mathrm{CS}(F_{R_i},F_{IR_i}), \quad T_{IR_i} = \mathrm{CS}(F_{IR_i},F_{R_i}) \ \tilde F_{R_i} &= \mathrm{VSS}(T_{R_i}), \quad \tilde F_{IR_i} = \mathrm{VSS}(T_{IR_i}) \end{aligned}

4. Architectural and Implementation Considerations

The SSCS module imposes several constraints and design practices:

  • Intermediate tensors retain the original (B,Ci,Hi,Wi)(B, C_i, H_i, W_i) shape.
  • CiC_i must be divisible by 4 to enable uniform channel-splitting.
  • VSS block leverages directional processing with Mamba S6, internal hidden dimension PiP_i (typically Pi=CiP_i = C_i or a small multiple), depth-wise convolutions, SiLU activations, layer normalization, etc.
  • SSCS introduces no explicit learned gating—its parameterization exists entirely within the VSS’s state matrices (A,B,CA,B,C) and projection weights.
  • Initialization of all linear/convolutional layers follows standard Xavier or Kaiming routines (as implemented in PyTorch for convolution).
  • The forward pass can be described succinctly in the sequence: input splitting, channel swapping, parallel VSS mapping, output of two shallow fused feature maps.
  • SSCS output maps (F~Ri,F~IRi\tilde F_{R_i}, \tilde F_{IR_i}) are directly consumed by the DSSF module, whose role is deep fusion using gating weights and projection into a latent state space.

5. Empirical Performance and Synergy with Downstream Fusion

In ablation studies on the FLIR-Aligned dataset, eliminating SSCS (while retaining DSSF) reduces mAP50mAP_{50} from 84.9% to 82.9% (a 2.0% drop) and the overall mAP by 1.1%. This demonstrates that explicit, shallow channel swapping combined with a state-space block enhances early cross-modality consistency and boosts detection performance, even before deeper fusion layers operate. The performance decrement observed when removing SSCS is smaller than when removing DSSF, highlighting their synergy—shallow channel mixing and deep state-space gating play complementary roles in modality alignment (Dong et al., 2024).

6. Advantages, Limitations, and Prospective Directions

SSCS offers the following advantages:

  • Reduces raw modality bias via early, explicit interleaving of channels.
  • Employs a lightweight, linear-cost state-space fusion layer that builds cross-modal context efficiently.

However, the method presents certain design choices and limitations:

  • Fixed 50/50 channel swapping may not be optimal for all settings; more adaptive or learnable permutations could further alleviate modality disparities.
  • VSS introduces additional computational overhead, which could be critical in resource-constrained deployments.

Potential future milestones include developing learnable channel allocation (adaptive splits or permutations), incorporating early gating structures to dynamically control swapping magnitude, or integrating shallow cross-modal attention heads to refine the mixed channels prior to state-space mapping.

7. Context within Cross-Modality Fusion Architectures

The introduction of SSCS marks a novel approach within the context of cross-modality detection architectures. Unlike standard schemes that rely on late fusion or global attention over fully concatenated modalities, SSCS strategically performs controlled, shallow interleaving and state-space encoding at the outset. This reduces the subsequent burden on deeper fusion mechanisms (such as the DSSF gating net within FMB) and leads to a measurable improvement in performance benchmarks. SSCS’s principled combination of explicit channel mixing and compact state-space modeling establishes a robust paradigm for harmonizing multi-branch feature representations prior to deeper, gated cross-modal refinement (Dong et al., 2024).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

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 State Space Channel Swapping (SSCS).