No More Fine-Tuning? An Experimental Evaluation of Prompt Tuning in Code Intelligence
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2018Deep contextualized word representationscited by 2,285
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2019How Can We Know What Language Models Know?cited by 953
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
37 more
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2021BARTScore: Evaluating Generated Text as Text Generationcited by 719
- 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 686
- 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 668
- 2021Multimodal Few-Shot Learning with Frozen Language Modelscited by 657
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2021PTR: Prompt Tuning with Rules for Text Classificationcited by 238
- 2021PPT: Pre-trained Prompt Tuning for Few-shot Learningcited by 232
- 2020IntelliCode Compose: Code Generation Using Transformercited by 225
- 2020How Context Affects Language Models' Factual Predictionscited by 181
- 2018SpotTune: Transfer Learning through Adaptive Fine-tuningcited by 166
- 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 163
- 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
- 2016Recurrent Neural Network for Text Classification with Multi-Task Learningcited by 144
- 2021Differentiable Prompt Makes Pre-trained Language Models Better Few-shot Learnerscited by 115
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 99
- 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
- 2021BERTese: Learning to Speak to BERTcited by 82
- 2020Improved Code Summarization via a Graph Neural Networkcited by 79
- 2021Partial Is Better Than All: Revisiting Fine-tuning Strategy for Few-shot Learningcited by 72
- 2020Code Prediction by Feeding Trees to Transformerscited by 70
- 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited by 70
- 2019When Deep Learning Met Code Searchcited by 45
- 2020VulDeeLocator: A Deep Learning-based Fine-grained Vulnerability Detectorcited by 37
- 2022On the Importance of Building High-quality Training Datasets for Neural Code Searchcited by 30
- 2021CodeTrans: Towards Cracking the Language of Silicon's Code Through Self-Supervised Deep Learning and High Performance Computingcited by 28
- 2019ATOM: Commit Message Generation Based on Abstract Syntax Tree and Hybrid Rankingcited by 25
- 2017Easy over Hard: A Case Study on Deep Learningcited by 20
- 2020CRaDLe: Deep Code Retrieval Based on Semantic Dependency Learningcited by 12
- 2021Modular Tree Network for Source Code Representation Learningcited by 8
Built on by
Citing papers per year: 2022: 1; 2023: 15; 2024: 13; 2025: 8; 2026: 4.
41 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Fuzz4All: Universal Fuzzing with Large Language Modelscited by 88
- 2023RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repaircited by 50
- 2023Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generationcited by 49
- 2024Beyond Answers: Transferring Reasoning Capabilities to Smaller LLMs Using Multi-Teacher Knowledge Distillationcited by 46
- 2023Large Language Models and Simple, Stupid Bugscited by 45
- 2024Facing the Elephant in the Room: Visual Prompt Tuning or Full Finetuning?cited by 31
- 2024Source Code Summarization in the Era of Large Language Modelscited by 30
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Modelscited by 28
- 2023How Reliable Are AI-Generated-Text Detectors? An Assessment Framework Using Evasive Soft Promptscited by 23
- 2024Astraios: Parameter-Efficient Instruction Tuning Code Large Language Modelscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
29 more
- 2025Prompt-based Adaptation in Large-scale Vision Models: A Surveycited by 21
- 2023Benchmarking and Explaining Large Language Model-based Code Generation: A Causality-Centric Approachcited by 15
- 2022Who Evaluates the Evaluators? On Automatic Metrics for Assessing AI-based Offensive Code Generatorscited by 10
- 2023When Less is Enough: Positive and Unlabeled Learning Model for Vulnerability Detectioncited by 8
- 2023An Extensive Study on Adversarial Attack against Pre-trained Models of Codecited by 8
- 2023On the Usage of Continual Learning for Out-of-Distribution Generalization in Pre-trained Language Models of Codecited by 7
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarizationcited by 6
- 2023A Comprehensive Evaluation of Parameter-Efficient Fine-Tuning on Software Engineering Taskscited by 5
- 2024Testing the Effect of Code Documentation on Large Language Model Code Understandingcited by 4
- 2025Do Prompt Patterns Affect Code Quality? A First Empirical Assessment of ChatGPT-Generated Codecited by 4
- 2025RAG or Fine-tuning? A Comparative Study on LCMs-based Code Completion in Industrycited by 4
- 2024Structure-aware Fine-tuning for Code Pre-trained Modelscited by 3
- 2024Contextualized Data-Wrangling Code Generation in Computational Notebookscited by 3
- 2025Enhancing Code Generation via Bidirectional Comment-Level Mutual Groundingcited by 3
- 2024Solving Data-centric Tasks using Large Language Modelscited by 2
- 2024Genetic Auto-prompt Learning for Pre-trained Code Intelligence Language Modelscited by 2
- 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?cited by 1
- 2024Refining Joint Text and Source Code Embeddings for Retrieval Task with Parameter-Efficient Fine-Tuningcited by 1
- 2024The Rise and Fall(?) of Software Engineeringcited by 1
- 2024Software Model Evolution with Large Language Models: Experiments on Simulated, Public, and Industrial Datasetscited by 1
- 2025PLHF: Prompt Optimization with Few-Shot Human Feedbackcited by 1
- 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalizationcited by 1
- 2026Explainable Token-level Noise Filtering for LLM Fine-tuning Datasetscited by 1
- 2026ReMix: Reinforcement routing for mixtures of LoRAs in LLM finetuningcited by 1
- 2026Not All RAGs Are Created Equal: A Component-Wise Empirical Study for Software Engineering Taskscited by 1
- 2023Contrastive Prompt Learning-based Code Search based on Interaction Matrixcited by 0
- 2025Fine-Tuning Code Language Models to Detect Cross-Language Bugscited by 0
- 2025Software Defined Vehicle Code Generation: A Few-Shot Prompting Approachcited by 0
- 2026Precision in Practice: Knowledge Guided Code Summarizing Grounded in Industrial Expectationscited by 0
- 2026Not All RAGs Are Created Equal: A Component-Wise Empirical Study for Software Engineering Tasks14 May 2026
- 2026ReMix: Reinforcement routing for mixtures of LoRAs in LLM finetuning10 Mar 2026
- 2026Explainable Token-level Noise Filtering for LLM Fine-tuning Datasets16 Feb 2026
- 2026Precision in Practice: Knowledge Guided Code Summarizing Grounded in Industrial Expectations3 Feb 2026
- 2025Software Defined Vehicle Code Generation: A Few-Shot Prompting Approach6 Nov 2025
- 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalization15 Oct 2025
- 2025Prompt-based Adaptation in Large-scale Vision Models: A Survey15 Oct 2025
- 2025Fine-Tuning Code Language Models to Detect Cross-Language Bugs29 Jul 2025
- 2025RAG or Fine-tuning? A Comparative Study on LCMs-based Code Completion in Industry21 May 2025
- 2025Enhancing Code Generation via Bidirectional Comment-Level Mutual Grounding12 May 2025
- 2025PLHF: Prompt Optimization with Few-Shot Human Feedback11 May 2025
- 2025Do Prompt Patterns Affect Code Quality? A First Empirical Assessment of ChatGPT-Generated Code18 Apr 2025
29 more
- 2024Contextualized Data-Wrangling Code Generation in Computational Notebooks20 Sep 2024
- 2024Source Code Summarization in the Era of Large Language Models9 Jul 2024
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarization1 Jul 2024
- 2024Software Model Evolution with Large Language Models: Experiments on Simulated, Public, and Industrial Datasets25 Jun 2024
- 2024The Rise and Fall(?) of Software Engineering14 Jun 2024
- 2024Refining Joint Text and Source Code Embeddings for Retrieval Task with Parameter-Efficient Fine-Tuning7 May 2024
- 2024Structure-aware Fine-tuning for Code Pre-trained Models11 Apr 2024
- 2024Testing the Effect of Code Documentation on Large Language Model Code Understanding3 Apr 2024
- 2024Genetic Auto-prompt Learning for Pre-trained Code Intelligence Language Models20 Mar 2024
- 2024Solving Data-centric Tasks using Large Language Models18 Feb 2024
- 2024Beyond Answers: Transferring Reasoning Capabilities to Smaller LLMs Using Multi-Teacher Knowledge Distillation7 Feb 2024
- 2024Facing the Elephant in the Room: Visual Prompt Tuning or Full Finetuning?23 Jan 2024
- 2024Astraios: Parameter-Efficient Instruction Tuning Code Large Language Models1 Jan 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repair25 Dec 2023
- 2023A Comprehensive Evaluation of Parameter-Efficient Fine-Tuning on Software Engineering Tasks25 Dec 2023
- 2023An Extensive Study on Adversarial Attack against Pre-trained Models of Code13 Nov 2023
- 2023Benchmarking and Explaining Large Language Model-based Code Generation: A Causality-Centric Approach10 Oct 2023
- 2023Contrastive Prompt Learning-based Code Search based on Interaction Matrix10 Oct 2023
- 2023How Reliable Are AI-Generated-Text Detectors? An Assessment Framework Using Evasive Soft Prompts8 Oct 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023When Less is Enough: Positive and Unlabeled Learning Model for Vulnerability Detection21 Aug 2023
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Models21 Aug 2023
- 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?17 Aug 2023
- 2023Fuzz4All: Universal Fuzzing with Large Language Models9 Aug 2023
- 2023Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generation2 Aug 2023
- 2023On the Usage of Continual Learning for Out-of-Distribution Generalization in Pre-trained Language Models of Code6 May 2023
- 2023Large Language Models and Simple, Stupid Bugs20 Mar 2023
- 2022Who Evaluates the Evaluators? On Automatic Metrics for Assessing AI-based Offensive Code Generators12 Dec 2022
- 2025PLHF: Prompt Optimization with Few-Shot Human Feedbackcited by 1
- 2025PLHF: Prompt Optimization with Few-Shot Human Feedback11 May 2025
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Fuzz4All: Universal Fuzzing with Large Language Modelscited by 88
- 2023RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repaircited by 50
- 2023Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generationcited by 49
- 2023Large Language Models and Simple, Stupid Bugscited by 45
- 2024Facing the Elephant in the Room: Visual Prompt Tuning or Full Finetuning?cited by 31
- 2024Source Code Summarization in the Era of Large Language Modelscited by 30
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Modelscited by 28
- 2023How Reliable Are AI-Generated-Text Detectors? An Assessment Framework Using Evasive Soft Promptscited by 23
- 2024Astraios: Parameter-Efficient Instruction Tuning Code Large Language Modelscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2025Prompt-based Adaptation in Large-scale Vision Models: A Surveycited by 21
12 most cited of 37 All 37 (JSON)
- 2026ReMix: Reinforcement routing for mixtures of LoRAs in LLM finetuning10 Mar 2026
- 2026Explainable Token-level Noise Filtering for LLM Fine-tuning Datasets16 Feb 2026
- 2026Precision in Practice: Knowledge Guided Code Summarizing Grounded in Industrial Expectations3 Feb 2026
- 2025Software Defined Vehicle Code Generation: A Few-Shot Prompting Approach6 Nov 2025
- 2025Breaking Memorization Barriers in LLM Code Fine-Tuning via Information Bottleneck for Improved Generalization15 Oct 2025
- 2025Prompt-based Adaptation in Large-scale Vision Models: A Survey15 Oct 2025
- 2025Fine-Tuning Code Language Models to Detect Cross-Language Bugs29 Jul 2025
- 2025Enhancing Code Generation via Bidirectional Comment-Level Mutual Grounding12 May 2025
- 2025Do Prompt Patterns Affect Code Quality? A First Empirical Assessment of ChatGPT-Generated Code18 Apr 2025
- 2024Contextualized Data-Wrangling Code Generation in Computational Notebooks20 Sep 2024
- 2024Source Code Summarization in the Era of Large Language Models9 Jul 2024
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarization1 Jul 2024
12 newest of 37 All 37 (JSON)