[Paper Review] An end-to-end Generative Retrieval Method for Sponsored Search Engine --Decoding Efficiently into a Closed Target Domain
This paper proposes an end-to-end generative retrieval method (EGRM) for sponsored search that uses neural machine translation to directly generate relevant keywords from queries, bypassing traditional query rewriting and relevance ranking. By integrating self-normalized training with Trie-based dynamic pruning, the method reduces inference time by over 20× while maintaining high relevance, achieving a 13.8% CPM and 15.4% CTR improvement in online A/B tests.
In this paper, we present a generative retrieval method for sponsored search engine, which uses neural machine translation (NMT) to generate keywords directly from query. This method is completely end-to-end, which skips query rewriting and relevance judging phases in traditional retrieval systems. Different from standard machine translation, the target space in the retrieval setting is a constrained closed set, where only committed keywords should be generated. We present a Trie-based pruning technique in beam search to address this problem. The biggest challenge in deploying this method into a real industrial environment is the latency impact of running the decoder. Self-normalized training coupled with Trie-based dynamic pruning dramatically reduces the inference time, yielding a speedup of more than 20 times. We also devise an mixed online-offline serving architecture to reduce the latency and CPU consumption. To encourage the NMT to generate new keywords uncovered by the existing system, training data is carefully selected. This model has been successfully applied in Baidu's commercial search engine as a supplementary retrieval branch, which has brought a remarkable revenue improvement of more than 10 percents.
Motivation & Objective
- Address the semantic gap between user queries and sponsored keywords in commercial search engines.
- Eliminate error accumulation from multi-stage retrieval pipelines involving query rewriting and relevance scoring.
- Enable efficient, real-time keyword generation within a closed, constrained domain of valid keywords.
- Improve retrieval quality and revenue by generating previously unseen, relevant keywords not captured by existing systems.
- Optimize inference speed for industrial deployment using self-normalization and mixed online-offline serving.
Proposed method
- Adopt a sequence-to-sequence NMT architecture with residual RNN encoders and decoders to map queries to keywords.
- Introduce a Trie-based pruning mechanism during beam search to restrict output to only valid, pre-approved keywords in a closed domain.
- Apply self-normalized training to stabilize and accelerate decoding by reducing the need for full normalization at inference time.
- Implement a mixed online-offline serving architecture to offload computation and reduce CPU consumption during peak traffic.
- Use a trade classifier to route queries to domain-specific prefix trees, enabling faster, targeted decoding based on query context.
- Curate training data to emphasize rare or previously unretrieved keywords, encouraging exploration of new query-keyword pairs.
Experimental results
Research questions
- RQ1Can an end-to-end generative model replace traditional multi-stage retrieval pipelines in sponsored search without sacrificing relevance?
- RQ2How can decoding be efficiently constrained to a closed set of valid keywords without compromising speed or quality?
- RQ3To what extent can self-normalized training and Trie-based pruning reduce inference latency in a real-time sponsored search system?
- RQ4Can the model generate high-quality, novel keywords not covered by existing retrieval systems, leading to measurable revenue gains?
- RQ5How does the mixed online-offline serving strategy impact system efficiency and resource utilization?
Key findings
- The EGRM system achieved a 20× speedup in decoding time through self-normalized training and Trie-based dynamic pruning, reducing average inference time from 1125ms to 32.15ms at beam size 100.
- With Trie pruning, 80% of generated keywords were valid, whereas removing pruning led to only 8% validity at beam size 300, demonstrating the necessity of constrained decoding.
- The relevance assessment showed a 20.7% reduction in bad-quality pairs and a 6.6% increase in good-quality pairs compared to the baseline system.
- Online A/B testing confirmed a 13.8% increase in CPM and a 15.4% increase in CTR, indicating significant revenue and engagement gains.
- The model successfully generated previously unseen keywords, contributing to a measurable 10%+ revenue improvement in Baidu’s commercial search engine.
- The mixed online-offline serving architecture effectively reduced CPU consumption while maintaining low-latency response for real-time queries.
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.