paper-with-me

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 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.

📄 PDF Abstract BibTeX arXiv:2304.05243

Code (1)

gmum/rsoftmax 공식 구현 pytorch

Tasks

Language ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

$ε$-Softmax: Approximating One-Hot Vectors for Mitigating Label Noise

2025-08-04 · Jialiang Wang, Xiong Zhou, Deming Zhai, Junjun Jiang 외 arxiv

Noisy labels pose a common challenge for training accurate deep neural networks. To mitigate label noise, prior studies have proposed various robust loss functions to achieve noise tolerance in the presence of label nois…

On Controllable Sparse Alternatives to Softmax

2018-10-29 · NeurIPS 2018 12 · Anirban Laha, Saneem A. Chemmengath, Priyanka Agrawal, Mitesh M. Khapra 외

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 …

Abstractive Text SummarizationClassificationGeneral ClassificationMachine Translation+1

Adaptively Sparse Transformers

2019-08-30 · IJCNLP 2019 11 · Gonçalo M. Correia, Vlad Niculae, André F. T. Martins

Attention mechanisms have become ubiquitous in NLP. Recent architectures, notably the Transformer, learn powerful context-aware word representations through layered, multi-headed attention. The multiple heads learn diver…

DiversityMachine TranslationTranslation

Softpick: No Attention Sink, No Massive Activations with Rectified Softmax

2025-04-29 · Zayd M. K. Zuhri, Erland Hilman Fuadi, Alham Fikri Aji

We introduce softpick, a rectified, not sum-to-one, drop-in replacement for softmax in transformer attention mechanisms that eliminates attention sink and massive activations. Our experiments with 340M parameter models d…

Quantization

Large-Margin Softmax Loss for Convolutional Neural Networks

2016-12-07 · Weiyang Liu, Yandong Wen, Zhiding Yu, Meng Yang

Cross-entropy loss together with softmax is arguably one of the most common used supervision components in convolutional neural networks (CNNs). Despite its simplicity, popularity and excellent performance, the component…

General Classification