Manuscript Offprint
arXiv:2610.11526MSGAT: Multi-Head Spiking Graph Attention with Similarity-Space Fusion for Image-Text Retrieval
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Spiking neural networks (SNNs) offer an energy-efficient computing paradigm through sparse event-driven computation, showing great potential for efficient multimodal learning. However, applying SNNs to high-level multimodal tasks, such as image-text retrieval (ITR), remains challenging, since sparse spike representations make it difficult to capture semantic structures required for cross-modal alignment. Existing spiking ITR methods rely on local alignment and additional soft-label supervision during training, while lacking awareness of structural and multi-granularity relationships. To address these issues, we propose a Multi-head Spiking Graph Attention Network (MSGAT) for structural modeling and equip it with dynamic attention heads to capture complementary relational patterns and enable spike-driven graph reasoning and aggregation. However, within a two-branch multi-granularity fusion framework, the fine-grained spike representations generated by MSGAT are sparse and discrete, whereas the global representations are continuous, making conventional feature-level fusion susceptible to interference across heterogeneous representations. Therefore, we introduce SimFuse, a similarity-space fusion alignment strategy integrating coarse- and fine-grained matching relations while avoiding direct fusion of heterogeneous representations. Experiments on Flickr30K and MSCOCO show our method outperforms ANN methods under matched settings and existing SNN retrieval baselines. Moreover, with only two time steps, our SNN achieves comparable or superior performance to its ANN counterpart while reducing theoretical module-level energy by 55%. The code is provided in the Supplementary Materials.
Introduction
Image-text retrieval (ITR) aims to identify semantically corresponding samples across visual and textual modalities (Chen et al. 2021). Recent ANN-based methods have achieved remarkable performance by global semantic alignment (Zhang et al. 2024), fine-grained region-word correspondence (Pan, Wu, and Zhang 2023), multi-level matching strategies (Fu et al. 2023), and large-scale pre-trained models (Huang et al. 2024). However, existing methods typically rely on deep architectures, dense floating-point operations,

Figure 1: Motivation. Sparse, discrete SNN representations and continuous representations produced by ANN-based GPO (Generalized Pooling Operator) lie in heterogeneous spaces, making conventional feature-level fusion ineffective.
and complex cross-modal interactions (Lee et al. 2018), incurring considerable computational and energy costs that limit scalability in large-scale retrieval scenarios. Spiking neural networks (SNNs) provide a promising alternative for efficient multimodal learning through sparse spike activations and event-driven computation. Recently, CMSF (Zong et al. 2026) established the feasibility of SNNs for cross-modal retrieval. Nevertheless, CMSF primarily relies on local spike encoding and additional soft-label supervision during training, leaving semantic relation reasoning and global semantic alignment underexplored, although both are important for multimodal understanding and alignment.
High-level cross-modal alignment requires modeling structural relationships beyond isolated visual regions and textual tokens. These semantic units are inherently connected through visual and linguistic dependencies, which provide important cues for distinguishing fine-grained semantic correspondence. Therefore, spiking ITR calls for an effective spike-driven graph reasoning mechanism that can capture structural dependencies and enable semantic propagation.
Fine-grained local features and coarse-grained global features provide complementary information for multi-granularity image-text alignment. Existing ANN-based ITR methods commonly integrate these representations through feature-level fusion. However, such a strategy introduces another challenge in SNNs, as illustrated in Fig. 1: fine-grained
Corresponding author.
Copyright © 2027, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.
representations from SNNs exhibit sparse and discrete characteristics, while global representations from GPO (Chen et al. 2021) remain continuous. Conventional feature-level fusion across these heterogeneous representation spaces may introduce interference and destabilize joint optimization.
To address these challenges, we propose a Multi-head Spiking Graph Attention Network (MSGAT) with Similarity Space Fusion (Sim-Fuse) alignment strategy for ITR. Specifically, MSGAT constructs spiking visual and textual graphs and performs spike-driven graph reasoning and aggregation, enabling fine-grained structural semantic modeling. By employing multiple dynamic attention heads, MSGAT captures complementary relational patterns from different representation subspaces while preserving the event-driven nature of SNNs. Furthermore, we introduce Sim-Fuse, which integrates coarse- and fine-grained matching relations at the similarity level, avoiding feature-level fusion between the discrete and continuous representations produced by MSGAT and GPO, respectively. This similarity-space fusion enables multi-granularity semantic integration. Together, MSGAT and Sim-Fuse form an efficient spiking retrieval framework that improves multi-granularity semantic alignment while retaining the computational advantages of SNNs.
Under comparable feature-extraction settings, experiments on Flickr30K and MSCOCO demonstrate that our method outperforms ANN-based methods and existing SNN retrieval baselines. Moreover, with only two time steps, our proposed MSGAT achieves performance comparable or even superior to that of its ANN counterpart while reducing the theoretical inference energy of the graph-reasoning module by approximately 55%.
The main contributions are summarized as follows:
• We propose MSGAT, a novel spike-driven multi-head graph attention network that introduces dynamic structure-aware reasoning into image-text retrieval. By exploiting graph relationships and complementary attention heads, MSGAT enables fine-grained semantic graph propagation under sparse event-driven computation.
• We introduce Sim-Fuse, a similarity-space fusion alignment strategy for SNNs that integrates coarse- and fine-grained matching relations while bypassing heterogeneous feature representation spaces, effectively improving multi-granularity semantic alignment.
• Extensive experiments on Flickr30K and MSCOCO demonstrate that the proposed framework outperforms state-of-the-art methods. With only two time steps, our model achieves competitive performance with ANN counterparts while reducing energy consumption by 55%.
Image-Text Retrieval
Recent image-text retrieval methods have explored graph structures to model semantic relations beyond isolated regions or tokens. VSRN (Li et al. 2019) performs graph convolutional reasoning over bottom-up image regions to obtain relation-enhanced visual features. GSMN (Liu et al. 2020a) constructs structured visual and textual graphs whose nodes correspond to objects, relations, or attributes, and learns fine-grained phrase correspondence through node-level and structure-level matching. CSGM (Cheng et al. 2022) formulates retrieval as object-level and relationship-level matching between visual and textual scene graphs. HREM (Fu et al. 2023) further models fragment-level and instance-level semantic relations with a cross-embedding association graph to improve hard negative discrimination. CORA (Pham et al. 2024) represents captions as scene graphs and uses graph attention networks to encode object-attribute and object-object relations in a dual-encoder framework. CHAN (Pan, Wu, and Zhang 2023) emphasizes discriminative hard alignments to reduce noisy fine-grained matching. CMSF (Zong et al. 2026) first applies SNNs to ITR, demonstrating their feasibility for semantically demanding complex multimodal tasks. However, it relies on soft-label supervision and suffers from interference by semantically irrelevant nodes in self-attention. Our proposed MSGAT mitigates these limitations via spike-driven graph reasoning, graph aggregation, multi-head dynamic attention, and multi-granularity fusion.
Spiking Neural Networks
Early work such as (Cao, Chen, and Khosla 2015) explored converting deep CNNs into SNNs by interpreting ANN activations as firing rates. (Lv, Xu, and Zheng 2023) proposed a two-stage pipeline combining ANN-to-SNN conversion with fine-tuning. Parallel efforts investigated direct training with surrogate gradients (Wu et al. 2018). Spikformer (Zhou et al. 2023) and its variants (Zhou et al. 2024; Yao et al. 2024) proposed a spike-driven self-attention mechanism, marking a milestone in the development of SNNs. Recently, SNNs have achieved notable progress in unimodal visual tasks, such as image classification (Song et al. 2024), object detection (Li et al. 2025; Luo et al. 2024), semantic segmentation (Lei et al. 2025), and saliency detection (Liu et al. 2025). Some works have extended SNNs to graph-structured learning. Spiking-GCN (Zhu et al. 2022) encodes graph structures into spike sequences with graph convolution operation, GSAT (Wang and Jiang 2022) learns spike-based graph attention for robust representation learning, SpikeGCL (Li et al. 2024) introduces graph contrastive learning into SNNs to obtain compact binary representations, and SpikeNet (Li et al. 2023a) explores spiking neurons for dynamic representation learning. SpikingHAN (Cao et al. 2026) further applies SNNs to heterogeneous graph learning with a shared convolution layer. Our MSGAT is tailored to multimodal ITR and differs from prior graph static-attention methods by introducing multi-head dynamic attention with softmax-free spike aggregation to capture structural semantic representations.
Proposed Method
An overview of our MSGAT is shown in Fig. 2. We first extract floating-point image and text node features and then construct spiking visual and textual graphs. MSGAT captures fine-grained structural semantics through spike-driven graph reasoning, whereas GPO preserves coarse-grained information. The resulting similarity matrices are adaptively fused, and the stop-gradient fused similarity supervises the two pre-fusion matrices via KL-divergence alignment.

