MultiMax:稀疏与多模态注意力学习
MultiMax: Sparse and Multi-Modal Attention Learning
AI总结:
本文提出分段可微的 MultiMax 函数,根据输入范围自适应调节输出分布,在保持多模态性的同时抑制无关条目,并在图像分类、语言建模和机器翻译中验证收益。
摘要:
SoftMax 是现代机器学习算法中普遍存在的组成部分。它将输入向量映射到概率单纯形上,并通过把概率质量集中在较大的条目上来重新加权输入。然而,作为 Argmax 函数的一种平滑近似,大量概率质量被分配给其他残余条目,导致较差的可解释性和噪声。尽管可以通过一系列 SoftMax 变体实现稀疏性,但它们通常需要替代损失函数,并且不能保持多模态性。我们表明,多模态性与稀疏性之间的这种权衡限制了 SoftMax 及其变体的表达能力。我们通过提出一种分段可微函数(称为 MultiMax)为这两个目标之间的冲突提供了解决方案,该函数根据输入条目的范围自适应地调节输出分布。通过全面的分析和评估,我们表明 MultiMax 成功生成了一种分布,该分布在保持多模态性的同时抑制无关条目,并在图像分类、语言建模和机器翻译中带来收益。代码可在 https://github.com/ZhouYuxuanYX/MultiMax 获取。
英文摘要:
SoftMax is a ubiquitous ingredient of modern machine learning algorithms. It maps an input vector onto a probability simplex and reweights the input by concentrating the probability mass at large entries. Yet, as a smooth approximation to the Argmax function, a significant amount of probability mass is distributed to other, residual entries, leading to poor interpretability and noise. Although sparsity can be achieved by a family of SoftMax variants, they often require an alternative loss function and do not preserve multi-modality. We show that this trade-off between multi-modality and sparsity limits the expressivity of SoftMax as well as its variants. We provide a solution to this tension between objectives by proposing a piece-wise differentiable function, termed MultiMax, which adaptively modulates the output distribution according to input entry range. Through comprehensive analysis and evaluation, we show that MultiMax successfully produces a distribution that supresses irrelevant entries while preserving multimodality, with benefits in image classification, language modeling and machine translation. The code is available at https://github.com/ZhouYuxuanYX/MultiMax.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。