• Home
  • Search
  • CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation
  • https://doi.org/10.48448/9k8h-pj75Copy DOI Icon

CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation

Show More
  • Abstract
  • Literature Map
  • Similar Papers
Abstract

Pre-trained models for Natural Languages (NL) like BERT and GPT have been recently shown to transfer well to Programming Languages (PL) and largely benefit a broad set of code-related tasks. Despite their success, most current methods either rely on an encoder-only (or decoder-only) pre-training that is suboptimal for generation (resp. understanding) tasks or process the code snippet in the same way as NL, neglecting the special characteristics of PL such as token types. We present CodeT5, a unified pre-trained encoder-decoder Transformer model that better leverages the code semantics conveyed from the developer-assigned identifiers. Our model employs a unified framework to seamlessly support both code understanding and generation tasks and allows for multi-task learning. Besides, we propose a novel identifier-aware pre-training task that enables the model to distinguish which code tokens are identifiers and to recover them when they are masked. Furthermore, we propose to exploit the user-written code comments with a bimodal dual generation task for better NL-PL alignment. Comprehensive experiments show that CodeT5 significantly outperforms prior methods on understanding tasks such as code defect detection and clone detection, and generation tasks across various directions including PL-NL, NL-PL, and PL-PL. Further analysis reveals that our model can better capture semantic information from code.

Similar Papers
  • PDF
  • Research Article
  • Citations7

Unit Test Generation Using Large Language Models: A Systematic Literature Review

  • May 13, 2024
  • Vilnius University Open Series
  • Dovydas Marius Zapkus +1
  • Video Transcripts

Unified Pre-training for Program Understanding and Generation

  • May 25, 2021
  • Underline Science Inc.
  • Saikat Chakraborty
  • Conference Article
  • Citations169

Multi-task learning based pre-trained language model for code completion

  • Dec 21, 2020
  • Fang Liu +3
  • Research Article
  • Citations8

Building a Coding Assistant via the Retrieval-Augmented Language Model

  • Jan 17, 2025
  • ACM Transactions on Information Systems
  • Xinze Li +8
  • Conference Article
  • Citations4

Curriculum-Based Self-Training Makes Better Few-Shot Learners for Data-to-Text Generation

  • Jul 01, 2022
  • Pei Ke +6
  • Research Article
  • Citations114

Contrast and Generation Make BART a Good Dialogue Emotion Recognizer

  • Jun 28, 2022
  • Proceedings of the AAAI Conference on Artificial Intelligence
  • Shimin Li +2
  • Book Chapter
  • Citations1548

Oscar: Object-Semantics Aligned Pre-training for Vision-Language Tasks

  • Jan 01, 2020
  • Xiujun Li +11
  • Research Article

Exploration of augmented prompting methods for information extraction using large language models

  • Jan 01, 2025
  • JUSTC
  • Yishuo Fu +4
  • Book Chapter
  • Citations26

RepsNet: Combining Vision with Language for Automated Medical Reports

  • Jan 01, 2022
  • Ajay K Tanwani +2
  • Research Article
  • Citations6

Analyzing LLAMA3 Performance on Classification Task Using LoRA and QLoRA Techniques

  • Mar 12, 2025
  • Applied Sciences
  • Rajvardhan Patil +2
  • Research Article
  • Citations2

Pre-trained language models for protein and molecular design.

  • Jan 01, 2025
  • Physical chemistry chemical physics : PCCP
  • Erdong Zhang +7
  • Conference Article
  • Citations4

Study of Recurrent Neural Network models used for evaluating Numerical Expressions

  • Jun 01, 2019
  • 2019 IEEE Region 10 Symposium (TENSYMP)
  • Isha Ganguli +2
  • Research Article
  • Citations1

A Self-Supervised Pre-Trained Transformer Model for Accurate Genomic Prediction of Swine Phenotypes

  • Aug 24, 2025
  • Animals : an Open Access Journal from MDPI
  • Weixi Xiang +4
  • PDF
  • Conference Article
  • Citations194

Calibration of Pre-trained Transformers

  • Jan 01, 2020
  • Shrey Desai +1
  • Research Article
  • Citations77

Bangla-BERT: Transformer-Based Efficient Model for Transfer Learning and Language Understanding

  • Jan 01, 2022
  • IEEE Access
  • M Kowsher +5
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.