Abstract
Generative Retrieval (GR) models traditionally face a trade-off between the high accuracy of slow autoregressive (AR) models and the speed of inaccurate non-autoregressive (NAR) models. This paper introduces PIXAR (Phrase-Indexed eXtreme vocabulary for non-Autoregressive Retrieval), which bridges this gap by scaling the target vocabulary to 5 million tokens, including multi-word phrases. By predicting whole phrases in a single pass, PIXAR eliminates the need for complex dependency modeling between sub-words. Experimental results on MS MARCO and Natural Questions show that PIXAR achieves a 31% improvement in retrieval quality over state-of-the-art NAR models while maintaining production-ready latency (~4.5ms).
The Challenge of Generative Retrieval
In Generative Retrieval (GR), a model is trained to directly generate a unique document identifier (docid) for a relevant document given a search query. Traditionally, this is achieved using Autoregressive (AR) models (e.g., GPT or T5) that generate tokens sequentially. While accurate, AR models are computationally expensive for high-traffic applications because they require multiple sequential passes.
Non-autoregressive (NAR) models generate all tokens simultaneously in a single forward pass, offering significant speed advantages. However, they typically suffer from poor accuracy because they struggle to model dependencies between tokens. For example, if a docid is "The Lord of the Rings," an NAR model might independently predict "The," "Dark," and "Knight" at different positions because it lacks context from previous token choices. PIXAR aims to achieve AR-level accuracy without sacrificing NAR speed.
The PIXAR Architecture
PIXAR introduces three core innovations to overcome the limitations of standard NAR models:
- Extreme Vocabulary Scaling: Instead of a standard vocabulary of ~30k–128k sub-words, PIXAR scales to 5 million tokens, including common phrases and multi-word entities (e.g., "des moines iowa" as a single token). Predicting a whole phrase as one token bypasses the need to coordinate dependencies between individual words.
- Shortlist Inference Pipeline: To manage the computational cost of a 5-million-way softmax, PIXAR utilizes a shortlisting module. The query is encoded into a "shortlist embedding" used to select a small subset of likely token clusters. The model then only ranks tokens within this manageable shortlist.
- Optimized Training: The system uses a multi-part loss function, including standard cross-entropy, a shortlist loss to ensure correct token inclusion in clusters, and a self-normalization loss that allows for efficient probability estimation during inference.
Experimental Evaluation
PIXAR was evaluated on three major benchmarks: MS MARCO (Bing queries), Natural Questions (Google queries), and SponsoredSearch-1B (a proprietary dataset of 1.7 billion query-keyword pairs).
Key Results
PIXAR demonstrated significant performance gains over existing NAR baselines while remaining competitive with AR models at a fraction of the latency cost:
- Retrieval Accuracy: PIXAR achieved a 31.0% relative improvement in MRR@10 on MS MARCO and a 23.2% increase in Hits@5 on Natural Questions compared to the state-of-the-art NAR baseline, CLOVERv2.
- Closing the AR Gap: PIXAR's performance closely rivals top-tier AR models like LTRGR, but operates at ~4.5ms latency compared to the ~94x higher latency required by AR architectures.
- Production Viability: Online A/B testing on a major commercial search engine resulted in a 5.08% increase in ad clicks and a 4.02% boost in revenue.
Why Phrases Work
The success of PIXAR stems from using phrases as "dependency shortcuts." By moving dependency modeling into the vocabulary construction phase (grouping words into phrases), the parallel generation task is simplified. This approach also leads to Sequence Compression, reducing the average docid length from approximately 11 tokens to 4 tokens, which minimizes the opportunities for the model to make "mixing" errors across positions.
Conclusion and Future Work
PIXAR proves that massive vocabulary scaling is not a latency death sentence if managed through efficient shortlisting and self-normalization. While training such models is compute-intensive, the resulting efficiency gains in production are substantial. Future research may explore dynamic vocabulary expansion to handle out-of-vocabulary phrases more gracefully within the NAR framework.
Summary updated