Leveraging Large Language Models in Code Question Answering: Baselines and Issues
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 21 of its 25 references that are in the map. First posted on arXiv 5 Nov 2024.
Builds on
21 of 25 references.
References · 21
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2020BLEURT: Learning Robust Metrics for Text Generationcited by 1,196
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2023StarCoder: may the source be with you!cited by 790
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
9 more
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
- 2020A Survey of Evaluation Metrics Used for NLG Systemscited by 164
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 99
- 2024RepoAgent: An LLM-Powered Open-Source Framework for Repository-level Code Documentation Generationcited by 69
- 2017A parallel corpus of Python functions and documentation strings for automated code documentation and code generationcited by 56
- 2022SPT-Code: Sequence-to-Sequence Pre-Training for Learning Source Code Representationscited by 35
- 2021CodeQA: A Question Answering Dataset for Source Code Comprehensioncited by 30
- 2022CodeQueries: A Dataset of Semantic Queries over Codecited by 11
- 2022CS1QA: A Dataset for Assisting Code-based Question Answering in an Introductory Programming Coursecited by 11
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2025Context-Aware Hierarchical Merging for Long Document Summarizationcited by 9
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Modelscited by 5
- 2026Deep Agentic Search for Repository-Level Code Question Answering: An Empirical Studycited by 1
- 2026Autoresearch with Coding Agents: Generalizers and Metric-Maximizers on Quran Recitation Datacited by 0
- 2026RH-RAG: Trustworthy Long-Form Generation for Privacy-Constrained Settingscited by 0
- 2026DeepRepoQA: Code Repository Question Answering with Deep Agent Explorationcited by 0
- 2026DeepRepoQA: Code Repository Question Answering with Deep Agent Exploration25 Aug 2026
- 2026Deep Agentic Search for Repository-Level Code Question Answering: An Empirical Study2 Aug 2026
- 2026RH-RAG: Trustworthy Long-Form Generation for Privacy-Constrained Settings2 Aug 2026
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Models28 Jul 2026
- 2026Autoresearch with Coding Agents: Generalizers and Metric-Maximizers on Quran Recitation Data20 Jul 2026
- 2025Context-Aware Hierarchical Merging for Long Document Summarization3 Feb 2025