mlsanityData to 7 Oct 2026

Genetic Auto-prompt Learning for Pre-trained Code Intelligence Language Models

arXiv 2403.13588 ↗First posted 20 Mar 2024cs.SE cs.CLcited by 2

Not on the map. Why?

Abstract (arXiv)

As Pre-trained Language Models (PLMs), a popular approach for code intelligence, continue to grow in size, the computational cost of their usage has become prohibitively expensive. Prompt learning, a recent development in the field of natural language processing, emerges as a potential solution to address this challenge. In this paper, we investigate the effectiveness of prompt learning in code intelligence tasks. We unveil its reliance on manually designed prompts, which often require significant human effort and expertise. Moreover, we discover existing automatic prompt design methods are very limited to code intelligence tasks due to factors including gradient dependence, high computational demands, and limited applicability. To effectively address both issues, we propose Genetic Auto Prompt (GenAP), which utilizes an elaborate genetic algorithm to automatically design prompts. With GenAP, non-experts can effortlessly generate superior prompts compared to meticulously manual-designed ones. GenAP operates without the need for gradients or additional computational costs, rendering it gradient-free and cost-effective. Moreover, GenAP supports both understanding and generation types of code intelligence tasks, exhibiting great applicability. We conduct GenAP on three popular code intelligence PLMs with three canonical code intelligence tasks including defect prediction, code summarization, and code translation. The results suggest that GenAP can effectively automate the process of designing prompts. Specifically, GenAP outperforms all other methods across all three tasks (e.g., improving accuracy by an average of 2.13% for defect prediction). To the best of our knowledge, GenAP is the first work to automatically design prompts for code intelligence PLMs.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 54 of its 69 references that are in the map. First posted on arXiv 20 Mar 2024.

Builds on

54 of 69 references.

References · 54

  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. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  7. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  8. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  9. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  10. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  11. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  12. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
38 more
  1. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  2. 2019PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarizationcited by 1,100
  3. 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
  4. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  5. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  6. 2021GPT Understands, Toocited by 715
  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. 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
  11. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  12. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  13. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  14. 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
  15. 2021An Empirical Study of GPT-3 for Few-Shot Knowledge-Based VQAcited by 298
  16. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 294
  17. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  18. 2022Black-Box Tuning for Language-Model-as-a-Servicecited by 254
  19. 2021PTR: Prompt Tuning with Rules for Text Classificationcited by 238
  20. 2021SPoT: Better Frozen Model Adaptation through Soft Prompt Transfercited by 235
  21. 2021PPT: Pre-trained Prompt Tuning for Few-shot Learningcited by 232
  22. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  23. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
  24. 2021WARP: Word-level Adversarial ReProgrammingcited by 220
  25. 2021Knowledgeable Prompt-tuning: Incorporating Knowledge into Prompt Verbalizer for Text Classificationcited by 183
  26. 2021Reframing Instructional Prompts to GPTk's Languagecited by 176
  27. 2022What Language Model Architecture and Pretraining Objective Work Best for Zero-Shot Generalization?cited by 149
  28. 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
  29. 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Modelscited by 127
  30. 2021A Recipe For Arbitrary Text Style Transfer with Large Language Modelscited by 107
  31. 2021Language Models are Few-shot Multilingual Learnerscited by 92
  32. 2018DeepBugs: A Learning Approach to Name-based Bug Detectioncited by 65
  33. 2021Prompt Waywardness: The Curious Case of Discretized Interpretation of Continuous Promptscited by 64
  34. 2018Structured Neural Summarizationcited by 53
  35. 2022NatGen: Generative pre-training by "Naturalizing" source codecited by 53
  36. 2018Automatically designing CNN architectures using genetic algorithm for image classificationcited by 48
  37. 2023"What It Wants Me To Say": Bridging the Abstraction Gap Between End-User Programmers and Code-Generating Large Language Modelscited by 48
  38. 2019When Deep Learning Met Code Searchcited by 45

50 most cited of 54 All 54 (JSON)

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.