TL;DR
Multimodal generative retrieval models often accidentally discard the correct search results early during beam search because their tokenizers only optimize for the final item reconstruction, ignoring intermediate prefix steps. This paper introduces PRO (Prefix Retention Optimization), a framework that bridges this "indexing-decoding gap" through prefix distillation, vocabulary scheduling, and geometric score fusion. PRO significantly improves result retention and retrieval accuracy across nine multimodal tasks while preserving constant-time inference scaling.
What Problem Does This Paper Address?
Generative Retrieval (GR) is an exciting alternative to traditional dense retrieval. Instead of calculating similarity scores across massive vector databases at query time, a sequence-to-sequence model directly generates a unique discrete identifier (like a string of code tokens) for the target item. In multimodal settings (MGR), these identifiers are typically built using Multi-level Residual Quantization (RQ).
However, there is a hidden flaw: the indexing-decoding gap. When training the tokenizer to create these codes, the objectives (like mean squared error or contrastive loss) only care about how well the complete code sequence reconstructs the final item embedding. But during retrieval, the decoder generates tokens sequentially using beam search. If the first few tokens (the prefix) don't look highly relevant to the query, beam search will irrevocably prune that item, even if the full code would have been a perfect match.
Methods
The authors formalize this problem mathematically, deriving a survival bound based on three factors: ranking divergence, teacher margin, and decoder mismatch. To optimize these factors, they propose PRO (Prefix Retention Optimization), which introduces three core mechanisms:
- Prefix Ranking Distillation: During tokenizer training, a listwise KL-divergence loss aligns the rankings of partial (prefix-level) reconstructions with the true rankings from the pre-quantization continuous embedding space. This ensures early prefixes remain discriminative.
- Vocabulary Scheduling: Instead of using a uniform codebook size at all levels, PRO uses an ascending schedule (e.g., 512 $\rightarrow$ 1024 $\rightarrow$ 2048). Smaller vocabularies at early levels reduce the number of competing non-target prefixes, widening the "teacher margin" and making it easier for the correct prefix to survive early beam search steps.
- Geometric Score Fusion: At inference time, PRO injects a geometric bias directly into the beam search scoring function. This bias rewards candidate tokens that actively reduce the distance between the query embedding and the reconstructed prefix embedding, mitigating decoder mismatch without requiring retraining.
Datasets
The authors evaluated PRO across nine distinct multimodal retrieval tasks from the M-BEIR benchmark and Flickr30k, covering text-to-image, image-to-text, text-to-text, and composed image+text queries (including COCO, WebQA, NIGHTS, CIRR, OVEN, and InfoSeek). To test generalizability beyond multimodal domains, they also evaluated PRO on TIGER, a sequential recommendation model tested on Amazon Reviews '23 (Beauty, Toys, and Sports categories).
Key Insights and Ideas
- Good final reconstruction does not imply prefix survival: A tokenizer can be excellent at reconstructing the final item embedding, yet completely fail during sequential decoding because its intermediate prefixes are poorly ranked. The authors proved this theoretically and confirmed it empirically: full reconstruction MSE is a weak predictor of whether an item survives beam search.
- Capacity bottlenecks should be pushed late: Counterintuitively, restricting vocabulary size at early quantization levels actually helps performance. It reduces early-stage competition where pruning is irreversible, leaving the heavy-lifting representation capacity to deeper levels where the target item is already safely inside the beam.
- Systemic Mismatch: Decoder mismatch ($\varepsilon_\ell$) is a systemic bottleneck that affects almost all queries uniformly. Inference-time geometric score fusion acts as a broad-based correction for this structural gap.
Key Results
- Substantial Accuracy Gains: PRO consistently outperformed the state-of-the-art universal MGR baseline (GENIUS) across all 9 tasks. For instance, on COCO text-to-image, Recall@1 jumped from 37.1% to 45.8%. On Flickr30k text-to-image, it improved from 56.8% to 70.6%, closing over 60% of the performance gap between generative and dense retrieval.
- Excellent Efficiency Scaling: Unlike dense retrieval, whose query throughput drops steadily as the candidate pool size grows, PRO maintains a nearly constant throughput. The efficiency curves cross at around 50k candidates, making PRO significantly faster for large-scale pools while adding negligible computational overhead.
- Cross-Domain Generalization: When applied to the TIGER recommendation baseline, PRO improved all 12 Recall and NDCG metrics across Amazon datasets, proving the indexing-decoding gap is a fundamental property of RQ-based generative models, not just multimodal ones.
Limitations and Future Work
- Pipeline Specificity: The theoretical analysis and PRO framework are tightly coupled to Residual Quantization (RQ) structures. Extending these insights to other identifier schemes (like hierarchical clustering or semantic string IDs) remains an open challenge.
- Two-Stage Optimization: The current framework assumes a fixed, frozen multimodal encoder and a separate tokenizer/decoder training process. The authors note that exploring end-to-end joint optimization with survival-aware objectives is a promising direction for future work.
Summary updated