arrow
返回

Memorization and generalization in neural code intelligence models

delete2023-01-01
delete12
delete
OA
AI
M
Md Rafiqul Islam Rabin *
A
Aftab Hussain
M
Mohammad Amin Alipour
V
Vincent J. Hellendoorn
DOI:10.1016/j.infsof.2022.107066delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Context: Deep Neural Networks (DNNs) are increasingly being used in software engineering and code inte-lligence tasks. These are powerful tools that are capable of learning highly generalizable patterns from large datasets through millions of parameters. At the same time, their large capacity can render them prone to memorizing data points. Recent work suggests that the memorization risk manifests especially strongly when the training dataset is noisy, involving many ambiguous or questionable samples, and memorization is the only recourse. Objective: The goal of this paper is to evaluate and compare the extent of memorization and generalization in neural code intelligence models. It aims to provide insights on how memorization may impact the learning behavior of neural models in code intelligence systems. Method: To observe the extent of memorization in models, we add random noise to the original training dataset and use various metrics to quantify the impact of noise on various aspects of training and testing. We evaluate several state-of-the-art neural code intelligence models and benchmarks based on Java, Python, and Ruby codebases. Results: Our results highlight important risks: millions of trainable parameters allow the neural networks to memorize anything, including noisy data, and provide a false sense of generalization. We observed all models manifest some forms of memorization. This can be potentially troublesome in most code intelligence tasks where they rely on rather noise-prone and repetitive data sources, such as code from GitHub. Conclusion: To the best of our knowledge, we provide the first study to quantify memorization effects in the domain of software engineering and code intelligence systems. This work raises awareness and provides new insights into important issues of training neural models in code intelligence systems that are usually overlooked by software engineering researchers.
Keyword:
Machine learning
Software engineering
Memorization and generalization
Empirical results
Models of code
AI总结

AI总结

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

期刊

Information and Software Technology 封面图
Information and Software Technology
IF:
4.3
论文数:
3.8K
被引数:
7.7K

机构

U
university of houston system
学者数:
1.4W
论文数: 1.4W
被引数: 16
U
university of houston
学者数:
9.7K
论文数: 7.9K
被引数: 11
引用论文

引用论文

err分享
err收藏