Skip to main content
QUICK REVIEW

[Paper Review] Learnable Embedding Sizes for Recommender Systems

Siyi Liu, Chen Gao|arXiv (Cornell University)|Jan 19, 2021
Recommender Systems and TechniquesComputer Science23 references20 citations
TL;DR

This paper proposes PEP (Plug-in Embedding Pruning), a general framework that learns mixed-dimension embedding sizes for recommender systems by adaptively pruning less important embedding parameters via differentiable thresholds. It reduces embedding parameters by 97–99% while maintaining or improving recommendation accuracy, with only a 20–30% increase in training time, and enables one-time generation of multiple memory-efficient models for diverse deployment needs.

ABSTRACT

The embedding-based representation learning is commonly used in deep learning recommendation models to map the raw sparse features to dense vectors. The traditional embedding manner that assigns a uniform size to all features has two issues. First, the numerous features inevitably lead to a gigantic embedding table that causes a high memory usage cost. Second, it is likely to cause the over-fitting problem for those features that do not require too large representation capacity. Existing works that try to address the problem always cause a significant drop in recommendation performance or suffers from the limitation of unaffordable training time cost. In this paper, we proposed a novel approach, named PEP (short for Plug-in Embedding Pruning), to reduce the size of the embedding table while avoiding the drop of recommendation accuracy. PEP prunes embedding parameter where the pruning threshold(s) can be adaptively learned from data. Therefore we can automatically obtain a mixed-dimension embedding-scheme by pruning redundant parameters for each feature. PEP is a general framework that can plug in various base recommendation models. Extensive experiments demonstrate it can efficiently cut down embedding parameters and boost the base model's performance. Specifically, it achieves strong recommendation performance while reducing 97-99% parameters. As for the computation cost, PEP only brings an additional 20-30% time cost compared with base models. Codes are available at https://github.com/ssui-liu/learnable-embed-sizes-for-RecSys.

Motivation & Objective

  • To address the inefficiency and overfitting issues caused by uniform embedding sizes across heterogeneous features in deep learning recommendation models.
  • To reduce the memory and computational cost of large embedding tables without sacrificing recommendation performance.
  • To develop a plug-and-play framework that can be applied to various base recommendation models with minimal modification.
  • To enable end-to-end, data-driven embedding size adaptation that captures intrinsic feature properties automatically.
  • To generate multiple pruned embedding tables efficiently for diverse deployment scenarios (e.g., memory vs. performance trade-offs).

Proposed method

  • Introduces learnable pruning thresholds that are jointly optimized with embedding parameters via gradient descent to identify and remove redundant embedding dimensions.
  • Applies one-shot pruning to remove embedding parameters below the adaptive threshold, resulting in feature-specific, mixed-dimension embedding tables.
  • Re-trains the pruned model using principles inspired by the Lottery Ticket Hypothesis to recover or improve performance.
  • Employs a differentiable sparsity regularization that enables end-to-end training of embedding size selection.
  • Supports multiple pruned models by running the framework once, allowing for a range of memory-performance trade-offs.
  • Uses visualization of feature interaction matrices (via $\mathbf{V}\mathbf{V}^\top$) to interpret the impact of pruning on feature correlations.

Experimental results

Research questions

  • RQ1Can a learnable, differentiable pruning mechanism reduce embedding parameters without degrading recommendation accuracy?
  • RQ2How does the learned embedding size correlate with feature frequency and intrinsic importance?
  • RQ3Can the framework generate multiple pruned models with varying memory and performance trade-offs from a single training run?
  • RQ4Does pruning reduce noisy feature interactions while preserving meaningful ones, as evidenced by interaction matrix analysis?
  • RQ5How does the method compare to human-designed or NAS-based embedding size selection in terms of performance and efficiency?

Key findings

  • PEP reduces embedding parameters by 97–99% across three benchmark datasets (Criteo, Avazu, MovieLens-1M) while maintaining or improving recommendation accuracy.
  • The method incurs only a 20–30% increase in training time compared to base models, demonstrating strong computational efficiency.
  • Visualization of the feature interaction matrix shows that PEP preserves strong correlations between important feature fields while reducing noise in less relevant interactions.
  • Sparsity trajectories reveal that high-frequency features are assigned larger embedding sizes, while low-frequency features are pruned more aggressively, aligning with intuitive expectations.
  • The learned embedding sizes correlate with feature frequency but are not strictly determined by it, indicating the method captures deeper intrinsic feature properties beyond frequency.
  • PEP generates multiple pruned embedding tables in a single run, enabling flexible deployment for diverse system constraints.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.