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

Generative recommendation systems often struggle because the way they "name" items (tokenization) is disconnected from the actual task of recommending them. BLOGER (Bi-Level Optimization for GEnerative Recommendation) fixes this by treating tokenization and recommendation as a nested optimization problem, ensuring that item identifiers are not just semantically rich, but specifically tuned to improve recommendation accuracy.

What Problem Does This Paper Address?

Traditional recommendation systems use a "retrieve-and-rank" approach, but a new paradigm called Generative Recommendation (GenRec) is taking over. Instead of matching a user to a list of candidates, GenRec models directly "write out" the identifier (ID) of the next item a user will want, much like how ChatGPT predicts the next word in a sentence.

Building a GenRec system requires two steps:

  1. Tokenization: Turning an item (like a specific pair of shoes) into a sequence of tokens (e.g., [7, 2, 5]).
  2. Generation: Training a model to predict that sequence based on a user's history.

The "gap" is that these two steps are usually handled separately. If the tokenizer creates IDs based only on text descriptions, it might give "baby formula" and "diapers" completely different IDs because they don't share keywords. However, in the real world, these items are frequently bought together. Because the tokenizer doesn't "know" about user behavior, it creates suboptimal IDs that make the recommender's job much harder.

Methods

The authors introduce BLOGER, which uses a Bi-Level Optimization framework to bridge this gap.

  • The Nested Loop: Instead of training the tokenizer and recommender side-by-side, BLOGER uses a hierarchy. The "inner" level trains the recommender to predict items. The "outer" level then updates the tokenizer based on how well the recommender performed. This ensures the tokenizer receives direct feedback from the recommendation task.
  • Meta-Learning Strategy: To avoid the massive computational cost of fully training a recommender every time the tokenizer changes, the authors use a MAML-style meta-learning approach. They perform "tentative updates" to the recommender to see how a change in tokenization would affect performance.
  • Mixed Representation: Since tokenization is usually a discrete (non-differentiable) process, they use a "mixed representation" trick. This allows gradients to flow back from the recommendation loss into the tokenizer, making end-to-end training possible.
  • Gradient Surgery: When optimizing the tokenizer, the model has to balance two goals: making the ID represent the item well (tokenization loss) and making the ID easy to recommend (recommendation loss). Often, these goals conflict. BLOGER uses "gradient surgery" to project conflicting gradients, ensuring that one objective doesn't "cancel out" the other.

Datasets

The model was evaluated on three popular subsets of the Amazon Review Data:

  • Beauty
  • Instruments
  • Arts

The authors applied standard "5-core" filtering (keeping only users and items with at least five interactions) and used a "leave-one-out" strategy for evaluation.

Key Insights and Ideas

  • Recommendation Loss as a Signal: The biggest "aha" moment is that the recommendation loss itself is a powerful indicator of collaborative signals. By letting this loss guide the tokenizer, the system automatically groups items that are behaviorally related, even if their text descriptions are different.
  • Codebook Utilization: The authors found that BLOGER significantly improves "codebook density." In simpler terms, it uses its available "vocabulary" for items much more efficiently than previous methods like TIGER, which often left many potential IDs unused.
  • The Importance of Alignment: The paper proves that "better" tokenization (in a vacuum) doesn't always mean better recommendations. The alignment between the two is what actually drives performance.

Key Results

BLOGER consistently outperformed state-of-the-art generative models (like TIGER and LETTER) and traditional models (like SASRec) across all datasets.

  • Accuracy: On the Beauty dataset, BLOGER achieved a Recall@5 of 0.0444, a significant jump over TIGER's 0.0384.
  • Efficiency: Despite the complex bi-level math, BLOGER is surprisingly efficient. Training time only increased by about 12% compared to TIGER, and inference (testing) speed was identical. This is because the bi-level complexity is only present during the training phase; the final model architecture remains streamlined.

Limitations and Future Work

While BLOGER shows strong results on Amazon datasets, the authors note that these are relatively small compared to real-world industrial scales.

  • Scalability: Future work is needed to see how this bi-level approach handles billions of items in a production environment.
  • Reasoning: The authors suggest exploring how this framework could be combined with the "reasoning" capabilities of Large Language Models (LLMs) to provide not just a recommendation, but an explanation for why an item was chosen.
  • Cold-Start: The paper doesn't deeply explore how the system handles brand-new items with zero interaction history, which remains a classic challenge in the field.

Summary updated

BibTeX
@inproceedings{bai2026bi,
  author = {Yimeng Bai and Chang Liu and Yang Zhang and Dingxian Wang and Frank Yang and Andrew Rabinovich and Wenge Rong and Fuli Feng},
  title = {{Bi-Level Optimization for Generative Recommendation: Bridging Tokenization and Generation}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2026},
  doi = {10.1145/3805712.3809632},
}

Loading related content...

Figure