Figure 2: Framework of MSGAT for ITR. Left: Replaceable extractors produce floating-point node features. Top and bottom: GPO derives global features, Spike Encoder converts node features into spikes for Spiking Graph construction. MSGAT performs spike-driven graph reasoning and aggregation to obtain neighborhood-aware spiking fine-grained features. Middle: Coarse- and fine-grained similarities are fused into a detached multi-granularity target, which in turn aligns and optimizes the two branches.
Spiking Neuron As the fundamental unit of SNNs, a spiking neuron receives input currents and accumulates membrane potentials, which are compared to a threshold to determine firing. The dynamics of the leaky integrate-and-fire (LIF) neuron model (Maass 1997) are:
where is the membrane time constant. When exceeds the threshold , the neuron emits a spike ; if spiking occurs, resets to , otherwise it remains .
Spiking Graph Construction
Following the standard practice in ITR tasks (Lee et al. 2018; Faghri et al. 2018; Chen et al. 2021), we use pre-extracted visual region features by Faster-RCNN (Ren et al. 2017) as model inputs: , and a pre-trained BERT (Devlin et al. 2019) to extract word features: . and denote the embedding of the -th textual node and visual node respectively. Subsequently, a linear layer maps them to a shared embedding dimension of .
Spiking Textual Graph We construct a textual graph by combining explicit syntactic dependencies and latent semantic correlations. To capture explicit linguistic structures, we use Stanford CoreNLP (Manning et al. 2014) to extract syntactic dependency relations among textual nodes. Based on the parsed dependency relations, we construct a syntactic adjacency matrix: . Since syntactic dependencies may not cover all latent semantic correlations, we further construct a semantic graph:
where denotes the indicator function, which assigns a value of 1 if the cosine similarity between two nodes exceeds the threshold , and 0 otherwise. Finally, the syntactic dependency matrix and semantic similarity matrix are combined as:
Spiking Visual Graph The regions detected by Faster R-CNN may contain multiple instances of the same object category, such as several "people" within a single image. Since these instances typically exhibit similar embeddings, it is reasonable to establish edges between the corresponding nodes. Accordingly, we construct the adjacency matrix of the visual graph based on the pairwise cosine similarity:
where is the threshold of visual node-level similarity.
Spike Encoder To meet the spatiotemporal requirements of SNNs, we employ a Spike Encoder to convert floating-point node features into spiking pattern embeddings (Lv et al. 2024). Given an input floating-point tensor , we first apply layer normalization and then replicate T time steps.
where and are learnable scale and bias parameters associated with the t-th time step, respectively, and denotes element-wise multiplication, is the spiking neuron.
Multi-head Spiking Graph Attention
Graph attention networks (Veličković et al. 2018) provide an effective mechanism for modeling relational dependencies by adaptively aggregating information from neighboring nodes. GATv2 (Brody, Alon, and Yahav 2022) improves the original attention formulation by allowing the attention ranking to dynamically vary with different source-target node pairs, enabling more expressive graph reasoning.
Inspired by the dynamic source-target interaction in GATv2, we propose a Multi-head Spiking Graph Attention Network (MSGAT). Given spiking node features , MSGAT first generates spiking source (Q), target (K), and value (V) matrix though linear projections and LIF neuron respectively:
where , and are projection weights. Then, multi-head attention mechanism is adopted to split the spike tensor into sub-space. For the -th head, they are reshaped as:
To compute dynamic source-target attention, MSGAT first constructs a vector-valued edge response for each pair of nodes i and j. The response for head h is defined as:
where and are learnable head-specific attention vectors, and is a learnable broadcast scalar bias, denotes Hadamard product. Since and are binary, their element-wise products with the attention vectors can be computed by accumulating the corresponding weights.
MSGAT applies ReLU before feature reduction, allowing target attention rankings to vary across source nodes, and subsequently incorporates the binary adjacent matrix to preserve only valid graph neighborhoods:
where ReLU( ) can be implemented by simple thresholding operations in neuromorphic systems.
To avoid the exponential computation introduced by Soft-Max, MSGAT adopts row-wise normalization:
where is a small constant that prevents numerical instability when the denominator becomes zero due to sparse responses. The spike-driven neighborhood aggregation is formulated as:
Finally, the complementary information from all source-target dynamic attention heads is concatenated as:
where "||" indicates concatenation. The aggregated spiking representation is further converted into spike outputs through a LIF neuron: .
Similarity-Space Fuse Alignment Strategy
As illustrated in Fig. 1, fine-grained representations from the MSGAT exhibit sparse and discrete characteristics, which are misaligned with the continuous GPO representations. This representation discrepancy makes feature-level fusion suboptimal, as verified in Fig. 4. To address this issue, we propose Similarity-Space Fuse Alignment Strategy (SimFuse), which bypasses representation-level fusion and performs multi-granularity alignment in the similarity space.
For fine-grained branch, we compute the fine-grained similarity tensor: , denotes the batch size. Then, we aggregate similarities from the word-to-region direction by selecting the most relevant region for each word (Pan, Wu, and Zhang 2023), and the most relevant word for each region along the reverse direction:
Finally, we combine the fine-grained similarities, defined as:
For coarse-grained branch, we use Generalized Pooling Operator (GPO) to aggregate region and word nodes into global image and text embeddings: and , and the coarse-grained similarity is computed as: . The fused similarity matrix is obtained by a learnable weighted combination of and :
Next, each row and column of the similarity matrices is converted into matching probability distribution R and C using temperature-scaled softmax. The image-to-text alignment loss is defined as:
where denotes the stop-gradient operation. Similarly, the text-to-image alignment loss is defined as:
The final similarity alignment loss is:
Through this objective, integrates complementary coarse- and fine-grained matching cues and provides guidance for optimizing and . In turn, the refined branch similarities further enhance the fused similarity, forming a collaborative refinement process.
Training Objectives
We improve the hubness-aware loss (Liu et al. 2020b) as our training objective. For the similarity matrix , we define the as positive pairs, and as negative pairs. The loss function is formulated as:
(21) where and are temperature scale and margin, respectively.
Node-level Objective Sparse spike representations are sensitive to noise, and unreliable activations introduced at early stages may be propagated and amplified during subsequent spiking graph reasoning. To stabilize the inputs of MSGAT, we impose an auxiliary node-level objective before Spike Encoder. Given the visual nodes and textual nodes , the similarity is computed by Eq.16, and according to Eq.21, .
Structure-level Objective After MSGAT reasoning, each node aggregates information from its graph neighborhood and encodes relation-enhanced structural semantics. The structure-level objective is defined as to capture local and global structural information.
According to Eq.17, the loss function of fused similarity matrix is defined as: . It encourages the model to jointly optimize fine-grained branch and coarse-grained branch with learnable weights. And the final total objective is formulated as:
where , and are weights to balance different losses.
Experiments
Datasets Metrics and Settings
We evaluate MSGAT on two widely used benchmarks: FLICKR30K (Young et al. 2014) and MSCOCO (Lin et al. 2014). FLICKR30K contains 31,783 images and MSCOCO includes 123,287 images, each paired with five captions. Following the standard evaluation protocol (Lee et al. 2018; Zhang et al. 2024), FLICKR30K is split into 29,000/1,000/1,000 images for training/validation/testing, while MSCOCO uses 113,287/1,000/5,000 images.
The commonly used evaluation metrics for ITR are Recall@K (K=1,5,10), which depict the percentage of ground truth being retrieved at top 1, 5, 10 results, respectively. To show the overall matching performance, we also compute the sum of all the Recall values (R@Sum).
For a fair comparison, we employ Faster R-CNN and BERT as feature extractors. MSGAT is implemented with the SpikingJelly (Fang et al. 2023) framework and trained on a single NVIDIA RTX4090 GPU. More parameter and model setting details are provided in the Supplementary Materials.
Main Experimental Results
We compare MSGAT with state-of-the-art ANN-based methods and the existing SNN retrieval baseline on Flickr30K and MSCOCO, as shown in Tab. 1 and Tab. 2. Methods are grouped according to their feature extraction backbones, and unlike SCAN (Lee et al. 2018), VSRN (Li et al. 2019), and VSRN++ (Li et al. 2023b), which boost performance via multi-model ensembling, MSGAT reports single-model results like MMCA (Wei et al. 2020) and NAAF (Zhang et al. 2022). On the MSCOCO 1K (5-fold) and FLICKR30K 1K test sets, MSGAT achieves R@Sum scores of 539.0 and 529.8, respectively, outperforming all compared methods. Compared with CMSF, MSGAT improves R@Sum by 5.2 and 5.9.

