Sampled Softmax with Random Fourier Features
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
Citing papers per year: 2021: 12; 2022: 9; 2023: 4; 2024: 4; 2025: 2; 2026: 2.
33 papers.
Sort:
By area:
- 2022FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecastingcited by 1,210
- 2022Socratic Models: Composing Zero-Shot Multimodal Reasoning with Languagecited by 513
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
- 2021Random Feature Attentioncited by 354
- 2021Choose a Transformer: Fourier or Galerkincited by 343
- 2024Parameter-Efficient Fine-Tuning with Discrete Fourier Transformcited by 71
- 2023EGformer: Equirectangular Geometry-biased Transformer for 360 Depth Estimationcited by 43
- 2021Understanding Hard Negatives in Noise Contrastive Estimationcited by 39
- 2021DeepXML: A Deep Extreme Multi-Label Learning Framework Applied to Short Text Documentscited by 37
- 2022Visual Attention Methods in Deep Learning: An In-Depth Surveycited by 37
- 2021FMMformer: Efficient and Flexible Transformer via Decomposed Near-field and Far-field Attentioncited by 26
- 2021Hybrid Random Featurescited by 25
21 more
- 2021Item Recommendation from Implicit Feedbackcited by 18
- 2021How Does Momentum Benefit Deep Neural Networks Architecture Design? A Few Case Studiescited by 10
- 2022A Call for Clarity in Beam Search: How It Works and When It Stopscited by 10
- 2021Linear Bandit Algorithms with Sublinear Time Complexitycited by 9
- 2021Disentangling Sampling and Labeling Bias for Learning in Large-Output Spacescited by 9
- 2022Generalization for multiclass classification with overparameterized linear modelscited by 8
- 2023Dual-Encoders for Extreme Multi-Label Classificationcited by 7
- 2023Improving Dual-Encoder Training through Dynamic Indexes for Negative Miningcited by 5
- 2022Momentum Transformer: Closing the Performance Gap Between Self-attention and Its Linearizationcited by 4
- 2022Fast Offline Policy Optimization for Large Scale Recommendationcited by 4
- 2021Prototype Memory for Large-scale Face Representation Learningcited by 3
- 2022Implicit Two-Tower Policiescited by 3
- 2026FlashSampling: Fast and Memory-Efficient Exact Samplingcited by 3
- 2022Efficient Image Representation Learning with Federated Sampled Softmaxcited by 2
- 2023Learning distributed representations with efficient SoftMax normalizationcited by 2
- 2024EMC2: Efficient MCMC Negative Sampling for Contrastive Learning with Global Convergencecited by 2
- 2024From Algorithm to Hardware: A Survey on Efficient and Safe Deployment of Deep Neural Networkscited by 2
- 2024A Fresh Take on Stale Embeddings: Improving Dense Retriever Training with Corrector Networkscited by 0
- 2025A Deep Inverse-Mapping Model for a Flapping Robotic Wingcited by 0
- 2025Adaptive Sparse Softmax: An Effective and Efficient Softmax Variantcited by 0
- 2026Batch Size or Negatives? A Selection Rule for Memory-Constrained Recommender Trainingcited by 0
- 2026Batch Size or Negatives? A Selection Rule for Memory-Constrained Recommender Training11 Aug 2026
- 2026FlashSampling: Fast and Memory-Efficient Exact Sampling16 Mar 2026
- 2025Adaptive Sparse Softmax: An Effective and Efficient Softmax Variant5 Aug 2025
- 2025A Deep Inverse-Mapping Model for a Flapping Robotic Wing13 Feb 2025
- 2024A Fresh Take on Stale Embeddings: Improving Dense Retriever Training with Corrector Networks3 Sep 2024
- 2024From Algorithm to Hardware: A Survey on Efficient and Safe Deployment of Deep Neural Networks9 May 2024
- 2024Parameter-Efficient Fine-Tuning with Discrete Fourier Transform5 May 2024
- 2024EMC2: Efficient MCMC Negative Sampling for Contrastive Learning with Global Convergence16 Apr 2024
- 2023Dual-Encoders for Extreme Multi-Label Classification16 Oct 2023
- 2023EGformer: Equirectangular Geometry-biased Transformer for 360 Depth Estimation16 Apr 2023
- 2023Learning distributed representations with efficient SoftMax normalization30 Mar 2023
- 2023Improving Dual-Encoder Training through Dynamic Indexes for Negative Mining27 Mar 2023
21 more
- 2022Fast Offline Policy Optimization for Large Scale Recommendation8 Aug 2022
- 2022Implicit Two-Tower Policies2 Aug 2022
- 2022Momentum Transformer: Closing the Performance Gap Between Self-attention and Its Linearization1 Aug 2022
- 2022Generalization for multiclass classification with overparameterized linear models3 Jun 2022
- 2022Visual Attention Methods in Deep Learning: An In-Depth Survey16 Apr 2022
- 2022A Call for Clarity in Beam Search: How It Works and When It Stops11 Apr 2022
- 2022Socratic Models: Composing Zero-Shot Multimodal Reasoning with Language1 Apr 2022
- 2022Efficient Image Representation Learning with Federated Sampled Softmax9 Mar 2022
- 2022FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecasting30 Jan 2022
- 2021DeepXML: A Deep Extreme Multi-Label Learning Framework Applied to Short Text Documents12 Nov 2021
- 2021How Does Momentum Benefit Deep Neural Networks Architecture Design? A Few Case Studies13 Oct 2021
- 2021Hybrid Random Features8 Oct 2021
- 2021FMMformer: Efficient and Flexible Transformer via Decomposed Near-field and Far-field Attention5 Aug 2021
- 2021Choose a Transformer: Fourier or Galerkin31 May 2021
- 2021Disentangling Sampling and Labeling Bias for Learning in Large-Output Spaces12 May 2021
- 2021Prototype Memory for Large-scale Face Representation Learning5 May 2021
- 2021Understanding Hard Negatives in Noise Contrastive Estimation13 Apr 2021
- 2021Linear Bandit Algorithms with Sublinear Time Complexity3 Mar 2021
- 2021Random Feature Attention3 Mar 2021
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attention7 Feb 2021
- 2021Item Recommendation from Implicit Feedback21 Jan 2021
- 2022FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecastingcited by 1,210
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
- 2021Random Feature Attentioncited by 354
- 2021Choose a Transformer: Fourier or Galerkincited by 343
- 2024Parameter-Efficient Fine-Tuning with Discrete Fourier Transformcited by 71
- 2023EGformer: Equirectangular Geometry-biased Transformer for 360 Depth Estimationcited by 43
- 2021Understanding Hard Negatives in Noise Contrastive Estimationcited by 39
- 2021DeepXML: A Deep Extreme Multi-Label Learning Framework Applied to Short Text Documentscited by 37
- 2022Visual Attention Methods in Deep Learning: An In-Depth Surveycited by 37
- 2021FMMformer: Efficient and Flexible Transformer via Decomposed Near-field and Far-field Attentioncited by 26
- 2021Hybrid Random Featurescited by 25
- 2021Item Recommendation from Implicit Feedbackcited by 18
12 most cited of 31 All 31 (JSON)
- 2026Batch Size or Negatives? A Selection Rule for Memory-Constrained Recommender Training11 Aug 2026
- 2026FlashSampling: Fast and Memory-Efficient Exact Sampling16 Mar 2026
- 2025Adaptive Sparse Softmax: An Effective and Efficient Softmax Variant5 Aug 2025
- 2025A Deep Inverse-Mapping Model for a Flapping Robotic Wing13 Feb 2025
- 2024A Fresh Take on Stale Embeddings: Improving Dense Retriever Training with Corrector Networks3 Sep 2024
- 2024From Algorithm to Hardware: A Survey on Efficient and Safe Deployment of Deep Neural Networks9 May 2024
- 2024Parameter-Efficient Fine-Tuning with Discrete Fourier Transform5 May 2024
- 2024EMC2: Efficient MCMC Negative Sampling for Contrastive Learning with Global Convergence16 Apr 2024
- 2023Dual-Encoders for Extreme Multi-Label Classification16 Oct 2023
- 2023EGformer: Equirectangular Geometry-biased Transformer for 360 Depth Estimation16 Apr 2023
- 2023Learning distributed representations with efficient SoftMax normalization30 Mar 2023
- 2023Improving Dual-Encoder Training through Dynamic Indexes for Negative Mining27 Mar 2023
12 newest of 31 All 31 (JSON)