Evaluasi Empiris Kualitas Kode Generative AI: Studi Komparatif Multidimensi Antar-Paradigma Interaksi

Hamidah, Amilia Fatimatul (2026) Evaluasi Empiris Kualitas Kode Generative AI: Studi Komparatif Multidimensi Antar-Paradigma Interaksi. Masters thesis, Institut Teknologi Sepuluh Nopember.

[thumbnail of 6025251015-Master_Thesis.pdf] Text
6025251015-Master_Thesis.pdf - Accepted Version
Restricted to Repository staff only

Download (12MB) | Request a copy

Abstract

Penggunaan Generative Artificial Intelligence (GenAI) dalam pengembangan perangkat lunak terus meluas, tetapi evaluasi kode yang dihasilkan masih berfokus pada kebenaran fungsional. Kode yang lulus uji dapat tetap sulit dipelihara atau mengandung celah keamanan. Penelitian ini bertujuan membandingkan kualitas kode dari tiga paradigma interaksi GenAI, yaitu Conversational (ChatGPT-4), Contextual (GitHub Copilot), dan Agentic (Google Antigravity), pada dimensi Maintainability, Security, dan Reliability menurut ISO/IEC 25010:2023. Eksperimen terkontrol yang mengikuti standar empiris ACM SIGSOFT dilakukan pada 540 artefak kode Python dari dua korpus, yaitu tugas algoritmik LeetCode dan tugas rekayasa praktis, masing-masing dengan tiga tingkat kesulitan dan tiga iterasi. Kualitas diukur dengan Cyclomatic Complexity (CC), Maintainability Index (MI), temuan keamanan berkategori High dari Static Application Security Testing (SAST), dan Generation Failure Rate (GFR), lalu dibandingkan dengan ambang kualitas yang diturunkan dari ISO/IEC 25010:2023. Hasilnya menunjukkan bahwa perbedaan signifikan antarparadigma hanya ditemukan pada MI. Paradigma Agentic memperoleh MI tertinggi, tetapi keunggulan ini terutama berasal dari banyaknya komentar. Jika komponen komentar dikeluarkan dari perhitungan, kode Agentic pada tugas praktis justru memperoleh MI terendah karena ukurannya jauh lebih besar daripada paradigma lain. Kompleksitas kode, keandalan generasi, dan proporsi temuan keamanan tidak berbeda signifikan antarparadigma. Kegagalan generasi berada di bawah 5%, dan sekitar 20% artefak tugas praktis memuat temuan keamanan berkategori High pada ketiga paradigma. Namun, hanya 13,33% hingga 60,00% artefak yang memenuhi seluruh ambang kualitas. Temuan ini menunjukkan bahwa pemilihan paradigma tidak dapat menggantikan analisis statis dan tinjauan keamanan setelah kode dihasilkan.
=======================================================================================================================================
Generative Artificial Intelligence (GenAI) is now widely adopted in software development, but the evaluation of the code it produces still focuses on functional correctness. Code that passes its tests can be hard to maintain or contain security weaknesses. This study compares the code quality of three GenAI interaction paradigms, namely Conversational (ChatGPT-4), Contextual (GitHub Copilot), and Agentic (Google Antigravity), on the Maintainability, Security, and Reliability characteristics of ISO/IEC 25010:2023. A controlled experiment following the ACM SIGSOFT empirical standards was carried out on 540 Python code artefacts from two corpora, LeetCode algorithmic tasks and practical engineering tasks, each covering three difficulty levels and three iterations. Quality was measured with Cyclomatic Complexity (CC), Maintainability Index (MI), high-severity findings from Static Application Security Testing (SAST), and Generation Failure Rate (GFR), and the results were compared with quality thresholds derived from ISO/IEC 25010:2023. The results show that significant differences between paradigms appear only in MI. The Agentic paradigm achieves the highest MI, but this advantage comes mainly from its large number of comments. When the comment component is removed from the calculation, Agentic code on practical tasks obtains the lowest MI, because it is considerably larger than the code of the other paradigms. Code complexity, generation reliability, and the share of security findings do not differ significantly across paradigms. Generation failures stay below 5%, and about 20% of the practical-task artefacts contain high-severity security findings in all three paradigms. Only 13.33% to 60.00% of the artefacts meet every quality threshold. These findings show that the choice of paradigm cannot replace static analysis and security review after code generation.

Item Type: Thesis (Masters)
Uncontrolled Keywords: Evaluasi Empiris, Generative AI, ISO/IEC 25010:2023, Kualitas Kode Statis, Technical Debt, Empirical Evaluation, Static Code Quality
Subjects: Q Science > QA Mathematics > QA76.758 Software engineering
Divisions: Faculty of Intelligent Electrical and Informatics Technology (ELECTICS) > Informatics Engineering > 55101-(S2) Master Thesis
Depositing User: Amilia Fatimatul Hamidah
Date Deposited: 16 Nov 2026 08:44
Last Modified: 16 Nov 2026 08:44
URI: http://repository.its.ac.id/id/eprint/146064

Actions (login required)

View Item View Item