Graph Conditioned Sparse-Attention for Improved Source Code Understanding
원문 초록
Transformer architectures have been successfully used in learning source code representations. The fusion between a graph representation like Abstract Syntax Tree (AST) and a source code sequence makes the use of current approaches computationally intractable for large input sequence lengths. Source code can have long-range dependencies that require larger sequence lengths to model effectively. Current approaches have a quadratic growth in computational and memory costs with respect to the sequence length. Using such models in practical scenarios is difficult. In this work, we propose the conditioning of a source code snippet with its graph modality by using the graph adjacency matrix as an attention mask for a sparse self-attention mechanism and the use of a graph diffusion mechanism to model longer-range token dependencies. Our model reaches state-of-the-art results in BLEU, METEOR, and ROUGE-L metrics for the code summarization task and near state-of-the-art accuracy in the variable misuse task. The memory use and inference time of our model have linear growth with respect to the input sequence length as compared to the quadratic growth of previous works.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Variational Prefix Tuning for Diverse and Accurate Code Summarization Using Pre-trained Language Models
Code Summarization Beyond Function Level
How to Select Pre-Trained Code Models for Reuse? A Learning Perspective
Transducer Tuning: Efficient Model Adaptation for Software Tasks Using Code Property Graphs
The Power of Types: Exploring the Impact of Type Checking on Neural Bug Detection in Dynamically Typed Languages
Model Editing for LLMs4Code: How Far are We?
토론
이 논문과 연결된 포럼 글이 아직 없습니다.