paper-with-me

Papers

Sampled Softmax with Random Fourier Features

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

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.

📄 PDF Abstract BibTeX arXiv:1907.10747

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…
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 제목 키워드 기반

Nyström Method vs Random Fourier Features: A Theoretical and Empirical Comparison

2012-12-01 · NeurIPS 2012 12 · Tianbao Yang, Yu-Feng Li, Mehrdad Mahdavi, Rong Jin 외

Both random Fourier features and the Nyström method have been successfully applied to efficient kernel learning. In this work, we investigate the fundamental difference between these two approaches, and how the differenc…

Wind Field Reconstruction with Adaptive Random Fourier Features

2021-02-04 · Jonas Kiessling, Emanuel Ström, Raúl Tempone

We investigate the use of spatial interpolation methods for reconstructing the horizontal near-surface wind field given a sparse set of measurements. In particular, random Fourier features is compared to a set of benchma…

Spatial Interpolation

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…

Macformer: Transformer with Random Maclaurin Feature Attention

2024-08-21 · Yuhan Guo, Lizhong Ding, Ye Yuan, Guoren Wang

Random feature attention (RFA) adopts random fourier feature (RFF) methods to approximate the softmax function, resulting in a linear time and space attention mechanism that enables the construction of an efficient Trans…

SWING: Unlocking Implicit Graph Representations for Graph Random Features

2026-02-13 · Alessandro Manenti, Avinava Dubey, Arijit Sehanobish, Cesare Alippi 외 arxiv

We propose SWING: Space Walks for Implicit Network Graphs, a new class of algorithms for computations involving Graph Random Features on graphs given by implicit representations (i-graphs), where edge-weights are defined…