arXiv · 2501.13978
Chain of Grounded Objectives: Bridging Process and Goal-oriented Prompting for Code Generation
Abstract
The use of Large Language Models (LLMs) for code generation has gained significant attention in recent years. Existing methods often aim to improve the quality of generated code by incorporating additional contextual information or guidance into input prompts. Many of these approaches adopt sequential reasoning strategies, mimicking human-like step-by-step thinking. However, such strategies may constrain flexibility, as they do not always align with the structured characteristics of programming languages. This paper introduces the Chain of Grounded Objectives (CGO), a method that embeds functional objectives into input prompts to enhance code generation. By leveraging appropriately structured objectives as input and avoiding explicit sequential procedures, CGO adapts effectively to the structured nature of programming tasks. Empirical evaluations demonstrate that CGO effectively enhances code generation, addressing limitations of existing approaches.
Explore related subjects
Keep this discovery
Sangyeop Yeo, Seung-won Hwang, Yu-Seung Ma. 2025-01-23. Chain of Grounded Objectives: Bridging Process and Goal-oriented Prompting for Code Generation. https://arxiv.org/abs/2501.13978
Cite the original work for its findings. Save a collection to share your selection of sources.