CodeQA: A Question Answering Dataset for Source Code Comprehension
Not on the map. Why?
Abstract (arXiv)
We propose CodeQA, a free-form question answering dataset for the purpose of source code comprehension: given a code snippet and a question, a textual answer is required to be generated. CodeQA contains a Java dataset with 119,778 question-answer pairs and a Python dataset with 70,085 question-answer pairs. To obtain natural and faithful questions and answers, we implement syntactic rules and semantic analysis to transform code comments into question-answer pairs. We present the construction process and conduct systematic analysis of our dataset. Experiment results achieved by several neural baselines on our dataset are shown and discussed. While research on question-answering and machine reading comprehension develops rapidly, few prior work has drawn attention to code question answering. This new dataset can serve as a useful research benchmark for source code comprehension.
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 34 of its 53 references that are in the map. First posted on arXiv 17 Sep 2021.
Builds on
34 of 53 references.
References · 34
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2018Deep contextualized word representationscited by 2,285
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2015Teaching Machines to Read and Comprehendcited by 1,039
22 more
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 851
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2018AllenNLP: A Deep Semantic Natural Language Processing Platformcited by 347
- 2016NewsQA: A Machine Comprehension Datasetcited by 330
- 2020LUKE: Deep Contextualized Entity Representations with Entity-aware Self-attentioncited by 326
- 2016Key-Value Memory Networks for Directly Reading Documentscited by 223
- 2019Neural Text Summarization: A Critical Evaluationcited by 189
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
- 2018emrQA: A Large Corpus for Question Answering on Electronic Medical Recordscited by 134
- 2020A Transformer-based Approach for Source Code Summarizationcited by 129
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 99
- 2020Improved Code Summarization via a Graph Neural Networkcited by 79
- 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 76
- 2021Language-Agnostic Representation Learning of Source Code from Structure and Contextcited by 63
- 2019Code Generation as a Dual Task of Code Summarizationcited by 62
- 2020EXAMS: A Multi-Subject High School Examinations Dataset for Cross-Lingual and Multilingual Question Answeringcited by 60
- 2017A parallel corpus of Python functions and documentation strings for automated code documentation and code generationcited by 56
- 2019Automatic Source Code Summarization with Extended Tree-LSTMcited by 28
- 2019Tree-Transformer: A Transformer-Based Method for Correction of Tree-Structured Datacited by 20
- 2020Syn-QG: Syntactic and Shallow Semantic Rules for Question Generationcited by 12
- 2019A Survey on Neural Machine Reading Comprehensioncited by 8
- 2021A Neural Question Answering System for Basic Questions about Subroutinescited by 5
Built on by
Citing papers per year: 2022: 4; 2023: 4; 2024: 7; 2025: 6; 2026: 9.
30 papers.
Sort:
By area:
- 2023Qwen Technical Reportcited by 3,273
- 2023Document Understanding Dataset and Evaluation (DUDE)cited by 132
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?cited by 37
- 2024Retraining-Free Merging of Sparse MoE via Hierarchical Clusteringcited by 31
- 2024NoFunEval: Funny How Code LMs Falter on Requirements Beyond Functional Correctnesscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2024UniCoder: Scaling Code Large Language Model via Universal Codecited by 18
- 2024CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding & Reasoning Capabilities of CodeLLMscited by 18
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Searchcited by 12
- 2022CodeQueries: A Dataset of Semantic Queries over Codecited by 11
18 more
- 2022CS1QA: A Dataset for Assisting Code-based Question Answering in an Introductory Programming Coursecited by 11
- 2024CodeRepoQA: A Large-scale Benchmark for Software Engineering Question Answeringcited by 11
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
- 2026SWE-QA-Pro: A Representative Benchmark and Scalable Training Recipe for Repository-Level Code Understandingcited by 9
- 2024Leveraging Large Language Models in Code Question Answering: Baselines and Issuescited by 6
- 2026KOCO-BENCH: Can Large Language Models Leverage Domain Knowledge in Software Development?cited by 5
- 2025NoTeS-Bank: Benchmarking Neural Transcription and Search for Scientific Notes Understandingcited by 3
- 2022Towards Top-Down Automated Development in Limited Scopes: A Neuro-Symbolic Framework from Expressibles to Executablescited by 2
- 2022Semantic-Preserving Adversarial Code Comprehensioncited by 2
- 2026SWE-QA: A Dataset and Benchmark for Complex Code Understandingcited by 2
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Codecited by 1
- 2025Empowering RepoQA-Agent based on Reinforcement Learning Driven by Monte-carlo Tree Searchcited by 1
- 2026Lost in Transcription: How Speech-to-Text Errors Derail Code Understandingcited by 1
- 2026Neurosymbolic Repo-level Code Localizationcited by 1
- 2026Rethinking Code Review in the Age of AI: A Vision for Agentic Code Reviewcited by 1
- 2026SWE-Spot: Building Small Repo-Experts with Repository-Centric Learningcited by 0
- 2026DeepRepoQA: Code Repository Question Answering with Deep Agent Explorationcited by 0
- 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmarkcited by 0
- 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmark23 Sep 2026
- 2026DeepRepoQA: Code Repository Question Answering with Deep Agent Exploration25 Aug 2026
- 2026Rethinking Code Review in the Age of AI: A Vision for Agentic Code Review17 May 2026
- 2026SWE-QA: A Dataset and Benchmark for Complex Code Understanding27 Apr 2026
- 2026Neurosymbolic Repo-level Code Localization17 Apr 2026
- 2026SWE-QA-Pro: A Representative Benchmark and Scalable Training Recipe for Repository-Level Code Understanding17 Mar 2026
- 2026SWE-Spot: Building Small Repo-Experts with Repository-Centric Learning29 Jan 2026
- 2026Lost in Transcription: How Speech-to-Text Errors Derail Code Understanding20 Jan 2026
- 2026KOCO-BENCH: Can Large Language Models Leverage Domain Knowledge in Software Development?19 Jan 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Empowering RepoQA-Agent based on Reinforcement Learning Driven by Monte-carlo Tree Search30 Oct 2025
- 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?18 Sep 2025
18 more
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agents8 May 2025
- 2025NoTeS-Bank: Benchmarking Neural Transcription and Search for Scientific Notes Understanding12 Apr 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2024CodeRepoQA: A Large-scale Benchmark for Software Engineering Question Answering19 Dec 2024
- 2024Leveraging Large Language Models in Code Question Answering: Baselines and Issues5 Nov 2024
- 2024Retraining-Free Merging of Sparse MoE via Hierarchical Clustering11 Oct 2024
- 2024CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding & Reasoning Capabilities of CodeLLMs2 Oct 2024
- 2024UniCoder: Scaling Code Large Language Model via Universal Code24 Jun 2024
- 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Search25 Mar 2024
- 2024NoFunEval: Funny How Code LMs Falter on Requirements Beyond Functional Correctness29 Jan 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Qwen Technical Report28 Sep 2023
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Code5 Jul 2023
- 2023Document Understanding Dataset and Evaluation (DUDE)15 May 2023
- 2022CS1QA: A Dataset for Assisting Code-based Question Answering in an Introductory Programming Course26 Oct 2022
- 2022CodeQueries: A Dataset of Semantic Queries over Code17 Sep 2022
- 2022Semantic-Preserving Adversarial Code Comprehension12 Sep 2022
- 2022Towards Top-Down Automated Development in Limited Scopes: A Neuro-Symbolic Framework from Expressibles to Executables4 Sep 2022
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
- 2026SWE-QA-Pro: A Representative Benchmark and Scalable Training Recipe for Repository-Level Code Understandingcited by 9
- 2025Empowering RepoQA-Agent based on Reinforcement Learning Driven by Monte-carlo Tree Searchcited by 1
- 2026Rethinking Code Review in the Age of AI: A Vision for Agentic Code Reviewcited by 1
- 2026SWE-Spot: Building Small Repo-Experts with Repository-Centric Learningcited by 0
- 2026DeepRepoQA: Code Repository Question Answering with Deep Agent Explorationcited by 0
- 2026DeepRepoQA: Code Repository Question Answering with Deep Agent Exploration25 Aug 2026
- 2026Rethinking Code Review in the Age of AI: A Vision for Agentic Code Review17 May 2026
- 2026SWE-QA-Pro: A Representative Benchmark and Scalable Training Recipe for Repository-Level Code Understanding17 Mar 2026
- 2026SWE-Spot: Building Small Repo-Experts with Repository-Centric Learning29 Jan 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Empowering RepoQA-Agent based on Reinforcement Learning Driven by Monte-carlo Tree Search30 Oct 2025
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agents8 May 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2024CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding & Reasoning Capabilities of CodeLLMscited by 18
- 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmarkcited by 0
- 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmark23 Sep 2026
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2024CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding & Reasoning Capabilities of CodeLLMs2 Oct 2024
- 2023Qwen Technical Reportcited by 3,273
- 2023Document Understanding Dataset and Evaluation (DUDE)cited by 132
- 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?cited by 37
- 2024NoFunEval: Funny How Code LMs Falter on Requirements Beyond Functional Correctnesscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2024UniCoder: Scaling Code Large Language Model via Universal Codecited by 18
- 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Searchcited by 12
- 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
- 2024CodeRepoQA: A Large-scale Benchmark for Software Engineering Question Answeringcited by 11
- 2024Leveraging Large Language Models in Code Question Answering: Baselines and Issuescited by 6
- 2026KOCO-BENCH: Can Large Language Models Leverage Domain Knowledge in Software Development?cited by 5
12 most cited of 19 All 19 (JSON)
- 2026SWE-QA: A Dataset and Benchmark for Complex Code Understanding27 Apr 2026
- 2026Neurosymbolic Repo-level Code Localization17 Apr 2026
- 2026Lost in Transcription: How Speech-to-Text Errors Derail Code Understanding20 Jan 2026
- 2026KOCO-BENCH: Can Large Language Models Leverage Domain Knowledge in Software Development?19 Jan 2026
- 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?18 Sep 2025
- 2025NoTeS-Bank: Benchmarking Neural Transcription and Search for Scientific Notes Understanding12 Apr 2025
- 2024CodeRepoQA: A Large-scale Benchmark for Software Engineering Question Answering19 Dec 2024
- 2024Leveraging Large Language Models in Code Question Answering: Baselines and Issues5 Nov 2024
- 2024UniCoder: Scaling Code Large Language Model via Universal Code24 Jun 2024
- 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Search25 Mar 2024
- 2024NoFunEval: Funny How Code LMs Falter on Requirements Beyond Functional Correctness29 Jan 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
12 newest of 19 All 19 (JSON)