Low-Cost Language Models: Survey and Performance Evaluation on Python Code Generation
Jessica L\'opez Espejel, Mahaman Sanoussi Yahaya Alassan and, Merieme Bouhandi, Walid Dahhane, El Hassane Ettifouri

TL;DR
This paper surveys low-cost language models for Python code generation, evaluates their performance, introduces a new dataset, and proposes a Chain-of-Thought prompting strategy to enhance reasoning and code quality.
Contribution
It provides a comprehensive evaluation of resource-efficient models, introduces a new dataset of programming problems, and proposes a prompting strategy to improve code generation quality.
Findings
Some low-cost models achieve competitive results with larger models.
The Chain-of-Thought prompting improves model reasoning and code quality.
The new dataset extends existing benchmarks for Python code generation.
Abstract
Large Language Models (LLMs) have become a popular choice for many Natural Language Processing (NLP) tasks due to their versatility and ability to produce high-quality results. Specifically, they are increasingly used for automatic code generation to help developers tackle repetitive coding tasks. However, LLMs' substantial computational and memory requirements often make them inaccessible to users with limited resources. This paper focuses on very low-cost models which offer a more accessible alternative to resource-intensive LLMs. We notably: (1) propose a thorough semi-manual evaluation of their performance in generating Python code, (2) introduce a Chain-of-Thought (CoT) prompting strategy to improve model reasoning and code quality, and (3) propose a new dataset of 60 programming problems, with varied difficulty levels, designed to extend existing benchmarks like HumanEval and…
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
TopicsComputational Physics and Python Applications
MethodsFocus
