Skip to main content
QUICK REVIEW

[Paper Review] Training with Multi-Layer Embeddings for Model Reduction

Benjamin Ghaemmaghami, Zihao Deng|arXiv (Cornell University)|Jun 10, 2020
Recommender Systems and TechniquesComputer Science24 references5 citations
TL;DR

This paper proposes Multi-Layer Embedding Training (MLET), a method that replaces single-layer embedding tables with a two-layer linear architecture to achieve superior accuracy-to-model-size trade-offs. By training with a wider hidden layer (k) followed by a projection to the final embedding dimension (d), MLET leverages lower effective rank in learned representations, enabling 4–8× reduction in embedding table size at no accuracy loss, with only a 25% average training time increase.

ABSTRACT

Modern recommendation systems rely on real-valued embeddings of categorical features. Increasing the dimension of embedding vectors improves model accuracy but comes at a high cost to model size. We introduce a multi-layer embedding training (MLET) architecture that trains embeddings via a sequence of linear layers to derive superior embedding accuracy vs. model size trade-off. Our approach is fundamentally based on the ability of factorized linear layers to produce superior embeddings to that of a single linear layer. We focus on the analysis and implementation of a two-layer scheme. Harnessing the recent results in dynamics of backpropagation in linear neural networks, we explain the ability to get superior multi-layer embeddings via their tendency to have lower effective rank. We show that substantial advantages are obtained in the regime where the width of the hidden layer is much larger than that of the final embedding (d). Crucially, at conclusion of training, we convert the two-layer solution into a single-layer one: as a result, the inference-time model size scales as d. We prototype the MLET scheme within Facebook's PyTorch-based open-source Deep Learning Recommendation Model. We show that it allows reducing d by 4-8X, with a corresponding improvement in memory footprint, at given model accuracy. The experiments are run on two publicly available click-through-rate prediction benchmarks (Criteo-Kaggle and Avazu). The runtime cost of MLET is 25%, on average.

Motivation & Objective

  • To address the growing memory cost of high-dimensional embedding tables in recommendation systems.
  • To improve the accuracy vs. model size trade-off in deep learning recommendation models without modifying the inference architecture.
  • To explore whether multi-layer linear transformations can produce better embeddings than single-layer tables.
  • To prototype and evaluate MLET within Facebook's open-source DLRM framework for real-world performance.

Proposed method

  • MLET replaces a single embedding table W ∈ ℝⁿˣᵈ with a two-layer linear transformation: qW₁W₂, where W₁ ∈ ℝⁿˣᵏ and W₂ ∈ ℝᵏˣᵈ.
  • The model is trained end-to-end using backpropagation, with the final inference using only W₂ to maintain d-dimensional output.
  • The approach exploits theoretical insights from linear network dynamics, where deeper linear networks tend to have lower effective rank, enabling better generalization.
  • The method is implemented and evaluated within Facebook's PyTorch-based DLRM framework on Criteo-Kaggle and Avazu datasets.
  • Training memory increases by a factor of k/d compared to single-layer training, but inference memory remains proportional to d.
  • The final model is converted to a single-layer form at inference, preserving compatibility with existing systems.

Experimental results

Research questions

  • RQ1Can a multi-layer linear architecture produce embeddings that outperform single-layer embeddings in terms of accuracy and model size?
  • RQ2Why do multi-layer linear networks yield better embeddings than single-layer ones, and what underlying dynamics explain this?
  • RQ3To what extent can the embedding table size be reduced using MLET while maintaining or improving model accuracy?
  • RQ4Are there configurations where MLET improves both accuracy and model size at no additional training memory cost?

Key findings

  • MLET achieves a 4–8× reduction in embedding table size at the same model accuracy level compared to single-layer embeddings on both Criteo-Kaggle and Avazu datasets.
  • The maximum LogLoss improvement for MLET is 0.0025 on Criteo-Kaggle and 0.006 on Avazu, with performance saturating as k increases beyond a certain point.
  • For certain k/d ratios, MLET achieves both improved accuracy and reduced model size at no additional training memory cost (i.e., k ≤ d), observed in Avazu but not Criteo-Kaggle.
  • The runtime cost of MLET training is 25% higher on average compared to single-layer training, with inference time identical to standard DLRM.
  • The performance gain is primarily governed by the k/d ratio, with higher k/d leading to monotonic improvements in accuracy.
  • The method is effective even at low d, where the relative improvement in model size is most pronounced, due to the ability to use k ≤ d for cost-free gains.

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.