mlsanityData to 14 Oct 2026

Bridging Pre-trained Models and Downstream Tasks for Source Code Understanding

arXiv 2112.02268 ↗First posted 4 Dec 2021cs.SE cs.AIcited by 28

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  6. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
  7. 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
  8. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  9. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  10. 2017Random Erasing Data Augmentationcited by 1,239
  11. 2014Convolutional Neural Networks for Sentence Classificationcited by 1,127
  12. 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 876
21 more
  1. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  2. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
  3. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  4. 2021Unified Pre-training for Program Understanding and Generationcited by 366
  5. 2019On The Power of Curriculum Learning in Training Deep Networkscited by 286
  6. 2018Aleatoric uncertainty estimation with test-time augmentation for medical image segmentation with convolutional neural networkscited by 280
  7. 2017Teacher-Student Curriculum Learningcited by 210
  8. 2019Competence-based Curriculum Learning for Neural Machine Translationcited by 202
  9. 2018CurriculumNet: Weakly Supervised Learning from Large-Scale Web Imagescited by 126
  10. 2020Contrastive Code Representation Learningcited by 76
  11. 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited by 70
  12. 2020Detecting Code Clones with Graph Neural Networkand Flow-Augmented Abstract Syntax Treecited by 69
  13. 2017Curriculum Learning and Minibatch Bucketing in Neural Machine Translationcited by 63
  14. 2019Adversarial Examples for Models of Codecited by 63
  15. 2019Simple and Effective Curriculum Pointer-Generator Networks for Reading Comprehension over Long Narrativescited by 59
  16. 2018An Empirical Exploration of Curriculum Learning for Neural Machine Translationcited by 58
  17. 2020Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving Transformationscited by 49
  18. 2020Semantic Robustness of Models of Source Codecited by 45
  19. 2019Misleading Authorship Attribution of Source Code using Adversarial Learningcited by 33
  20. 2019Generative Image Translation for Data Augmentation in Colorectal Histopathology Imagescited by 15
  21. 2019Curriculum Learning Strategies for IR: An Empirical Study on Conversation Response Rankingcited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 3; 2023: 11; 2024: 5; 2025: 6; 2026: 3.

28 papers.

Sort:

By area:

  1. 2022ZegCLIP: Towards Adapting CLIP for Zero-shot Semantic Segmentationcited by 178
  2. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  3. 2023CrossCodeBench: Benchmarking Cross-Task Generalization of Source Code Modelscited by 16
  4. 2023One Adapter for All Programming Languages? Adapter Tuning for Code Search and Summarizationcited by 16
  5. 2023Advising OpenMP Parallelization via a Graph-Based Approach with Transformerscited by 10
  6. 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Surveycited by 9
  7. 2023Code Membership Inference for Detecting Unauthorized Data Use in Code Pre-trained Language Modelscited by 8
  8. 2023Revisiting the Plastic Surgery Hypothesis via Large Language Modelscited by 7
  9. 2024CodeArt: Better Code Models by Attention Regularization When Symbols Are Lackingcited by 7
  10. 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samplescited by 7
  11. 2023Boosting Source Code Learning with Text-Oriented Data Augmentation: An Empirical Studycited by 5
  12. 2023A Comprehensive Evaluation of Parameter-Efficient Fine-Tuning on Software Engineering Taskscited by 5
16 more
  1. 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
  2. 2022MIXCODE: Enhancing Code Classification by Mixup-Based Data Augmentationcited by 4
  3. 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Groundingcited by 4
  4. 2023APIContext2Com: Code Comment Generation by Incorporating Pre-Defined API Documentationcited by 2
  5. 2023Study of Distractors in Neural Models of Codecited by 2
  6. 2024Machine Translation Testing via Syntactic Tree Pruningcited by 2
  7. 2024GenCode: A Generic Data Augmentation Framework for Boosting Deep Learning-Based Code Understandingcited by 2
  8. 2025An Empirical Study of Knowledge Distillation for Code Understanding Taskscited by 2
  9. 2024Beyond Self-learned Attention: Mitigating Attention Bias in Transformer-based Models Using Attention Guidancecited by 1
  10. 2024LEGION: Harnessing Pre-trained Language Models for GitHub Topic Recommendations with Distribution-Balance Losscited by 1
  11. 2025Should Code Models Learn Pedagogically? A Preliminary Evaluation of Curriculum Learning for Real-World Software Engineering Taskscited by 1
  12. 2025Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agentcited by 1
  13. 2025Once4All: Skeleton-Guided SMT Solver Fuzzing with LLM-Synthesized Generatorscited by 0
  14. 2026Learning Generalizable Multimodal Representations for Software Vulnerability Detectioncited by 0
  15. 2026Bidirectional Small-Granularity Search between Code and Textcited by 0
  16. 2026Invariant Pretraining for Robust Code Representationscited by 0