mlsanityData to 7 Oct 2026

Reading StackOverflow Encourages Cheating: Adding Question Text Improves Extractive Code Generation

arXiv 2106.04447 ↗First posted 8 Jun 2021cs.CLcited by 8

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  4. 2017Decoupled Weight Decay Regularizationcited by 1,722
  5. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  6. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  7. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  8. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  9. 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
  10. 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
  11. 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 162
  12. 2018Coarse-to-Fine Decoding for Neural Semantic Parsingcited by 110
15 more
  1. 2018Mapping Language to Code in Programmatic Contextcited by 104
  2. 2017Abstract Syntax Networks for Code Generation and Semantic Parsingcited by 92
  3. 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
  4. 2019A Comprehensive Exploration on WikiSQL with Table-Aware Word Contextualizationcited by 88
  5. 2016Latent Predictor Networks for Code Generationcited by 73
  6. 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
  7. 2019TreeGen: A Tree-Based Transformer Architecture for Code Generationcited by 58
  8. 2019JuICe: A Large Scale Distantly Supervised Dataset for Open Domain Context-based Code Generationcited by 49
  9. 2018Retrieval-Based Neural Code Generationcited by 41
  10. 2021In-IDE Code Generation from Natural Language: Promise and Challengescited by 41
  11. 2020Code and Named Entity Recognition in StackOverflowcited by 39
  12. 2020Incorporating External Knowledge through Pre-training for Natural Language to Code Generationcited by 36
  13. 2018StaQC: A Systematically Mined Question-Code Dataset from Stack Overflowcited by 30
  14. 2018Learning to Map Context-Dependent Sentences to Executable Formal Queriescited by 23
  15. 2021Generating Code with the Help of Retrieved Template Functions and Stack Overflow Answerscited by 3

Built on by

Cited by year

Citing papers per year: 2021: 1; 2022: 4; 2023: 2; 2024: 0; 2025: 1.

8 papers.