EUVIMEDEUVIMED entdecken
Crossref

Balancing Consistency and Diversity in Automated C Code Generation for Software Defect Detectors

Mamoru Ohara, Yuto Sugawa, Chisato Murakami

International Journal of Reliability, Quality and Safety Engineering · 2026-08 · 33 (04)

DOI: 10.1142/s0218539326500282 ↗

Kurz gefasst

Fachartikel in der Zeitschrift International Journal of Reliability, Quality and Safety Engineering, online erschienen am 21.05.2026. Verfasst von Mamoru Ohara und 2 weiteren Autor:innen. Die Arbeit nennt 28 Literaturangaben. Gefördert von: Japan Society for the Promotion of Science London.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

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.

Förderung

  • Japan Society for the Promotion of Science London

Zitieren

APA

Ohara, M., Sugawa, Y., & Murakami, C. (2026). Balancing Consistency and Diversity in Automated C Code Generation for Software Defect Detectors. International Journal of Reliability, Quality and Safety Engineering, 33(04). https://doi.org/10.1142/s0218539326500282

Vancouver

Ohara M, Sugawa Y, Murakami C. Balancing Consistency and Diversity in Automated C Code Generation for Software Defect Detectors. International Journal of Reliability, Quality and Safety Engineering. 2026;33(04). doi:10.1142/s0218539326500282

BibTeX
@article{Ohara2026,
  author = {Ohara, Mamoru and Sugawa, Yuto and Murakami, Chisato},
  title = {Balancing Consistency and Diversity in Automated C Code Generation for Software Defect Detectors},
  journal = {International Journal of Reliability, Quality and Safety Engineering},
  year = {2026},
  volume = {33},
  number = {04},
  doi = {10.1142/s0218539326500282}
}
Kostenlos starten →