Bridging Pre-trained Models and Downstream Tasks for Source Code Understanding
Not on the map. Why?
Abstract (arXiv)
With the great success of pre-trained models, the pretrain-then-finetune paradigm has been widely adopted on downstream tasks for source code understanding. However, compared to costly training a large-scale model from scratch, how to effectively adapt pre-trained models to a new task has not been fully explored. In this paper, we propose an approach to bridge pre-trained models and code-related tasks. We exploit semantic-preserving transformation to enrich downstream data diversity, and help pre-trained models learn semantic features invariant to these semantically equivalent transformations. Further, we introduce curriculum learning to organize the transformed data in an easy-to-hard manner to fine-tune existing pre-trained models. We apply our approach to a range of pre-trained models, and they significantly outperform the state-of-the-art models on tasks for source code understanding, such as algorithm classification, code clone detection, and code search. Our experiments even show that without heavy pre-training on code data, natural language pre-trained model RoBERTa fine-tuned with our lightweight approach could outperform or rival existing code pre-trained models fine-tuned on the above tasks, such as CodeBERT and GraphCodeBERT. This finding suggests that there is still much room for improvement in code pre-trained models.
Key facts. Cited by 28 papers in the map (data through 14 Oct 2026). Builds on 33 of its 61 references that are in the map. First posted on arXiv 4 Dec 2021.
Builds on
33 of 61 references.
References · 33
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2017Random Erasing Data Augmentationcited by 1,239
- 2014Convolutional Neural Networks for Sentence Classificationcited by 1,127
- 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 876
21 more
- 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
- 2021Unified Pre-training for Program Understanding and Generationcited by 366
- 2019On The Power of Curriculum Learning in Training Deep Networkscited by 286
- 2018Aleatoric uncertainty estimation with test-time augmentation for medical image segmentation with convolutional neural networkscited by 280
- 2017Teacher-Student Curriculum Learningcited by 210
- 2019Competence-based Curriculum Learning for Neural Machine Translationcited by 202
- 2018CurriculumNet: Weakly Supervised Learning from Large-Scale Web Imagescited by 126
- 2020Contrastive Code Representation Learningcited by 76
- 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited by 70
- 2020Detecting Code Clones with Graph Neural Networkand Flow-Augmented Abstract Syntax Treecited by 69
- 2017Curriculum Learning and Minibatch Bucketing in Neural Machine Translationcited by 63
- 2019Adversarial Examples for Models of Codecited by 63
- 2019Simple and Effective Curriculum Pointer-Generator Networks for Reading Comprehension over Long Narrativescited by 59
- 2018An Empirical Exploration of Curriculum Learning for Neural Machine Translationcited by 58
- 2020Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving Transformationscited by 49
- 2020Semantic Robustness of Models of Source Codecited by 45
- 2019Misleading Authorship Attribution of Source Code using Adversarial Learningcited by 33
- 2019Generative Image Translation for Data Augmentation in Colorectal Histopathology Imagescited by 15
- 2019Curriculum Learning Strategies for IR: An Empirical Study on Conversation Response Rankingcited by 8
Built on by
Citing papers per year: 2022: 3; 2023: 11; 2024: 5; 2025: 6; 2026: 3.
28 papers.
Sort:
By area:
- 2022ZegCLIP: Towards Adapting CLIP for Zero-shot Semantic Segmentationcited by 178
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2023CrossCodeBench: Benchmarking Cross-Task Generalization of Source Code Modelscited by 16
- 2023One Adapter for All Programming Languages? Adapter Tuning for Code Search and Summarizationcited by 16
- 2023Advising OpenMP Parallelization via a Graph-Based Approach with Transformerscited by 10
- 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Surveycited by 9
- 2023Code Membership Inference for Detecting Unauthorized Data Use in Code Pre-trained Language Modelscited by 8
- 2023Revisiting the Plastic Surgery Hypothesis via Large Language Modelscited by 7
- 2024CodeArt: Better Code Models by Attention Regularization When Symbols Are Lackingcited by 7
- 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samplescited by 7
- 2023Boosting Source Code Learning with Text-Oriented Data Augmentation: An Empirical Studycited by 5
- 2023A Comprehensive Evaluation of Parameter-Efficient Fine-Tuning on Software Engineering Taskscited by 5
16 more
- 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
- 2022MIXCODE: Enhancing Code Classification by Mixup-Based Data Augmentationcited by 4
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Groundingcited by 4
- 2023APIContext2Com: Code Comment Generation by Incorporating Pre-Defined API Documentationcited by 2
- 2023Study of Distractors in Neural Models of Codecited by 2
- 2024Machine Translation Testing via Syntactic Tree Pruningcited by 2
- 2024GenCode: A Generic Data Augmentation Framework for Boosting Deep Learning-Based Code Understandingcited by 2
- 2025An Empirical Study of Knowledge Distillation for Code Understanding Taskscited by 2
- 2024Beyond Self-learned Attention: Mitigating Attention Bias in Transformer-based Models Using Attention Guidancecited by 1
- 2024LEGION: Harnessing Pre-trained Language Models for GitHub Topic Recommendations with Distribution-Balance Losscited by 1
- 2025Should Code Models Learn Pedagogically? A Preliminary Evaluation of Curriculum Learning for Real-World Software Engineering Taskscited by 1
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agentcited by 1
- 2025Once4All: Skeleton-Guided SMT Solver Fuzzing with LLM-Synthesized Generatorscited by 0
- 2026Learning Generalizable Multimodal Representations for Software Vulnerability Detectioncited by 0
- 2026Bidirectional Small-Granularity Search between Code and Textcited by 0
- 2026Invariant Pretraining for Robust Code Representationscited by 0
- 2026Invariant Pretraining for Robust Code Representations15 Aug 2026
- 2026Learning Generalizable Multimodal Representations for Software Vulnerability Detection28 Apr 2026
- 2026Bidirectional Small-Granularity Search between Code and Text19 Apr 2026
- 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agent17 Dec 2025
- 2025Once4All: Skeleton-Guided SMT Solver Fuzzing with LLM-Synthesized Generators28 Aug 2025
- 2025An Empirical Study of Knowledge Distillation for Code Understanding Tasks21 Aug 2025
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding27 Mar 2025
- 2025Should Code Models Learn Pedagogically? A Preliminary Evaluation of Curriculum Learning for Real-World Software Engineering Tasks6 Feb 2025
- 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samples28 Jan 2025
- 2024LEGION: Harnessing Pre-trained Language Models for GitHub Topic Recommendations with Distribution-Balance Loss9 Mar 2024
- 2024Beyond Self-learned Attention: Mitigating Attention Bias in Transformer-based Models Using Attention Guidance26 Feb 2024
- 2024GenCode: A Generic Data Augmentation Framework for Boosting Deep Learning-Based Code Understanding24 Feb 2024
16 more
- 2024CodeArt: Better Code Models by Attention Regularization When Symbols Are Lacking19 Feb 2024
- 2024Machine Translation Testing via Syntactic Tree Pruning1 Jan 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023A Comprehensive Evaluation of Parameter-Efficient Fine-Tuning on Software Engineering Tasks25 Dec 2023
- 2023Code Membership Inference for Detecting Unauthorized Data Use in Code Pre-trained Language Models12 Dec 2023
- 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Survey27 Oct 2023
- 2023Advising OpenMP Parallelization via a Graph-Based Approach with Transformers16 May 2023
- 2023One Adapter for All Programming Languages? Adapter Tuning for Code Search and Summarization28 Mar 2023
- 2023Revisiting the Plastic Surgery Hypothesis via Large Language Models18 Mar 2023
- 2023Boosting Source Code Learning with Text-Oriented Data Augmentation: An Empirical Study13 Mar 2023
- 2023Study of Distractors in Neural Models of Code3 Mar 2023
- 2023APIContext2Com: Code Comment Generation by Incorporating Pre-Defined API Documentation3 Mar 2023
- 2023CrossCodeBench: Benchmarking Cross-Task Generalization of Source Code Models8 Feb 2023
- 2022ZegCLIP: Towards Adapting CLIP for Zero-shot Semantic Segmentation7 Dec 2022
- 2022MIXCODE: Enhancing Code Classification by Mixup-Based Data Augmentation6 Oct 2022
- 2022A Survey of Deep Learning Models for Structural Code Understanding3 May 2022
- 2022ZegCLIP: Towards Adapting CLIP for Zero-shot Semantic Segmentationcited by 178
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2023CrossCodeBench: Benchmarking Cross-Task Generalization of Source Code Modelscited by 16
- 2023One Adapter for All Programming Languages? Adapter Tuning for Code Search and Summarizationcited by 16
- 2023Advising OpenMP Parallelization via a Graph-Based Approach with Transformerscited by 10
- 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Surveycited by 9
- 2023Revisiting the Plastic Surgery Hypothesis via Large Language Modelscited by 7
- 2024CodeArt: Better Code Models by Attention Regularization When Symbols Are Lackingcited by 7
- 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samplescited by 7
- 2023Boosting Source Code Learning with Text-Oriented Data Augmentation: An Empirical Studycited by 5
- 2023A Comprehensive Evaluation of Parameter-Efficient Fine-Tuning on Software Engineering Taskscited by 5
- 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
12 most cited of 25 All 25 (JSON)
- 2026Invariant Pretraining for Robust Code Representations15 Aug 2026
- 2026Learning Generalizable Multimodal Representations for Software Vulnerability Detection28 Apr 2026
- 2026Bidirectional Small-Granularity Search between Code and Text19 Apr 2026
- 2025Once4All: Skeleton-Guided SMT Solver Fuzzing with LLM-Synthesized Generators28 Aug 2025
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding27 Mar 2025
- 2025Should Code Models Learn Pedagogically? A Preliminary Evaluation of Curriculum Learning for Real-World Software Engineering Tasks6 Feb 2025
- 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samples28 Jan 2025
- 2024LEGION: Harnessing Pre-trained Language Models for GitHub Topic Recommendations with Distribution-Balance Loss9 Mar 2024
- 2024Beyond Self-learned Attention: Mitigating Attention Bias in Transformer-based Models Using Attention Guidance26 Feb 2024
- 2024GenCode: A Generic Data Augmentation Framework for Boosting Deep Learning-Based Code Understanding24 Feb 2024
- 2024CodeArt: Better Code Models by Attention Regularization When Symbols Are Lacking19 Feb 2024
- 2024Machine Translation Testing via Syntactic Tree Pruning1 Jan 2024
12 newest of 25 All 25 (JSON)