Study generates diverse incorrect examples from a single bug in software code, suggesting improved defect detection.
Machine learning (ML) techniques have gained traction in software bug detection. A persistent challenge in ML-based approaches arises from the imbalance between correct and incorrect training data. Specifically, there is a scarcity of incorrect data (containing bugs) compared to the abundance of correct data, degrading model performance. To mitigate this, researchers have proposed artificially injecting bugs into correct code to augment datasets. In addition to balancing data distribution, diversity in training examples significantly affects model performance. Programs written in high-level languages can exhibit a wide range of syntactic variations while maintaining identical functionality. Motivated by this observation, the objective of our research is to generate diverse incorrect examples stemming from a single root cause (i.e., a specific bug). Specifically, we plan to inject bugs into LLVM IR code and translate it into high-level source code using a probabilistic language model. In this paper, we present a preparatory step toward that goal: the generation of correct, bug-free examples using an IR-to-C translator based on a sequence-to-sequence (seq2seq) architecture. We investigate the resulting consistency and diversity of the generated correct examples by training the model on real-world software code.
No takes yet. Share an insight, caveat, or question.
Ohara et al. (2026) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: