arrow
返回

INSPECT: Intrinsic and Systematic Probing Evaluation for Code Transformers

delete2024-02-01
delete1
delete
OA
AI
A
Anjan Karmakar
R
Romain Robbes *
DOI:10.1109/TSE.2023.3341624delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Pre-trained models of source code have recently been successfully applied to a wide variety of Software Engineering tasks; they have also seen some practical adoption in practice, e.g. for code completion. Yet, we still know very little about what these pre-trained models learn about source code. In this article, we use probing-simple diagnostic tasks that do not further train the models-to discover to what extent pre-trained models learn about specific aspects of source code. We use an extensible framework to define 15 probing tasks that exercise surface, syntactic, structural and semantic characteristics of source code. We probe 8 pre-trained source code models, as well as a natural language model (BERT) as our baseline. We find that models that incorporate some structural information (such as GraphCodeBERT) have a better representation of source code characteristics. Surprisingly, we find that for some probing tasks, BERT is competitive with the source code models, indicating that there are ample opportunities to improve source-code specific pre-training on the respective code characteristics. We encourage other researchers to evaluate their models with our probing task suite, so that they may peer into the hidden layers of the models and identify what intrinsic code characteristics are encoded.
Keyword:
Machine learning for source code
probing
benchmarking
transformers
pre-trained models

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

U
universite de bordeaux
学者数:
2.7W
论文数: 1.9W
被引数: 37
F
Free University of Bozen-Bolzano
学者数:
2.8K
论文数: 2.6K
被引数: 6
引用论文

引用论文

Caveolin-1 and -2 regulate cell motility in castration-resistant prostate cancer
err2018-10-01
err0
errOAAI
errToyoharu Kamibeppu; Koji Yamasaki; Kozue Nakahara; Takahiro Nagai; Naoki Terada; Hiromasa Tsukino; Shoichiro Mukai; Toshiyuki Kamoto
err分享
err收藏
Push
err2019-07-13
err0
PREAI
errLee Spector; Nicholas Freitag McPhee; Lee Spector; David M. Clark; Ian Lindsay; Bradford Barr; Jon Klein
err分享
err收藏
JEMMA: An extensible Java dataset for ML4Code applications
err2023-03-10
err2
errOAAI
errKarmakar, Anjan; Allamanis, Miltiadis; Robbes, Romain
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收藏
The serine/threonine protein phosphatase SIT4 modulates yeast‐to‐hypha morphogenesis and virulence in Candida albicans
err2004-01-20
err0
errOAAI
errChang‐Muk Lee; André Nantel; Linghuo Jiang; Malcolm Whiteway; Shi‐Hsiang Shen
err分享
err收藏
REJECTION CRITERIA FOR THE HETEROTOPICALLY PLACED MOUSE HEART
err1992-03-01
err0
errOAAI
errS. XU; Y. L. SHAO; E. J. EICHWALD
err分享
err收藏
Acquisition of chess knowledge in AlphaZero
err2022-11-14
err41
errOAAI
errMcGrath, Thomas; Kapishnikov, Andrei; Tomasev, Nenad; Pearce, Adam; Wattenberg, Martin; Hassabis, Demis; Kim, Been; Paquet, Ulrich; Kramnik, Vladimir
err分享
err收藏
学者 查看更多内容