Figure 3: Efficiency Analysis. SSA: spike self-attention; AC: accumulate; MAC: multiply-accumulate operation.
points on the two benchmarks, demonstrating the effectiveness of spike-driven graph reasoning and similarity-space fusion. Moreover, with only two time steps, MSGAT surpasses its ANN counterpart by 2.0 and 2.6 R@Sum points, showing the potential of SNNs for efficient cross-modal retrieval. On the more challenging MSCOCO 5K test set (Tab. 2), MSGAT achieves the best R@Sum of 452.0 and consistently outperforms its ANN counterpart across most metrics with T=2. Although MaxMatch (Alomari et al. 2025) achieves competitive performance, it relies on Hungarian-based matching (Kuhn 1955) with additional computational complexity. In contrast, MSGAT provides efficient structure-aware reasoning and similarity-level alignment under sparse spike computation. Compared with the SNN baseline CMSF (Zong et al. 2026), MSGAT is slightly lower on text-to-image R@5 and R@10, but achieves much better overall performance with a simpler architecture and training pipeline.
Efficiency Analysis of MSGAT As shown in Fig. 3, we compare MSGAT with other methods in terms of parameters, MACs, ACs, measured by (Chen et al. 2023), and theoretical inference energy consumption estimated following (Lv et al. 2024). The reported cost excludes the replaceable feature extractors, i.e., Faster R-CNN and BERT. SSA, MSGAT, and GATv2 have the same number of parameters, 45.49M, since they all use four linear projection layers in attention block. For SNN-based methods, the MACs mainly come from projecting floating-point features into the same dimension D, leading SGCN, SSA, and MSGAT to share the same MACs cost of 198.39M. For ACs, SGCN only requires 0.13M because its weight tensor passes through the neuron once simply, while MSGAT also reduces 10.5% ACs compared with SSA. Overall, MSGAT consumes only 0.985 mJ, reducing theoretical inference energy by 54.9% compared with GATv2 and demonstrating strong energy efficiency.
Ablation Studies
Ablation on MSGAT Module Tab. 3 evaluates different fine-grained branch designs. Removing this branch gives an R@Sum of 512.7, confirming its importance. SSA and SGCN improve performance to 520.4 and 524.7, respectively; however, SGCN cannot model dynamic attention among nodes, while SSA may be disturbed by irrelevant node interactions. MSGAT achieves the best R@Sum of 529.8, outperforming w/o fine-grained matching, SSA, and SGCN by 17.1, 9.4, and 5.1 points, respectively. It also performs best on most recall metrics and surpasses the GAT-ANN
| Method | Venue | S | MSCOCO 1K (5-fold) Test Set | FLICKR30K 1K Test Set | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Image-to-Text | Text-to-Image | R@ | Image-to-Text | Text-to-Image | R@ | |||||||||||
| R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | Sum | R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | Sum | |||
| Faster R-CNN + BiGRU | ||||||||||||||||
| SCAN* | ECCV18 | 72.7 | 94.8 | 98.4 | 58.8 | 88.4 | 94.8 | 507.9 | 67.4 | 90.3 | 95.8 | 48.6 | 77.7 | 85.2 | 465.0 | |
| VSRN* | ICCV19 | 76.2 | 94.8 | 98.2 | 62.8 | 89.7 | 95.1 | 516.8 | 71.3 | 90.6 | 96.0 | 54.7 | 81.8 | 88.2 | 482.6 | |
| VSE∞ | CVPR21 | 78.5 | 96.0 | 98.7 | 61.7 | 90.3 | 95.6 | 520.8 | 76.5 | 94.2 | 97.7 | 56.4 | 83.4 | 89.9 | 498.1 | |
| NAAF | CVPR22 | 78.1 | 96.1 | 98.6 | 63.5 | 89.6 | 95.3 | 521.2 | 79.6 | 96.3 | 98.3 | 59.3 | 83.9 | 90.2 | 507.6 | |
| CMSF | CVPR26 | ✓ | 78.9 | 96.2 | 98.7 | 63.6 | 91.0 | 96.3 | 524.7 | 80.7 | 95.0 | 97.6 | 61.3 | 85.9 | 91.3 | 511.8 |
| MSGAT | Ours (T=2) | ✓ | 80.5 | 96.5 | 98.4 | 64.4 | 91.0 | 96.2 | 527.0 | 82.2 | 95.6 | 97.9 | 61.8 | 86.5 | 92.5 | 516.5 |
| Faster R-CNN + BERT | ||||||||||||||||
| MMCA | CVPR20 | 74.8 | 95.6 | 97.7 | 61.6 | 89.8 | 95.2 | 514.7 | 74.2 | 92.8 | 96.4 | 54.8 | 81.4 | 87.8 | 487.4 | |
| VSE∞ | CVPR21 | 79.7 | 96.4 | 98.9 | 64.8 | 91.4 | 96.3 | 527.5 | 81.7 | 95.4 | 97.6 | 61.4 | 85.9 | 91.5 | 513.5 | |
| VSRN++* | TPAMI23 | 77.9 | 96.0 | 98.5 | 64.1 | 91.0 | 96.1 | 523.6 | 79.2 | 94.6 | 97.5 | 60.6 | 85.6 | 91.4 | 508.9 | |
| CHAN | CVPR23 | 81.4 | 96.9 | 98.9 | 66.5 | 92.1 | 96.7 | 532.6 | 80.6 | 96.1 | 97.8 | 63.9 | 87.5 | 92.6 | 518.5 | |
| HREM | CVPR23 | 81.1 | 96.6 | 98.9 | 66.1 | 91.6 | 96.5 | 530.7 | 83.3 | 96.0 | 98.1 | 63.5 | 87.1 | 92.4 | 520.4 | |
| USER | TIP24 | 82.8 | 96.8 | 98.8 | 66.1 | 90.6 | 95.6 | 530.5 | 82.7 | 97.0 | 98.3 | 63.1 | 86.7 | 92.1 | 519.9 | |
| CORA | CVPR24 | 82.4 | 96.8 | 98.8 | 66.2 | 91.9 | 96.6 | 532.7 | 83.7 | 96.6 | 98.3 | 62.3 | 87.1 | 92.6 | 520.1 | |
| MaxMatch | ACL25 | 83.0 | 96.9 | 98.9 | 66.4 | 91.9 | 96.6 | 533.8 | 84.2 | 96.1 | 97.9 | 63.2 | 87.3 | 92.2 | 520.8 | |
| CMSF | CVPR26 | ✓ | 81.9 | 96.7 | 98.9 | 67.1 | 92.4 | 96.8 | 533.8 | 82.1 | 96.3 | 98.0 | 65.9 | 88.4 | 93.2 | 523.9 |
| MSGAT | Ours (ANN) | 84.8 | 97.1 | 98.8 | 67.4 | 92.4 | 96.5 | 537.0 | 85.7 | 97.3 | 98.7 | 65.4 | 87.4 | 92.7 | 527.2 | |
| MSGAT | Ours (T=2) | ✓ | 85.8 | 97.1 | 99.0 | 67.8 | 92.5 | 96.8 | 539.0 | 86.1 | 98.4 | 99.0 | 65.9 | 87.8 | 92.6 | 529.8 |
Table 1: Results on the MSCOCO and FLICKR30K 1K test sets. Best and second-best results are marked in bold and underline, respectively. * denotes ensemble results, and S indicates spike-driven methods. For fair comparison, we report only Faster R-CNN- and BERT/BiGRU-based baselines; results with pretrained VLMs are provided in the Supplementary Material.
| Methods | MSCOCO 5K Test Set | ||||||
|---|---|---|---|---|---|---|---|
| Image-to-Text | Text-to-Image | R@ | |||||
| R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | Sum | |
| Faster R-CNN + BiGRU | |||||||
| SCAN* | 50.4 | 82.2 | 90.0 | 38.6 | 69.3 | 80.4 | 410.9 |
| VSRN* | 53.0 | 81.1 | 89.4 | 40.5 | 70.6 | 81.1 | 415.7 |
| VSE∞ | 56.6 | 83.6 | 91.4 | 39.3 | 69.9 | 81.1 | 421.9 |
| NAAF | 58.9 | 85.2 | 92.0 | 42.5 | 70.9 | 81.4 | 430.9 |
| CMSF | 58.5 | 85.3 | 92.5 | 42.5 | 72.0 | 82.2 | 432.0 |
| 60.4 | 85.6 | 92.6 | 43.4 | 72.9 | 83.4 | 438.3 | |
| Faster R-CNN + BERT | |||||||
| MMCA | 54.0 | 82.5 | 90.7 | 38.7 | 69.7 | 80.8 | 416.4 |
| VSE∞ | 58.3 | 85.3 | 92.3 | 42.4 | 72.7 | 83.2 | 434.2 |
| VSRN++* | 54.7 | 82.9 | 90.9 | 42.0 | 72.2 | 82.7 | 425.4 |
| CHAN | 59.8 | 87.2 | 93.3 | 44.9 | 74.5 | 84.2 | 443.9 |
| HREM | 62.3 | 87.6 | 93.4 | 43.9 | 73.6 | 83.3 | 444.1 |
| USER | 63.7 | 87.4 | 93.5 | 44.8 | 73.4 | 82.7 | 445.5 |
| CORA | 62.4 | 86.8 | 92.6 | 44.2 | 73.6 | 83.9 | 443.6 |
| MaxMatch | 63.3 | 87.9 | 93.2 | 44.2 | 73.9 | 83.9 | 446.5 |
| CMSF | 61.5 | 86.7 | 92.8 | 45.1 | 75.0 | 84.6 | 445.8 |
| 64.7 | 87.9 | 93.5 | 45.1 | 73.9 | 83.6 | 448.8 | |
| 65.2 | 88.7 | 93.9 | 45.5 | 74.5 | 84.3 | 452.0 | |
Table 2: Results on MSCOCO 5K Test Set. Best results are in bold, and the second-best scores are underlined. indicates the number of time steps in MSGAT, while ANN denotes the ANN counterpart of MSGAT.
counterpart by 2.6 R@Sum. These results show that MSGAT provides stronger structure-aware fine-grained matching under sparse spike representations. We further attribute this advantage partly to Sim-Fuse, which is better suited to heterogeneous features with different distributions than continuous ANN features.
Ablation on Sim-Fuse Strategy Fig. 4 compares coarse-and fine-grained fusion strategies on the Flickr30K 1K test set. GPO-only and MSGAT-only achieve R@Sum scores of 512.7 and 517.2, respectively, demonstrating the benefit of structure-aware fine-grained matching. However, feature-level fusion provides limited gains: Add-Fuse decreases R@Sum to 516.3 due to interference between discrete MSGAT and continuous GPO representations, while Concat-Fuse reaches only 517.4, with its marginal improvement potentially arising from the doubled feature dimensionality rather than effective cross-granularity interaction. In contrast, Sim-Fuse bypasses this feature-space mismatch and integrates both branches directly in the similarity space, substantially improving R@Sum to 529.8.
Ablation on Training Objectives Tab. 4 investigates the effect of different training objectives. Using only the fused loss achieves an R@Sum of 522.2, while adding the node-level objective further improves it to 525.0 by providing stable spike representations before MSGAT reasoning. Since is derived from fine- and coarse-grained similarities and , introducing structure-level supervision enhances individual similarity and increases R@Sum to 526.4. Finally, aligns and with the detached fused sim-
GPO-only MSGAT-only Feature Add-Fuse Feature Concat-Fuse Sim-Fuse

