Reading StackOverflow Encourages Cheating: Adding Question Text Improves Extractive Code Generation
Not on the map. Why?
Abstract (arXiv)
Answering a programming question using only its title is difficult as salient contextual information is omitted. Based on this observation, we present a corpus of over 40,000 StackOverflow question texts to be used in conjunction with their corresponding intents from the CoNaLa dataset (Yin et al., 2018). Using both the intent and question body, we use BART to establish a baseline BLEU score of 34.35 for this new task. We find further improvements of 2.8% by combining the mined CoNaLa data with the labeled data to achieve a 35.32 BLEU score. We evaluate prior state-of-the-art CoNaLa models with this additional data and find that our proposed method of using the body and mined data beats the BLEU score of the prior state-of-the-art by 71.96%. Finally, we perform ablations to demonstrate that BART is an unsupervised multimodal learner and examine its extractive behavior. The code and data can be found https://github.com/gabeorlanski/stackoverflow-encourages-cheating.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 27 of its 37 references that are in the map. First posted on arXiv 8 Jun 2021.
Builds on
27 of 37 references.
References · 27
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
- 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
- 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 162
- 2018Coarse-to-Fine Decoding for Neural Semantic Parsingcited by 110
15 more
- 2018Mapping Language to Code in Programmatic Contextcited by 104
- 2017Abstract Syntax Networks for Code Generation and Semantic Parsingcited by 92
- 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
- 2019A Comprehensive Exploration on WikiSQL with Table-Aware Word Contextualizationcited by 88
- 2016Latent Predictor Networks for Code Generationcited by 73
- 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
- 2019TreeGen: A Tree-Based Transformer Architecture for Code Generationcited by 58
- 2019JuICe: A Large Scale Distantly Supervised Dataset for Open Domain Context-based Code Generationcited by 49
- 2018Retrieval-Based Neural Code Generationcited by 41
- 2021In-IDE Code Generation from Natural Language: Promise and Challengescited by 41
- 2020Code and Named Entity Recognition in StackOverflowcited by 39
- 2020Incorporating External Knowledge through Pre-training for Natural Language to Code Generationcited by 36
- 2018StaQC: A Systematically Mined Question-Code Dataset from Stack Overflowcited by 30
- 2018Learning to Map Context-Dependent Sentences to Executable Formal Queriescited by 23
- 2021Generating Code with the Help of Retrieved Template Functions and Stack Overflow Answerscited by 3
Built on by
Citing papers per year: 2021: 1; 2022: 4; 2023: 2; 2024: 0; 2025: 1.
8 papers.
- 2023Measuring The Impact Of Programming Language Distributioncited by 32
- 2023CloudEval-YAML: A Practical Benchmark for Cloud Configuration Generationcited by 8
- 2022The impact of lexical and grammatical processing on generating code from natural languagecited by 6
- 2021Natural Language-Guided Programmingcited by 4
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspectivecited by 3
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
- 2022Evaluating Prompts Across Multiple Choice Tasks In a Zero-Shot Settingcited by 1
- 2022Evaluating How Fine-tuning on Bimodal Data Effects Code Generationcited by 1
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025
- 2023CloudEval-YAML: A Practical Benchmark for Cloud Configuration Generation10 Nov 2023
- 2023Measuring The Impact Of Programming Language Distribution3 Feb 2023
- 2022Evaluating How Fine-tuning on Bimodal Data Effects Code Generation15 Nov 2022
- 2022Evaluating Prompts Across Multiple Choice Tasks In a Zero-Shot Setting29 Mar 2022
- 2022The impact of lexical and grammatical processing on generating code from natural language28 Feb 2022
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspective10 Feb 2022
- 2021Natural Language-Guided Programming11 Aug 2021