Prediction of Types in Python with Pre-trained Graph Neural Networks

Vitaly Romanov, Vladimir Ivanov
{"title":"Prediction of Types in Python with Pre-trained Graph Neural Networks","authors":"Vitaly Romanov, Vladimir Ivanov","doi":"10.1109/IVMEM57067.2022.9983956","DOIUrl":null,"url":null,"abstract":"The application of Graph Neural Networks for pre-training models for source code is not well studied. We experimented with pre-training a Graph Neural Network model for Python on tasks of Name Prediction and Edge Prediction. Then, we used pre-trained weights to initialize a model for variable type prediction. Our preliminary results suggest that pre-training on these tasks brings neither improvements in type prediction performance nor training dynamics. Possible ways to fix this are discussed in the concluding section of the paper. Additionally, we performed an ablation study to see whether type prediction is overreliant on some parts of the graph. Results suggest, that type prediction model does not significantly rely on obvious shortcuts and could be a useful proxy for evaluating pre-trained graph embeddings.","PeriodicalId":271645,"journal":{"name":"2022 Ivannikov Memorial Workshop (IVMEM)","volume":"29 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-09-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 Ivannikov Memorial Workshop (IVMEM)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/IVMEM57067.2022.9983956","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

The application of Graph Neural Networks for pre-training models for source code is not well studied. We experimented with pre-training a Graph Neural Network model for Python on tasks of Name Prediction and Edge Prediction. Then, we used pre-trained weights to initialize a model for variable type prediction. Our preliminary results suggest that pre-training on these tasks brings neither improvements in type prediction performance nor training dynamics. Possible ways to fix this are discussed in the concluding section of the paper. Additionally, we performed an ablation study to see whether type prediction is overreliant on some parts of the graph. Results suggest, that type prediction model does not significantly rely on obvious shortcuts and could be a useful proxy for evaluating pre-trained graph embeddings.
用预训练的图神经网络在Python中预测类型
图神经网络在源代码预训练模型中的应用还没有得到很好的研究。我们在名称预测和边缘预测任务上对Python的图神经网络模型进行了预训练。然后,我们使用预训练的权重初始化变量类型预测模型。我们的初步结果表明,对这些任务进行预训练既不能提高类型预测性能,也不能提高训练动态。解决这一问题的可能方法在本文的结论部分进行了讨论。此外,我们进行了消融研究,以查看类型预测是否过度依赖于图表的某些部分。结果表明,该类型预测模型不明显依赖于明显的捷径,可以作为评估预训练图嵌入的有用代理。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书