[Paper Review] Memory-efficient Embedding for Recommendations
This paper proposes AutoDim, an AutoML framework that automatically assigns optimal, varying embedding dimensions to different feature fields in deep learning-based recommender systems. By using a differentiable, continuous optimization process to learn dimension weights and then distilling them into a discrete, hard architecture, AutoDim reduces memory usage while maintaining or improving recommendation performance on benchmark datasets.
Practical large-scale recommender systems usually contain thousands of feature fields from users, items, contextual information, and their interactions. Most of them empirically allocate a unified dimension to all feature fields, which is memory inefficient. Thus it is highly desired to assign different embedding dimensions to different feature fields according to their importance and predictability. Due to the large amounts of feature fields and the nuanced relationship between embedding dimensions with feature distributions and neural network architectures, manually allocating embedding dimensions in practical recommender systems can be very difficult. To this end, we propose an AutoML based framework (AutoDim) in this paper, which can automatically select dimensions for different feature fields in a data-driven fashion. Specifically, we first proposed an end-to-end differentiable framework that can calculate the weights over various dimensions for feature fields in a soft and continuous manner with an AutoML based optimization algorithm; then we derive a hard and discrete embedding component architecture according to the maximal weights and retrain the whole recommender framework. We conduct extensive experiments on benchmark datasets to validate the effectiveness of the AutoDim framework.
Motivation & Objective
- To address memory inefficiency in large-scale recommender systems caused by uniformly assigning fixed embedding dimensions across all feature fields.
- To automatically determine optimal embedding dimensions for different feature fields based on their predictive importance and cardinality.
- To overcome the infeasibility of manual or exhaustive search for dimension allocation across thousands of feature fields.
- To develop an end-to-end, differentiable framework that enables continuous, gradient-based optimization of embedding dimensions.
- To validate the framework's effectiveness in reducing memory footprint while preserving or improving recommendation accuracy.
Proposed method
- Proposes an end-to-end differentiable framework that computes soft, continuous weights over multiple candidate embedding dimensions for each feature field.
- Introduces an AutoML-based optimization algorithm to jointly learn dimension weights and model parameters via gradient descent.
- Derives a hard, discrete embedding architecture by selecting the dimension with the highest learned weight for each feature field.
- Employs two embedding lookup methods and two embedding transformation approaches to evaluate their impact on dimension allocation decisions.
- Retrains the final recommender system using the derived discrete architecture to ensure performance consistency.
- Uses a differentiable relaxation of the discrete architecture search problem to enable backpropagation through the dimension selection process.
Experimental results
Research questions
- RQ1Can an automated, data-driven method effectively assign varying embedding dimensions to different feature fields in recommender systems?
- RQ2How does the relationship between feature distribution, cardinality, and optimal embedding dimension impact recommendation performance?
- RQ3Can a differentiable, continuous relaxation of discrete dimension selection enable effective and efficient AutoML-based optimization?
- RQ4Does the proposed framework achieve comparable or better recommendation performance with significantly reduced memory usage?
- RQ5How do different combinations of embedding lookup and transformation methods affect the final dimension allocation decision?
Key findings
- AutoDim reduces the total number of embedding parameters by up to 50% on benchmark datasets while maintaining or slightly improving recommendation performance.
- The framework successfully identifies high-predictive features (e.g., location, itemID) and assigns them larger embedding dimensions, while assigning smaller dimensions to low-cardinality features like gender.
- The differentiable architecture search process enables effective gradient-based optimization, avoiding the need for expensive search over the discrete space of dimension combinations.
- The ablation study confirms that the choice of embedding lookup and transformation methods influences the final dimension allocation, highlighting the importance of architectural design in the optimization process.
- The distilled hard architecture derived from the soft weights achieves comparable or better performance than models with uniformly assigned dimensions, demonstrating the effectiveness of the distillation step.
- The framework generalizes across multiple real-world benchmark datasets, showing robustness and scalability in practical settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.