Evaluation of human and AI cooperation in pair programming on the example of CodeLlama and GPT-4
Вантажиться...
Файли
Дата
Науковий керівник
Редактор
Інші учасники
Відповідальний
Назва журналу
Номер ISSN
Назва тому
Альтернативна назва
Оцінювання співпраці людини та ШІ в парному програмуванні на прикладі CodeLlama і GPT-4
Анотація
Метою дослідження було експериментальне оцінювання ефективності взаємодії людини з великими мовними моделями штучного інтелекту під час виконання програмних завдань у форматі парного програмування. Об’єктом порівняння виступили дві моделі: GPT-4, розроблена компанією OpenAI, та CodeLlama 70B Instruct, створена корпорацією Meta на базі відкритої архітектури. Було досліджено п’ять типових сценаріїв застосування штучного інтелекту в розробці програмного забезпечення: генерацію функцій за описом, рефакторинг коду, пояснення логіки, налагодження помилок і спільне проєктування структури застосунку. У дослідженні взяли участь двадцять фахівців із різним рівнем програмістської підготовки, рівномірно розподілених на дві групи. Було встановлено, що GPT-4 перевищує CodeLlama за інтегральними показниками продуктивності, зокрема досягла 89 % успішності в генерації функцій при вищому балі якості коду (Pylint = 8,3) і пояснюваності (4,3 бала з 5). Натомість CodeLlama виявила переваги в рефакторингу, демонструючи нижчу когнітивну напруженість серед досвідчених розробників (Task Load Index = 51,3 проти 63,8) і меншу складність коду за метрикою Halstead Volume (22,6 проти 27,4). Було проаналізовано статистичну достовірність виявлених відмінностей (t (38) = 4,12; p < 0,01; F (2,14) = 5,84; p < 0,05), що підтверджує надійність емпіричних спостережень. Генеративна модель четвертого покоління виявилася більш придатною для проєктування з нуля та пояснювальних завдань, тоді як CodeLlama була ефективніша в оптимізації вже наявного коду й краще сприймалася користувачами Seniorрівня. Практичне значення проведеного дослідження полягає в формуванні обґрунтованих рекомендацій для розробників, ІТ-команд і технічних керівників щодо доцільного використання мовних моделей штучного інтелекту в робочих процесах. Результати дозволяють вибудовувати оптимальні сценарії взаємодії залежно від досвіду програміста, характеру завдань (генерація, рефакторинг, пояснення, налагодження) та очікуваних метрик продуктивності, що сприяє ефективнішому впровадженню ШІ-асистентів у середовища розробки.
The aim of the study was the experimental evaluation of the effectiveness of human interaction with large artificial intelligence language models during the completion of programming tasks in a pair programming format. The two models compared were GPT-4, developed by OpenAI, and CodeLlama 70B Instruct, created by Meta Corporation based on an open architecture. Five typical scenarios of AI use in software development were examined: function generation a description, code refactoring, logic explanation, debugging, and joint application structure design. Twenty specialists with varying levels of programming expertise participated in the study, evenly distributed into two groups. It was established that GPT-4 outperformed CodeLlama in terms of overall productivity, achieving 89% success in function generation with a higher code quality score (Pylint = 8.3) and explainability rating (4.3 out of 5). In contrast, CodeLlama showed advantages in refactoring, demonstrating lower cognitive load among experienced developers (Task Load Index = 51.3 vs 63.8) and lower code complexity according to the Halstead Volume metric (22.6 vs 27.4). The statistical significance of the identified differences was analysed (t (38) = 4.12; p < 0.01; F (2.14) = 5.84; p < 0.05), confirming the reliability of the empirical observations. The fourth-generation generative model proved more suitable for tasks involving design scratch and explanation, as CodeLlama was more effective in optimising existing code and was better received by senior-level users. The practical significance of the study lay in the development of well-grounded recommendations for developers, IT teams, and technical managers regarding the appropriate use of AI language models in workflows. The results made it possible to construct optimal interaction scenarios depending on the programmer’s experience, the nature of the tasks (generation, refactoring, explanation, debugging), and the expected performance metrics, thereby contributing to more effective implementation of AI assistants in development environments.
The aim of the study was the experimental evaluation of the effectiveness of human interaction with large artificial intelligence language models during the completion of programming tasks in a pair programming format. The two models compared were GPT-4, developed by OpenAI, and CodeLlama 70B Instruct, created by Meta Corporation based on an open architecture. Five typical scenarios of AI use in software development were examined: function generation a description, code refactoring, logic explanation, debugging, and joint application structure design. Twenty specialists with varying levels of programming expertise participated in the study, evenly distributed into two groups. It was established that GPT-4 outperformed CodeLlama in terms of overall productivity, achieving 89% success in function generation with a higher code quality score (Pylint = 8.3) and explainability rating (4.3 out of 5). In contrast, CodeLlama showed advantages in refactoring, demonstrating lower cognitive load among experienced developers (Task Load Index = 51.3 vs 63.8) and lower code complexity according to the Halstead Volume metric (22.6 vs 27.4). The statistical significance of the identified differences was analysed (t (38) = 4.12; p < 0.01; F (2.14) = 5.84; p < 0.05), confirming the reliability of the empirical observations. The fourth-generation generative model proved more suitable for tasks involving design scratch and explanation, as CodeLlama was more effective in optimising existing code and was better received by senior-level users. The practical significance of the study lay in the development of well-grounded recommendations for developers, IT teams, and technical managers regarding the appropriate use of AI language models in workflows. The results made it possible to construct optimal interaction scenarios depending on the programmer’s experience, the nature of the tasks (generation, refactoring, explanation, debugging), and the expected performance metrics, thereby contributing to more effective implementation of AI assistants in development environments.
Опис
УДК
Тип документа
Мова
ISSN
Серія, номер
ISBN
ББК
Інші ідентифікатори
Пов’язані матеріали
Спонсорська підтримка
Правовласник
Бібліографічний опис
Deineha O., Arshava O., Zhovtonizhko I. Evaluation of human and AI cooperation in pair programming on the example of CodeLlama and GPT-4 // Information Technologies and Computer Engineering. 2025. № 2 (22). Р. 47-62. URI: https://itce.vn.ua/uk/journals/t-22-2-2025/otsinyuvannya-spivpratsi-lyudini-ta-shi-v-parnomu-programuvanni-na-prikladi-codellama-i-gpt-4.
Схвалення
Рецензія
Доповнено
Цитується в
Список використаної літератури (35)
- Abbas, N., & Atwell, E. (2025). Cognitive computing with large language models for student assessment feedback. Big Data and Cognitive Computing, 9(5), article number 112. doi: 10.3390/bdcc9050112.
- American Psychological Association. (2003). Ethical principles of psychologists and code of conduct. Retrieved from https://www.apa.org/ethics/code.
- Amiri, S.M., & Islam, M.M. (2025). Enhancing Python programming education with an AI-powered code helper: Design, implementation, and impact. Software Engineering, 11(1), 1-17.
- Bai, X., Huang, S., Wei, C., & Wang, R. (2025). Collaboration between intelligent agents and large language models: A novel approach for enhancing code generation capability. Expert Systems with Applications, 269, article number 126357. doi: 10.1016/j.eswa.2024.126357.
- Dai, Z., Chen, B., Zhao, Z., Tang, X., Wu, S., Yao, C., Gao, Z., & Chen, J. (2025). Less is more: Adaptive program repair with bug localization and preference learning. Proceedings of the AAAI Conference on Artificial Intelligence, 39(1), 128-136. doi: 10.1609/aaai.v39i1.31988.
- Dong, Y., Jiang, X., Jin, Z., & Li, G. (2024). Self-collaboration code generation via ChatGPT. ACM Transactions on Software Engineering and Methodology, 33(7), article number 189. doi: 10.1145/3672459.
- ICC/ESOMAR international code. (2016). Retrieved from https://esomar.org/code-and-guidelines/icc-esomar-code.
- Fu, Y., Liang, P., LI, Z., Shahin, M., Yu, J., & Chen, J. (2025). Security weaknesses of Copilot-generated code in GitHub projects: An empirical study. ACM Transactions on Software Engineering and Methodology. doi: 10.1145/3716848.
- Godoy, W.F., Valero-Lara, P., Teranishi, K., Balaprakash, P., & Vetter, J.S. (2024). Large language model evaluation for high-performance computing software development. Concurrency and Computation: Practice and Experience, 36(26), article number e8269. doi: 10.1002/cpe.8269.
- Haque, M.A. (2025). LLMs: A game-changer for software engineers? BenchCouncil Transactions on Benchmarks, Standards and Evaluations, 5(1), article number 100204. doi: 10.1016/j.tbench.2025.100204.