A Tale of Two Efficient and Informative Negative Sampling Distributions
Not on the map. Why?
Abstract (arXiv)
Softmax classifiers with a very large number of classes naturally occur in many applications such as natural language processing and information retrieval. The calculation of full softmax is costly from the computational and energy perspective. There have been various sampling approaches to overcome this challenge, popularly known as negative sampling (NS). Ideally, NS should sample negative classes from a distribution that is dependent on the input data, the current parameters, and the correct positive class. Unfortunately, due to the dynamically updated parameters and data samples, there is no sampling scheme that is provably adaptive and samples the negative classes efficiently. Therefore, alternative heuristics like random sampling, static frequency-based sampling, or learning-based biased sampling, which primarily trade either the sampling cost or the adaptivity of samples per iteration are adopted. In this paper, we show two classes of distributions where the sampling scheme is truly adaptive and provably generates negative samples in near-constant time. Our implementation in C++ on CPU is significantly superior, both in terms of wall-clock time and accuracy, compared to the most optimized TensorFlow implementations of other popular negative sampling approaches on powerful NVIDIA V100 GPU.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). First posted on arXiv 31 Dec 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 0; 2023: 2; 2024: 0; 2025: 0; 2026: 1.
5 papers.
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 130
- 2021Hard Negative Sampling via Regularized Optimal Transport for Contrastive Representation Learningcited by 4
- 2023iACOS: Advancing Implicit Sentiment Extraction with Informative and Adaptive Negative Examplescited by 2
- 2023Variational Information Pursuit with Large Language and Multimodal Models for Interpretable Predictionscited by 0
- 2026Fast Gauss-Newton for Multiclass Cross-Entropycited by 0
- 2026Fast Gauss-Newton for Multiclass Cross-Entropy7 May 2026
- 2023iACOS: Advancing Implicit Sentiment Extraction with Informative and Adaptive Negative Examples7 Nov 2023
- 2023Variational Information Pursuit with Large Language and Multimodal Models for Interpretable Predictions24 Aug 2023
- 2021Hard Negative Sampling via Regularized Optimal Transport for Contrastive Representation Learning4 Nov 2021
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximation28 Oct 2021