Data-Driven AI Model Signal-Awareness Enhancement and Introspection
Preprint
Abstract
AI modeling for source code understanding tasks has been making significant progress, and is being adopted in production development pipelines. However, reliability concerns, especially whether the models are actually learning task-related aspects of source code, are being raised. While recent model-probing approaches have observed a lack of signal awareness in many AI-for-code models, i.e. models not capturing task-relevant signals, they do not offer solutions to rectify this problem. In this paper, we explore data-driven approaches to enhance models' signal-awareness: 1) we combine the SE concept of code complexity with the AI technique of curriculum learning; 2) we incorporate SE assistance into AI models by customizing Delta Debugging to generate simplified signal-preserving programs, augmenting them to the training dataset. With our techniques, we achieve up to 4.8x improvement in model signal awareness. Using the notion of code complexity, we further present a novel model learning introspection approach from the perspective of the dataset.Keywords
All Related Versions
This publication has 21 references indexed in Scilit:
- Shallow or Deep? An Empirical Study on Detecting Vulnerabilities using Deep Learning2021
- SySeVR: A Framework for Using Deep Learning to Detect Software VulnerabilitiesIEEE Transactions on Dependable and Secure Computing, 2021
- On the performance of method-level bug prediction: A negative resultJournal of Systems and Software, 2020
- Learning How to Mutate Source Code from Bug-Fixes2019
- FOCUS: A Recommender System for Mining API Function Calls and Usage Patterns2019
- Learning to Spot and Refactor Inconsistent Method Names2019
- On Learning Meaningful Code Changes Via Neural Machine Translation2019
- Crystal Graph Convolutional Neural Networks for an Accurate and Interpretable Prediction of Material PropertiesPhysical Review Letters, 2018
- Efficient JavaScript Mutation Testing2013
- Simplifying and isolating failure-inducing inputIEEE Transactions on Software Engineering, 2002