Piloting Copilot, Codex, and StarCoder2: Hot Temperature, Cold Prompts, or Black Magic?
Not on the map. Why?
Abstract (arXiv)
Language models are promising solutions for tackling increasing complex problems. In software engineering, they recently gained attention in code assistants, which generate programs from a natural language task description (prompt). They have the potential to save time and effort but remain poorly understood, limiting their optimal use. In this article, we investigate the impact of input variations on two configurations of a language model, focusing on parameters such as task description, surrounding context, model creativity, and the number of generated solutions. We design specific operators to modify these inputs and apply them to three LLM-based code assistants (Copilot, Codex, StarCoder2) and two benchmarks representing algorithmic problems (HumanEval, LeetCode). Our study examines whether these variations significantly affect program quality and how these effects generalize across models. Our results show that varying input parameters can greatly improve performance, achieving up to 79.27% success in one-shot generation compared to 22.44% for Codex and 31.1% for Copilot in default settings. Actioning this potential in practice is challenging due to the complex interplay in our study - the optimal settings for temperature, prompt, and number of generated solutions vary by problem. Reproducing our study with StarCoder2 confirms these findings, indicating they are not model-specific. We also uncover surprising behaviors (e.g., fully removing the prompt can be effective), revealing model brittleness and areas for improvement.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). First posted on arXiv 26 Oct 2022.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2023: 6; 2024: 3; 2025: 1; 2026: 4.
14 papers.
Sort:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Next-Step Hint Generation for Introductory Programming Using Large Language Modelscited by 20
- 2023HPC-Coder: Modeling Parallel Programs using Large Language Modelscited by 11
- 2023Enhancing Automated Program Repair through Fine-tuning and Prompt Engineeringcited by 10
- 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Codecited by 9
- 2023Numeracy from Literacy: Data Science as an Emergent Skill from Large Language Modelscited by 8
- 2024Dynamic Intelligence Assessment: Benchmarking LLMs on the Road to AGI with a Focus on Model Confidencecited by 5
- 2024Substance Beats Style: Why Beginning Students Fail to Code with LLMscited by 5
- 2024GitHub Copilot: the perfect Code compLeeter?cited by 4
- 2026Automating Database-Native Function Code Synthesis with LLMscited by 2
- 2026AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptationcited by 1
- 2026Unlocking LLM Code Correction with Iterative Feedback Loopscited by 1
- 2026Unlocking LLM Code Correction with Iterative Feedback Loops16 Jun 2026
- 2026Automating Database-Native Function Code Synthesis with LLMs2 Apr 2026
- 2026Evaluating the Use of LLMs for Automated DOM-Level Resolution of Web Performance Issues9 Jan 2026
- 2026AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptation8 Jan 2026
- 2025Unify and Triumph: Polyglot, Diverse, and Self-Consistent Generation of Unit Tests with LLMs20 Mar 2025
- 2024Dynamic Intelligence Assessment: Benchmarking LLMs on the Road to AGI with a Focus on Model Confidence20 Oct 2024
- 2024Substance Beats Style: Why Beginning Students Fail to Code with LLMs15 Oct 2024
- 2024GitHub Copilot: the perfect Code compLeeter?17 Jun 2024
- 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Code22 Dec 2023
- 2023Next-Step Hint Generation for Introductory Programming Using Large Language Models3 Dec 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023HPC-Coder: Modeling Parallel Programs using Large Language Models29 Jun 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Next-Step Hint Generation for Introductory Programming Using Large Language Modelscited by 20
- 2023HPC-Coder: Modeling Parallel Programs using Large Language Modelscited by 11
- 2023Enhancing Automated Program Repair through Fine-tuning and Prompt Engineeringcited by 10
- 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Codecited by 9
- 2023Numeracy from Literacy: Data Science as an Emergent Skill from Large Language Modelscited by 8
- 2024Dynamic Intelligence Assessment: Benchmarking LLMs on the Road to AGI with a Focus on Model Confidencecited by 5
- 2024Substance Beats Style: Why Beginning Students Fail to Code with LLMscited by 5
- 2024GitHub Copilot: the perfect Code compLeeter?cited by 4
- 2026Automating Database-Native Function Code Synthesis with LLMscited by 2
- 2026AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptationcited by 1
- 2026Unlocking LLM Code Correction with Iterative Feedback Loopscited by 1
12 most cited of 14 All 14 (JSON)
- 2026Unlocking LLM Code Correction with Iterative Feedback Loops16 Jun 2026
- 2026Automating Database-Native Function Code Synthesis with LLMs2 Apr 2026
- 2026Evaluating the Use of LLMs for Automated DOM-Level Resolution of Web Performance Issues9 Jan 2026
- 2026AdaptEval: A Benchmark for Evaluating Large Language Models on Code Snippet Adaptation8 Jan 2026
- 2025Unify and Triumph: Polyglot, Diverse, and Self-Consistent Generation of Unit Tests with LLMs20 Mar 2025
- 2024Dynamic Intelligence Assessment: Benchmarking LLMs on the Road to AGI with a Focus on Model Confidence20 Oct 2024
- 2024Substance Beats Style: Why Beginning Students Fail to Code with LLMs15 Oct 2024
- 2024GitHub Copilot: the perfect Code compLeeter?17 Jun 2024
- 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Code22 Dec 2023
- 2023Next-Step Hint Generation for Introductory Programming Using Large Language Models3 Dec 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023HPC-Coder: Modeling Parallel Programs using Large Language Models29 Jun 2023
12 newest of 14 All 14 (JSON)