arrow
返回

Enhancing source code classification effectiveness via prompt learning incorporating knowledge features

delete2024-08-30
delete1
delete
OA
AI
马勇 封面图
马勇 (Yong Ma)
S
Senlin Luo
Y
Yu-Ming Shang *
Y
Yifei Zhang
Z
Zhengjun Li
DOI:10.1038/s41598-024-69402-7delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
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.
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Scientific Reports 封面图
Scientific Reports
IF:
3.9
论文数:
27.9W
被引数:
83.5W

机构

B
beijing university of posts & telecommunications
学者数:
1.4W
论文数: 1.2W
被引数: 9
B
beijing institute of technology
学者数:
5.5W
论文数: 4.0W
被引数: 63
引用论文

引用论文

59. Variability in response to 1 Hz repetitive TMS
err2016-04-01
err0
PREAI
errG. Strigaro; M. Hamada; R. Cantello; J.C. Rothwell
err分享
err收藏
Preweaning performance and body composition of calves from straightbred Nellore and Bos taurus × Nellore crosses1
err2009-05-01
err0
PREAI
errL. Calegare; M. M. Alencar; I. U. Packer; P. R. Leme; C. L. Ferrell; D. P. D. Lanna
err分享
err收藏
The spectrum of epilepsy in children with 15q13.3 microdeletion syndrome
err2021-11-01
err0
PREAI
errRobyn Whitney; Arjun Nair; Elizabeth McCready; Anne E. Keller; Ishita Siddiq Adil; Aly Shah Aziz; Oksana Borys; Kaitlyn Siu; Chintan Shah; Brandon F. Meaney; Kevin Jones; Rajesh RamachandranNair
err分享
err收藏
err分享
err收藏
Remarkable strain-induced magnetic anisotropy in epitaxial Co2MnGa (001) films
err2005-02-01
err0
PREAI
errMichael J. Pechan; Chengtao Yu; David Carr; Chris J. Palmstrøm
err分享
err收藏
Optimization of WAAM Deposition Patterns for T-crossing FeaturesT型交叉特征的WAAM沉积模式优化
err2016-01-01
err0
errOAAI
errGiuseppe Venturini; Filippo Montevecchi; Antonio Scippa; Gianni Campatelli
err分享
err收藏
The adsorption of monolayer coatings on iron nanoparticles: Mössbauer spectroscopy and XANES results
err1998-11-01
err0
PREAI
errG Kataby; Yu Koltypin; J Rothe; J Hormes; I Felner; X Cao; A Gedanken
err分享
err收藏
UHRF1 upregulation mediates exosome release and tumor progression in osteosarcoma
err
IF0
err2020-05-25
err0
errOAAI
errStephanie C. Wu; Ahhyun Kim; Loredana Zocchi; Claire Chen; Jocelyne Lopez; Kelsey Salcido; Jie Wu; Claudia A. Benavente
err分享
err收藏
学者 查看更多内容