SPT-Code: Sequence-to-Sequence Pre-Training for Learning Source Code Representations
Not on the map. Why?
Abstract (arXiv)
Recent years have seen the successful application of large pre-trained models to code representation learning, resulting in substantial improvements on many code-related downstream tasks. But there are issues surrounding their application to SE tasks. First, the majority of the pre-trained models focus on pre-training only the encoder of the Transformer. For generation tasks that are addressed using models with the encoder-decoder architecture, however, there is no reason why the decoder should be left out during pre-training. Second, many existing pre-trained models, including state-of-the-art models such as T5-learning, simply reuse the pre-training tasks designed for natural languages. Moreover, to learn the natural language description of source code needed eventually for code-related tasks such as code summarization, existing pre-training tasks require a bilingual corpus composed of source code and the associated natural language description, which severely limits the amount of data for pre-training. To this end, we propose SPT-Code, a sequence-to-sequence pre-trained model for source code. In order to pre-train SPT-Code in a sequence-to-sequence manner and address the aforementioned weaknesses associated with existing pre-training tasks, we introduce three pre-training tasks that are specifically designed to enable SPT-Code to learn knowledge of source code, the corresponding code structure, as well as a natural language description of the code without relying on any bilingual corpus, and eventually exploit these three sources of information when it is applied to downstream tasks. Experimental results demonstrate that SPT-Code achieves state-of-the-art performance on five code-related downstream tasks after fine-tuning.
Key facts. Cited by 35 papers in the map (data through 7 Oct 2026). First posted on arXiv 5 Jan 2022.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 3; 2023: 16; 2024: 8; 2025: 4; 2026: 4.
35 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 21
- 2023CodeTF: One-stop Transformer Library for State-of-the-art Code LLMscited by 21
- 2024M2rc-Eval: Massively Multilingual Repository-level Code Completion Evaluationcited by 21
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
- 2023Towards Efficient Fine-tuning of Pre-trained Code Models: An Experimental Study and Beyondcited by 20
- 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generationcited by 20
- 2023Exploring Code Analysis: Zero-Shot Insights on Syntax and Semantics with LLMscited by 19
23 more
- 2023CrossCodeBench: Benchmarking Cross-Task Generalization of Source Code Modelscited by 16
- 2024Selective Prompt Anchoring for Code Generationcited by 16
- 2023Scope is all you need: Transforming LLMs for HPC Codecited by 12
- 2022HierarchyNet: Learning to Summarize Source Code with Heterogeneous Representationscited by 9
- 2023Functional Overlap Reranking for Neural Code Generationcited by 9
- 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detectioncited by 8
- 2024GALLa: Graph Aligned Large Language Models for Improved Source Code Understandingcited by 7
- 2024Leveraging Large Language Models in Code Question Answering: Baselines and Issuescited by 6
- 2025SPENCER: Self-Adaptive Model Distillation for Efficient Code Retrievalcited by 5
- 2025AdaptiveLog: An Adaptive Log Analysis Framework with the Collaboration of Large and Small Language Modelcited by 4
- 2023Neural Machine Translation for Code Generationcited by 3
- 2024Code LLMs: A Taxonomy-based Surveycited by 3
- 2023xASTNN: Improved Code Representations for Industrial Practicecited by 2
- 2024LUK: Empowering Log Understanding with Expert Knowledge from Large Language Modelscited by 2
- 2023Implant Global and Local Hierarchy Information to Sequence based Code Representation Modelscited by 1
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Codecited by 1
- 2024Using LLM such as ChatGPT for Designing and Implementing a RISC Processor: Execution,Challenges and Limitationscited by 1
- 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systemscited by 1
- 2023DocGen: Generating Detailed Parameter Docstrings in Pythoncited by 0
- 2025Selecting and Combining Large Language Models for Scalable Code Clone Detectioncited by 0
- 2026Dissecting the Black Box: Circuit-Level Analysis of LLM Vulnerability Detectioncited by 0
- 2026Recall Before Rerank: Benchmarking Deep Learning Models for Large-Scale Code-to-Code Retrievalcited by 0
- 2026CoSTAR: Data Synthesis-Driven Constraint-Aware COBOL Section Summarization for Legacy System Modernizationcited by 0
- 2026CoSTAR: Data Synthesis-Driven Constraint-Aware COBOL Section Summarization for Legacy System Modernization10 Sep 2026
- 2026Recall Before Rerank: Benchmarking Deep Learning Models for Large-Scale Code-to-Code Retrieval24 Jun 2026
- 2026Dissecting the Black Box: Circuit-Level Analysis of LLM Vulnerability Detection28 May 2026
- 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systems2 Feb 2026
- 2025Selecting and Combining Large Language Models for Scalable Code Clone Detection17 Oct 2025
- 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detection15 Sep 2025
- 2025SPENCER: Self-Adaptive Model Distillation for Efficient Code Retrieval1 Aug 2025
- 2025AdaptiveLog: An Adaptive Log Analysis Framework with the Collaboration of Large and Small Language Model19 Jan 2025
- 2024Code LLMs: A Taxonomy-based Survey11 Dec 2024
- 2024Leveraging Large Language Models in Code Question Answering: Baselines and Issues5 Nov 2024
- 2024M2rc-Eval: Massively Multilingual Repository-level Code Completion Evaluation28 Oct 2024
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
23 more
- 2024GALLa: Graph Aligned Large Language Models for Improved Source Code Understanding6 Sep 2024
- 2024LUK: Empowering Log Understanding with Expert Knowledge from Large Language Models3 Sep 2024
- 2024Selective Prompt Anchoring for Code Generation17 Aug 2024
- 2024Using LLM such as ChatGPT for Designing and Implementing a RISC Processor: Execution,Challenges and Limitations18 Jan 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023DocGen: Generating Detailed Parameter Docstrings in Python11 Nov 2023
- 2023Functional Overlap Reranking for Neural Code Generation16 Oct 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023Scope is all you need: Transforming LLMs for HPC Code18 Aug 2023
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Code5 Jul 2023
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Review4 Jul 2023
- 2023CodeTF: One-stop Transformer Library for State-of-the-art Code LLMs31 May 2023
- 2023Neural Machine Translation for Code Generation22 May 2023
- 2023Exploring Code Analysis: Zero-Shot Insights on Syntax and Semantics with LLMs20 May 2023
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generation13 May 2023
- 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generation9 May 2023
- 2023Towards Efficient Fine-tuning of Pre-trained Code Models: An Experimental Study and Beyond11 Apr 2023
- 2023Implant Global and Local Hierarchy Information to Sequence based Code Representation Models14 Mar 2023
- 2023xASTNN: Improved Code Representations for Industrial Practice13 Mar 2023
- 2023CrossCodeBench: Benchmarking Cross-Task Generalization of Source Code Models8 Feb 2023
- 2022HierarchyNet: Learning to Summarize Source Code with Heterogeneous Representations31 May 2022
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Code24 May 2022
- 2022CoCoSoDa: Effective Contrastive Learning for Code Search7 Apr 2022
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2022CoCoSoDa: Effective Contrastive Learning for Code Searchcited by 21
- 2023CodeTF: One-stop Transformer Library for State-of-the-art Code LLMscited by 21
- 2024M2rc-Eval: Massively Multilingual Repository-level Code Completion Evaluationcited by 21
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
- 2023Towards Efficient Fine-tuning of Pre-trained Code Models: An Experimental Study and Beyondcited by 20
- 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generationcited by 20
- 2023Exploring Code Analysis: Zero-Shot Insights on Syntax and Semantics with LLMscited by 19
- 2023CrossCodeBench: Benchmarking Cross-Task Generalization of Source Code Modelscited by 16
12 most cited of 30 All 30 (JSON)
- 2026Recall Before Rerank: Benchmarking Deep Learning Models for Large-Scale Code-to-Code Retrieval24 Jun 2026
- 2026Dissecting the Black Box: Circuit-Level Analysis of LLM Vulnerability Detection28 May 2026
- 2025Selecting and Combining Large Language Models for Scalable Code Clone Detection17 Oct 2025
- 2025SPENCER: Self-Adaptive Model Distillation for Efficient Code Retrieval1 Aug 2025
- 2025AdaptiveLog: An Adaptive Log Analysis Framework with the Collaboration of Large and Small Language Model19 Jan 2025
- 2024Code LLMs: A Taxonomy-based Survey11 Dec 2024
- 2024Leveraging Large Language Models in Code Question Answering: Baselines and Issues5 Nov 2024
- 2024M2rc-Eval: Massively Multilingual Repository-level Code Completion Evaluation28 Oct 2024
- 2024LUK: Empowering Log Understanding with Expert Knowledge from Large Language Models3 Sep 2024
- 2024Selective Prompt Anchoring for Code Generation17 Aug 2024
- 2024Using LLM such as ChatGPT for Designing and Implementing a RISC Processor: Execution,Challenges and Limitations18 Jan 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
12 newest of 30 All 30 (JSON)