Bidirectional Across Items, Sequential Within IDs: Hierarchy-Preserving Masked Discrete Diffusion for Generative Recommendation
Abstract
Domain fit: AI-core · Core AI workload signals detected from paper context and implementation/artifact evidence.
Generative recommendation represents items with hierarchical semantic IDs (SIDs) and casts next-item prediction as sequence generation. Autoregressive language models preserve the coarse-to-fine order imposed by residual quantization but apply the same causal factorization across the interaction sequence. Masked discrete diffusion enables bidirectional learning across items; however, independently masking SID components can expose a fine residual code while hiding its required coarse prefix. We introduce Hierarchy-Preserving Diffusion (HPD), a masked discrete diffusion language modeling formulation that separates two dependency levels: (1) Across SIDs, full self-attention captures relations across the interaction sequence. (2) Within each SID, prefix-independent masking restricts each corrupted sequence to an observed prefix followed by a masked suffix. HPD combines this corruption with a training pipeline that first optimizes new SID-token embeddings and output weights with a fixed backbone and then jointly optimizes all parameters. Catalog-constrained beam search decodes the target SID from coarse to fine. HPD requires no task-specific architectural changes. Across three domains, Industrial and Scientific, Office Products, and Baby Products, we compare Qwen3-8B/LLaDA-8B-Base and Qwen2.5-7B/Dream-7B-Base autoregressive/diffusion large language model (AR-LLM/dLLM) pairs. At the final checkpoint, HPD achieves higher Hit Rate and NDCG than its matched AR-LLM at every evaluated cutoff. In the 8B LLaDA comparison, HPD obtains the best or tied-best score across all 18 metric--domain combinations. Comparisons with standard MDLM and DiffGRM evaluate HPD against alternative masked discrete diffusion objectives. An ablation shows that the proposed HPD pipeline outperforms the SID-token-only variant on every metric for Dream-7B-Base on Industrial and Scientific and LLaDA-8B-Base on Baby Products.
Results and benchmarks
Generative recommendation represents items with hierarchical semantic IDs (SIDs) and casts next-item prediction as sequence generation.
| Task | Dataset | Metric | Value | Source |
|---|---|---|---|---|
| Transformer | Qwen3-8B | NDCG@10. | 0.0004 | paper-derived |
| Transformer | AR-LLM (Qwen3-8B) | NDCG@10. | 0.0128 | paper-derived |
| Transformer | Qwen2.5-7B | NDCG@10. | 0.0011 | paper-derived |
| Transformer | AR-LLM (Qwen2.5-7B) | NDCG@10. | 0.0189 | paper-derived |
Audit each benchmark finding before selecting an implementation path.
Implementation
No direct implementation yet
Maintained implementation evidence is not confirmed for this paper yet.
Use the implementation status and reproduction sections for the current action plan.
No verified maintained repo yet
There is no verified maintained implementation yet. Use this baseline plan to decide whether to prototype now or defer.
- No direct maintained implementation was found. Use the paper PDF and citation graph to design a baseline reproduction.
- Start from this likely method family: Diffusion.
- Track assumptions and missing details in an experiment log before coding.
Time to first repro: a few days
Recommendation evidence is currently too limited for a maintained-repo choice. Use Implementation Status and Reproduction Path for a practical baseline plan.
- Estimate is based on paper-only reproduction flow
Reproduction readiness
No repo
No verified implementation available
- No maintained repository has been identified for this paper. Check adjacent implementations or HF artifacts below.
Hardware requirements
- Expect multi-day setup/compute for meaningful reproduction based on current guidance.
Framework baselines
- Hugging Face Transformers training guide
Modern transformer training baseline.
- PyTorch nn.Transformer docs
Reference transformer building block implementation.
- Hugging Face Diffusers training guide
Practical baseline for diffusion model reproduction.
Hugging Face artifacts
No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.
Tip: start with models, then check datasets and spaces if you need evaluation data or demos.
Research context
Tasks
Transformer
Methods
Transformer, Diffusion, Quantization
Domains
Natural Language Processing, Large Language Models
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.