Anchor & Transform:学习大词汇的稀疏嵌入
Anchor & Transform: Learning Sparse Embeddings for Large Vocabularies
摘要:
学习离散对象(如文本、用户、电影和URL)的连续表示是许多应用程序(包括语言和用户建模)的核心。当使用离散对象作为神经网络的输入时,我们经常忽略底层结构(例如,自然分组和相似性),并将对象独立地嵌入到各个向量中。因此,现有的方法不能扩展到大的词汇量。在本文中,我们设计了一个简单而有效的嵌入算法,学习一个小的锚嵌入和稀疏变换矩阵。我们称我们的方法为Anchor & Transform(ANT),因为离散对象的嵌入是锚的稀疏线性组合,根据变换矩阵加权。ANT具有可扩展性、灵活性和端到端可培训性。我们进一步提供了一个统计解释,我们的算法作为一个贝叶斯非参数先验的嵌入,鼓励稀疏性,并利用对象之间的自然分组。通过推导一个基于小方差渐近的近似推理算法,我们获得了一个自然的扩展,它可以自动学习锚的最佳数量,而不必将其调整为超参数。在文本分类,语言建模和电影推荐基准测试中,我们表明ANT特别适合大词汇量,并且与现有的压缩基线相比,使用更少的参数(高达40倍压缩)表现出更强的性能。
英文摘要:
Learning continuous representations of discrete objects such as text, users, movies, and URLs lies at the heart of many applications including language and user modeling. When using discrete objects as input to neural networks, we often ignore the underlying structures (e.g., natural groupings and similarities) and embed the objects independently into individual vectors. As a result, existing methods do not scale to large vocabulary sizes. In this paper, we design a simple and efficient embedding algorithm that learns a small set of anchor embeddings and a sparse transformation matrix. We call our method Anchor & Transform (ANT) as the embeddings of discrete objects are a sparse linear combination of the anchors, weighted according to the transformation matrix. ANT is scalable, flexible, and end-to-end trainable. We further provide a statistical interpretation of our algorithm as a Bayesian nonparametric prior for embeddings that encourages sparsity and leverages natural groupings among objects. By deriving an approximate inference algorithm based on Small Variance Asymptotics, we obtain a natural extension that automatically learns the optimal number of anchors instead of having to tune it as a hyperparameter. On text classification, language modeling, and movie recommendation benchmarks, we show that ANT is particularly suitable for large vocabulary sizes and demonstrates stronger performance with fewer parameters (up to 40x compression) as compared to existing compression baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。