Automated Query Reformulation for Efficient Search based on Query Logs From Stack Overflow
Not on the map. Why?
Abstract (arXiv)
As a popular Q&A site for programming, Stack Overflow is a treasure for developers. However, the amount of questions and answers on Stack Overflow make it difficult for developers to efficiently locate the information they are looking for. There are two gaps leading to poor search results: the gap between the user's intention and the textual query, and the semantic gap between the query and the post content. Therefore, developers have to constantly reformulate their queries by correcting misspelled words, adding limitations to certain programming languages or platforms, etc. As query reformulation is tedious for developers, especially for novices, we propose an automated software-specific query reformulation approach based on deep learning. With query logs provided by Stack Overflow, we construct a large-scale query reformulation corpus, including the original queries and corresponding reformulated ones. Our approach trains a Transformer model that can automatically generate candidate reformulated queries when given the user's original query. The evaluation results show that our approach outperforms five state-of-the-art baselines, and achieves a 5.6% to 33.5% boost in terms of mathitExactMatch and a 4.8% to 14.4% boost in terms of mathitGLEU.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 21 of its 82 references that are in the map. First posted on arXiv 1 Feb 2021.
Builds on
21 of 82 references.
References · 21
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2018Generating Wikipedia by Summarizing Long Sequencescited by 333
- 2019Learning Deep Transformer Models for Machine Translationcited by 309
- 2017Recent Trends in Deep Learning Based Natural Language Processingcited by 262
- 2018Constituency Parsing with a Self-Attentive Encodercited by 196
- 2018Tensor2Tensor for Neural Machine Translationcited by 85
- 2015A Hierarchical Recurrent Encoder-Decoder For Generative Context-Aware Query Suggestioncited by 68
- 2020Unblind Your Apps: Predicting Natural-Language Labels for Mobile GUI Components by Deep Learningcited by 25
9 more
- 2016GLEU Without Tuningcited by 24
- 2017Query Expansion Based on Crowd Knowledge for Code Searchcited by 18
- 2019Context Attentive Document Ranking and Query Suggestioncited by 15
- 2016A Joint Model for Word Embedding and Word Morphologycited by 14
- 2018Attention-based Hierarchical Neural Query Suggestioncited by 5
- 2018Improved Query Reformulation for Concept Location using CodeRank and Document Structurescited by 4
- 2018Effective Reformulation of Query for Code Search using Crowdsourced Knowledge and Extra-Large Data Analyticscited by 4
- 2018QUICKAR: Automatic Query Reformulation for Concept Location using Crowdsourced Knowledgecited by 3
- 2016A Term-Based Methodology for Query Reformulation Understandingcited by 1
Built on by
Citing papers per year: 2021: 1; 2022: 1; 2023: 1; 2024: 0; 2025: 1.
4 papers.
- 2022BashExplainer: Retrieval-Augmented Bash Code Comment Generation based on Fine-tuned CodeBERTcited by 9
- 2021A Systematic Review of Automated Query Reformulations in Source Code Searchcited by 2
- 2023SPICED: News Similarity Detection Dataset with Multiple Topics and Complexity Levelscited by 2
- 2025Improving Document Retrieval Coherence for Semantically Equivalent Queriescited by 0
- 2025Improving Document Retrieval Coherence for Semantically Equivalent Queries11 Aug 2025
- 2023SPICED: News Similarity Detection Dataset with Multiple Topics and Complexity Levels21 Sep 2023
- 2022BashExplainer: Retrieval-Augmented Bash Code Comment Generation based on Fine-tuned CodeBERT27 Jun 2022
- 2021A Systematic Review of Automated Query Reformulations in Source Code Search22 Aug 2021