paper-with-me

홈 › Papers

deGraphCS: Embedding Variable-based Flow Graph for Neural Code Search

2021-03-24 · Chen Zeng, Yue Yu, Shanshan Li, Xin Xia, Zhiming Wang, Mingyang Geng, Bailin Xiao, Wei Dong, Xiangke Liao

With the rapid increase in the amount of public code repositories, developers maintain a great desire to retrieve precise code snippets by using natural language. Despite existing deep learning based approaches(e.g., DeepCS and MMAN) have provided the end-to-end solutions (i.e., accepts natural language as queries and shows related code fragments retrieved directly from code corpus), the accuracy of code search in the large-scale repositories is still limited by the code representation (e.g., AST) and modeling (e.g., directly fusing the features in the attention stage). In this paper, we propose a novel learnable deep Graph for Code Search (calleddeGraphCS), to transfer source code into variable-based flow graphs based on the intermediate representation technique, which can model code semantics more precisely compared to process the code as text directly or use the syntactic tree representation. Furthermore, we propose a well-designed graph optimization mechanism to refine the code representation, and apply an improved gated graph neural network to model variable-based flow graphs. To evaluate the effectiveness of deGraphCS, we collect a large-scale dataset from GitHub containing 41,152 code snippets written in C language, and reproduce several typical deep code search methods for comparison. Besides, we design a qualitative user study to verify the practical value of our approach. The experimental results have shown that deGraphCS can achieve state-of-the-art performances, and accurately retrieve code snippets satisfying the needs of the users.

📄 PDF Abstract BibTeX arXiv:2103.13020

Code (1)

degraphcs/DeGraphCS 공식 구현 pytorch

Tasks

Code SearchGraph Neural Network

Methods 이 논문이 사용한 방법론

Graph Neural Network 설명 없음

Similar Papers 제목 키워드 기반

Knowledge Graph Embedding by Normalizing Flows

2024-09-30 · Changyi Xiao, Xiangnan He, Yixin Cao

A key to knowledge graph embedding (KGE) is to choose a proper representation space, e.g., point-wise Euclidean space and complex vector space. In this paper, we propose a unified perspective of embedding and introduce u…

Graph EmbeddingKnowledge Graph Embedding

MANDO: Multi-Level Heterogeneous Graph Embeddings for Fine-Grained Detection of Smart Contract Vulnerabilities

2022-08-28 · Hoang H. Nguyen, Nhat-Minh Nguyen, Chunyao Xie, Zahra Ahmadi 외

Learning heterogeneous graphs consisting of different types of nodes and edges enhances the results of homogeneous graph techniques. An interesting example of such graphs is control-flow graphs representing possible soft…

Graph AttentionVulnerability Detection

Explaining Temporal Graph Neural Networks via Feature-induced Information Flow

2026-06-25 · Ping Xiong, Thomas Schnake, Klaus-Robert Müller, Shinichi Nakajima arxiv

Event-based Temporal Graph Neural Networks (ETGNNs) have demonstrated strong performance across a wide range of applications, including social network analysis, epidemic tracing, recommender systems, and political event …

Reducing Smoothness with Expressive Memory Enhanced Hierarchical Graph Neural Networks

2025-04-01 · Thomas Bailie, Yun Sing Koh, S. Karthik Mukkavilli, Varvara Vetrova

Graphical forecasting models learn the structure of time series data via projecting onto a graph, with recent techniques capturing spatial-temporal associations between variables via edge weights. Hierarchical variants o…

Time SeriesWeather Forecasting

SIReN-VAE: Leveraging Flows and Amortized Inference for Bayesian Networks

2022-04-23 · Jacobie Mouton, Steve Kroon

Initial work on variational autoencoders assumed independent latent variables with simple distributions. Subsequent work has explored incorporating more complex distributions and dependency structures: including normaliz…