Leveraging Large Language Models in Code Question Answering: Baselines and Issues

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Andryushchenko, Georgy, Ivanov, Vladimir, Makharev, Vladimir, Tukhtina, Elizaveta, Valeev, Aidar
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866929576995717120
author Andryushchenko, Georgy
Ivanov, Vladimir
Makharev, Vladimir
Tukhtina, Elizaveta
Valeev, Aidar
author_facet Andryushchenko, Georgy
Ivanov, Vladimir
Makharev, Vladimir
Tukhtina, Elizaveta
Valeev, Aidar
contents Question answering over source code provides software engineers and project managers with helpful information about the implemented features of a software product. This paper presents a work devoted to using large language models for question answering over source code in Python. The proposed method for implementing a source code question answering system involves fine-tuning a large language model on a unified dataset of questions and answers for Python code. To achieve the highest quality answers, we tested various models trained on datasets preprocessed in different ways: a dataset without grammar correction, a dataset with grammar correction, and a dataset augmented with the generated summaries. The model answers were also analyzed for errors manually. We report BLEU-4, BERTScore F1, BLEURT, and Exact Match metric values, along with the conclusions from the manual error analysis. The obtained experimental results highlight the current problems of the research area, such as poor quality of the public genuine question-answering datasets. In addition, the findings include the positive effect of the grammar correction of the training data on the testing metric values. The addressed findings and issues could be important for other researchers who attempt to improve the quality of source code question answering solutions. The training and evaluation code is publicly available at https://github.com/IU-AES-AI4Code/CodeQuestionAnswering.
format Preprint
id arxiv_https___arxiv_org_abs_2411_03012
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Leveraging Large Language Models in Code Question Answering: Baselines and Issues
Andryushchenko, Georgy
Ivanov, Vladimir
Makharev, Vladimir
Tukhtina, Elizaveta
Valeev, Aidar
Computation and Language
Artificial Intelligence
Question answering over source code provides software engineers and project managers with helpful information about the implemented features of a software product. This paper presents a work devoted to using large language models for question answering over source code in Python. The proposed method for implementing a source code question answering system involves fine-tuning a large language model on a unified dataset of questions and answers for Python code. To achieve the highest quality answers, we tested various models trained on datasets preprocessed in different ways: a dataset without grammar correction, a dataset with grammar correction, and a dataset augmented with the generated summaries. The model answers were also analyzed for errors manually. We report BLEU-4, BERTScore F1, BLEURT, and Exact Match metric values, along with the conclusions from the manual error analysis. The obtained experimental results highlight the current problems of the research area, such as poor quality of the public genuine question-answering datasets. In addition, the findings include the positive effect of the grammar correction of the training data on the testing metric values. The addressed findings and issues could be important for other researchers who attempt to improve the quality of source code question answering solutions. The training and evaluation code is publicly available at https://github.com/IU-AES-AI4Code/CodeQuestionAnswering.
title Leveraging Large Language Models in Code Question Answering: Baselines and Issues
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2411.03012