Abstract
This paper introduces HBayes, a generalized hierarchical Bayesian framework designed for personalized recommendation. Unlike standard models that treat items as a flat list, HBayes explicitly incorporates deep hierarchical structures (e.g., Brand → Style → Product). By utilizing variational inference, the framework achieves state-of-the-art accuracy while maintaining high interpretability through a latent style layer.
Introduction
In modern e-commerce, items are organized into complex hierarchies including catalogs, brands, and categories. Recommendation algorithms typically face a trilemma: ignoring these hierarchies loses relational data, flattening them introduces noise and feature explosion, and deep learning approaches often act as uninterpretable black boxes. HBayes addresses these challenges by modeling hierarchical information in a mathematically principled and computationally efficient manner.
Methodology
The HBayes model assumes a generative process where brands are mixtures of latent "styles." It introduces a hidden style variable to capture diverse properties within a single brand, mapping these to individual items. By introducing latent variables at each level of the hierarchy, complex dependencies are transformed into conditional independencies, simplifying the graphical model.
To ensure scalability, the authors employ Coordinate Ascent Variational Inference (CAVI). A "squared exponential" lower bound approximation is used to maintain tractability when dealing with non-conjugate Gaussian priors and logistic click probabilities, allowing the model to reach high accuracy with fewer iterations than traditional MCMC methods.
Experimental Evaluation
The model was evaluated on two distinct domains to prove generalization:
- Apparel Data (E-commerce): A real-world dataset containing 895 users, 81,223 products, and 5,535 brands, including rich metadata like product titles and categories.
- Music Data (Last.fm + FMA): A public dataset combining listening habits with metadata for 16,328 tracks across 36 genres.
Key Results
HBayes consistently outperformed competitive baselines, including Factorization Machines (FM), SVD++, and Hierarchical Poisson Factorization (HPF).
On the apparel dataset, HBayes improved NDCG@10 by 12.4% over HPF. It demonstrated a dominant lead in precision for small recommendation lists (top 5 or 10), which is critical for mobile user interfaces where screen real estate is limited.
Interpretability and Insights
Beyond raw accuracy, HBayes provides a significant interpretability advantage. Visualizing learned latent styles via t-SNE revealed that the model automatically clusters items into meaningful categories like "Office business" or "Korean-pop street style" without explicit labels.
However, the authors noted a practical engineering trade-off: while adding more features (like NLP-derived title embeddings) improves PR-AUC, it significantly increases training time—in one test, from under 10 minutes to over 4 hours.
Conclusion and Future Work
HBayes offers a robust, interpretable solution for hierarchical recommendation. While it captures static structures effectively, future work is needed to model temporal dynamics (how user style preferences evolve over time) and to improve performance for "cold start" scenarios involving entirely new brands with zero history.
Summary updated