L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Models
Authors:
Open Access
- 2 October 2024
- journal article
- research article
- Published by MIT Press in Transactions of the Association for Computational Linguistics
- Vol. 12, 1311-1329
Abstract
Recently, large language models (LLMs), especially those that are pretrained on code, have demonstrated strong capabilities in generating programs from natural language inputs. Despite promising results, there is a notable lack of a comprehensive evaluation of these models’ language-to-code generation capabilities. Existing studies often focus on specific tasks, model architectures, or learning paradigms, leading to a fragmented understanding of the overall landscape. In this work, we present L2CEval, a systematic evaluation of the language-to-code generation capabilities of LLMs on 7 tasks across the domain spectrum of semantic parsing, math reasoning, and Python programming, analyzing the factors that potentially affect their performance, such as model size, pretraining data, instruction tuning, and different prompting methods. In addition, we assess confidence calibration, and conduct human evaluations to identify typical failures across different tasks and models. L2CEval offers a comprehensive understanding of the capabilities and limitations of LLMs in language-to-code generation. We release the evaluation framework1 and all model outputs, hoping to lay the groundwork for further future research.All future evaluations (e.g., LLaMA-3, StarCoder2, etc) will be updated on the project website: https://l2c-eval.github.io/.Keywords
All Related Versions
This publication has 26 references indexed in Scilit:
- MultiPL-E: A Scalable and Polyglot Approach to Benchmarking Neural Code GenerationIEEE Transactions on Software Engineering, 2023
- Survey of Hallucination in Natural Language GenerationACM Computing Surveys, 2023
- BigCloneBench Considered Harmful for Machine Learning2022
- Task-Oriented Dialogue as Dataflow SynthesisTransactions of the Association for Computational Linguistics, 2020
- ALFRED: A Benchmark for Interpreting Grounded Instructions for Everyday Tasks2020
- A comparative survey of recent natural language interfaces for databasesThe VLDB Journal, 2019
- Learning to mine aligned code and natural language pairs from stack overflow2018
- DeepFix: Fixing Common C Language Errors by Deep LearningProceedings of the AAAI Conference on Artificial Intelligence, 2017
- Obtaining Well Calibrated Probabilities Using Bayesian BinningProceedings of the AAAI Conference on Artificial Intelligence, 2015
- Natural language interfaces to databases – an introductionNatural Language Engineering, 1995