2021-07-07 · preprint · Software Engineering Research · en
highly citedfrom the source record
Background. Large Language Models (LLMs) are increasingly used in software engineering tasks such as code generation, bug detection, and program repair. However, their use introduces inference-time costs that are rarely considered together with functional performance, especially in debugging and repair workflows where models may be invoked repeatedly. Aim. This study evaluates the correctness-energy trade-offs of LLMs across model scales in Python bug-fixing tasks. We examine how model size relates to code correctness, inference time, and GPU energy consumption. Method. We conduct a controlled empirical evaluation of six open-source code-oriented LLMs, ranging from 1.5B to 15B parameters, on 40 real-world Python bugs from the BugsInPy benchmark. Each model is executed multiple times per task under a consistent hardware and prompting setup. Repair performance is measured using Pass@k and test-suite outcomes, while computational cost is measured using inference time and GPU energy consumption. We also analyze generated outputs to identify recurring failure patterns. Results. Increasing model size substantially raised computational cost without consistently improving correctness. The smallest model, Qwen 1.5B, achieved the best overall performance, with a Pass@1 score of 43% and an average runtime of 38.7 seconds. In contrast, StarCoder 15B achieved a Pass@1 score of 23%, required 96.7 seconds, and consumed approximately 7 times more energy per inference while solving fewer tasks. Higher success rates were also observed in web-related projects, suggesting that structurally localized bugs are more effectively handled by current models. Conclusion. On the evaluated localized Python bug-fixing tasks, smaller LLMs offered a more favorable trade-off between correctness, inference time, and energy consumption. These results suggest that scaling model size does not automatically lead to more efficient LLM-based repair, and that inference cost should be considered alongside functional correctness when comparing models.
Claims drawn from cited facts, not live model generation.
This work examines code translation across multiple programming languages within software engineering research, but it is a preprint, so its findings have not yet undergone peer review and should be weighted accordingly.
3 cited facts
A small team of 3 researchers authored this work.
1 cited fact
The entity has 1433 citations and is highly cited, meaning it has already become an established reference point in its field rather than an early signal. It references 96 works, showing the scope of its source base.
3 cited facts
A Direction-Aware Study of LLM-Based Code Translation Across Eight Programming Languages is a preprint, focusing on Software Engineering Research, published in 2021.
A Direction-Aware Study of LLM-Based Code Translation Across Eight Programming Languages has 1,433 citations in our record, placing it among the highly cited works we track.
Our record lists 3 authors for A Direction-Aware Study of LLM-Based Code Translation Across Eight Programming Languages and references 96 other works. Author names aren't in our data yet — the source link on the page lists the full byline.
Source facts, citations, and refresh stamp for this record.
Sources: openalex_works