paper-with-me

홈 › Papers

Adaptive Sampled Softmax with Kernel Based Sampling

2017-12-02 · ICML 2018 7 · Guy Blanc, Steffen Rendle

Softmax is the most commonly used output function for multiclass problems and is widely used in areas such as vision, natural language processing, and recommendation. A softmax model has linear costs in the number of classes which makes it too expensive for many real-world problems. A common approach to speed up training involves sampling only some of the classes at each training step. It is known that this method is biased and that the bias increases the more the sampling distribution deviates from the output distribution. Nevertheless, almost any recent work uses simple sampling distributions that require a large sample size to mitigate the bias. In this work, we propose a new class of kernel based sampling methods and develop an efficient sampling algorithm. Kernel based sampling adapts to the model as it is trained, thus resulting in low bias. Kernel based sampling can be easily applied to many models because it relies only on the model's last hidden layer. We empirically study the trade-off of bias, sampling distribution and sample size and show that kernel based sampling results in low bias with few samples.

📄 PDF Abstract BibTeX arXiv:1712.00527

Code (0)

등록된 구현이 없습니다.

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 제목 키워드 기반

Sampled Softmax with Random Fourier Features

2019-07-24 · NeurIPS 2019 12 · Ankit Singh Rawat, Jiecao Chen, Felix Yu, Ananda Theertha Suresh 외

The computational cost of training with softmax cross entropy loss grows linearly with the number of classes. For the settings where a large number of classes are involved, a common method to speed up training is to samp…

TAPAS: Two-pass Approximate Adaptive Sampling for Softmax

2017-07-10 · Yu Bai, Sally Goldman, Li Zhang

TAPAS is a novel adaptive sampling method for the softmax model. It uses a two pass sampling strategy where the examples used to approximate the gradient of the partition function are first sampled according to a squashe…

General ClassificationMulti-class ClassificationVocal Bursts Valence Prediction

Data-Aware Random Feature Kernel for Transformers

2026-03-04 · Amirhossein Farzam, Hossein Mobahi, Nolan Andrew Miller, Luke Sernau arxiv

Transformers excel across domains, yet their quadratic attention complexity poses a barrier to scaling. Random-feature attention, as in Performers, can reduce this cost to linear in the sequence length by approximating t…

Dual-layer Image Compression via Adaptive Downsampling and Spatially Varying Upconversion

2023-02-13 · Xi Zhang, Xiaolin Wu

Ultra high resolution (UHR) images are almost always downsampled to fit small displays of mobile end devices and upsampled to its original resolution when exhibited on very high-resolution displays. This observation moti…

DecoderImage Compression

Adaptive Sampled Softmax with Inverted Multi-Index: Methods, Theory and Applications

2025-01-15 · Jin Chen, Jin Zhang, Xu Huang, Yi Yang 외

The softmax function is a cornerstone of multi-class classification, integral to a wide range of machine learning applications, from large-scale retrieval and ranking models to advanced large language models. However, it…

Multi-class Classification