Budgeted Embedding Table For Recommender Systems

Yunke Qu, Tong Chen, Quoc Viet Hung Nguyen, Hongzhi Yin

TL;DR

Budgeted Embedding Table (BET) is a novel framework that automatically optimizes user and item embedding sizes in recommender systems to fit within strict memory constraints. By shifting from individual user/item decisions to "table-level" actions and using a DeepSets-based fitness predictor, BET achieves state-of-the-art accuracy while guaranteeing that memory budgets are never exceeded.

What Problem Does This Paper Address?

Modern recommender systems (RSs) rely on embedding tables to represent users and items as latent vectors. In industry-scale applications, these tables can be gargantuan—sometimes exceeding 25 billion parameters and requiring over 100 GB of memory. This poses a massive hurdle for deployment on resource-constrained devices like smartphones or IoT sensors.

Existing "lightweight" embedding methods generally fall into two traps:

  1. Soft Constraints: They use regularization terms to encourage sparsity, which requires tedious manual tuning of trade-off coefficients for every new memory budget. Worse, they often fail to strictly cap memory usage, leading to "budget creep."
  2. Search Inefficiency: Many methods, particularly those based on Reinforcement Learning (RL), try to decide the optimal embedding size for every single user and item individually. With millions of entities, this instance-by-instance search is prohibitively slow and computationally expensive.

Methods

The authors introduce Budgeted Embedding Table (BET), which streamlines the search process through three key innovations:

  • Table-Level Action Sampling: Instead of deciding sizes one by one, BET generates a "table-level action"—a complete configuration of embedding sizes for all users and items at once. It samples from various probability distributions (like power law or log-normal) and normalizes the results to ensure the total parameter count strictly matches the pre-specified budget.
  • Set-Based Action Formulation: To represent these complex table configurations, the authors group users and items that share the same embedding size into sets. This allows them to use DeepSets, an architecture designed to process permutation-invariant sets, to learn a compact representation of the entire table's "fitness."
Overview of the BET workflow, showing the sampler, fitness predictor, and recommender feedback loop.
  • Fitness Prediction Network: Training a full recommender model to evaluate every candidate configuration is too slow. BET uses a surrogate "fitness predictor" that estimates the recommendation quality of a configuration. This predictor is trained incrementally during the search process, drastically reducing the number of full model evaluations needed.
The DeepSets-based fitness predictor architecture.

Datasets

The researchers evaluated BET on two widely used real-world benchmarks:

  • Gowalla: A location-based social network dataset with ~1.03 million interactions.
  • Yelp2018: A business review dataset with ~1.56 million interactions.

They paired BET with three popular backbone recommender models: NCF, NGCF, and LightGCN, testing them under extreme sparsity ratios of 80%, 90%, and 95%.

Key Insights and Ideas

  • Hard Constraints by Design: By building the memory budget directly into the sampling process (via normalization), BET eliminates the need for "sparsity penalties" in the loss function. This makes the system much more robust and easier to deploy for specific hardware limits.
  • Inductive Learning for Search: The use of DeepSets is a clever "aha" moment. Because it treats the table as a collection of sets, the fitness predictor can generalize to unseen configurations and varying numbers of users/items without needing to be retrained from scratch for every new search space.
  • Frequency as a Prior: BET leverages the observation that frequent users/items benefit more from larger embeddings. By ranking entities by frequency and assigning larger sampled sizes to them, the search space is effectively narrowed toward high-quality solutions.
Example of grouping users and items into sets based on their assigned embedding sizes.

Key Results

BET consistently outperformed state-of-the-art baselines like PEP, CIESS, and OptEmbed across all tested sparsity levels.

  • Superior Efficiency: On the Gowalla dataset with LightGCN, BET at 90% sparsity achieved better Recall@20 (0.1620) than the ESAPN baseline achieved at only 75% sparsity (0.1579). This means BET provides better recommendations while using significantly less memory.
  • Strict Budget Adherence: Unlike baselines that often missed their target sparsity (e.g., OptEmbed hitting 74% when 80% was requested), BET met every budget exactly.
  • Fast Convergence: The fitness predictor proved highly effective, with the search process typically reaching peak performance within just 40–50 iterations.

Limitations and Future Work

While BET is model-agnostic and efficient, the authors note that the current version primarily relies on entity frequency and embedding size as context for the fitness predictor. They suggest that incorporating other signals, such as model confidence or gradient-based importance scores, could further refine the search. Additionally, while the search is efficient, the initial pre-training of a full-sized "backbone" model is still required as a starting point.

Summary updated

BibTeX
@inproceedings{qu2024budgeted,
  author = {Yunke Qu and Tong Chen and Quoc Viet Hung Nguyen and Hongzhi Yin},
  title = {{Budgeted Embedding Table For Recommender Systems}},
  booktitle = {WSDM},
  year = {2024},
  doi = {10.1145/3616855.3635778},
}
Figure