paper-with-me

Papers

Code Structure Guided Transformer for Source Code Summarization

2021-04-19 · Shuzheng Gao, Cuiyun Gao, Yulan He, Jichuan Zeng, Lun Yiu Nie, Xin Xia, Michael R. Lyu

Code summaries help developers comprehend programs and reduce their time to infer the program functionalities during software maintenance. Recent efforts resort to deep learning techniques such as sequence-to-sequence models for generating accurate code summaries, among which Transformer-based approaches have achieved promising performance. However, effectively integrating the code structure information into the Transformer is under-explored in this task domain. In this paper, we propose a novel approach named SG-Trans to incorporate code structural properties into Transformer. Specifically, we inject the local symbolic information (e.g., code tokens and statements) and global syntactic structure (e.g., data flow graph) into the self-attention module of Transformer as inductive bias. To further capture the hierarchical characteristics of code, the local information and global structure are designed to distribute in the attention heads of lower layers and high layers of Transformer. Extensive evaluation shows the superior performance of SG-Trans over the state-of-the-art approaches. Compared with the best-performing baseline, SG-Trans still improves 1.4% and 2.0% in terms of METEOR score, a metric widely used for measuring generation quality, respectively on two benchmark datasets.

📄 PDF Abstract BibTeX arXiv:2104.09340

Code (0)

등록된 구현이 없습니다.

Tasks

Code SummarizationInductive BiasSource Code Summarization

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Residual Connection 설명 없음
Multi-Head Attention 설명 없음

Similar Papers 제목 키워드 기반

Source Code Summarization with Structural Relative Position Guided Transformer

2022-02-14 · Zi Gong, Cuiyun Gao, Yasheng Wang, Wenchao Gu 외

Source code summarization aims at generating concise and clear natural language descriptions for programming languages. Well-written code summaries are beneficial for programmers to participate in the software developmen…

Code SummarizationPositionSource Code Summarization

Towards Scale-Aware Low-Light Enhancement via Structure-Guided Transformer Design

2025-04-18 · Wei Dong, Yan Min, Han Zhou, Jun Chen

Current Low-light Image Enhancement (LLIE) techniques predominantly rely on either direct Low-Light (LL) to Normal-Light (NL) mappings or guidance from semantic features or illumination maps. Nonetheless, the intrinsic i…

Image EnhancementLow-Light Image Enhancement

PlaneTR: Structure-Guided Transformers for 3D Plane Recovery

2021-07-27 · ICCV 2021 10 · Bin Tan, Nan Xue, Song Bai, Tianfu Wu 외

This paper presents a neural network built upon Transformers, namely PlaneTR, to simultaneously detect and reconstruct planes from a single image. Different from previous methods, PlaneTR jointly leverages the context in…

Decoder

An Adaptive Edge-Guided Dual-Network Framework for Fast QR Code Motion Deblurring

2025-10-14 · Jianping Li, Dongyang Guo, Wenjie Li, Wei Zhao arxiv

Unlike general image deblurring that prioritizes perceptual quality, QR code deblurring focuses on ensuring successful decoding. QR codes are characterized by highly structured patterns with sharp edges, a robust prior f…

Image Deblurring

Listening with Attention: Entropy-Guided Explainability for Transformer-Based Audio Models

2026-06-12 · Ravi Ranjan, Utkarsh Grover, Xiaomin Lin, Agoritsa Polyzou arxiv

Transformer-based automatic speech recognition (ASR) models such as Whisper are highly accurate, but their predictions remain difficult to interpret. Existing explainable AI (XAI) methods often lack faithfulness and prec…

Speech Recognition