Strategic Optimization and Challenges of Large Language Models in Object-Oriented Programming
Zinan Wang

TL;DR
This paper investigates how different levels of contextual information in prompts affect large language models' performance in object-oriented code generation, emphasizing cost-effectiveness and model selection based on task coupling.
Contribution
It introduces the concept of prompt-token cost-effectiveness and analyzes how prompt content and model choice impact code generation quality and efficiency.
Findings
Method invocation details improve cost-effectiveness.
Larger models do not always outperform smaller ones.
Task coupling influences model performance and suitability.
Abstract
In the area of code generation research, the emphasis has transitioned from crafting individual functions to developing class-level method code that integrates contextual information. This shift has brought several benchmarks such as ClassEval and CoderEval, which consider class-level contexts. Nevertheless, the influence of specific contextual factors at the method level remains less explored. This research focused on method-level code generation within the Object-Oriented Programming (OOP) framework. Based on CoderEval, we devised experiments that varied the extent of contextual information in the prompts, ranging from method-specific to project-wide details. We introduced the innovative metric of "Prompt-Token Cost-Effectiveness" to evaluate the economic viability of incorporating additional contextual layers. Our findings indicate that prompts enriched with method invocation…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsModel-Driven Software Engineering Techniques · Distributed and Parallel Computing Systems · Service-Oriented Architecture and Web Services
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · 15 Ways to Contact How can i speak to someone at Delta Airlines · Attention Is All You Need · Adam · Layer Normalization · Weight Decay · Position-Wise Feed-Forward Layer · Dense Connections · Attention Dropout · Cosine Annealing
