Collaborative Group-Aware Hashing for Fast Recommender Systems

Yan Zhang, Li Deng, Lixin Duan, Ivor W. Tsang, Guowu YangarXiv 2025 · DOI

Abstract

Recommender systems often struggle to balance real-time efficiency with high accuracy, especially in sparse data environments. This paper proposes Collaborative Group-Aware Hashing (CGAH), a framework that leverages binary hashing for speed while incorporating "group affinity" to preserve structural relationships between users and items. By aligning hash codes with latent interest groups, CGAH achieves state-of-the-art accuracy and significant computational gains over traditional matrix factorization and existing hashing methods.

Introduction

Modern recommender systems face a significant challenge: they must handle millions of items in real-time while maintaining accuracy even when user-item interaction data is sparse. Standard Matrix Factorization (MF) is accurate but computationally expensive due to its reliance on floating-point dot products in continuous space.

Hashing techniques offer a solution by converting users and items into binary strings, enabling recommendations via ultra-fast bitwise operations. However, traditional hashing often suffers from high quantization error, particularly in sparse datasets where binary codes fail to capture subtle relationships. CGAH addresses this by forcing hash codes to respect inherent clusters, or "groups," of similar users and items.

The CGAH Framework

The authors propose two variants: CGAH-CF for pure collaborative filtering and CGAH for content-aware recommendation. The framework integrates content data using Denoising Auto-Encoders (DAE) and optimizes hash codes through a discrete coordinate descent approach.

The CGAH architecture integrates content-aware features and user-item interactions to optimize binary hash codes via group affinity modeling.

Methodology

  1. Group Affinity Extraction: The model identifies latent groups in the data and calculates a "group affinity" score, measuring how strongly a user or item belongs to a specific neighborhood of interests.
  2. Preference Formulation: A user's preference is defined as the product of their group affinity and the similarity of their hash codes. This ensures that users within the same interest group are encouraged to have similar binary representations.
  3. Discrete Optimization: To avoid the accuracy loss associated with continuous relaxation, CGAH uses Discrete Coordinate Descent (DCD) to learn binary codes directly, bit-by-bit.

Key Insights: The Power of Group Affinity

The core innovation of CGAH is using group information as a regularizer. By anchoring hash codes to group centroids, the model prevents binary representations from drifting into meaningless patterns when rating data is insufficient.

Illustration of group affinity: users with similar interaction patterns (like u1 and u3) are aligned in the latent space to improve recommendation accuracy.

This "neighborhood anchor" allows the model to maintain the accuracy of continuous models while benefiting from the speed of discrete hashing. The results suggest that learning bits directly is significantly more effective than rounding continuous vectors to binary values.

Evaluation and Results

CGAH was evaluated on three major benchmarks: MovieLens-1M, Amazon CDs, and Amazon Books.

  • Accuracy: CGAH consistently outperformed state-of-the-art discrete methods like DCF and NeuHash-CF. The performance gap was most notable in sparse settings (e.g., using only 10% of training data), where group affinity effectively filled information gaps.
  • Efficiency: On the massive Amazon Books dataset, CGAH achieved a storage compression ratio of 8.9% compared to continuous MF. Online recommendation speeds were 8x to 12x faster than continuous methods.

Conclusion and Future Work

CGAH successfully bridges the gap between the speed of hashing and the accuracy of latent factor models. While highly effective, the model's performance depends on careful hyperparameter tuning and static group definitions. Future research may explore dynamic group-aware hashing to account for evolving user preferences and deeper strategies for "cold-start" scenarios where both content and interaction data are missing.

Summary updated

BibTeX
@misc{zhang2025collaborative,
  author = {Yan Zhang and Li Deng and Lixin Duan and Ivor W. Tsang and Guowu Yang},
  title = {{Collaborative Group-Aware Hashing for Fast Recommender Systems}},
  year = {2025},
  eprint = {2512.20172},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.20172},
}
Figure