Learning Compact Compositional Embeddings via Regularized Pruning for Recommendation

Xurong Liang, Tong Chen, Quoc Viet Hung Nguyen, Jianxin Li, Hongzhi Yin · DOI

Introduction

In modern recommender systems (RS), the embedding table is often the primary consumer of memory. To represent millions of users and items as high-dimensional vectors (e.g., 128 dimensions), systems require gigabytes of RAM. This memory footprint creates a significant bottleneck for scaling e-commerce platforms and deploying sophisticated models on resource-constrained mobile devices.

Existing attempts to reduce this footprint generally fall into two categories: compositional hashing methods and pruning/search methods. Hashing methods use small "meta-embedding" tables but suffer from "hash collisions" under tight budgets, where distinct entities receive identical representations. Pruning methods attempt to find optimal dimensions or zero out unimportant ones, but aggressive pruning often leaves vectors too sparse to retain useful information. This paper introduces CERP (Compositional Embedding with Regularized Pruning), a novel framework that bridges these two approaches to achieve extreme model compression without sacrificing accuracy.

The CERP Framework

CERP represents an entity $e_k$ as the sum of two vectors, $p$ and $q$, which are drawn from two independent, small meta-embedding tables known as codebooks. The core innovation lies in how these codebooks are optimized and pruned.

Learnable Pruning and Complementarity

Unlike traditional methods that use fixed dimensions, CERP employs learnable soft-threshold matrices. During the training process, the model identifies specific elements within the codebooks that contribute minimally to performance and zeros them out via $L_1$ regularization.

To ensure that the two codebooks store non-redundant information, the authors introduce a Complementary Regularizer ($L_{prune}$). This differentiable regularizer encourages a "mismatching" pruning pattern: if a specific index in codebook A is pruned, the regularizer incentivizes codebook B to keep that same index active. This ensures that even if individual vectors are sparse, their sum remains a dense, information-rich representation.

Optimization Strategy

To balance the competing goals of pruning speed and recommendation accuracy, CERP utilizes an exponential decay on the weight of the pruning regularizer. This allows the model to prioritize the discovery of complementary structures in the early stages of training, followed by a fine-tuning phase where the actual embedding values are optimized for the recommendation task.

Experimental Evaluation

The authors evaluated CERP on two benchmark datasets: Gowalla (a location-based social network) and Yelp2020 (a business review dataset). To demonstrate that the method is model-agnostic, CERP was integrated with two distinct backbone architectures: MLP (Neural Collaborative Filtering) and LightGCN.

Key Results

CERP consistently outperformed state-of-the-art baselines such as PEP, AutoEmb, and QR, particularly under extreme memory constraints (90% to 99% sparsity):

  • Extreme Compression Performance: On the Gowalla dataset using LightGCN, CERP achieved a 44.5% improvement in Recall@10 compared to the strongest baseline at a 99% compression rate.
  • Information Retention: While traditional pruning methods like PEP were forced to reduce the average embedding dimension to just 1.28 to meet a 99% sparsity target, CERP maintained an effective average dimension of approximately 18. This confirms that the compositional approach preserves significantly more information than simple pruning.
  • Stability: CERP demonstrated higher stability across various memory budgets compared to AutoML-based search methods, which often struggle to converge under strict sparsity constraints.

Discussion and Insights

The success of CERP stems from its focus on density over sparsity. While standard pruning makes vectors "skinnier," CERP's compositional approach keeps the final vectors dense by summing two sparse vectors with different zero-patterns. This allows for larger "bucket sizes" in the meta-embedding tables, which drastically reduces the probability of hash collisions.

Furthermore, the authors observed that without the complementary regularizer, the two codebooks tended to prune the same dimensions, leading to high redundancy. The introduction of $L_{prune}$ successfully lowered the overlap rate, which directly correlated with improved recommendation performance.

Limitations and Future Work

Despite its performance, CERP requires a parameter retraining stage after the pruning masks are fixed to recover performance lost during sparsification. Future research could explore the use of more than two codebooks with multi-way complementarity regularizers, or investigate non-linear composition functions and attention-based merging to further enhance the richness of the learned embeddings.

Summary updated

BibTeX
@inproceedings{liang2023learning,
  author = {Xurong Liang and Tong Chen and Quoc Viet Hung Nguyen and Jianxin Li and Hongzhi Yin},
  title = {{Learning Compact Compositional Embeddings via Regularized Pruning for Recommendation}},
  booktitle = {ICDM},
  year = {2023},
  doi = {10.1109/icdm58522.2023.00047},
}
Figure