Abstract
Detecting query variants—different search queries with identical user intent—is a fundamental challenge in modern search engines. Traditional methods often struggle with lexical ambiguity or high computational costs. This paper introduces "Environment Feedback" (EF), a novel approach that treats the search retriever as an environment providing signals through retrieved documents. By analyzing query-document and document-document similarities, the proposed lightweight classifier outperforms traditional text-matching and enhances the performance of large language models (LLMs) while significantly reducing latency and cost.
Introduction
In commercial search engines, users often express the same intent using different phrasing, known as query variants (e.g., "how to fix a flat" vs. "bicycle tire repair guide"). Identifying these variants is critical for query reformulation, where a system swaps a user's query for a more effective version. However, simple lexical matching fails when queries are semantically similar but intent-distinct (e.g., "New York swim" vs. "New York swimming pool"). While Large Language Models (LLMs) offer high accuracy in intent understanding, their high latency and operational costs make them impractical for real-time search requirements.
Methodology: Environment Feedback (EF)
The core innovation of this work is the use of the search retriever itself as a source of "Environment Feedback." Instead of relying solely on the textual similarity between two queries, the system evaluates how the search engine responds to each.
As illustrated in Figure 1, the framework extracts three primary types of similarity features:
- Query-Query (QQ): Standard semantic similarity between the two query strings.
- Query-Document (QD): The relevance of Query A to the documents retrieved by Query B, and vice versa. This serves as a proxy for result interchangeability.
- Document-Document (DD): The overlap and similarity between the top-$k$ results returned for both queries.
These features are processed by a lightweight Multi-Layer Perceptron (MLP) classifier. For scenarios requiring maximum precision, this EF-verifier can act as a gatekeeper for LLMs, only invoking expensive models when the fast verifier and a smaller LLM (like GPT-4o-mini) disagree.
Experimental Setup
The researchers evaluated their approach using two datasets:
- Proprietary Dataset: 100,000 expert-annotated pairs from NAVER search logs, supplemented by "co-click" data for automated scaling.
- PAWS-QQP: A public paraphrase dataset adapted for keyword-style search queries using GPT-4.
The study posits that if two queries are equivalent, their retrieval outcomes should be interchangeable. By disentangling the retrieval signal into QQ, QD, and DD components, the model can identify subtle differences in intent that purely lexical models miss.
Key Results
The inclusion of Environment Feedback significantly boosts detection performance. On the proprietary dataset, adding QD and DD features to the baseline QQ model increased accuracy from 80.33% to 83.78%.
As shown in Figure 4, the hybrid system (GPT-4o-mini + EF-Verifier) achieved an accuracy of 88.65%, surpassing even the standalone GPT-4o (88.14%) on the proprietary test set. Furthermore, this "agreement" strategy allowed for an 80% reduction in calls to the most expensive models without sacrificing performance. The approach also demonstrated strong generalization on the PAWS-QQP dataset, consistently outperforming LLM-only baselines.
Conclusion and Future Work
The "Retriever as Environment" paradigm provides a robust and efficient signal for query variant detection. While the system introduces some latency overhead due to dual retrievals, the gains in accuracy and the ability to optimize LLM usage are substantial. Future research will explore the framework's performance across different retriever architectures (dense vs. sparse) and investigate closed-loop systems where EF is used to iteratively improve the retriever itself.
Summary updated