Proceedings of the Annual Conference of JSAI
Online ISSN : 2758-7347
39th (2025)
Session ID : 3A6-GS-10-01
Conference information

Accelerating LLM-powered Automatic Programming with Template-based Code Generation
*Daisuke KIKUTA
Author information
CONFERENCE PROCEEDINGS FREE ACCESS

Details
Abstract

Large Language Models (LLMs) have recently shown promising advancements in automatic programming. However, most of the state-of-the-art LLMs are autoregressive models, which are limited to writing code sequentially. As a result, generating long code becomes time-consuming, and modifying a part of the generated code requires regenerating the entire code from scratch. This paper addresses these challenges by applying the concept of Template-based Code Generation (TBCG) to LLM-powered automatic programming. TBCG prepares predefined code templates and embeds specific values into placeholders to generate code with minimal manual effort. The proposed method reduces the need to repeatedly write frequent syntax elements and enables partial code modifications by having LLMs leverage such templates to generate code. In the experiment, we evaluate the proposed method on an HTML benchmark, demonstrating its effectiveness in both code generation and modification.

Content from these authors
© 2025 The Japanese Society for Artificial Intelligence
Previous article Next article
feedback
Top