Abstract
Modern Content-based Recommender Systems (CRSs) are constrained by massive embedding tables that consume significant memory, hindering deployment on resource-limited mobile devices. Traditional pruning techniques often necessitate costly retraining cycles for every specific memory budget. This paper introduces Shaver (Shapley Value-guided Embedding Reduction), a novel framework that leverages cooperative game theory to achieve single-shot embedding pruning. By treating embedding parameters as players in a cooperative game and efficiently estimating their Shapley values, Shaver identifies the "fair contribution" of each parameter. Combined with a field-aware codebook for information preservation, Shaver enables instant model compression to any target size without retraining. Empirical results on industry-standard benchmarks demonstrate that Shaver maintains high accuracy even at 95% sparsity, often outperforming state-of-the-art methods that require retraining.
Introduction
Content-based Recommender Systems (CRSs) are ubiquitous in industrial applications, such as advertising and product recommendation. These systems utilize embedding tables to map high-dimensional categorical features into dense vectors. However, for large-scale systems, these tables can reach terabyte scales, making on-device execution nearly impossible for mobile and edge hardware.
Existing model compression techniques, particularly pruning, aim to reduce the size of these tables. A significant drawback of current state-of-the-art (SOTA) methods is their "multi-shot" nature: they require the model to be retrained from scratch for every specific memory budget. This computational overhead is a major bottleneck for real-time deployment across diverse hardware and for federated learning scenarios.
Methodology: The Shaver Framework
Shaver addresses these challenges by adopting a cooperative game perspective. It treats the set of embedding parameters as players collaborating to maximize the model's performance.
1. Shapley Value Attribution
The core of Shaver is the use of Shapley values to determine the importance of each parameter. In game theory, the Shapley value provides a unique, fair distribution of a total payout among players based on their marginal contributions to all possible coalitions. In the context of CRSs, this value quantifies how much a specific parameter contributes to the model's accuracy across various subsets of features.
2. Efficient Estimation
Calculating exact Shapley values is computationally prohibitive (NP-hard). Shaver overcomes this by exploiting the structure of recommendation models. The authors proved that for CRSs, complexity can be reduced from factorial to linear by iterating over feature fields (e.g., "Gender", "City") rather than individual features. This mathematical shortcut makes the framework practical for massive datasets.
3. Field-aware Codebook
Standard pruning often replaces deleted parameters with zeros, which can disrupt the mathematical interactions (e.g., dot products) within the neural network. Shaver instead calculates an optimal "placeholder" value—a field-aware codebook—for each feature field. This "smart average" minimizes information loss and maintains model stability even at extreme compression levels.
4. Single-shot Pruning
Because Shapley values provide a universal ranking of parameter importance, Shaver can prune a model to any desired size in a single pass. Developers can simply select the top-ranked parameters to fit a specific memory budget $B$ without any further training.
Experimental Results
The researchers evaluated Shaver on three large-scale CTR prediction benchmarks: Criteo (~45M instances), Avazu (~40M instances), and KDD Cup 2012 (~150M instances).
Key Findings
- Superior Performance without Retraining: Shaver consistently outperformed or matched "non-single-shot" methods like PEP and TTRec, which require expensive retraining. For instance, on the KDD dataset at 95% sparsity, Shaver achieved an AUC of 0.7836, surpassing retrained baselines.
- Extreme Compression: The framework successfully removed up to 95% of parameters while retaining nearly all original accuracy. On Criteo, it maintained an AUC of 0.8112 at 95% sparsity.
- Efficiency: Shaver's approximation algorithm is highly efficient, taking approximately 2.5 hours for the Criteo dataset—a fraction of the time needed for standard model training.
- On-device Feasibility: Deployment on a Raspberry Pi 4B and a Samsung Galaxy S23 confirmed that memory usage scales linearly with the pruning rate, validating its practicality for diverse mobile hardware.
Conclusion
Shaver introduces a game-theoretic approach to embedding pruning that eliminates the need for costly retraining cycles. By providing a "single-shot" solution that is both mathematically grounded and computationally efficient, it paves the way for deploying high-performance recommendation models on a wide range of resource-constrained devices. Future work will explore dynamic codebooks and the application of this cooperative game perspective to broader deep learning architectures.
Summary updated