mlsanityData to 7 Oct 2026

StaQC: A Systematically Mined Question-Code Dataset from Stack Overflow

arXiv 1803.09371 ↗First posted 26 Mar 2018cs.CLcited by 30

Not on the map. Why?

Abstract (arXiv)

Stack Overflow (SO) has been a great source of natural language questions and their code solutions (i.e., question-code pairs), which are critical for many tasks including code retrieval and annotation. In most existing research, question-code pairs were collected heuristically and tend to have low quality. In this paper, we investigate a new problem of systematically mining question-code pairs from Stack Overflow (in contrast to heuristically collecting them). It is formulated as predicting whether or not a code snippet is a standalone solution to a question. We propose a novel Bi-View Hierarchical Neural Network which can capture both the programming content and the textual context of a code snippet (i.e., two views) to make a prediction. On two manually annotated datasets in Python and SQL domain, our framework substantially outperforms heuristic methods with at least 15% higher F1 and accuracy. Furthermore, we present StaQC (Stack Overflow Question-Code pairs), the largest dataset to date of ~148K Python and ~120K SQL question-code pairs, automatically mined from SO using our framework. Under various case studies, we demonstrate that StaQC can greatly help develop data-hungry models for associating natural language with programming language.

Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). First posted on arXiv 26 Mar 2018.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 10; 2022: 6; 2023: 6; 2024: 5; 2025: 2; 2026: 1.

30 papers.

Sort:

By area:

  1. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  2. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 183
  3. 2021CoSQA: 20,000+ Web Queries for Code Search and Question Answeringcited by 74
  4. 2022MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languagescited by 41
  5. 2022On the Importance of Building High-quality Training Datasets for Neural Code Searchcited by 30
  6. 2021CodeTrans: Towards Cracking the Language of Silicon's Code Through Self-Supervised Deep Learning and High Performance Computingcited by 28
  7. 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
  8. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  9. 2022CodeRetriever: Unimodal and Bimodal Contrastive Learning for Code Searchcited by 21
  10. 2025SWE-SQL: Illuminating LLM Pathways to Solve User SQL Issues in Real-World Applicationscited by 15
  11. 2024VersiCode: Towards Version-controllable Code Generationcited by 14
  12. 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Searchcited by 12
18 more
  1. 2022CodeQueries: A Dataset of Semantic Queries over Codecited by 11
  2. 2024CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agentscited by 11
  3. 2021Reading StackOverflow Encourages Cheating: Adding Question Text Improves Extractive Code Generationcited by 8
  4. 2021Code Generation from Natural Language with Less Prior and More Monolingual Datacited by 6
  5. 2021Learning to Describe Solutions for Bug Reports Based on Developer Discussionscited by 5
  6. 2023MPI-rical: Data-Driven MPI Distributed Parallelism Assistance with Transformerscited by 5
  7. 2023Noisy Pair Corrector for Dense Retrievalcited by 5
  8. 2021Natural Language-Guided Programmingcited by 4
  9. 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspectivecited by 3
  10. 2023Neural Machine Translation for Code Generationcited by 3
  11. 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
  12. 2022JEMMA: An Extensible Java Dataset for ML4Code Applicationscited by 2
  13. 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Codecited by 1
  14. 2024Refining Joint Text and Source Code Embeddings for Retrieval Task with Parameter-Efficient Fine-Tuningcited by 1
  15. 2021Teach me how to Label: Labeling Functions from Natural Language with Text-to-text Transformerscited by 0
  16. 2021Text Classification for Task-based Source Code Related Questionscited by 0
  17. 2023A Machine Learning Approach Towards SKILL Code Autocompletioncited by 0
  18. 2026A Hybrid LTR-based System via Social Context Embedding for Recommending Solutions of Software Bugs in Developer Communitiescited by 0