Papers › Fine-Tuning Large Language Models for Answering Programming Questions with Code Snippets

Fine-Tuning Large Language Models for Answering Programming Questions with Code Snippets

26 Jun 2023ICCS: International Conference on Computational Science 2023 6archive 2025-07-28

Vadim Lomshakov, Sergey Kovalchuk, Maxim Omelchenko, Sergey Nikolenko, Artem Aliev

We study the ability of pretrained large language models (LLM) to answer questions from online question answering fora such as Stack Overflow. We consider question-answer pairs where the main part of the answer consists of source code. On two benchmark datasets—CoNaLa and a newly collected dataset based on Stack Overflow—we investigate how a closed-book question answering system can be improved by fine-tuning the LLM for the downstream task, prompt engineering, and data preprocessing. We use publicly available autoregressive language models such as GPT-Neo, CodeGen, and PanGu-Coder, and after the proposed fine-tuning achieve a BLEU score of 0.4432 on the CoNaLa test set, significantly exceeding previous state of the art for this task.

PaperPDF

Code

No code repository is listed for this paper in the archive or in Syntology's graph.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Code GenerationLanguage ModellingProgram SynthesisPrompt EngineeringQuestion AnsweringText-to-Code Generation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Code Generation CoNaLa PanGu-Coder-FT-I BLEU 44.32 #1 of 14 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

CodeGenGPT-Neo

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections