Hierarchical Quantization with Domain-Adaptive Sparse Routing for Generative Cross-Domain Recommendation

Haiying He, Xiaopeng Li, Yuchen Gu, Kuo Cai, Bo Chen, Jingtong Gao, Yejing Wang, Derong Xu, Ruiming Tang, Guorui Zhou, Han Li, Xiangyu ZhaoarXiv 2026

TL;DR

Generative recommendation models struggle with cross-domain transfer because they apply uniform parameters to items with vastly different semantic granularities. HD-REC addresses this by using a hierarchical tokenizer that shares coarse semantics across domains while adaptively routing fine-grained details through specialized codebooks and sparse Mixture-of-Experts (MoE) layers. By enforcing cross-granularity routing consistency, it achieves state-of-the-art recommendation accuracy with negligible computational overhead.

What Problem Does This Paper Address?

Modern recommender systems frequently operate across multiple domains (e.g., transitioning a user from browsing clothing to sports gear). Cross-Domain Recommendation (CDR) aims to improve recommendations in data-scarce target domains by leveraging patterns from data-rich source domains.

Recently, Generative Recommendation (GenRec) has emerged as a powerful paradigm. Instead of using abstract numerical IDs, GenRec tokenizes items into text-like Semantic IDs (SIDs) and frames recommendation as a sequence-to-sequence next-token prediction task.

However, extending GenRec to cross-domain settings is tricky. Items across different domains often share high-level concepts but diverge drastically at fine-grained levels. For example, "sports electronics" and "clothing" might share broad semantic spaces initially, but their underlying geometric structures differ significantly.

Figure 1: t-SNE visualization of the learned em- beddings. (a) Comparison between Sports and Clothing domains. (b) Comparison between Elec- tronics and Cell Phones domains.

Existing approaches either force all domains into a single globally shared representation space (causing representation conflict) or use rigid, lightweight domain adapters that lack the capacity to capture complex, fine-grained variations.

Methods

The authors introduce HD-REC, a unified generative framework designed to adaptively allocate model capacity based on item semantics. It consists of three main building blocks:

Overview of the HD-REC framework
  1. Hierarchical Domain-Aware Quantizer (HDQ): Instead of standard flat vector quantization, HDQ decomposes item features hierarchically. Shallow layers (1 to $L-1$) use globally shared codebooks to capture broad, cross-domain semantics. The final layer ($L$) dynamically routes the residual vector to one of $K$ specialized codebooks using a Gumbel-Softmax router, capturing domain-specific nuances.
  2. Domain-Adaptive Sparse MoE (DAS MoE): Inside the Transformer backbone, standard dense feed-forward networks (FFNs) are replaced with a sparse Mixture-of-Experts architecture. For every token, the model activates an always-on shared expert plus one dynamically selected specialized expert. This provides conditional capacity without blowing up the compute budget.
  3. Cross-Granularity Routing Consistency Learning (CRCL): Standard MoE architectures route strictly at the token level. However, because an item's SID is a sequence of tokens, unconstrained token-wise routing can cause tokens from the same item to diverge to completely different experts. CRCL penalizes this divergence by minimizing the KL-divergence between individual token routing distributions and the aggregated item-level consensus.

Datasets

The framework was evaluated on three public cross-domain dataset pairs:

  • Clothing-Sports (Amazon product reviews)
  • Electronics-Phones (Amazon product reviews)
  • Books-Movies (Douban social platform reviews)

All datasets were evaluated using the standard leave-last-out protocol.

Key Insights and Ideas

  • Shared Shallows, Routed Deeps: High-level semantic categories are universally understood across domains, but specific product variations need specialized spaces. Hierarchical quantization naturally mirrors this intuition.
  • The Token-to-Item Alignment Problem: Token-level routing in MoE is too flexible for generative recommendation. If tokens making up a single item's ID diverge to different experts, the structural meaning of the ID degrades. Forcing soft consistency (CRCL) is crucial for stable generative modeling.
  • Input-Dependent Capacity vs. Rigid Adapters: Instead of hardcoding which parameters belong to which domain, letting the model dynamically route based on the item's actual residual representation yields better flexibility and performance.

Key Results

  • State-of-the-Art Accuracy: HD-REC consistently outperformed single-domain sequential, standard generative, and existing cross-domain baselines. The gains were most pronounced in sparser domains: it improved Hit Rate@10 (H@10) by 17.6% on Sports, 16.3% on Electronics, and 9.9% on Phones compared to the strongest baseline (GenCDR).
  • Negligible Overhead: Despite the routing mechanisms, the sparse architecture keeps inference fast. HD-REC added only a 2.0% to 2.5% inference time overhead compared to a standard dense baseline (TIGER).
  • Coherent Routing: The CRCL module successfully reduced intra-item Routing Variance (RV) by approximately 6$\times$, proving that tokens within the same item stick together during expert selection.

The hyperparameter analysis shows a clear inverted-U trend for the consistency loss weight ($\lambda_1$), confirming that a balanced regularizer yields the best performance.

Hyperparameter analysis for CRCL weight

Limitations and Future Work

  • Scale of Domains: The evaluation was primarily limited to pairwise (two-domain) setups. How well HD-REC scales to complex multi-domain environments with dozens of heterogeneous scenarios remains an open question.
  • Metadata Dependency: HD-REC relies heavily on content-derived item representations to build SIDs. Performance might degrade if item descriptions are noisy, incomplete, or misaligned with actual user behavior.
  • Dynamic Environments: The model was tested on offline benchmarks; its behavior under real-world online constraints (dynamic catalogs, shifting distributions, and online feedback loops) requires further study.

Summary updated

BibTeX
@misc{he2026hierarchical,
  author = {Haiying He and Xiaopeng Li and Yuchen Gu and Kuo Cai and Bo Chen and Jingtong Gao and Yejing Wang and Derong Xu and Ruiming Tang and Guorui Zhou and Han Li and Xiangyu Zhao},
  title = {{Hierarchical Quantization with Domain-Adaptive Sparse Routing for Generative Cross-Domain Recommendation}},
  year = {2026},
  eprint = {2608.06997},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.06997},
}
Figure