[论文解读] Learnable Embedding Sizes for Recommender Systems
本文提出 PEP(插件式嵌入剪枝),一种通用框架,通过可微分阈值自适应剪枝不重要的嵌入参数,为推荐系统学习混合维度的嵌入大小。该方法在仅增加 20–30% 训练时间的前提下,将嵌入参数减少 97–99%,同时保持或提升推荐准确率,并可一次性生成多个适用于不同部署需求的内存高效模型。
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.
研究动机与目标
- 解决深度学习推荐模型中异构特征使用统一嵌入大小所导致的效率低下和过拟合问题。
- 在不牺牲推荐性能的前提下,降低大型嵌入表的内存和计算成本。
- 开发一种即插即用的框架,可对多种基础推荐模型进行最小修改即可应用。
- 实现端到端、数据驱动的嵌入大小自适应,自动捕捉特征的内在属性。
- 从单次训练运行中高效生成多个剪枝后的嵌入表,以适应多样化的部署场景(如内存与性能的权衡)。
提出的方法
- 引入可学习的剪枝阈值,通过梯度下降与嵌入参数联合优化,识别并移除冗余的嵌入维度。
- 应用一次性剪枝,移除低于自适应阈值的嵌入参数,从而生成特征特定的、混合维度的嵌入表。
- 利用受彩票假说启发的原则对剪枝后的模型进行微调,以恢复或提升性能。
- 采用可微分的稀疏正则化,实现嵌入大小选择的端到端训练。
- 通过一次运行框架即可支持生成多个剪枝模型,从而实现多种内存-性能权衡的灵活配置。
- 通过 $\mathbf{V}\mathbf{V}^\top$ 可视化特征交互矩阵,解释剪枝对特征相关性的影响。
实验结果
研究问题
- RQ1可学习的、可微分的剪枝机制是否能在不降低推荐准确率的前提下减少嵌入参数?
- RQ2所学的嵌入大小与特征频率及内在重要性之间有何关联?
- RQ3该框架是否能通过单次训练运行生成多个具有不同内存与性能权衡的剪枝模型?
- RQ4剪枝是否减少了噪声特征交互,同时保留了有意义的交互?这一结论是否可通过交互矩阵分析得到验证?
- RQ5与人工设计或基于神经架构搜索(NAS)的嵌入大小选择方法相比,该方法在性能和效率方面表现如何?
主要发现
- PEP 在三个基准数据集(Criteo、Avazu、MovieLens-1M)上将嵌入参数减少了 97–99%,同时保持或提升了推荐准确率。
- 与基础模型相比,该方法仅增加 20–30% 的训练时间,展现出强大的计算效率。
- 特征交互矩阵的可视化显示,PEP 保留了重要特征字段之间的强相关性,同时减少了不相关交互中的噪声。
- 稀疏性轨迹显示,高频特征被分配更大的嵌入大小,而低频特征则被更激进地剪枝,与直观预期一致。
- 所学的嵌入大小与特征频率相关,但并非严格由频率决定,表明该方法捕捉到了超越频率的更深层次特征内在属性。
- PEP 在单次运行中即可生成多个剪枝后的嵌入表,支持灵活部署以适应多样化的系统约束。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。