Revisiting the Impact of Pursuing Modularity for Code Generation
- Authors
- Kang, Deokyeong; Seo, Ki Jung; Kim, Taeuk
- Issue Date
- Nov-2024
- Publisher
- Association for Computational Linguistics (ACL)
- Citation
- EMNLP 2024 - 2024 Conference on Empirical Methods in Natural Language Processing, Findings of EMNLP 2024, pp 11561 - 11571
- Pages
- 11
- Indexed
- SCOPUS
- Journal Title
- EMNLP 2024 - 2024 Conference on Empirical Methods in Natural Language Processing, Findings of EMNLP 2024
- Start Page
- 11561
- End Page
- 11571
- URI
- https://scholarworks.bwise.kr/hanyang/handle/2021.sw.hanyang/206735
- DOI
- 10.48550/arXiv.2407.11406
- Abstract
- Modular programming, which aims to construct the final program by integrating smaller, independent building blocks, has been regarded as a desirable practice in software development. However, with the rise of recent code generation agents built upon large language models (LLMs), a question emerges: is this traditional practice equally effective for these new tools? In this work, we assess the impact of modularity in code generation by introducing a novel metric for its quantitative measurement. Surprisingly, unlike conventional wisdom on the topic, we find that modularity is not a core factor for improving the performance of code generation models. We also explore potential explanations for why LLMs do not exhibit a preference for modular code compared to non-modular code. Our code is available at https://github.com/HYU-NLP/Revisiting-Modularity.
- Files in This Item
-
Go to Link
- Appears in
Collections - 서울 공과대학 > 서울 컴퓨터소프트웨어학부 > 1. Journal Articles

Items in ScholarWorks are protected by copyright, with all rights reserved, unless otherwise indicated.