mlsanityData to 14 Oct 2026

Sampled Softmax with Random Fourier Features

arXiv 1907.10747 ↗First posted 24 Jul 2019cs.LG stat.MLcited by 33

Not on the map. Why?

Abstract (arXiv)

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 sample a subset of classes and utilize an estimate of the loss gradient based on these classes, known as the sampled softmax method. However, the sampled softmax provides a biased estimate of the gradient unless the samples are drawn from the exact softmax distribution, which is again expensive to compute. Therefore, a widely employed practical approach involves sampling from a simpler distribution in the hope of approximating the exact softmax distribution. In this paper, we develop the first theoretical understanding of the role that different sampling distributions play in determining the quality of sampled softmax. Motivated by our analysis and the work on kernel-based sampling, we propose the Random Fourier Softmax (RF-softmax) method that utilizes the powerful Random Fourier Features to enable more efficient and accurate sampling from an approximate softmax distribution. We show that RF-softmax leads to low bias in estimation in terms of both the full softmax distribution and the full softmax gradient. Furthermore, the cost of RF-softmax scales only logarithmically with the number of classes.

Key facts. Cited by 33 papers in the map (data through 14 Oct 2026). First posted on arXiv 24 Jul 2019.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 12; 2022: 9; 2023: 4; 2024: 4; 2025: 2; 2026: 2.

33 papers.

Sort:

By area:

  1. 2022FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecastingcited by 1,210
  2. 2022Socratic Models: Composing Zero-Shot Multimodal Reasoning with Languagecited by 513
  3. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
  4. 2021Random Feature Attentioncited by 354
  5. 2021Choose a Transformer: Fourier or Galerkincited by 343
  6. 2024Parameter-Efficient Fine-Tuning with Discrete Fourier Transformcited by 71
  7. 2023EGformer: Equirectangular Geometry-biased Transformer for 360 Depth Estimationcited by 43
  8. 2021Understanding Hard Negatives in Noise Contrastive Estimationcited by 39
  9. 2021DeepXML: A Deep Extreme Multi-Label Learning Framework Applied to Short Text Documentscited by 37
  10. 2022Visual Attention Methods in Deep Learning: An In-Depth Surveycited by 37
  11. 2021FMMformer: Efficient and Flexible Transformer via Decomposed Near-field and Far-field Attentioncited by 26
  12. 2021Hybrid Random Featurescited by 25
21 more
  1. 2021Item Recommendation from Implicit Feedbackcited by 18
  2. 2021How Does Momentum Benefit Deep Neural Networks Architecture Design? A Few Case Studiescited by 10
  3. 2022A Call for Clarity in Beam Search: How It Works and When It Stopscited by 10
  4. 2021Linear Bandit Algorithms with Sublinear Time Complexitycited by 9
  5. 2021Disentangling Sampling and Labeling Bias for Learning in Large-Output Spacescited by 9
  6. 2022Generalization for multiclass classification with overparameterized linear modelscited by 8
  7. 2023Dual-Encoders for Extreme Multi-Label Classificationcited by 7
  8. 2023Improving Dual-Encoder Training through Dynamic Indexes for Negative Miningcited by 5
  9. 2022Momentum Transformer: Closing the Performance Gap Between Self-attention and Its Linearizationcited by 4
  10. 2022Fast Offline Policy Optimization for Large Scale Recommendationcited by 4
  11. 2021Prototype Memory for Large-scale Face Representation Learningcited by 3
  12. 2022Implicit Two-Tower Policiescited by 3
  13. 2026FlashSampling: Fast and Memory-Efficient Exact Samplingcited by 3
  14. 2022Efficient Image Representation Learning with Federated Sampled Softmaxcited by 2
  15. 2023Learning distributed representations with efficient SoftMax normalizationcited by 2
  16. 2024EMC2: Efficient MCMC Negative Sampling for Contrastive Learning with Global Convergencecited by 2
  17. 2024From Algorithm to Hardware: A Survey on Efficient and Safe Deployment of Deep Neural Networkscited by 2
  18. 2024A Fresh Take on Stale Embeddings: Improving Dense Retriever Training with Corrector Networkscited by 0
  19. 2025A Deep Inverse-Mapping Model for a Flapping Robotic Wingcited by 0
  20. 2025Adaptive Sparse Softmax: An Effective and Efficient Softmax Variantcited by 0
  21. 2026Batch Size or Negatives? A Selection Rule for Memory-Constrained Recommender Trainingcited by 0