Abstract
This paper presents a framework for bridging the gap between keyword-based search queries and the natural language structure of Community-based Question Answering (cQA) platforms. By mining search engine logs to induce query-to-question templates, the authors demonstrate a method to automatically "humanize" queries, significantly improving retrieval precision in cQA archives compared to traditional keyword-based search.
Introduction
A fundamental "impedance mismatch" exists between how users search and how community knowledge bases are organized. Search engine users typically enter short, fragmented keywords (e.g., "Great Wall tickets"), whereas cQA sites like Baidu Zhidao or Yahoo! Answers are built around intent-rich, natural language questions (e.g., "How much does a ticket to the Great Wall cost?"). Because queries are often underspecified, searching cQA archives with raw keywords often yields irrelevant results. This research aims to bridge this gap by automatically transforming queries into well-formed questions.
Methodology
The authors propose a two-stage framework to facilitate this transformation:
1. Template Acquisition
The system mines search engine query logs for instances where a user entered a query ($Qr$) and subsequently clicked on a specific question title ($Qs$) from a cQA site. By ensuring the query terms are contained within the question, the system induces templates. For example, if the query is "故宫 门票" (Imperial Palace ticket) and the clicked question is "故宫 门票 多少 钱" (How much is the Imperial Palace ticket?), the system generates a template: [x1] [x2] 多少 钱 (How much is the [x2] of [x1]).
2. Question Generation and Ranking
When a new query arrives, the system identifies similar queries in its database using distributional similarity of context words. It then applies the templates associated with those similar queries to the new input.
Multiple candidate questions are generated and ranked using a scoring function that balances:
- Template Likelihood: How well the template fits the specific query based on historical data.
- Fluency: A tri-gram language model ensures the resulting question sounds natural and grammatical.
Datasets and Evaluation
The model was trained using a massive dataset of Baidu Query Logs, mining over 15 million query-to-question pairs to extract 18,929 high-quality templates. Evaluation was conducted on a test set of 1,000 short queries (3 terms or fewer) randomly sampled across various domains such as health, travel, and food.
Key Results
The proposed method, Query-to-Question Generation (QtQG), demonstrated a significant improvement over the baseline (RcQA), which directly retrieved questions using a standard site search engine.
As shown in the results table, QtQG achieved a Precision@1 of 67%, compared to 47% for the baseline. Furthermore, the system maintained high coverage, generating at least one valid question for 76.5% of the test queries. In practical search enhancement tests, human annotators found that the top search result improved in 41.5% of cases where the original keyword search was unsatisfactory.
Discussion and Limitations
The core innovation of this work lies in leveraging the "wisdom of the crowd" hidden in search logs—using clicks as a signal that a specific question successfully satisfied a keyword intent. However, the method faces challenges with single-word queries (e.g., "Apple"), where the search space for templates is either too broad or too restricted. While the logic is language-agnostic, the current evaluation is focused on Chinese data. Future work involves scaling to even larger query logs to improve coverage for "long-tail" queries and single-word inputs.
Summary updated