paper-with-me

Papers

Graph Conditioned Sparse-Attention for Improved Source Code Understanding

2021-12-01 · Junyan Cheng, Iordanis Fostiropoulos, Barry Boehm

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.

📄 PDF Abstract BibTeX arXiv:2112.00663

Code (2)

chengjunyan1/graph-sparse-transformer 공식 구현 pytorch
chengjunyan1/gn-transformer-ast pytorch

Tasks

Code SummarizationVariable misuse

Methods 이 논문이 사용한 방법론

Diffusion Diffusion models generate samples by gradually removing noise from a signal, and their training objective can be expressed as a reweighted variational lower-bound…

Similar Papers 제목 키워드 기반

Locality Does Not Imply Reachability: Boundary Repair in Block-Sparse Causal Attention

2026-06-01 · Zhibo Yang arxiv

Sparse causal attention is usually described by sequence locality: nearby tokens should remain easy to access, while distant tokens may be dropped to reduce cost. This paper studies a mismatch between sequence locality a…

Enhancing Trajectory Prediction using Sparse Outputs: Application to Team Sports

2021-06-01 · Brandon Victor, Aiden Nibali, Zhen He, David L. Carey

Sophisticated trajectory prediction models that effectively mimic team dynamics have many potential uses for sports coaches, broadcasters and spectators. However, through experiments on soccer data we found that it can b…

PredictionTrajectory Prediction

Graph-Aware Isomorphic Attention for Adaptive Dynamics in Transformers

2025-01-04 · Markus J. Buehler

We present an approach to modifying Transformer architectures by integrating graph-aware relational reasoning into the attention mechanism, merging concepts from graph neural networks and language modeling. Building on t…

Language ModelingLanguage ModellingRelational Reasoning

SG-DOR: Learning Scene Graphs with Direction-Conditioned Occlusion Reasoning for Pepper Plants

2026-03-06 · Rohit Menon, Niklas Mueller-Goldingen, Sicong Pan, Gokul Krishna Chenchani 외 arxiv

Robotic harvesting in dense crop canopies requires effective interventions that depend not only on geometry, but also on explicit, direction-conditioned relations identifying which organs obstruct a target fruit. We pres…

Point Clouds

PoCGM: Poisson-Conditioned Generative Model for Sparse-View CT Reconstruction

2025-11-17 · Changsheng Fang, Yongtong Liu, Bahareh Morovati, Shuo Han 외 arxiv

In computed tomography (CT), reducing the number of projection views is an effective strategy to lower radiation exposure and/or improve temporal resolution. However, this often results in severe aliasing artifacts and l…

Image Generation