arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.17475cs.LGcs.CLstat.ML
收藏

使用高效SoftMax归一化学习分布式表示

Learning distributed representations with efficient SoftMax normalization

ISI Foundation(ISI基金会)

Lorenzo Dall'Amico, Enrico Maria Belliardo

AI总结:

本文提出一种线性时间启发式近似方法计算SoftMax归一化常数,并设计出高效且与任务无关的嵌入学习算法,在保持或提升性能的同时显著降低计算时间。

摘要:

学习编码对象间关系相似性模式的分布式表示(或嵌入)是机器学习中的一个重要任务。学习嵌入矩阵$X, Y$的一种流行方法是优化包含${\ m SoftMax}(XY^T)$项的损失函数。然而,计算该项所需的复杂度随问题规模呈二次增长,使其成为一种计算繁重的解决方案。在本文中,我们提出了一种线性时间的启发式近似方法,用于计算具有有界范数的嵌入向量的${\ m SoftMax}(XY^T)$归一化常数。我们在一些预训练嵌入数据集上展示,所提出的估计方法实现了比竞争方法更高或相当的准确度。基于此结果,我们设计了一种高效且与任务无关的算法,通过优化softmax与作为输入给定的一组概率分布之间的交叉熵来学习嵌入。所提出的算法具有可解释性,且易于适应任意嵌入问题。我们考虑了几个用例,并观察到与类似的“2Vec”算法相比,具有相似或更高的性能以及更低的计算时间。

英文摘要:

Learning distributed representations, or embeddings, that encode the relational similarity patterns among objects is a relevant task in machine learning. A popular method to learn the embedding matrices $X, Y$ is optimizing a loss function of the term ${\rm SoftMax}(XY^T)$. The complexity required to calculate this term, however, runs quadratically with the problem size, making it a computationally heavy solution. In this article, we propose a linear-time heuristic approximation to compute the normalization constants of ${\rm SoftMax}(XY^T)$ for embedding vectors with bounded norms. We show on some pre-trained embedding datasets that the proposed estimation method achieves higher or comparable accuracy with competing methods. From this result, we design an efficient and task-agnostic algorithm that learns the embeddings by optimizing the cross entropy between the softmax and a set of probability distributions given as inputs. The proposed algorithm is interpretable and easily adapted to arbitrary embedding problems. We consider a few use cases and observe similar or higher performances and a lower computational time than similar ``2Vec'' algorithms.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