Submit Manuscript
SWorldJournal · Archive 2020–2026
Issue 36, Part 2
Archive 2020–2026Open Access Issue 36, Part 2

A comparative analysis of defect density and failure modes in human-written versus AI-generated software modules

Keywords

  • generative AI
  • quality assurance (QA)
  • severity gap
  • code hallucinations
  • contract-driven development
  • tautological testing
  • automation bias

Abstract

The paper examines the impact of integrating Large Language Models (LLM), such as GitHub Copilot and ChatGPT, on software quality and security. Despite a declared 30-56% increase in development velocity, the industry faces a “deferred cost” phenomenon with no reduction in Mean Time to Remediate (MTTR). Through a controlled experiment, a comparative analysis of human-written versus AI-generated code was conducted. The study empirically validates the existence of a “severity gap”: while defect density remains statistically comparable, AI-induced errors exhibit a bimodal distribution dominated by critical vulnerabilities and stochastic hallucinations (phantom dependencies, insecure defaults). The concept of “tautological testing” is introduced to describe the inefficiency of traditional unit tests for validating generative artifacts. The study author, Serhii Klymenko, introduces a proprietary “Semantic auditing” methodology designed to detect neural network hallucinations. Furthermore, the paper advocates for a paradigm shift toward Zero Trust Code - a concept rapidly gaining traction in the U.S. cybersecurity landscape, which postulates that no single line of AI-generated code should be trusted by default until it passes rigorous ontological verification.

References

Chen, M., Tworek, J., Jun, H., Yuan, Q., Pinto, H. P. de O., Kaplan, J., ... & Zaremba, W. (2021). Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374.

Ouaarous, Imane, Mezrioui. (2024). On Using Artificial Intelligence in Software Quality Assurance: A State of the Art. Workshop on Software Quality, Analysis, Monitoring, Improvement, and Applications, September 9-11, 2024, Novi Sad, Serbia.

Bommasani, R., Hudson, D. A., Adeli, E., Altman, R., Arora, S., von Arx, S., ... & Liang, P. (2021). On the opportunities and risks of foundation models. Stanford University Center for Research on Foundation Models (CRFM) Report.

Peng, S., Kalliamvakou, E., Cihon, P., & Demarrer, K. (2023). The impact of AI on developer productivity: Evidence from GitHub Copilot. arXiv preprint arXiv:2302.06590.

Perry, N., Srivastava, M., Kumar, D., & Boneh, D. (2023). Do users write more insecure code with AI assistants? Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security, 1450-1465.

Google Cloud. (2023). State of DevOps Report 2023: AI and software delivery performance. DORA Research.

Skitka, L. J., Mosier, K. L., & Burdick, M. (2000). Does automation bias decision-making? International Journal of Human-Computer Studies, 51(5), 991-1006.

Snyk. (2023). AI-Generated Code Security Report: Risks and remediation. Snyk Research Labs.

MITRE Corporation. (2023). CWE Top 25 Most Dangerous Software Weaknesses. Retrieved from https://cwe.mitre.org/top25/

Brynjolfsson, E., Rock, D., & Syverson, C. (2021). The productivity J-curve: How intangibles complement general purpose technologies. American Economic Journal: Macroeconomics, 13(1), 333-372.

Pearce, H., Ahmad, B., Tan, B., Dolan-Gavitt, B., & Karri, R. (2022). Asleep at the keyboard? Assessing the security of GitHub Copilot’s code contributions. 2022 IEEE Symposium on Security and Privacy (SP), 754-768.

Wohlin, C., Runeson, P., Höst, M., Ohlsson, M. C., Regnell, B., & Wesslén, A. (2012). Experimentation in software engineering. Springer Science & Business Media.

OpenAI. (2023). GPT-4 System Card. OpenAI Technical Report.

FIRST.org. (2019). Common Vulnerability Scoring System v3.1: Specification Document.

Reason, J. (1990). Human error. Cambridge University Press.

Ladisa, P., Plate, H., Ponta, S. E., & Sabetta, A. (2023). Taxonomy of attacks on open-source software supply chains. 2023 IEEE Symposium on Security and Privacy (SP).

Wei, J., Tay, Y., Bommasani, R., Raffel, C., Zoph, B., Borgeaud, S., ... & Fedus, W. (2022). Emergent abilities of large language models. Transactions on Machine Learning Research.

Sandoval, G., Pearce, H., Nys, T., Karri, R., & Garg, S. (2023). Security implications of large language model code assistants: A pilot study. arXiv preprint arXiv:2208.09727.

Ray, B., Posnett, D., Filkov, V., & Devanbu, P. (2014). A large scale study of programming languages and code quality in GitHub. Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering, 155-165.

Chess, B., & McGraw, G. (2004). Static analysis for security. IEEE Security & Privacy, 2(6), 76-79.

McKinsey & Company. (2023). Unleashing developer productivity with generative AI. McKinsey Digital Report.

Cohn, M. (2009). Succeeding with Agile: Software development using Scrum. Addison-Wesley Professional.

Deroy, O., & Spence, C. (2021). Fear of the dark: The epistemic implications of black-box AI. Philosophy & Technology, 34, 1-20.

Rose, S., Borchert, O., Mitchell, S., & Connelly, S. (2020). Zero Trust Architecture. NIST Special Publication 800-207.