Discrete Diffusion for Bundle Construction

Teng Tu, Ai Li, Yunshan Ma, Shuo Xu, Xiaohao Liu, Haokai Ma, Liang Pang, Tat-Seng ChuaICLR 2026

TL;DR

DDBC (Discrete Diffusion for Bundle Construction) reimagines product bundling—like creating music playlists or fashion outfits—as a non-sequential generative task. By combining a masked discrete diffusion process with Residual Vector Quantization (RVQ), the model avoids the pitfalls of "next-item" prediction and successfully navigates the combinatorial explosion of large item catalogs, outperforming state-of-the-art methods by over 100%.

What Problem Does This Paper Address?

Whether it’s a Spotify playlist or an Amazon "frequently bought together" set, product bundles are a staple of digital life. However, building these bundles automatically is surprisingly hard. The authors identify two "dimensionality curses" that plague existing methods:

  1. The Sequential Flaw: Most current models treat bundles like sequences (predicting item A, then B, then C). But bundles are fundamentally sets—the order usually doesn't matter. Forcing a sequence introduces arbitrary bias and fails to capture the complex, "all-at-once" relationships between items.
  2. The Catalog Scale: In a catalog of millions of items, the number of possible combinations grows exponentially with the bundle's length. Standard models struggle to learn discriminative representations for every single item while maintaining an efficient search space.

Methods

To tackle these challenges, the authors introduce DDBC, which attacks the problem using two core components:

DDBC Architecture and Diffusion Process
  • Discrete Masked Diffusion: Instead of predicting items one by one, DDBC treats bundle construction as a denoising task. It starts with a "clean" bundle, randomly masks some items during training, and learns to predict the missing pieces. At inference time, you can give it a partial bundle (e.g., two songs), and it iteratively "fills in the blanks" in an order-agnostic way.
  • Residual Vector Quantization (RVQ): To handle massive catalogs, DDBC doesn't use a single embedding for every item. Instead, it uses RVQ to compress item embeddings into a tuple of discrete codes (like a hierarchical zip code). This significantly shrinks the search space and provides "dense supervision"—the model learns about items at multiple levels of semantic granularity (from coarse categories to fine-grained details).
  • Constraint-Aware Decoding: During the generation process, the model uses a bidirectional Transformer backbone and applies token-level constraints to ensure that the generated codes always map back to valid items in the real-world catalog.

Datasets

The model was evaluated on two distinct real-world domains:

  • Spotify: A massive dataset for music playlist continuation. The authors created subsets with target lengths of 30, 60, and 90 items to test how the model scales with longer bundles.
  • POG (Pinterest-Outfit-Generation): A fashion dataset for outfit completion, focusing on smaller, high-compatibility sets (average length of 4).

Key Insights and Ideas

  • Sets, Not Sequences: The "aha moment" here is that diffusion is a much more natural fit for set generation than auto-regressive (AR) models. AR models are "stuck" in a left-to-right mindset; diffusion allows the model to consider the global context of the entire bundle simultaneously.
  • RVQ as a Semantic Bridge: RVQ isn't just a compression trick. Because the codes are hierarchical, the model learns that items sharing the same "coarse" codes are semantically related. This helps the model generalize better than if it were just looking at raw item IDs.
  • The Power of Random Masking: By randomly masking items during training, the model is exposed to a vast variety of "partial bundle" contexts. This makes it incredibly robust at inference time, regardless of which items the user provides as a starting point.

Key Results

DDBC demonstrates massive performance gains across multiple metrics:

Performance Comparison on Spotify and POG Datasets
  • Relative Improvement: DDBC achieved over 100% relative improvement in Jaccard index (a measure of set overlap) compared to the strongest baselines on the Spotify datasets.
  • Scaling Success: The gap between DDBC and other models widened as the bundles got longer (e.g., moving from 30 to 90 items), proving it handles the combinatorial curse better than sequential models.
  • Efficiency: Despite its power, DDBC is remarkably lightweight. It uses only 0.79M parameters—orders of magnitude smaller than LLM-based competitors—and offers inference speeds comparable to one-shot generation methods.

Limitations and Future Work

  • Fixed Length: The current implementation typically targets a fixed bundle length during training. While the authors demonstrate some "training-free" variable-length generation strategies in the appendix, a more principled approach to stopping criteria is a noted area for future work.
  • Personalization: Currently, the model focuses on the "compatibility" of items within a bundle. Integrating explicit user-specific preferences (e.g., a user's specific music taste) directly into the diffusion process is a promising next step.
  • Evaluation Metrics: The authors acknowledge that exact-match metrics (like F1) don't always capture the "quality" of a bundle in an open-world setting where many different item substitutions might be equally valid. Developing better "diversity-aware" metrics remains a challenge for the field.

Summary updated

BibTeX
@inproceedings{tu2026discrete,
  author = {Teng Tu and Ai Li and Yunshan Ma and Shuo Xu and Xiaohao Liu and Haokai Ma and Liang Pang and Tat-Seng Chua},
  title = {{Discrete Diffusion for Bundle Construction}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=dKyhgfe50H},
}
Figure