Advancing GenAI Assisted Programming--A Comparative Study on Prompt Efficiency and Code Quality Between GPT-4 and GLM-4
Not on the map. Why?
Abstract (arXiv)
This study aims to explore the best practices for utilizing GenAI as a programming tool, through a comparative analysis between GPT-4 and GLM-4. By evaluating prompting strategies at different levels of complexity, we identify that simplest and straightforward prompting strategy yields best code generation results. Additionally, adding a CoT-like preliminary confirmation step would further increase the success rate. Our results reveal that while GPT-4 marginally outperforms GLM-4, the difference is minimal for average users. In our simplified evaluation model, we see a remarkable 30 to 100-fold increase in code generation efficiency over traditional coding norms. Our GenAI Coding Workshop highlights the effectiveness and accessibility of the prompting methodology developed in this study. We observe that GenAI-assisted coding would trigger a paradigm shift in programming landscape, which necessitates developers to take on new roles revolving around supervising and guiding GenAI, and to focus more on setting high-level objectives and engaging more towards innovation.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 8 of its 13 references that are in the map. First posted on arXiv 20 Feb 2024.
Builds on
8 of 13 references.
References · 8
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
- 2023The Impact of AI on Developer Productivity: Evidence from GitHub Copilotcited by 264
- 2023GPTs are GPTs: An Early Look at the Labor Market Impact Potential of Large Language Modelscited by 174
- 2023ChatGPT Prompt Patterns for Improving Code Quality, Refactoring, Requirements Elicitation, and Software Designcited by 66
- 2023CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained Modelscited by 28
- 2022Better Together? An Evaluation of AI-Supported Code Translationcited by 15
- 2023Human AI Collaboration in Software Engineering: Lessons Learned from a Hands On Workshopcited by 6
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 1.
3 papers.
- 2024Graph-based Unsupervised Disentangled Representation Learning via Multimodal Large Language Modelscited by 9
- 2025Translating Multimodal AI into Real-World Inspection: TEMAI Evaluation Framework and Pathways for Implementationcited by 1
- 2026From Horizontal Layering to Vertical Integration: A Comparative Study of the AI-Driven Software Development Paradigmcited by 0
- 2026From Horizontal Layering to Vertical Integration: A Comparative Study of the AI-Driven Software Development Paradigm30 Jan 2026
- 2025Translating Multimodal AI into Real-World Inspection: TEMAI Evaluation Framework and Pathways for Implementation31 Mar 2025
- 2024Graph-based Unsupervised Disentangled Representation Learning via Multimodal Large Language Models26 Jul 2024