paper-with-me

Papers

On Controllable Sparse Alternatives to Softmax

2018-10-29 · NeurIPS 2018 12 · Anirban Laha, Saneem A. Chemmengath, Priyanka Agrawal, Mitesh M. Khapra, Karthik Sankaranarayanan, Harish G. Ramaswamy

Converting an n-dimensional vector to a probability distribution over n objects is a commonly used component in many machine learning tasks like multiclass classification, multilabel classification, attention mechanisms etc. For this, several probability mapping functions have been proposed and employed in literature such as softmax, sum-normalization, spherical softmax, and sparsemax, but there is very little understanding in terms how they relate with each other. Further, none of the above formulations offer an explicit control over the degree of sparsity. To address this, we develop a unified framework that encompasses all these formulations as special cases. This framework ensures simple closed-form solutions and existence of sub-gradients suitable for learning via backpropagation. Within this framework, we propose two novel sparse formulations, sparsegen-lin and sparsehourglass, that seek to provide a control over the degree of desired sparsity. We further develop novel convex loss functions that help induce the behavior of aforementioned formulations in the multilabel classification setting, showing improved performance. We also demonstrate empirically that the proposed formulations, when used to compute attention weights, achieve better or comparable performance on standard seq2seq tasks like neural machine translation and abstractive summarization.

📄 PDF Abstract BibTeX arXiv:1810.11975

Code (0)

등록된 구현이 없습니다.

Tasks

Abstractive Text SummarizationClassificationGeneral ClassificationMachine TranslationTranslation

Similar Papers 제목 키워드 기반

r-softmax: Generalized Softmax with Controllable Sparsity Rate

2023-04-11 · Klaudia Bałazy, Łukasz Struski, Marek Śmieja, Jacek Tabor

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 lear…

Language ModelingLanguage Modelling

Sparse Attention with Linear Units

2021-04-14 · EMNLP 2021 11 · Biao Zhang, Ivan Titov, Rico Sennrich

Recently, it has been argued that encoder-decoder models can be made more interpretable by replacing the softmax function in the attention with its sparse variants. In this work, we introduce a novel, simple method for a…

DecoderDiversityMachine TranslationTranslation+1

Exploring Alternatives to Softmax Function

2020-11-23 · Kunal Banerjee, Vishak Prasad C, Rishi Raj Gupta, Karthik Vyas 외

Softmax function is widely used in artificial neural networks for multiclass classification, multilabel classification, attention mechanisms, etc. However, its efficacy is often questioned in literature. The log-softmax …

General Classificationimage-classificationImage Classification

An Exploration of Softmax Alternatives Belonging to the Spherical Loss Family

2015-11-16 · Alexandre de Brébisson, Pascal Vincent

In a multi-class classification problem, it is standard to model the output of a neural network as a categorical distribution conditioned on the inputs. The output must therefore be positive and sum to one, which is trad…

Language ModelingLanguage ModellingMulti-class Classification

Sparse and Continuous Attention Mechanisms

2020-06-12 · NeurIPS 2020 12 · André F. T. Martins, António Farinhas, Marcos Treviso, Vlad Niculae 외

Exponential families are widely used in machine learning; they include many distributions in continuous and discrete domains (e.g., Gaussian, Dirichlet, Poisson, and categorical distributions via the softmax transformati…

Machine TranslationQuestion Answeringtext-classificationText Classification+3