Enhancing Source Code Classification Effectiveness via Prompt Learning Incorporating Knowledge Features
Not on the map. Why?
Abstract (arXiv)
Researchers have investigated the potential of leveraging pre-trained language models, such as CodeBERT, to enhance source code-related tasks. Previous methodologies have relied on CodeBERT's '[CLS]' token as the embedding representation of input sequences for task performance, necessitating additional neural network layers to enhance feature representation, which in turn increases computational expenses. These approaches have also failed to fully leverage the comprehensive knowledge inherent within the source code and its associated text, potentially limiting classification efficacy. We propose CodeClassPrompt, a text classification technique that harnesses prompt learning to extract rich knowledge associated with input sequences from pre-trained models, thereby eliminating the need for additional layers and lowering computational costs. By applying an attention mechanism, we synthesize multi-layered knowledge into task-specific features, enhancing classification accuracy. Our comprehensive experimentation across four distinct source code-related tasks reveals that CodeClassPrompt achieves competitive performance while significantly reducing computational overhead.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 30 of its 66 references that are in the map. First posted on arXiv 10 Jan 2024.
Builds on
30 of 66 references.
References · 30
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,166
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 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
- 2014Convolutional Neural Networks for Sentence Classificationcited by 1,127
- 2019How Can We Know What Language Models Know?cited by 959
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
18 more
- 2014Distributed Representations of Sentences and Documentscited by 678
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2020Pre-trained Models for Natural Language Processing: A Surveycited by 505
- 2019How to Fine-Tune BERT for Text Classification?cited by 411
- 2021True Few-Shot Learning with Language Modelscited by 344
- 2018code2vec: Learning Distributed Representations of Codecited by 250
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
- 2019Assessing BERT's Syntactic Abilitiescited by 192
- 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
- 2020Contrastive Code Representation Learningcited by 76
- 2018Automated software vulnerability detection with machine learningcited by 34
- 2021Evaluation of BERT and ALBERT Sentence Embedding Performance on Downstream NLP Taskscited by 32
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 24
- 2019On the Feasibility of Transfer-learning Code Smells using Deep Learningcited by 7
- 2021Fine-grained Pseudo-code Generation Method via Code Feature Extraction and Transformercited by 6
- 2021How to Identify Class Comment Types? A Multi-language Approach for Class Comment Classificationcited by 6
- 2021DeepSCC: Source Code Classification Based on Fine-Tuned RoBERTacited by 4
- 2019Analyzing Code Comments to Boost Program Comprehensioncited by 3
Built on by
Citing papers per year: 2025: 1.
1 paper.