Figure 4: Effectiveness of Similarity-Space Fuse strategy on FLICKR30K 1K test set. Add-Fuse and Concat-Fuse denote features addition and concatenation, respectively.

Figure 5: Training Performance of MSGAT with 1 to 5 Time Steps. The upper set of curves corresponds to Sim-Fuse, whereas the lower set corresponds to without Sim-Fuse.
ilarity distribution, achieving the best performance of 529.8. These results verify the effectiveness of each objective.
Ablation on Time Steps The time steps ablation in Fig. 5 shows that MSGAT achieves the best performance at T=2, reaching a R@Sum of 529.8. This result outperforms the ANN-based GATv2 and other spiking variants, indicating that a small number of time steps is sufficient for effective spiking graph representation learning. Although increasing the time step beyond T=2 does not further improve the best result, it shows that MSGAT is robust to different temporal configurations. Without Sim-Fuse, the performance at T=1 decreases substantially to 509.7, suggesting that Sim-Fuse plays an important role in stabilizing training. Overall, T=2 provides the best balance between accuracy and efficiency.
Ablation on Attention Heads Tab. 5 analyzes the effect of the number of attention heads in MSGAT. Multi-head decomposition enables complementary structural modeling across feature subspaces, with 8 heads achieving the best R@Sum of 529.8. More heads reduce subspace dimensionality and effective spike activations, weakening per-head representation capacity, whereas fewer heads limit subspace diversity and complementary information. In particular, the 2-head setting degenerates into all-zero spike attention outputs after thresholding, preventing effective neighborhood aggregation and graph information propagation. These results indicate that 8 heads provide the most stable trade-off between subspace diversity and per-head spike representation capacity.
Additional sensitivity analyses of the thresholds and , ablations on Spike Encoder and the energy estimation formula, etc., are presented in the Supplementary Material.
| Fine-grained Branch | Image-to-Text | Text-to-Image | R@ Sum | ||||
|---|---|---|---|---|---|---|---|
| R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | ||
| w/o | 82.5 | 95.0 | 98.0 | 61.5 | 85.0 | 90.7 | 512.7 |
| 81.9 | 96.7 | 98.5 | 64.1 | 87.2 | 92.1 | 520.4 | |
| 84.1 | 97.4 | 99.0 | 64.8 | 87.0 | 92.3 | 524.7 | |
| 86.1 | 98.4 | 99.0 | 65.9 | 87.8 | 92.6 | 529.8 | |
| GATv2-ANN | 85.7 | 97.3 | 98.7 | 65.4 | 87.4 | 92.7 | 527.2 |
Table 3: Ablation of fine-grained branch on FLICKR30K 1K test set. Best results are in bold.
| Loss function | Image-to-Text | Text-to-Image | R@ | |||||
|---|---|---|---|---|---|---|---|---|
| R@1 R@5 R@10 | R@1 R@5 R@10 | R@1 R@5 R@10 | Sum | |||||
| ✓ | 84.1 97.1 | 98.5 | 64.2 86.3 | 92.0 | 522.2 | |||
| ✓ | ✓ | 84.2 97.5 | 99.0 | 64.9 86.9 | 92.4 | 525.0 | ||
| ✓ | ✓ | ✓ | 85.6 97.8 | 99.0 | 64.8 87.0 | 92.2 | 526.4 | |
| ✓ | ✓ | ✓ | ✓ | 86.1 98.4 | 99.0 | 65.9 87.8 | 92.6 | 529.8 |
Table 4: Influence of loss function on FLICKR30K 1K test set. Best results are in bold.
| Heads | Image-to-Text | Text-to-Image | R@ Sum | ||||
|---|---|---|---|---|---|---|---|
| R@1 | R@5 | R@10 | R@1 | R@5 | R@10 | ||
| 2 | - | - | - | - | - | - | - |
| 4 | 83.6 | 97.0 | 98.2 | 64.6 | 86.4 | 92.5 | 522.3 |
| 8 | 86.1 | 98.4 | 99.0 | 65.9 | 87.8 | 92.6 | 529.8 |
| 16 | 84.6 | 97.4 | 98.9 | 64.2 | 87.1 | 92.3 | 524.5 |
| 32 | 84.0 | 97.3 | 98.7 | 64.2 | 86.9 | 92.4 | 523.0 |
Table 5: Effect of the number of MSGAT dynamic attention heads on FLICKR30K 1K test set. Best results are in bold.
Conclusion
In this work, we present MSGAT, a spiking framework for image-text retrieval that combines structure-aware graph reasoning with similarity-space alignment. The proposed Multihead Spiking Graph Attention Network performs spike-driven adaptive neighborhood aggregation over visual and textual graphs, enabling fine-grained relational modeling under sparse event-driven computation. To address the distribution mismatch between discrete spike representations and continuous global representations produced by MSGAT and GPO, respectively, Sim-Fuse integrates coarse- and fine-grained matching relations in similarity space. Experiments on Flickr30K and MSCOCO demonstrate that MSGAT outperforms existing SNN retrieval baseline and surpasses state-of-the-art ANN-based methods. With only two time steps, MSGAT exceeds its ANN counterpart GATv2, while reducing theoretical energy consumption by approximately 55%. Overall, this work advances structure-aware multimodal reasoning in SNNs and provides a promising, accurate, and energy-efficient solution for cross-modal retrieval.
References
Alomari, H.; Sivakumar, A.; Zhang, A.; and Thomas, C. 2025. Maximal Matching Matters: Preventing Representation Collapse for Robust Cross-Modal Retrieval. In Proc. Annu. Meet. Assoc. Comput. Linguist., 31769–31785.
Brody, S.; Alon, U.; and Yahav, E. 2022. How Attentive are Graph Attention Networks? In Proc. Int. Conf. Learn. Represent. OpenReview.net.
Cao, B.; Peng, Q.; Xie, X.; Chen, L.; Shi, M.; and Liu, J. 2026. Spiking Heterogeneous Graph Attention Networks. In Koenig, S.; Jenkins, C.; and Taylor, M. E., eds., Proc. AAAI Conf. Artif. Intell., 19853–19861. AAAI Press.
Cao, Y.; Chen, Y.; and Khosla, D. 2015. Spiking Deep Convolutional Neural Networks for Energy-Efficient Object Recognition. Int. J. Comput. Vis., 113(1): 54–66.
Chen, G.; Peng, P.; Li, G.; and Tian, Y. 2023. Training Full Spike Neural Networks via Auxiliary Accumulation Pathway. arXiv preprint arXiv:2301.11929.
Chen, J.; Hu, H.; Wu, H.; Jiang, Y.; and Wang, C. 2021. Learning the Best Pooling Strategy for Visual Semantic Embedding. In Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recog., 15789–15798.
Cheng, Y.; Zhu, X.; Qian, J.; Wen, F.; and Liu, P. 2022. Cross-Modal Graph Matching Network for Image-Text Retrieval. ACM Trans. Multimedia Comput. Commun. Appl., 18(4).
Devlin, J.; Chang, M.-W.; Lee, K.; and Toutanova, K. 2019. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proc. Conf. North Am. Chapter Assoc. Comput. Linguist., 4171–4186.
Faghri, F.; Fleet, D. J.; Kiros, J. R.; and Fidler, S. 2018. VSE++: Improving Visual-Semantic Embeddings with Hard Negatives. In Proc. Brit. Mach. Vis. Conf., 12.
Fang, W.; Chen, Y.; Ding, J.; Yu, Z.; Masquelier, T.; Chen, D.; Huang, L.; Zhou, H.; Li, G.; and Tian, Y. 2023. SpikingJelly: An open-source machine learning infrastructure platform for spike-based intelligence. Science Advances, 9(40): eadi1480.
Fu, Z.; Mao, Z.; Song, Y.; and Zhang, Y. 2023. Learning Semantic Relationship among Instances for Image-Text Matching. In Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recog., 15159–15168.
Huang, H.; Nie, Z.; Wang, Z.; and Shang, Z. 2024. Cross-Modal and Uni-Modal Soft-Label Alignment for Image-Text Retrieval. In Proc. AAAI Conf. Artif. Intell., 18298–18306.
Kuhn, H. W. 1955. The Hungarian method for the assignment problem. Nav. Res. Logist. Q., 2(1-2): 83–97.
Lee, K.-H.; Chen, X.; Hua, G.; Hu, H.; and He, X. 2018. Stacked Cross Attention for Image-Text Matching. In Proc. Eur. Conf. Comput. Vis., 212–228.
Lei, Z.; Yao, M.; Hu, J.; Luo, X.; Lu, Y.; Xu, B.; and Li, G. 2025. Spike2former: Efficient spiking transformer for high-performance image segmentation. In Proc. AAAI Conf. Artif. Intell., volume 39, 1364–1372.
Li, C.; Liu, W.; Gong, G.; Ding, X.; and Zhong, X. 2025. SU-YOLO: Spiking Neural Network for Efficient Underwater Object Detection. Neurocomputing, 644: 130310.
Li, J.; Yu, Z.; Zhu, Z.; Chen, L.; Yu, Q.; Zheng, Z.; Tian, S.; Wu, R.; and Meng, C. 2023a. Scaling Up Dynamic Graph Representation Learning via Spiking Neural Networks. In Proc. AAAI Conf. Artif. Intell., 8588–8596. AAAI Press.
Li, J.; Zhang, H.; Wu, R.; Zhu, Z.; Wang, B.; Meng, C.; Zheng, Z.; and Chen, L. 2024. A Graph is Worth 1-bit Spikes: When Graph Contrastive Learning Meets Spiking Neural Networks. In Proc. Int. Conf. Learn. Represent. OpenReview.net.
Li, K.; Zhang, Y.; Li, K.; Li, Y.; and Fu, Y. 2019. Visual Semantic Reasoning for Image-Text Matching. In Proc. IEEE/CVF Int. Conf. Comput. Vis., 4653–4661.
Li, K.; Zhang, Y.; Li, K.; Li, Y.; and Fu, Y. 2023b. Image-Text Embedding Learning via Visual and Textual Semantic Reasoning. IEEE Trans. Pattern Anal. Mach. Intell., 45(1): 641–656.
Lin, T.; Maire, M.; Belongie, S. J.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; and Zitnick, C. L. 2014. Microsoft COCO: Common Objects in Context. In Proc. Eur. Conf. Comput. Vis., 740–755.
Liu, C.; Mao, Z.; Zhang, T.; Xie, H.; Wang, B.; and Zhang, Y. 2020a. Graph Structured Network for Image-Text Matching. In Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recog., 10918–10927. Computer Vision Foundation / IEEE.
Liu, F.; Ye, R.; Wang, X.; and Li, S. 2020b. HAL: Improved Text-Image Matching by Mitigating Visual Semantic Hubs. In Proc. AAAI Conf. Artif. Intell., 11563–11571. AAAI Press.
Liu, W.; Deng, Y.; Chen, K.; Zhong, X.; Yu, Z.; and Huang, T.-J. 2025. SOTA: Spike-Navigated Optimal Transport Saliency Region Detection in Composite-bias Videos. In Proc. Int. Joint Conf. Artif. Intell.
Luo, X.; Yao, M.; Chou, Y.; Xu, B.; and Li, G. 2024. Integer-valued training and spike-driven inference spiking neural network for high-performance and energy-efficient object detection. In Proc. Eur. Conf. Comput. Vis., 253–272.
Lv, C.; Wang, Y.; Han, D.; Zheng, X.; Huang, X.; and Li, D. 2024. Efficient and Effective Time-Series Forecasting with Spiking Neural Networks. In Proc. Int. Conf. Mach. Learn.
Lv, C.; Xu, J.; and Zheng, X. 2023. Spiking Convolutional Neural Networks for Text Classification. In Proc. Int. Conf. Learn. Represent.
Maass, W. 1997. Networks of spiking neurons: The third generation of neural network models. Neural Networks, 10(9): 1659–1671.
Manning, C. D.; Surdeanu, M.; Bauer, J.; Finkel, J. R.; Bethard, S.; and McClosky, D. 2014. The Stanford CoreNLP Natural Language Processing Toolkit. In Proc. Annu. Meet. Assoc. Comput. Linguist., 55–60.
Pan, Z.; Wu, F.; and Zhang, B. 2023. Fine-grained Image-text Matching by Cross-modal Hard Aligning Network. In Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recog., 19275–19284.
Pham, K.; Huynh, C.; Lim, S.; and Shrivastava, A. 2024. Composing Object Relations and Attributes for Image-Text Matching. In Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recog., 14354–14363. IEEE.
Ren, S.; He, K.; Girshick, R. B.; and Sun, J. 2017. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Trans. Pattern Anal. Mach. Intell., 39(6): 1137–1149.
Song, X.; Song, A.; Xiao, R.; and Sun, Y. 2024. One-step Spiking Transformer with a Linear Complexity. In Proc. Int. Joint Conf. Artif. Intell., 3142–3150.
Veličković, P.; Cucurull, G.; Casanova, A.; Romero, A.; Liò, P.; and Bengio, Y. 2018. Graph Attention Networks. In Proc. Int. Conf. Learn. Represent.
Wang, B.; and Jiang, B. 2022. Spiking GATs: Learning Graph Attentions via Spiking Neural Network. CoRR, abs/2209.13539.
Wei, X.; Zhang, T.; Li, Y.; Zhang, Y.; and Wu, F. 2020. Multi-Modality Cross Attention Network for Image and Sentence Matching. In Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recog., 10938–10947.
Wu, Y.; Deng, L.; Li, G.; Zhu, J.; and Shi, L. 2018. Spatio-temporal backpropagation for training high-performance spiking neural networks. Front. Neurosci., 12: 331.
Yao, M.; Hu, J.; Hu, T.; Xu, Y.; Zhou, Z.; Tian, Y.; Xu, B.; and Li, G. 2024. Spike-driven Transformer V2: Meta Spiking Neural Network Architecture Inspiring the Design of Next-generation Neuromorphic Chips. In Proc. Int. Conf. Learn. Represent.
Young, P.; Lai, A.; Hodosh, M.; and Hockenmaier, J. 2014. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. Trans. Assoc. Comput. Linguistics, 2: 67–78.
Zhang, K.; Mao, Z.; Wang, Q.; and Zhang, Y. 2022. Negative-Aware Attention Framework for Image-Text Matching. In Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recog., 15640–15649.
Zhang, Y.; Ji, Z.; Wang, D.; Pang, Y.; and Li, X. 2024. USER: Unified Semantic Enhancement With Momentum Contrast for Image-Text Retrieval. IEEE Trans. Image Process., 33: 595–609.
Zhou, C.; Zhang, H.; Zhou, Z.; Yu, L.; Huang, L.; Fan, X.; Yuan, L.; Ma, Z.; Zhou, H.; and Tian, Y. 2024. QKFormer: Hierarchical Spiking Transformer using Q-K Attention. In Adv. Neural Inform. Process. Syst.
Zhou, Z.; Zhu, Y.; He, C.; Wang, Y.; Yan, S.; Tian, Y.; and Yuan, L. 2023. Spikformer: When Spiking Neural Network Meets Transformer. In Proc. Int. Conf. Learn. Represent.
Zhu, Z.; Peng, J.; Li, J.; Chen, L.; Yu, Q.; and Luo, S. 2022. Spiking Graph Convolutional Networks. In Proc. Int. Joint Conf. Artif. Intell., 2434–2440.
Zong, X.; Zhong, X.; Liu, W.; Ding, J.; Yu, Z.; and Huang, T. 2026. Brain-Inspired Multimodal Spiking Neural Network for Image-Text Retrieval. ArXiv, abs/2603.26787.