mlsanityData to 7 Oct 2026

No More Fine-Tuning? An Experimental Evaluation of Prompt Tuning in Code Intelligence

arXiv 2207.11680 ↗First posted 24 Jul 2022cs.SE cs.AIcited by 41

Not on the map. Why?

Abstract (arXiv)

Pre-trained models have been shown effective in many code intelligence tasks. These models are pre-trained on large-scale unlabeled corpus and then fine-tuned in downstream tasks. However, as the inputs to pre-training and downstream tasks are in different forms, it is hard to fully explore the knowledge of pre-trained models. Besides, the performance of fine-tuning strongly relies on the amount of downstream data, while in practice, the scenarios with scarce data are common. Recent studies in the natural language processing (NLP) field show that prompt tuning, a new paradigm for tuning, alleviates the above issues and achieves promising results in various NLP tasks. In prompt tuning, the prompts inserted during tuning provide task-specific knowledge, which is especially beneficial for tasks with relatively scarce data. In this paper, we empirically evaluate the usage and effect of prompt tuning in code intelligence tasks. We conduct prompt tuning on popular pre-trained models CodeBERT and CodeT5 and experiment with three code intelligence tasks including defect prediction, code summarization, and code translation. Our experimental results show that prompt tuning consistently outperforms fine-tuning in all three tasks. In addition, prompt tuning shows great potential in low-resource scenarios, e.g., improving the BLEU scores of fine-tuning by more than 26% on average for code summarization. Our results suggest that instead of fine-tuning, we could adapt prompt tuning for code intelligence tasks to achieve better performance, especially when lacking task-specific data.

Key facts. Cited by 41 papers in the map (data through 7 Oct 2026). Builds on 49 of its 63 references that are in the map. First posted on arXiv 24 Jul 2022.

Builds on

49 of 63 references.

References · 49

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  5. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  6. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  7. 2018Deep contextualized word representationscited by 2,285
  8. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  9. 2019Language Models as Knowledge Bases?cited by 1,922
  10. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  11. 2019How Can We Know What Language Models Know?cited by 953
  12. 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
37 more
  1. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  2. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  3. 2021BARTScore: Evaluating Generated Text as Text Generationcited by 719
  4. 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
  5. 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 668
  6. 2021Multimodal Few-Shot Learning with Frozen Language Modelscited by 657
  7. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  8. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  9. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
  10. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  11. 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
  12. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  13. 2020Unsupervised Translation of Programming Languagescited by 262
  14. 2021PTR: Prompt Tuning with Rules for Text Classificationcited by 238
  15. 2021PPT: Pre-trained Prompt Tuning for Few-shot Learningcited by 232
  16. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  17. 2020How Context Affects Language Models' Factual Predictionscited by 181
  18. 2018SpotTune: Transfer Learning through Adaptive Fine-tuningcited by 166
  19. 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 163
  20. 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
  21. 2016Recurrent Neural Network for Text Classification with Multi-Task Learningcited by 144
  22. 2021Differentiable Prompt Makes Pre-trained Language Models Better Few-shot Learnerscited by 115
  23. 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 99
  24. 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
  25. 2021BERTese: Learning to Speak to BERTcited by 82
  26. 2020Improved Code Summarization via a Graph Neural Networkcited by 79
  27. 2021Partial Is Better Than All: Revisiting Fine-tuning Strategy for Few-shot Learningcited by 72
  28. 2020Code Prediction by Feeding Trees to Transformerscited by 70
  29. 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited by 70
  30. 2019When Deep Learning Met Code Searchcited by 45
  31. 2020VulDeeLocator: A Deep Learning-based Fine-grained Vulnerability Detectorcited by 37
  32. 2022On the Importance of Building High-quality Training Datasets for Neural Code Searchcited by 30
  33. 2021CodeTrans: Towards Cracking the Language of Silicon's Code Through Self-Supervised Deep Learning and High Performance Computingcited by 28
  34. 2019ATOM: Commit Message Generation Based on Abstract Syntax Tree and Hybrid Rankingcited by 25
  35. 2017Easy over Hard: A Case Study on Deep Learningcited by 20
  36. 2020CRaDLe: Deep Code Retrieval Based on Semantic Dependency Learningcited by 12
  37. 2021Modular Tree Network for Source Code Representation Learningcited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 1; 2023: 15; 2024: 13; 2025: 8; 2026: 4.

