TL;DR
This paper introduces PIXAR, a novel Non-Autoregressive (NAR) Generative Retrieval (GR) model that significantly boosts retrieval performance by expanding its vocabulary to include multi-word phrases. PIXAR achieves this without sacrificing the low-latency benefits of NAR models, demonstrating competitive results against state-of-the-art Autoregressive (AR) models and showing real-world impact in sponsored search.
What Problem Does This Paper Address?
Traditional Information Retrieval (IR) methods often rely on dense vector representations. Generative Retrieval (GR) offers an alternative by framing retrieval as a generation task, where a model generates document identifiers (like pseudo-queries or titles) for a given query. This approach, particularly when using Autoregressive (AR) language models, has shown great promise. However, AR models are inherently slow and computationally expensive due to their sequential, token-by-token generation process, making them impractical for latency-sensitive applications like real-time search.
Non-Autoregressive (NAR) models offer a solution by generating all tokens in parallel, drastically reducing inference time and cost. The challenge with standard NAR models in GR is a significant drop in retrieval accuracy. This is because their parallel generation mechanism struggles to capture the complex dependencies between tokens (words or sub-words) within a document identifier, leading to less coherent and accurate outputs compared to AR models. The paper aims to bridge this performance gap by making NAR models more effective for GR without losing their speed advantage.
Methods
The core innovation of PIXAR lies in its expanded target vocabulary. Instead of limiting tokens to individual words or sub-words, PIXAR incorporates multi-word entities and common phrases (up to 5 million tokens) into its vocabulary. This allows the NAR model to represent more complex semantic units with single tokens, reducing the number of sequential predictions needed and implicitly capturing dependencies between words within these phrases.
To manage the computational overhead of such a large vocabulary, PIXAR employs two key strategies:
- Vocabulary Construction: A two-stage approach (candidate selection and iterative pruning) inspired by TokenMonster is used to build a vocabulary that prioritizes phrase inclusion while ensuring token frequency and respecting word boundaries.
- Efficient Inference: A "shortlisting module" is introduced. During inference, a query's hidden state is used to identify a small subset of candidate tokens from the large vocabulary. The model then re-ranks only these shortlisted tokens, significantly reducing the search space for each prediction. This is further optimized by a novel self-normalization loss during training, which allows for efficient computation of probability scores without summing over the entire vocabulary.
Datasets
PIXAR was evaluated on two public datasets and one proprietary dataset:
- MS MARCO: A large-scale dataset for passage retrieval, derived from Bing search queries. Pseudo queries generated from passages were used as document identifiers.
- Natural Questions (NQ): A dataset linking Google Search queries to relevant Wikipedia articles. Pseudo queries generated from passages were used as document identifiers.
- SponsoredSearch-1B (Proprietary): A large commercial search engine dataset used for sponsored search applications. Advertiser bid keywords were used as document identifiers.
Key Insights and Ideas
- Phrases as Tokens are Key: The most significant insight is that expanding the target vocabulary to include multi-word phrases, rather than just words or sub-words, dramatically improves the retrieval performance of NAR models. This suggests that capturing higher-level semantic units directly as tokens is more effective for GR.
- NAR Models Can Compete with AR: By intelligently expanding the vocabulary and optimizing inference, PIXAR demonstrates that NAR models can achieve performance comparable to, and in some cases exceeding, state-of-the-art AR models, while retaining their speed advantage.
- Vocabulary Size Matters: The paper empirically shows that increasing vocabulary size, even to millions of tokens, consistently improves NAR retrieval performance, addressing RQ1.
- Efficient Inference is Crucial: The proposed shortlisting module and training optimizations are vital for making large-vocabulary NAR models practical, addressing RQ2 by maintaining low latency.
- Real-World Impact: The A/B testing results in a commercial search engine highlight the practical value of PIXAR, showing tangible improvements in user engagement and revenue.
Key Results
- MS MARCO: PIXAR achieved a relative improvement of 31.0% in MRR@10 compared to standard NAR models. It also outperformed AR models like MINDER and closely rivaled LTRGR.
- Natural Questions (NQ): PIXAR showed a 23.2% relative improvement in Hits@5 compared to standard NAR models and significantly reduced the gap with AR models like LTRGR.
- Inference Latency: PIXAR maintained similar inference latency to CLOVERv2 (a strong NAR baseline) despite having a significantly larger vocabulary (5M vs. 128K). It achieved a 10.6x speedup over full softmax and a 2.1x speedup over other softmax optimization methods.
- Sponsored Search: In A/B tests on a commercial search engine, PIXAR increased ad clicks by 5.08% and revenue by 4.02%.
Limitations and Future Work
- Hyperparameter Tuning: The paper notes that the effectiveness of the shortlisting module depends on carefully tuning hyperparameters like
m,r, andk. Suboptimal choices can impact retrieval quality. - Vocabulary Construction Complexity: While effective, the phrase-based vocabulary construction is complex and relies on external tools like TokenMonster.
- Future Work: The authors suggest that PIXAR's success in bridging the performance gap between NAR and AR models positions it well for other latency-sensitive applications like real-time recommendation systems. Further exploration into optimizing the vocabulary construction and shortlisting mechanisms could yield even greater efficiency and performance gains.
Summary updated