Hierarchical Semantic RL: Tackling the Problem of Dynamic Action Space for RL-based Recommendations

Minmao Wang, Xingchen Liu, Shijie Yi, Likang Wu, Hongke Zhao, Fei Pan, Qingpeng Cai, Peng Jiang

TL;DR

This paper introduces Hierarchical Semantic RL (HSRL), a novel reinforcement learning framework for recommender systems that tackles the challenge of massive, dynamic action spaces by using a hierarchical "Semantic Action Space" (SAS). HSRL achieves significant improvements in long-term user engagement and business metrics, demonstrating its effectiveness in both offline evaluations and live A/B testing.

What Problem Does This Paper Address?

Recommender systems (RS) are crucial for online services, but optimizing for long-term user value with traditional methods is difficult. Reinforcement Learning (RL) offers a promising solution by framing recommendations as sequential decision-making. However, a major bottleneck for RL in real-world RS is the sheer scale and constant evolution of the item catalog, leading to an enormous and dynamic "action space" (the set of items a recommender can suggest). This makes it computationally infeasible and unstable for RL agents to learn effective policies. Existing approaches often struggle with this, either by using approximations that lose information or by failing to adapt to the ever-changing item landscape.

Methods

HSRL introduces two core innovations to address the dynamic action space problem:

  • Semantic Action Space (SAS): Instead of directly recommending items, HSRL maps items to fixed-length "Semantic IDs" (SIDs). These SIDs form a structured, hierarchical semantic space that is independent of the item catalog's size. This decouples the RL policy's learning from the dynamic item space, allowing it to operate in a stable, low-dimensional space. When an SID is generated by the policy, a fixed lookup table deterministically maps it back to actual items.
  • Hierarchical Policy Network (HPN) and Multi-Level Critic (MLC): To effectively utilize the hierarchical nature of SIDs, HSRL employs a specialized Actor-Critic architecture:
  • HPN: This network generates SIDs in a "coarse-to-fine" manner, predicting tokens level by level. It uses "Hierarchical Residual State Modeling" to refine context at each step, ensuring that decisions are progressively specialized and reducing the mismatch between representation and decision.
  • MLC: This critic provides value estimates for each token prediction within the SID generation process. This allows for fine-grained credit assignment, breaking down the sparse, sequence-level reward into more informative signals for each decision step, which is crucial for stable RL training.

Datasets

The paper evaluates HSRL on:

  • RL4RS: A public benchmark dataset for RL-based recommender systems.
  • MovieLens-1M: A widely used public dataset for recommendation tasks.
  • Kuaishou-Ads: A large-scale, real-world industrial dataset from a leading short-video advertising platform.

The authors follow standard preprocessing for the public datasets and convert them into a unified sequential format. The industrial dataset is used to validate the scalability and robustness of HSRL in a production environment.

Key Insights and Ideas

  • Decoupling Policy from Catalog: The core idea of using a fixed Semantic Action Space (SAS) to abstract away from the dynamic item catalog is a significant paradigm shift for RL in recommendations. This directly addresses the scalability and stability issues caused by ever-growing item sets.
  • Hierarchical Structure Matters: The paper strongly argues that the hierarchical nature of item representations (SIDs) is not just an implementation detail but a fundamental structure that can be leveraged for better policy learning. The HPN and MLC are designed to exploit this hierarchy.
  • Residual Modeling for Context Refinement: The "Hierarchical Residual State Modeling" in the HPN is key to ensuring that each decision level builds upon the previous one in a meaningful, refined way, rather than making independent choices.
  • Multi-Level Credit Assignment is Crucial: The MLC's ability to provide per-token value estimates is vital for overcoming the sparse reward problem in long sequential recommendation tasks, leading to more stable and efficient learning.
  • Practicality and Scalability: The successful deployment and positive results in a live A/B test on a large-scale industrial platform (Kuaishou-Ads) highlight HSRL's readiness for real-world applications.

Key Results

  • Offline Performance: HSRL consistently outperforms state-of-the-art baselines on both RL4RS and MovieLens-1M datasets in terms of Total Reward and Depth, indicating better long-term engagement and interaction persistence. For example, on RL4RS, HSRL achieved a Total Reward of 12.013 and Depth of 12.841, outperforming the strongest baseline HAC by 13.4% and 10.9% respectively.
  • Online A/B Testing: In a 7-day A/B test on Kuaishou's advertising platform, HSRL delivered a significant 18.421% lift in ADVV (Advertiser Value) and a 1.251% increase in Revenue compared to a supervised learning baseline.
  • Ablation Studies: Removing key components like entropy regularization or the hierarchical policy structure led to substantial performance drops, underscoring the importance of each part of the HSRL framework.

Limitations and Future Work

  • SID Construction: The paper mentions that SID collisions can occur, and while they have a strategy to handle them (e.g., using business priors), it's an area where further refinement might be beneficial.
  • Sensitivity Analysis: The paper includes sensitivity analysis for hyperparameters like entropy coefficient, vocabulary size, and number of semantic levels. While it finds optimal ranges, these parameters still require careful tuning.
  • Future Work: The paper's conclusion suggests that HSRL provides a scalable and stable framework for RL-based recommendation, establishing structured semantic action modeling as a practical paradigm. Future work could explore more sophisticated SID construction methods, further investigate the trade-offs in hierarchical depth and vocabulary size, and extend the framework to other sequential decision-making problems beyond recommendations.

Summary updated

BibTeX
@misc{wang2025hierarchical,
  author = {Minmao Wang and Xingchen Liu and Shijie Yi and Likang Wu and Hongke Zhao and Fei Pan and Qingpeng Cai and Peng Jiang},
  title = {{Hierarchical Semantic RL: Tackling the Problem of Dynamic Action Space for RL-based Recommendations}},
  year = {2025},
  eprint = {2510.09167},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.09167},
}
Figure