Bi-Level Optimization for Generative Recommendation: Bridging Tokenization and Generation
Yimeng Bai, Chang Liu, Yang Zhang, Dingxian Wang, Frank Yang, Andrew Rabinovich, Wenge Rong, Fuli Feng
TL;DR
The paper addresses generative recommendation by modeling the tokenization of items and autoregressive item generation as a coupled problem. It introduces BLOGER, a bi-level optimization framework that uses a residual-quantization tokenizer (RQ-VAE) and a Transformer-based recommender, coupled through differentiable mixed representations and optimized with meta-learning (MAML) and gradient surgery (PCGrad). The outer objective optimizes the tokenizer with both tokenization loss and downstream recommendation loss, while the inner objective trains the recommender; gradient flow between the two is carefully managed to avoid conflicts, leading to improved codebook utilization and recommendation accuracy. Experiments on real-world Amazon datasets show BLOGER outperforms state-of-the-art generative methods with only modest overhead, demonstrating effective alignment between tokenization and generation and offering practical gains for large-scale generative recommendation systems.
Abstract
Generative recommendation is emerging as a transformative paradigm by directly generating recommended items, rather than relying on matching. Building such a system typically involves two key components: (1) optimizing the tokenizer to derive suitable item identifiers, and (2) training the recommender based on those identifiers. Existing approaches often treat these components separately--either sequentially or in alternation--overlooking their interdependence. This separation can lead to misalignment: the tokenizer is trained without direct guidance from the recommendation objective, potentially yielding suboptimal identifiers that degrade recommendation performance. To address this, we propose BLOGER, a Bi-Level Optimization for GEnerative Recommendation framework, which explicitly models the interdependence between the tokenizer and the recommender in a unified optimization process. The lower level trains the recommender using tokenized sequences, while the upper level optimizes the tokenizer based on both the tokenization loss and recommendation loss. We adopt a meta-learning approach to solve this bi-level optimization efficiently, and introduce gradient surgery to mitigate gradient conflicts in the upper-level updates, thereby ensuring that item identifiers are both informative and recommendation-aligned. Extensive experiments on real-world datasets demonstrate that BLOGER consistently outperforms state-of-the-art generative recommendation methods while maintaining practical efficiency with no significant additional computational overhead, effectively bridging the gap between item tokenization and autoregressive generation.
