PyMT5: multi-mode translation of natural language and Python code with transformers
Not on the map. Why?
Abstract (arXiv)
Simultaneously modeling source code and natural language has many exciting applications in automated software development and understanding. Pursuant to achieving such technology, we introduce PyMT5, the Python method text-to-text transfer transformer, which is trained to translate between all pairs of Python method feature combinations: a single model that can both predict whole methods from natural language documentation strings (docstrings) and summarize code into docstrings of any common style. We present an analysis and modeling effort of a large-scale parallel corpus of 26 million Python methods and 7.7 million method-docstring pairs, demonstrating that for docstring and method generation, PyMT5 outperforms similarly-sized auto-regressive language models (GPT2) which were English pre-trained or randomly initialized. On the CodeSearchNet test set, our best model predicts 92.1% syntactically correct method bodies, achieved a BLEU score of 8.59 for method generation and 16.3 for docstring generation (summarization), and achieved a ROUGE-L F-score of 24.8 for method generation and 36.7 for docstring generation.
Key facts. Cited by 80 papers in the map (data through 7 Oct 2026). First posted on arXiv 7 Oct 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 16; 2022: 32; 2023: 17; 2024: 11; 2025: 3; 2026: 1.
80 papers.
Sort:
By area:
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
38 more
- 2022GitHub Copilot AI pair programmer: Asset or Liability?cited by 150
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 146
- 2022Large Language Models Meet NL2Code: A Surveycited by 135
- 2022MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generationcited by 132
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2023CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modulescited by 58
- 2022PanGu-Coder: Program Synthesis with Function-Level Language Modelingcited by 47
- 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
- 2023CodeScope: An Execution-based Multilingual Multitask Multidimensional Benchmark for Evaluating LLMs on Code Understanding and Generationcited by 39
- 2021What do pre-trained code models know about code?cited by 36
- 2023Measuring The Impact Of Programming Language Distributioncited by 32
- 2024Can Large Language Models Understand Symbolic Graphics Programs?cited by 32
- 2022Training and Evaluating a Jupyter Notebook Data Science Assistantcited by 31
- 2022Execution-based Evaluation for Data Science Code Generation Modelscited by 31
- 2022On the Transferability of Pre-trained Language Models for Low-Resource Programming Languagescited by 30
- 2022ERNIE-Code: Beyond English-Centric Cross-lingual Pretraining for Programming Languagescited by 29
- 2023Large Language Models of Code Fail at Completing Code with Potential Bugscited by 28
- 2023Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generationcited by 27
- 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunitiescited by 26
- 2021Choose Your Programming Copilot: A Comparison of the Program Synthesis Performance of GitHub Copilot and Genetic Programmingcited by 24
- 2023Zero-Shot Detection of Machine-Generated Codescited by 24
- 2021CoDesc: A Large Code-Description Parallel Datasetcited by 23
- 2023Exploring Continual Learning for Code Generation Modelscited by 22
- 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generationcited by 20
- 2026Composer 2 Technical Reportcited by 20
- 2021DeepDebug: Fixing Python Bugs Using Stack Traces, Backtranslation, and Code Skeletonscited by 17
- 2025DocAgent: A Multi-Agent System for Automated Code Documentation Generationcited by 16
- 2021Long-Range Modeling of Source Code Files with eWASH: Extended Window Access by Syntax Hierarchycited by 14
- 2022Incorporating Domain Knowledge through Task Augmentation for Front-End JavaScript Code Generationcited by 11
- 2022CS1QA: A Dataset for Assisting Code-based Question Answering in an Introductory Programming Coursecited by 11
- 2024CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agentscited by 11
- 2022Who Evaluates the Evaluators? On Automatic Metrics for Assessing AI-based Offensive Code Generatorscited by 10
- 2024RACONTEUR: A Knowledgeable, Insightful, and Portable LLM-Powered Shell Command Explainercited by 9
- 2022Benchmarking Language Models for Code Syntax Understandingcited by 8
- 2022CoRRPUS: Code-based Structured Prompting for Neurosymbolic Story Understandingcited by 7
- 2023Exploring Data Augmentation for Code Generation Taskscited by 7
- 2021CGEMs: A Metric Model for Automatic Code Generation using GPT-3cited by 6
50 most cited of 80 All 80 (JSON)
- 2026Composer 2 Technical Report25 Mar 2026
- 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunities15 Aug 2025
- 2025LEANCODE: Understanding Models Better for Code Simplification of Pre-trained Large Language Models20 May 2025
- 2025DocAgent: A Multi-Agent System for Automated Code Documentation Generation11 Apr 2025
- 2024Code LLMs: A Taxonomy-based Survey11 Dec 2024
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learning2 Oct 2024
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2024RACONTEUR: A Knowledgeable, Insightful, and Portable LLM-Powered Shell Command Explainer3 Sep 2024
- 2024Can Large Language Models Understand Symbolic Graphics Programs?15 Aug 2024
- 2024CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agents17 Jun 2024
- 2024Leveraging Large Language Models for Efficient Failure Analysis in Game Development11 Jun 2024
- 2024A Survey on Large Language Models for Code Generation1 Jun 2024
38 more
- 2024Are Human Rules Necessary? Generating Reusable APIs with CoT Reasoning and In-Context Learning6 May 2024
- 2024NL2KQL: From Natural Language to Kusto Query3 Apr 2024
- 2024Text-to-Code Generation with Modality-relative Pre-training8 Feb 2024
- 2023CodeScope: An Execution-based Multilingual Multitask Multidimensional Benchmark for Evaluating LLMs on Code Understanding and Generation14 Nov 2023
- 2023DocGen: Generating Detailed Parameter Docstrings in Python11 Nov 2023
- 2023Large Language Models to the Rescue: Reducing the Complexity in Scientific Workflow Development Using ChatGPT3 Nov 2023
- 2023SUT: Active Defects Probing for Transcompiler Models22 Oct 2023
- 2023CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modules13 Oct 2023
- 2023Optimizing Large Language Models to Expedite the Development of Smart Contracts8 Oct 2023
- 2023Zero-Shot Detection of Machine-Generated Codes8 Oct 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023Exploring Continual Learning for Code Generation Models5 Jul 2023
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedback26 Jun 2023
- 2023Large Language Models of Code Fail at Completing Code with Potential Bugs6 Jun 2023
- 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generation9 May 2023
- 2023The EarlyBIRD Catches the Bug: On Exploiting Early Layers of Encoder Models for More Efficient Code Classification8 May 2023
- 2023Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generation28 Apr 2023
- 2023Stochastic Code Generation14 Apr 2023
- 2023Exploring Data Augmentation for Code Generation Tasks5 Feb 2023
- 2023Measuring The Impact Of Programming Language Distribution3 Feb 2023
- 2022CoRRPUS: Code-based Structured Prompting for Neurosymbolic Story Understanding21 Dec 2022
- 2022Large Language Models Meet NL2Code: A Survey19 Dec 2022
- 2022ERNIE-Code: Beyond English-Centric Cross-lingual Pretraining for Programming Languages13 Dec 2022
- 2022Who Evaluates the Evaluators? On Automatic Metrics for Assessing AI-based Offensive Code Generators12 Dec 2022
- 2022A Survey on Natural Language Processing for Programming12 Dec 2022
- 2022CodeExp: Explanatory Code Document Generation25 Nov 2022
- 2022Execution-based Evaluation for Data Science Code Generation Models17 Nov 2022
- 2022Evaluating How Fine-tuning on Bimodal Data Effects Code Generation15 Nov 2022
- 2022CS1QA: A Dataset for Assisting Code-based Question Answering in an Introductory Programming Course26 Oct 2022
- 2022Benchmarking Language Models for Code Syntax Understanding26 Oct 2022
- 2022Exploring and Evaluating Personalized Models for Code Generation29 Aug 2022
- 2022Incorporating Domain Knowledge through Task Augmentation for Front-End JavaScript Code Generation22 Aug 2022
- 2022MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generation17 Aug 2022
- 2022CoditT5: Pretraining for Source Code and Natural Language Editing10 Aug 2022
- 2022PanGu-Coder: Program Synthesis with Function-Level Language Modeling22 Jul 2022
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learning5 Jul 2022
- 2022GitHub Copilot AI pair programmer: Asset or Liability?30 Jun 2022
- 2022DeepPERF: A Deep Learning-Based Approach For Improving Software Performance27 Jun 2022
50 newest of 80 All 80 (JSON)
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunitiescited by 26
- 2026Composer 2 Technical Reportcited by 20
- 2025DocAgent: A Multi-Agent System for Automated Code Documentation Generationcited by 16
- 2024CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agentscited by 11
- 2026Composer 2 Technical Report25 Mar 2026
- 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunities15 Aug 2025
- 2025DocAgent: A Multi-Agent System for Automated Code Documentation Generation11 Apr 2025
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2024CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agents17 Jun 2024
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 117
- 2022ReACC: A Retrieval-Augmented Code Completion Framework15 Mar 2022
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
- 2022GitHub Copilot AI pair programmer: Asset or Liability?cited by 150
12 most cited of 71 All 71 (JSON)
- 2025LEANCODE: Understanding Models Better for Code Simplification of Pre-trained Large Language Models20 May 2025
- 2024Code LLMs: A Taxonomy-based Survey11 Dec 2024
- 2024RACONTEUR: A Knowledgeable, Insightful, and Portable LLM-Powered Shell Command Explainer3 Sep 2024
- 2024Can Large Language Models Understand Symbolic Graphics Programs?15 Aug 2024
- 2024Leveraging Large Language Models for Efficient Failure Analysis in Game Development11 Jun 2024
- 2024A Survey on Large Language Models for Code Generation1 Jun 2024
- 2024NL2KQL: From Natural Language to Kusto Query3 Apr 2024
- 2024Text-to-Code Generation with Modality-relative Pre-training8 Feb 2024
- 2023CodeScope: An Execution-based Multilingual Multitask Multidimensional Benchmark for Evaluating LLMs on Code Understanding and Generation14 Nov 2023
- 2023DocGen: Generating Detailed Parameter Docstrings in Python11 Nov 2023
- 2023Large Language Models to the Rescue: Reducing the Complexity in Scientific Workflow Development Using ChatGPT3 Nov 2023
- 2023SUT: Active Defects Probing for Transcompiler Models22 Oct 2023
12 newest of 71 All 71 (JSON)