41 papers.

Sort:

By area:

  1. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  2. 2023Fuzz4All: Universal Fuzzing with Large Language Modelscited by 88
  3. 2023RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repaircited by 50
  4. 2023Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generationcited by 49
  5. 2024Beyond Answers: Transferring Reasoning Capabilities to Smaller LLMs Using Multi-Teacher Knowledge Distillationcited by 46
  6. 2023Large Language Models and Simple, Stupid Bugscited by 45
  7. 2024Facing the Elephant in the Room: Visual Prompt Tuning or Full Finetuning?cited by 31
  8. 2024Source Code Summarization in the Era of Large Language Modelscited by 30
  9. 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Modelscited by 28
  10. 2023How Reliable Are AI-Generated-Text Detectors? An Assessment Framework Using Evasive Soft Promptscited by 23
  11. 2024Astraios: Parameter-Efficient Instruction Tuning Code Large Language Modelscited by 23
  12. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
29 more
  1. 2025Prompt-based Adaptation in Large-scale Vision Models: A Surveycited by 21
  2. 2023Benchmarking and Explaining Large Language Model-based Code Generation: A Causality-Centric Approachcited by 15
  3. 2022Who Evaluates the Evaluators? On Automatic Metrics for Assessing AI-based Offensive Code Generatorscited by 10
  4. 2023When Less is Enough: Positive and Unlabeled Learning Model for Vulnerability Detectioncited by 8
  5. 2023An Extensive Study on Adversarial Attack against Pre-trained Models of Codecited by 8
  6. 2023On the Usage of Continual Learning for Out-of-Distribution Generalization in Pre-trained Language Models of Codecited by 7
  7. 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarizationcited by 6
  8. 2023A Comprehensive Evaluation of Parameter-Efficient Fine-Tuning on Software Engineering Taskscited by 5
  9. 2024Testing the Effect of Code Documentation on Large Language Model Code Understandingcited by 4
  10. 2025Do Prompt Patterns Affect Code Quality? A First Empirical Assessment of ChatGPT-Generated Codecited by 4
  11. 2025RAG or Fine-tuning? A Comparative Study on LCMs-based Code Completion in Industrycited by 4
  12. 2024Structure-aware Fine-tuning for Code Pre-trained Modelscited by 3
  13. 2024Contextualized Data-Wrangling Code Generation in Computational Notebookscited by 3
  14. 2025Enhancing Code Generation via Bidirectional Comment-Level Mutual Groundingcited by 3
  15. 2024Solving Data-centric Tasks using Large Language Modelscited by 2
  16. 2024Genetic Auto-prompt Learning for Pre-trained Code Intelligence Language Modelscited by 2
  17. 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?cited by 1
  18. 2024Refining Joint Text and Source Code Embeddings for Retrieval Task with Parameter-Efficient Fine-Tuningcited by 1
  19. 2024The Rise and Fall(?) of Software Engineeringcited by 1
  20. 2024Software Model Evolution with Large Language Models: Experiments on Simulated, Public, and Industrial Datasetscited by 1
  21. 2025PLHF: Prompt Optimization with Few-Shot Human Feedbackcited by 1
  22. 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalizationcited by 1
  23. 2026Explainable Token-level Noise Filtering for LLM Fine-tuning Datasetscited by 1
  24. 2026ReMix: Reinforcement routing for mixtures of LoRAs in LLM finetuningcited by 1
  25. 2026Not All RAGs Are Created Equal: A Component-Wise Empirical Study for Software Engineering Taskscited by 1
  26. 2023Contrastive Prompt Learning-based Code Search based on Interaction Matrixcited by 0
  27. 2025Fine-Tuning Code Language Models to Detect Cross-Language Bugscited by 0
  28. 2025Software Defined Vehicle Code Generation: A Few-Shot Prompting Approachcited by 0
  29. 2026Precision in Practice: Knowledge Guided Code Summarizing Grounded in Industrial Expectationscited by 0