Non-autoregressive Generative Models for Reranking Recommendation

Yuxin Ren, Qiya Yang, Yichun Wu, Wei Xu, Yalong Wang, Zhiqiang ZhangKDD 2024 · DOI

Introduction

In modern recommendation pipelines, the reranking stage serves as the final filter, optimizing the list of items presented to the user by considering intra-list correlations and diversity. While Autoregressive (AR) models have set the state-of-the-art in this domain, they suffer from significant inference latency due to their sequential nature. Researchers from Kuaishou Technology, Peking University, and Tsinghua University have proposed NAR4Rec, a novel non-autoregressive generative model that generates recommendation lists in parallel, achieving a 5x speedup without sacrificing accuracy.

The Autoregressive Bottleneck

Traditional rerankers utilize AR models that predict the next item based on previously selected ones. This approach has three primary drawbacks:

  1. Inference Latency: Sequential generation is computationally expensive for real-time systems.
  2. Exposure Bias: Errors in early selections propagate through the list.
  3. Unidirectional Context: These models cannot account for the influence of "future" items in the list.
Comparison of Autoregressive (AR) and Non-Autoregressive (NAR) model architectures. AR models generate items sequentially, while NAR models generate the entire list in parallel.

Non-autoregressive (NAR) models solve the speed issue by generating all items simultaneously. However, they typically assume item independence, which fails to capture the complex interactions required for effective reranking.

Methodology: The NAR4Rec Framework

NAR4Rec overcomes the limitations of standard NAR models through a specialized architecture and training regime.

1. Dual-Encoder Generator

The model employs a dual-encoder Transformer architecture. The Candidate Encoder processes the set of items to be ranked, while the Position Encoder represents the available slots in the output list. A matching mechanism (matrix multiplication) calculates the probability of placing each candidate into each slot, resulting in a matching matrix $\hat{P} \in \mathbb{R}^{n \times m}$.

2. Sequence-level Unlikelihood Training

To improve the quality of generated sequences, the authors introduce unlikelihood training. Unlike standard Maximum Likelihood Estimation (MLE) which only focuses on positive feedback, this method explicitly penalizes the model for generating sequences that historically led to poor user engagement (e.g., skipped videos).

3. Contrastive Decoding

To address the independence assumption, NAR4Rec uses Contrastive Decoding. During the final selection, a penalty is applied to candidate items that are too similar to those already assigned to other slots. This ensures diversity and captures intra-list dependencies without the need for sequential processing.

Detailed architecture of the NAR4Rec Generator (left) and Evaluator (right). The Generator uses Candidate and Position Encoders to produce a matching matrix, while the Evaluator scores multiple generated sequences.

Experimental Results

The model was evaluated on the Avito search log dataset and a massive industrial dataset from Kuaishou (1.8 billion requests).

  • Efficiency: NAR4Rec achieved a 5x speedup in inference compared to the AR baseline Seq2Slate.
  • Offline Performance: On Avito, NAR4Rec reached an AUC of 0.7234, outperforming both PIER (0.7109) and Seq2Slate (0.7034).
  • Online Impact: In A/B tests on the Kuaishou app (300M+ DAU), the model delivered a +1.16% increase in total views and a +2.45% increase in complete views.

Conclusion

NAR4Rec demonstrates that non-autoregressive models can match or exceed the performance of autoregressive rerankers in large-scale recommendation systems. By combining parallel generation with sequence-level unlikelihood training and contrastive decoding, it provides a high-throughput solution that effectively models complex item interactions.

Summary updated

BibTeX
@inproceedings{ren2024non,
  author = {Yuxin Ren and Qiya Yang and Yichun Wu and Wei Xu and Yalong Wang and Zhiqiang Zhang},
  title = {{Non-autoregressive Generative Models for Reranking Recommendation}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3637528.3671645},
}
Figure