mlsanityData to 7 Oct 2026

Multi-Modal Attention Network Learning for Semantic Source Code Retrieval

arXiv 1909.13516 ↗First posted 30 Sep 2019cs.SE cs.PLcited by 40

Not on the map. Why?

Abstract (arXiv)

Code retrieval techniques and tools have been playing a key role in facilitating software developers to retrieve existing code fragments from available open-source repositories given a user query. Despite the existing efforts in improving the effectiveness of code retrieval, there are still two main issues hindering them from being used to accurately retrieve satisfiable code fragments from large-scale repositories when answering complicated queries. First, the existing approaches only consider shallow features of source code such as method names and code tokens, but ignoring structured features such as abstract syntax trees (ASTs) and control-flow graphs (CFGs) of source code, which contains rich and well-defined semantics of source code. Second, although the deep learning-based approach performs well on the representation of source code, it lacks the explainability, making it hard to interpret the retrieval results and almost impossible to understand which features of source code contribute more to the final results. To tackle the two aforementioned issues, this paper proposes MMAN, a novel Multi-Modal Attention Network for semantic source code retrieval. A comprehensive multi-modal representation is developed for representing unstructured and structured features of source code, with one LSTM for the sequential tokens of code, a Tree-LSTM for the AST of code and a GGNN (Gated Graph Neural Network) for the CFG of code. Furthermore, a multi-modal attention fusion layer is applied to assign weights to different parts of each modality of source code and then integrate them into a single hybrid representation. Comprehensive experiments and analysis on a large-scale real-world dataset show that our proposed model can accurately retrieve code snippets and outperforms the state-of-the-art methods.

Key facts. Cited by 40 papers in the map (data through 7 Oct 2026). First posted on arXiv 30 Sep 2019.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 8; 2022: 14; 2023: 8; 2024: 6; 2025: 3; 2026: 1.

40 papers.

Sort:

By area:

  1. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  2. 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 74
  3. 2022What Do They Capture? -- A Structural Analysis of Pre-Trained Language Models for Source Codecited by 50
  4. 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrievalcited by 46
  5. 2024WebCode2M: A Real-World Dataset for Code Generation from Webpage Designscited by 43
  6. 2022On the Importance of Building High-quality Training Datasets for Neural Code Searchcited by 30
  7. 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
  8. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  9. 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 21
  10. 2024CodeIP: A Grammar-Guided Multi-Bit Watermark for Large Language Models of Codecited by 21
  11. 2024Analyzing the Performance of Large Language Models on Code Summarizationcited by 19
  12. 2021GraphSearchNet: Enhancing GNNs via Capturing Global Dependencies for Semantic Code Searchcited by 15
28 more
  1. 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Trainingcited by 15
  2. 2022Source Code Summarization with Structural Relative Position Guided Transformercited by 14
  3. 2022Cross-Language Binary-Source Code Matching with Intermediate Representationscited by 13
  4. 2023Backdooring Neural Code Searchcited by 13
  5. 2024Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanationcited by 12
  6. 2021Multimodal Representation for Neural Code Searchcited by 11
  7. 2022Code Search based on Context-aware Code Translationcited by 11
  8. 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scalecited by 8
  9. 2022Learning Program Representations with a Tree-Structured Transformercited by 6
  10. 2022DexBERT: Effective, Task-Agnostic and Fine-grained Representation Learning of Android Bytecodecited by 6
  11. 2021A Neural Question Answering System for Basic Questions about Subroutinescited by 5
  12. 2021Embedding API Dependency Graph for Neural Code Generationcited by 5
  13. 2023Abstract Syntax Tree for Programming Language Understanding and Representation: How Far Are We?cited by 5
  14. 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
  15. 2023Code Search Debiasing:Improve Search Results beyond Overall Ranking Performancecited by 4
  16. 2021Comparative Code Structure Analysis using Deep Learning for Performance Predictioncited by 3
  17. 2021deGraphCS: Embedding Variable-based Flow Graph for Neural Code Searchcited by 3
  18. 2022NS3: Neuro-Symbolic Semantic Code Searchcited by 3
  19. 2023DSHGT: Dual-Supervisors Heterogeneous Graph Transformer -- A pioneer study of using heterogeneous graph learning for detecting software vulnerabilitiescited by 2
  20. 2024Eliminating Backdoors in Neural Code Models for Secure Code Understandingcited by 2
  21. 2022AstBERT: Enabling Language Model for Financial Code Understanding with Abstract Syntax Treescited by 1
  22. 2022CSSAM:Code Search via Attention Matching of Code Semantics and Structurescited by 0
  23. 2022Code Compliance Assessment as a Learning Problemcited by 0
  24. 2023Contrastive Prompt Learning-based Code Search based on Interaction Matrixcited by 0
  25. 2024CONCORD: Towards a DSL for Configurable Graph Code Representationcited by 0
  26. 2025How to Select Pre-Trained Code Models for Reuse? A Learning Perspectivecited by 0
  27. 2025RETROcode: Leveraging a Code Database for Improved Natural Language to Code Generationcited by 0
  28. 2026Focus on What Matters: Fisher-Guided Adaptive Multimodal Fusion for Vulnerability Detectioncited by 0