[Paper Review] Translating Web Search Queries into Natural Language Questions
This paper proposes a machine translation-based approach to convert keyword-based web search queries into well-formed natural language questions, leveraging both statistical (SMT) and neural machine translation (NMT) models. The key contribution is a significant improvement in grammatical correctness and intent preservation using NMT, achieving 86% grammatical accuracy and 72% high intent similarity in human evaluation, outperforming SMT.
Users often query a search engine with a specific question in mind and often these queries are keywords or sub-sentential fragments. For example, if the users want to know the answer for "What's the capital of USA", they will most probably query "capital of USA" or "USA capital" or some keyword-based variation of this. For example, for the user entered query "capital of USA", the most probable question intent is "What's the capital of USA?". In this paper, we are proposing a method to generate well-formed natural language question from a given keyword-based query, which has the same question intent as the query. Conversion of keyword-based web query into a well-formed question has lots of applications, with some of them being in search engines, Community Question Answering (CQA) website and bots communication. We found a synergy between query-to-question problem with standard machine translation(MT) task. We have used both Statistical MT (SMT) and Neural MT (NMT) models to generate the questions from the query. We have observed that MT models perform well in terms of both automatic and human evaluation.
Motivation & Objective
- To address the challenge of converting grammatically incorrect, keyword-based search queries into well-formed natural language questions with the same underlying intent.
- To develop a scalable method for generating a large-scale parallel corpus of query-question pairs from web search logs.
- To improve user experience in search engines and community question answering (CQA) platforms by enabling related question suggestions and better query understanding.
- To explore the synergy between query-to-question generation and machine translation, treating it as a sequence-to-sequence translation task.
- To evaluate and compare the performance of statistical and neural machine translation models in generating fluent and intent-preserving questions.
Proposed method
- The problem is framed as a machine translation task, translating ill-formed keyword queries (source) into grammatically correct natural language questions (target), both in English.
- A parallel training corpus of 13 million query-question pairs was automatically extracted from web search logs using heuristics and filtering based on lexical overlap and syntactic similarity.
- A baseline statistical machine translation (SMT) system was implemented using the Moses toolkit, trained on the extracted parallel data.
- A neural machine translation (NMT) model was trained using an encoder-decoder architecture with bidirectional RNNs and an attention mechanism to improve sequence modeling.
- The NMT model maximizes the conditional probability $ p(q|k) $, where $ k $ is the input query and $ q $ is the generated question.
- Evaluation was conducted using BLEU scores and human evaluation on grammatical correctness and intent similarity, with test sets of 2,500 pairs each.
Experimental results
Research questions
- RQ1Can a machine translation framework effectively convert keyword-based search queries into well-formed natural language questions while preserving the original question intent?
- RQ2How does the performance of neural machine translation (NMT) compare to statistical machine translation (SMT) in generating grammatically correct and semantically aligned questions from queries?
- RQ3To what extent does the quality of automatically mined query-question pairs from search logs support effective training of NMT and SMT models?
- RQ4How do automatic metrics like BLEU correlate with human judgments of grammatical correctness and intent similarity in generated questions?
- RQ5Can the proposed method scale to real-world search engine applications such as related question suggestions and direct answer generation?
Key findings
- The NMT model achieved a BLEU score of 58.63, significantly outperforming the SMT baseline (52.49) and the identity model (19.33), indicating better lexical and syntactic alignment.
- The NMT model achieved 86% grammatical correctness in human evaluation, compared to 63% for the SMT model, demonstrating superior fluency generation.
- 72% of NMT-generated questions received a high intent similarity score (4 or 5) from human evaluators, compared to only 45% for SMT, showing better semantic preservation.
- The average query length was 5.6 words, and the average question length was 8.5 words, with 85% of questions being of 'what', 'how', 'is', or 'who' type.
- The identity model baseline scored 19.33 BLEU, highlighting that lexical overlap between queries and questions is substantial, making the task non-trivial but feasible.
- The study demonstrates that query-to-question generation can be effectively modeled as a machine translation task, with NMT offering clear advantages in fluency and intent alignment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.