arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.05243cs.LG
收藏

r-softmax:具有可控稀疏率的广义 Softmax

r-softmax: Generalized Softmax with Controllable Sparsity Rate

Jagiellonian University(雅盖隆大学)

Klaudia Bałazy, Łukasz Struski, Marek Śmieja, Jacek Tabor

AI总结:

针对 softmax 无法产生稀疏概率输出的问题,本文提出稀疏率可控的 r-softmax,并在多标签数据集和预训练 Transformer 自注意力微调中验证其性能优势。

摘要:

如今,人工神经网络模型在许多学科中都取得了显著成果。将模型提供的表示映射为概率分布的函数,是深度学习解决方案中不可分割的一部分。尽管 softmax 是机器学习领域普遍接受的概率映射函数,但它无法返回稀疏输出,并且总是将正概率分散到所有位置。本文提出 r-softmax,这是对 softmax 的一种改进,可输出具有可控稀疏率的稀疏概率分布。与现有稀疏概率映射函数相比,我们提供了一种直观的机制来控制输出稀疏程度。我们在多个多标签数据集上表明,r-softmax 优于其他 softmax 稀疏替代方案,并且与原始 softmax 相比具有很强的竞争力。我们还将 r-softmax 应用于预训练 transformer 语言模型的自注意力模块,并证明在不同自然语言处理任务上微调模型时,它能够带来性能提升。

英文摘要:

Nowadays artificial neural network models achieve remarkable results in many disciplines. Functions mapping the representation provided by the model to the probability distribution are the inseparable aspect of deep learning solutions. Although softmax is a commonly accepted probability mapping function in the machine learning community, it cannot return sparse outputs and always spreads the positive probability to all positions. In this paper, we propose r-softmax, a modification of the softmax, outputting sparse probability distribution with controllable sparsity rate. In contrast to the existing sparse probability mapping functions, we provide an intuitive mechanism for controlling the output sparsity level. We show on several multi-label datasets that r-softmax outperforms other sparse alternatives to softmax and is highly competitive with the original softmax. We also apply r-softmax to the self-attention module of a pre-trained transformer language model and demonstrate that it leads to improved performance when fine-tuning the model on different natural language processing tasks.

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

↑