AST-T5: Structure-Aware Pretraining for Code Generation and Understanding
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 33 papers in the map (data through 14 Oct 2026). Builds on 40 of its 48 references that are in the map. First posted on arXiv 5 Jan 2024.
Builds on
40 of 48 references.
References · 40
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
28 more
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
- 2021Unified Pre-training for Program Understanding and Generationcited by 366
- 2022The Stack: 3 TB of permissively licensed source codecited by 359
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
- 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 289
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 272
- 2020Unsupervised Translation of Programming Languagescited by 263
- 2017Learning to Represent Programs with Graphscited by 220
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 159
- 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 125
- 2018An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translationcited by 108
- 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 99
- 2017Abstract Syntax Networks for Code Generation and Semantic Parsingcited by 92
- 2020Code Prediction by Feeding Trees to Transformerscited by 70
- 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
- 2021Language-Agnostic Representation Learning of Source Code from Structure and Contextcited by 63
- 2017Code Completion with Neural Attention and Pointer Networkscited by 49
- 2021Latent Execution for Neural Program Synthesiscited by 35
- 2022StructCoder: Structure-Aware Transformer for Code Generationcited by 34
Built on by
Citing papers per year: 2024: 11; 2025: 15; 2026: 7.
33 papers.
Sort:
By area:
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2024Lingma SWE-GPT: An Open Development-Process-Centric Language Model for Automated Software Improvementcited by 61
- 2024RethinkMCTS: Refining Erroneous Thoughts in Monte Carlo Tree Search for Code Generationcited by 26
- 2024Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Taskscited by 25
- 2024IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generatorscited by 23
- 2025cAST: Enhancing Code Retrieval-Augmented Generation with Structural Chunking via Abstract Syntax Treecited by 17
- 2024ReflectionCoder: Learning from Reflection Sequence for Enhanced One-off Code Generationcited by 14
- 2025TreeDiff: AST-Guided Code Generation with Diffusion LLMscited by 11
- 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generationcited by 10
- 2024LLMs as Continuous Learners: Improving the Reproduction of Defective Code in Software Issuescited by 10
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Groundingcited by 4
- 2025NL-Debugging: Exploiting Natural Language as an Intermediate Representation for Code Debuggingcited by 4
21 more
- 2025Structure-Aware Fill-in-the-Middle Pretraining for Codecited by 4
- 2025Alignment with Fill-In-the-Middle for Enhancing Code Generationcited by 4
- 2024Survey of Natural Language Processing for Education: Taxonomy, Systematic Review, and Future Trendscited by 3
- 2025Post-Incorporating Code Structural Knowledge into Pretrained Models via ICL for Code Translationcited by 3
- 2026Code Change Characteristics and Description Alignment: A Comparative Study of Agentic versus Human Pull Requestscited by 3
- 2025JARVIS: A Multi-Agent Code Assistant for High-Quality EDA Script Generationcited by 2
- 2025MLCPD: A Unified Multi-Language Code Parsing Dataset with Universal AST Schemacited by 2
- 2026Function-Aware Fill-in-the-Middle as Mid-Training for Coding Agent Foundation Modelscited by 2
- 2024Insights from Benchmarking Frontier Language Models on Web App Code Generationcited by 1
- 2024ASGDiffusion: Parallel High-Resolution Generation with Asynchronous Structure Guidancecited by 1
- 2025Detecting Stealthy Data Poisoning Attacks in AI Code Generatorscited by 1
- 2025Vector Graph-Based Repository Understanding for Issue-Driven File Retrievalcited by 1
- 2025Understanding Network Behaviors through Natural Language Question-Answeringcited by 1
- 2026Q-Bridge: Code Translation for Quantum Machine Learning via LLMscited by 1
- 2025Structure-Aware Corpus Construction and User-Perception-Aligned Metrics for Large-Language-Model Code Completioncited by 0
- 2025app.build: A Production Framework for Scaling Agentic Prompt-to-App Generation with Environment Scaffoldingcited by 0
- 2025REMODEL-LLM: Transforming C code to Java using LLMscited by 0
- 2026Revisiting Gene Ontology Knowledge Discovery with Hierarchical Feature Selection and Virtual Study Group of AI Agentscited by 0
- 2026Static Program Slicing Using Language Models With Dataflow-Aware Pretraining and Constrained Decodingcited by 0
- 2026Dependency-Guided Code Generation: Structured Matrix Decomposition and Consistency-Guided Refinementcited by 0
- 2026SGA: Plug&Play Geometric Verification for Educational Video Synthesiscited by 0
- 2026SGA: Plug&Play Geometric Verification for Educational Video Synthesis20 Jul 2026
- 2026Dependency-Guided Code Generation: Structured Matrix Decomposition and Consistency-Guided Refinement18 Jul 2026
- 2026Function-Aware Fill-in-the-Middle as Mid-Training for Coding Agent Foundation Models14 Jul 2026
- 2026Static Program Slicing Using Language Models With Dataflow-Aware Pretraining and Constrained Decoding9 Apr 2026
- 2026Q-Bridge: Code Translation for Quantum Machine Learning via LLMs29 Mar 2026
- 2026Revisiting Gene Ontology Knowledge Discovery with Hierarchical Feature Selection and Virtual Study Group of AI Agents20 Mar 2026
- 2026Code Change Characteristics and Description Alignment: A Comparative Study of Agentic versus Human Pull Requests24 Jan 2026
- 2025REMODEL-LLM: Transforming C code to Java using LLMs12 Dec 2025
- 2025Understanding Network Behaviors through Natural Language Question-Answering24 Oct 2025
- 2025MLCPD: A Unified Multi-Language Code Parsing Dataset with Universal AST Schema18 Oct 2025
- 2025Vector Graph-Based Repository Understanding for Issue-Driven File Retrieval10 Oct 2025
- 2025app.build: A Production Framework for Scaling Agentic Prompt-to-App Generation with Environment Scaffolding3 Sep 2025
21 more
- 2025Detecting Stealthy Data Poisoning Attacks in AI Code Generators29 Aug 2025
- 2025Alignment with Fill-In-the-Middle for Enhancing Code Generation27 Aug 2025
- 2025TreeDiff: AST-Guided Code Generation with Diffusion LLMs2 Aug 2025
- 2025cAST: Enhancing Code Retrieval-Augmented Generation with Structural Chunking via Abstract Syntax Tree18 Jun 2025
- 2025Structure-Aware Fill-in-the-Middle Pretraining for Code30 May 2025
- 2025NL-Debugging: Exploiting Natural Language as an Intermediate Representation for Code Debugging21 May 2025
- 2025JARVIS: A Multi-Agent Code Assistant for High-Quality EDA Script Generation20 May 2025
- 2025Structure-Aware Corpus Construction and User-Perception-Aligned Metrics for Large-Language-Model Code Completion19 May 2025
- 2025Post-Incorporating Code Structural Knowledge into Pretrained Models via ICL for Code Translation28 Mar 2025
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding27 Mar 2025
- 2024ASGDiffusion: Parallel High-Resolution Generation with Asynchronous Structure Guidance9 Dec 2024
- 2024LLMs as Continuous Learners: Improving the Reproduction of Defective Code in Software Issues21 Nov 2024
- 2024Lingma SWE-GPT: An Open Development-Process-Centric Language Model for Automated Software Improvement1 Nov 2024
- 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generation24 Sep 2024
- 2024RethinkMCTS: Refining Erroneous Thoughts in Monte Carlo Tree Search for Code Generation15 Sep 2024
- 2024Insights from Benchmarking Frontier Language Models on Web App Code Generation8 Sep 2024
- 2024A Survey on Large Language Models for Code Generation1 Jun 2024
- 2024ReflectionCoder: Learning from Reflection Sequence for Enhanced One-off Code Generation27 May 2024
- 2024Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Tasks7 Mar 2024
- 2024IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generators6 Mar 2024
- 2024Survey of Natural Language Processing for Education: Taxonomy, Systematic Review, and Future Trends15 Jan 2024
- 2024Lingma SWE-GPT: An Open Development-Process-Centric Language Model for Automated Software Improvementcited by 61
- 2026Code Change Characteristics and Description Alignment: A Comparative Study of Agentic versus Human Pull Requestscited by 3
- 2025JARVIS: A Multi-Agent Code Assistant for High-Quality EDA Script Generationcited by 2
- 2026Function-Aware Fill-in-the-Middle as Mid-Training for Coding Agent Foundation Modelscited by 2
- 2025app.build: A Production Framework for Scaling Agentic Prompt-to-App Generation with Environment Scaffoldingcited by 0
- 2026Function-Aware Fill-in-the-Middle as Mid-Training for Coding Agent Foundation Models14 Jul 2026
- 2026Code Change Characteristics and Description Alignment: A Comparative Study of Agentic versus Human Pull Requests24 Jan 2026
- 2025app.build: A Production Framework for Scaling Agentic Prompt-to-App Generation with Environment Scaffolding3 Sep 2025
- 2025JARVIS: A Multi-Agent Code Assistant for High-Quality EDA Script Generation20 May 2025
- 2024Lingma SWE-GPT: An Open Development-Process-Centric Language Model for Automated Software Improvement1 Nov 2024
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2024Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Taskscited by 25
- 2024IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generatorscited by 23
- 2025TreeDiff: AST-Guided Code Generation with Diffusion LLMscited by 11
- 2024LLMs as Continuous Learners: Improving the Reproduction of Defective Code in Software Issuescited by 10
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Groundingcited by 4
- 2025NL-Debugging: Exploiting Natural Language as an Intermediate Representation for Code Debuggingcited by 4
- 2025Structure-Aware Fill-in-the-Middle Pretraining for Codecited by 4
- 2024Survey of Natural Language Processing for Education: Taxonomy, Systematic Review, and Future Trendscited by 3
- 2025Post-Incorporating Code Structural Knowledge into Pretrained Models via ICL for Code Translationcited by 3
- 2025MLCPD: A Unified Multi-Language Code Parsing Dataset with Universal AST Schemacited by 2
- 2024Insights from Benchmarking Frontier Language Models on Web App Code Generationcited by 1
12 most cited of 21 All 21 (JSON)
- 2026SGA: Plug&Play Geometric Verification for Educational Video Synthesis20 Jul 2026
- 2026Dependency-Guided Code Generation: Structured Matrix Decomposition and Consistency-Guided Refinement18 Jul 2026
- 2026Static Program Slicing Using Language Models With Dataflow-Aware Pretraining and Constrained Decoding9 Apr 2026
- 2026Q-Bridge: Code Translation for Quantum Machine Learning via LLMs29 Mar 2026
- 2026Revisiting Gene Ontology Knowledge Discovery with Hierarchical Feature Selection and Virtual Study Group of AI Agents20 Mar 2026
- 2025REMODEL-LLM: Transforming C code to Java using LLMs12 Dec 2025
- 2025Understanding Network Behaviors through Natural Language Question-Answering24 Oct 2025
- 2025MLCPD: A Unified Multi-Language Code Parsing Dataset with Universal AST Schema18 Oct 2025
- 2025Vector Graph-Based Repository Understanding for Issue-Driven File Retrieval10 Oct 2025
- 2025TreeDiff: AST-Guided Code Generation with Diffusion LLMs2 Aug 2025
- 2025Structure-Aware Fill-in-the-Middle Pretraining for Code30 May 2025
- 2025NL-Debugging: Exploiting Natural Language as an Intermediate Representation for Code Debugging21 May 2025
12 newest of 21 All 21 (JSON)