paper-with-me

Papers

AST-T5: Structure-Aware Pretraining for Code Generation and Understanding

2024-01-05 · Linyuan Gong, Mostafa Elhoushi, Alvin Cheung

Large language models (LLMs) have made significant advancements in code-related tasks, yet many LLMs treat code as simple sequences, neglecting its structured nature. We introduce AST-T5, a novel pretraining paradigm that leverages the Abstract Syntax Tree (AST) for enhanced code generation, transpilation, and understanding. Using dynamic programming, our AST-Aware Segmentation retains code structure, while our AST-Aware Span Corruption objective equips the model to reconstruct various code structures. Unlike other models, AST-T5 avoids intricate program analyses or architectural changes, so it integrates seamlessly with any encoder-decoder Transformer. Evaluations show that AST-T5 consistently outperforms similar-sized LMs across various code-related tasks. Structure-awareness makes AST-T5 particularly powerful in code-to-code tasks, surpassing CodeT5 by 2 points in exact match score for the Bugs2Fix task and by 3 points in exact match score for Java-C# Transpilation in CodeXGLUE. Our code and model are publicly available at https://github.com/gonglinyuan/ast_t5.

📄 PDF Abstract BibTeX arXiv:2401.03003

Code (1)

gonglinyuan/ast_t5 공식 구현 pytorch

Tasks

Code GenerationDecoder

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Multi-Head Attention 설명 없음
Attention 설명 없음
Gated Linear Unit A Gated Linear Unit, or GLU computes: $$ \mathrm{GLU}(a, b) = a \otimes \sigma(b) $$ It is used in natural language processing architectures, for example the Gated CNN,…
Inverse Square Root Schedule Inverse Square Root is a learning rate schedule 1 / $\sqrt{\max\left(n, k\right)}$ where $n$ is the current training iteration and $k$ is the number of warm-up steps. This…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Adafactor Adafactor is a stochastic optimization method based on Adam that reduces memory usage while retaining the empirical benefits of…
SentencePiece 설명 없음

Similar Papers 제목 키워드 기반

Scheduled Sampling in Vision-Language Pretraining with Decoupled Encoder-Decoder Network

2021-01-27 · Yehao Li, Yingwei Pan, Ting Yao, Jingwen Chen 외

Despite having impressive vision-language (VL) pretraining with BERT-based encoder for VL understanding, the pretraining of a universal encoder-decoder for both VL understanding and generation remains challenging. The di…

Decoder

EgoDTM: Towards 3D-Aware Egocentric Video-Language Pretraining

2025-03-19 · Boshen Xu, Yuting Mei, Xinbi Liu, Sipeng Zheng 외

Egocentric video-language pretraining has significantly advanced video representation learning. Humans perceive and interact with a fully 3D world, developing spatial awareness that extends beyond text-based understandin…

Contrastive LearningDecoderDepth EstimationRepresentation Learning

BRepCLIP: Contrastive Multimodal Pretraining on BRep Primitives for CAD Understanding

2026-06-03 · Muhammad Usama, Didier Stricker, Mohammad Sadil Khan, Muhammad Zeshan Afzal arxiv

Learning representations of CAD models is a largely open problem. While 3D representation learning has flourished around point clouds and meshes, the native format of CAD - boundary representations BReps, which encodes e…

Representation LearningPoint Clouds

Rigidity-Aware Geometric Pretraining for Protein Design and Conformational Ensembles

2026-03-02 · Zhanghan Ni, Yanjing Li, Zeju Qiu, Bernhard Schölkopf 외 arxiv

Generative models have recently advanced $\textit{de novo}$ protein design by learning the statistical regularities of natural structures. However, current approaches face three key limitations: (1) Existing methods cann…

Self-Supervised LearningProtein Design

Bridging Code Graphs and Large Language Models for Better Code Understanding

2025-12-08 · Zeqi Chen, Zhaoyang Chu, Yi Gui, Feng Guo 외 arxiv

Large Language Models (LLMs) have demonstrated remarkable performance in code intelligence tasks such as code generation, summarization, and translation. However, their reliance on linearized token sequences limits their…

Code TranslationCode Generation