Papers › CodeT5+: Open Code Large Language Models for Code Understanding and Generation

CodeT5+: Open Code Large Language Models for Code Understanding and Generation

13 May 2023arXiv:2305.07922archive 2025-07-28

Yue Wang, Hung Le, Akhilesh Deepak Gotmare, Nghi D. Q. Bui, Junnan Li, Steven C. H. Hoi

Large language models (LLMs) pretrained on vast source code have achieved prominent progress in code intelligence. However, existing code LLMs have two main limitations in terms of architecture and pretraining tasks. First, they often adopt a specific architecture (encoder-only or decoder-only) or rely on a unified encoder-decoder network for different downstream tasks. The former paradigm is limited by inflexibility in applications while in the latter, the model is treated as a single system for all tasks, leading to suboptimal performance on a subset of tasks. Secondly, they often employ a limited set of pretraining objectives which might not be relevant to some downstream tasks and hence result in substantial performance degrade. To address these limitations, we propose ``CodeT5+'', a family of encoder-decoder LLMs for code in which component modules can be flexibly combined to suit a wide range of downstream code tasks. Such flexibility is enabled by our proposed mixture of pretraining objectives to mitigate the pretrain-finetune discrepancy. These objectives cover span denoising, contrastive learning, text-code matching, and causal LM pretraining tasks, on both unimodal and bimodal multilingual code corpora. Furthermore, we propose to initialize CodeT5+ with frozen off-the-shelf LLMs without training from scratch to efficiently scale up our models, and explore instruction-tuning to align with natural language instructions. We extensively evaluate CodeT5+ on over 20 code-related benchmarks in different settings, including zero-shot, finetuning, and instruction-tuning. We observe state-of-the-art (SoTA) model performance on various code-related tasks, such as code generation and completion, math programming, and text-to-code retrieval tasks. Particularly, our instruction-tuned CodeT5+ 16B achieves new SoTA results on HumanEval code generation task against other open code LLMs.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2305.07922")

Code

Syntology Ran 3 of 4 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 4 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

salesforce/codet5 officialmentioned in papermentioned on GitHubpytorch report
leiluk1/codesearcher mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

4 samples harvested; 3 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
2ran
1unverified

Licence: 0 of the 4 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from salesforce/codet5. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

create_loader salesforce/codet5/CodeT5+/code_retrieval/data_utils.py official repository ran BSD-3-Clause (permissive) · 634ef255c2b583be · report
create_sampler salesforce/codet5/CodeT5+/code_retrieval/data_utils.py official repository ran BSD-3-Clause (permissive) · 8d7bf7ad0e60457f · report
extract_text salesforce/codet5/CodeT5+/humaneval/generate_codet5p.py official repository ran · our draft was wrong fingerprinted BSD-3-Clause (permissive) · 7a733b18081436f3 · report
create_dataset salesforce/codet5/CodeT5+/code_retrieval/data_utils.py official repository unverified BSD-3-Clause (permissive) · 29a2c6f9ec2127fe · report

Tasks

Arithmetic ReasoningCode CompletionCode GenerationCode SearchCode SummarizationDecoderHumanEvalMath

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Arithmetic Reasoning GSM8K CodeT5+ Accuracy 73.8 #93 of 164 Archive leaderboard report
Arithmetic Reasoning GSM8K CodeT5+ Parameters (Billion) 0.77 #93 of 164 Archive leaderboard report
Code Completion CodeXGLUE - Github Java Corpus CodeT5+ 770M EM (line-level) 37.90 #2 of 3 Archive leaderboard report
Code Completion CodeXGLUE - Github Java Corpus CodeT5+ 770M Edit Sim (line-level) 72.25 #2 of 3 Archive leaderboard report
Code Completion CodeXGLUE - Github Java Corpus CodeT5+ 220M EM (line-level) 35.17 #3 of 3 Archive leaderboard report
Code Completion CodeXGLUE - Github Java Corpus CodeT5+ 220M Edit Sim (line-level) 69.48 #3 of 3 Archive leaderboard report
Code Completion CodeXGLUE - PY150 CodeT5+ 770M EM (line-level) 44.86 #2 of 3 Archive leaderboard report
Code Completion CodeXGLUE - PY150 CodeT5+ 770M Edit Sim (line-level) 74.22 #2 of 3 Archive leaderboard report
Code Completion CodeXGLUE - PY150 CodeT5+ 220M EM (line-level) 43.42 #3 of 3 Archive leaderboard report
Code Completion CodeXGLUE - PY150 CodeT5+ 220M Edit Sim (line-level) 73.69 #3 of 3 Archive leaderboard report
Code Search CodeSearchNet CodeT5+ 770M Go 92.7 #3 of 6 Archive leaderboard report
Code Search CodeSearchNet CodeT5+ 770M JS 71.3 #3 of 6 Archive leaderboard report
Code Search CodeSearchNet CodeT5+ 770M Java 76.2 #3 of 6 Archive leaderboard report
Code Search CodeSearchNet CodeT5+ 770M Overall 77.4 #3 of 6 Archive leaderboard report
Code Search CodeSearchNet CodeT5+ 770M PHP 70.1 #3 of 6 Archive leaderboard report
Code Search CodeSearchNet CodeT5+ 770M Python 75.8 #3 of 6 Archive leaderboard report
Code Search CodeSearchNet CodeT5+ 770M Ruby 78.0 #3 of 6 Archive leaderboard report
Code Search CodeSearchNet CodeT5+ 220M Go 92.4 #5 of 6 Archive leaderboard report
Code Search CodeSearchNet CodeT5+ 220M JS 70..8 #5 of 6 Archive leaderboard report
Code Search CodeSearchNet CodeT5+ 220M Java 76.1 #5 of 6 Archive leaderboard report
Code Search CodeSearchNet CodeT5+ 220M Overall 77.1 #5 of 6 Archive leaderboard report
Code Search CodeSearchNet CodeT5+ 220M PHP 69.8 #5 of 6 Archive leaderboard report
Code Search CodeSearchNet CodeT5+ 220M Python 75.6 #5 of 6 Archive leaderboard report
Code Search CodeSearchNet CodeT5+ 220M Ruby 77.7 #5 of 6 Archive leaderboard report
Code Search CodeXGLUE - AdvTest CodeT5+ 770M MRR 44.7 #1 of 3 Archive leaderboard report
Code Search CodeXGLUE - AdvTest CodeT5+ 220M MRR 43.3 #2 of 3 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

ALIGN

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections