Salvato in:
Dettagli Bibliografici
Autori principali: Ma, Yong, Luo, Senlin, Shang, Yu-Ming, Zhang, Yifei, Li, Zhengjun
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:https://arxiv.org/abs/2401.05544
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910584976441344
author Ma, Yong
Luo, Senlin
Shang, Yu-Ming
Zhang, Yifei
Li, Zhengjun
author_facet Ma, Yong
Luo, Senlin
Shang, Yu-Ming
Zhang, Yifei
Li, Zhengjun
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2401_05544
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Enhancing Source Code Classification Effectiveness via Prompt Learning Incorporating Knowledge Features
Ma, Yong
Luo, Senlin
Shang, Yu-Ming
Zhang, Yifei
Li, Zhengjun
Computation and Language
Artificial Intelligence
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.
title Enhancing Source Code Classification Effectiveness via Prompt Learning Incorporating Knowledge Features
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2401.05544