Papers
Topics
Authors
Recent
Search
2000 character limit reached

Dual-Layer Split Attention

Updated 21 April 2026
  • The paper introduces a dual-layer split attention mechanism that fuses temporal and spatial features, yielding up to 99.6% accuracy on the MIT-BIH dataset.
  • The module sequentially applies intra-modality and cross-modality attention, using group-based channel splitting and gating to refine feature integration.
  • Implementation details like configurable channel groups, residual merging, and layer normalization enable significant improvements over traditional concatenation methods.

Dual-layer cross-channel split attention is a multimodal feature fusion mechanism introduced in the context of GAF-FusionNet for ECG analysis, enabling the adaptive integration of temporal (time series) and spatial (image-based representation) modalities. This mechanism employs a two-stage sequence of attention layers—first an intra-modality split-attention followed by a cross-modality split-attention—to facilitate hierarchical feature refinement and cross-modal contextualization, yielding significant improvements in classification performance (Qin et al., 2024).

1. High-Level Module Architecture

The dual-layer cross-channel split attention module operates directly after parallel feature extraction streams:

  • Temporal Branch: Processes the raw ECG time series via a pipeline of 1D-CNN, Bi-LSTM, and global average pooling, resulting in Ft∈RB×Ct\mathbf{F}_t \in \mathbb{R}^{B \times C_t}.
  • Spatial Branch: Processes the Gramian Angular Field (GAF) image representations of ECG via 2D-CNN and global average pooling, resulting in Fs∈RB×Cs\mathbf{F}_s \in \mathbb{R}^{B \times C_s}.

The dual-layer split-attention module comprises:

  • Layer 1 (Intra-modality): Performs self-attention within channel groups of each modality independently.
  • Layer 2 (Cross-modality): Enables temporal features to attend to spatial ones and vice versa.

After each attention layer, outputs are merged via residual addition, layer normalization, concatenation, and final MLP-based classification.

2. Mathematical Formulation

Let batch size be BB, with channel counts CtC_t, CsC_s for temporal and spatial streams, split into GtG_t, GsG_s groups, respectively. Each group contains Ct/GtC_t/G_t or Cs/GsC_s/G_s channels.

Channel Splitting:

For m∈{t,s}m \in \{t, s\}, decompose features along the channel dimension:

Fs∈RB×Cs\mathbf{F}_s \in \mathbb{R}^{B \times C_s}0

Group Descriptor via Channel Averaging:

Fs∈RB×Cs\mathbf{F}_s \in \mathbb{R}^{B \times C_s}1

Stacking across groups:

Fs∈RB×Cs\mathbf{F}_s \in \mathbb{R}^{B \times C_s}2

Projection to Query, Key, Value:

Fs∈RB×Cs\mathbf{F}_s \in \mathbb{R}^{B \times C_s}3

Layer 1: Intra-modality Attention

Fs∈RB×Cs\mathbf{F}_s \in \mathbb{R}^{B \times C_s}4

Layer 2: Cross-modality Attention

With Fs∈RB×Cs\mathbf{F}_s \in \mathbb{R}^{B \times C_s}5, and projections dimension-aligned:

Fs∈RB×Cs\mathbf{F}_s \in \mathbb{R}^{B \times C_s}6

Re-projection and Residual Merge:

For each group:

Fs∈RB×Cs\mathbf{F}_s \in \mathbb{R}^{B \times C_s}7

Final recombination:

Fs∈RB×Cs\mathbf{F}_s \in \mathbb{R}^{B \times C_s}8

3. Hierarchical Stepwise Fusion Procedure

The fusion proceeds as follows:

  1. Extraction: Obtain Fs∈RB×Cs\mathbf{F}_s \in \mathbb{R}^{B \times C_s}9 and BB0 from the respective feature branches.
  2. Grouping: Split BB1 and BB2 into BB3 and BB4 channel groups.
  3. Pooling: Average-pooled group descriptors BB5, BB6.
  4. Projection: Q/K/V generation for each group per modality.
  5. Layer 1: Intra-modality self-attention yields BB7, BB8.
  6. Layer 2: Cross-modality attention integrates spatial cues into temporal and vice versa (BB9, CtC_t0).
  7. Gating: Merge CtC_t1 and CtC_t2, yielding gating coefficients CtC_t3.
  8. Readout: Element-wise scaling of original group features, residual addition, layer normalization.
  9. Final Classification: Concatenate CtC_t4 and CtC_t5, MLP fusion, softmax classification.

4. Distinctive Properties of the Attention Layers

  • Independence: The intra-modality and cross-modality attention layers use separate Q/K/V projections; parameter sharing does not occur between layers.
  • Modality Context: Intra-modality attention restricts reasoning within modality-specific channel groups, whereas cross-modality attention enforces explicit cross-modal information flow.
  • Configurable Granularity: Group count (CtC_t6) and embedding dimension (CtC_t7) may be independently determined per layer, allowing tuning of granularity for both intra- and inter-modal interactions. Reported experiments use CtC_t8 and CtC_t9 for both layers.

5. Implementation Characteristics

The implementation employs the following settings:

  • Batch size: CsC_s0
  • Channels: CsC_s1 (split into 4 groups of 128 channels)
  • Gating MLP: 1 hidden layer, size 64, with ReLU, followed by sigmoid activation
  • LayerNorm: Applied after group reassembly, CsC_s2
  • Post-attention head: Concatenated vector of length 1024 passed to an MLP (layer sizes 512 → 256 → number of classes) with ReLU and dropout (CsC_s3) between layers
  • Convolutional layers: All kernels size 3, padding 1, with batch norm and ReLU

6. Quantitative Performance and Comparative Significance

Empirical results underscore the module’s benefit for ECG classification:

  • Full dual-layer module: 99.6% accuracy (MIT-BIH dataset)
  • Without cross-modality attention: 98.1%
  • Without both attention layers (simple concatenation): 97.8%

Relative to the best alternative (Multi-Scale CNN), GAF-FusionNet with dual-layer split attention achieves:

  • +2.0 percentage points, ECG-200 (94.5% vs 92.5%)
  • +1.2 percentage points, ECG-5000 (96.9% vs 95.7%)
  • +1.8 percentage points, MIT-BIH (99.6% vs 97.8%)

A plausible implication is that progressive, split-driven intra- and inter-modality attention unlocks greater discriminative power in multimodal, temporo-spatial tasks than conventional concatenation or single-stage attention strategies. These findings establish dual-layer cross-channel split attention as an effective and generalizable approach to multimodal neural feature integration in bio-signal classification contexts (Qin 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 Dual-Layer Cross-Channel Split Attention.