NS3: Neuro-Symbolic Semantic Code Search
Not on the map. Why?
Abstract (arXiv)
Semantic code search is the task of retrieving a code snippet given a textual description of its functionality. Recent work has been focused on using similarity metrics between neural embeddings of text and code. However, current language models are known to struggle with longer, compositional text, and multi-step reasoning. To overcome this limitation, we propose supplementing the query sentence with a layout of its semantic structure. The semantic layout is used to break down the final reasoning decision into a series of lower-level decisions. We use a Neural Module Network architecture to implement this idea. We compare our model - NS3 (Neuro-Symbolic Semantic Search) - to a number of baselines, including state-of-the-art semantic code retrieval methods, and evaluate on two datasets - CodeSearchNet and Code Search and Question Answering. We demonstrate that our approach results in more precise code retrieval, and we study the effectiveness of our modular design when handling compositional queries.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 32 of its 64 references that are in the map. First posted on arXiv 21 May 2022.
Builds on
32 of 64 references.
References · 32
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2015Neural Module Networkscited by 376
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
- 2018code2vec: Learning Distributed Representations of Codecited by 250
20 more
- 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
- 2020A Transformer-based Approach for Source Code Summarizationcited by 133
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 119
- 2020Contrastive Code Representation Learningcited by 76
- 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 75
- 2021Language-Agnostic Representation Learning of Source Code from Structure and Contextcited by 63
- 2019Linguistic generalization and compositionality in modern artificial neural networkscited by 58
- 2020Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving Transformationscited by 49
- 2021In-IDE Code Generation from Natural Language: Promise and Challengescited by 42
- 2019Multi-Modal Attention Network Learning for Semantic Source Code Retrievalcited by 41
- 2021CAST: Enhancing Code Summarization with Hierarchical Splitting and Reconstruction of Abstract Syntax Treescited by 32
- 2019CoaCor: Code Annotation for Code Retrieval with Reinforcement Learningcited by 22
- 2020A Multi-Perspective Architecture for Semantic Code Searchcited by 20
- 2020Deep Graph Matching and Searching for Semantic Code Retrievalcited by 20
- 2020Leveraging Code Generation to Improve Code Retrieval and Summarization via Dual Learningcited by 16
- 2020Neural Code Search Revisited: Enhancing Code Snippet Retrieval through Natural Language Intentcited by 16
- 2021GraphSearchNet: Enhancing GNNs via Capturing Global Dependencies for Semantic Code Searchcited by 15
- 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Trainingcited by 15
- 2020CRaDLe: Deep Code Retrieval Based on Semantic Dependency Learningcited by 12
- 2022A Neural Network Architecture for Program Understanding Inspired by Human Behaviorscited by 5
Built on by
Citing papers per year: 2024: 2; 2025: 1.
3 papers.
- 2024Neuro-Symbolic AI: Explainability, Challenges, and Future Trendscited by 10
- 2024Top Pass: Improve Code Generation by Pass@k-Maximized Code Rankingcited by 9
- 2025Toward Neurosymbolic Program Comprehensioncited by 0
- 2025Toward Neurosymbolic Program Comprehension3 Feb 2025
- 2024Neuro-Symbolic AI: Explainability, Challenges, and Future Trends7 Nov 2024
- 2024Top Pass: Improve Code Generation by Pass@k-Maximized Code Ranking11 Aug 2024