paper-with-me

홈 › Papers

A Truly Constant-time Distribution-aware Negative Sampling

2021-01-01 · Shabnam Daghaghi, Tharun Medini, Beidi Chen, Mengnan Zhao, Anshumali Shrivastava

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 very expensive from the computational and energy perspective. There have been a variety of 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 does not exist any sampling scheme that is truly adaptive and also samples the negative classes in constant time every iteration. 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 a class of distribution where the sampling scheme is truly adaptive and provably generates negative samples in constant time. We demonstrate a negative sampling implementation that is significantly faster, in terms of wall clock time, compared to the most optimized TensorFlow implementations of standard softmax or other sampling approaches on the best available GPUs (V100s).

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Tasks

Information RetrievalRetrieval

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

A Tale of Two Efficient and Informative Negative Sampling Distributions

2020-12-31 · Shabnam Daghaghi, Tharun Medini, Nicholas Meisburger, Beidi Chen 외

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…

CPUGPUInformation RetrievalRetrieval+1

An analytic recursive method for optimal multiple stopping: Canadization and phase-type fitting

2015-05-28

We study an optimal multiple stopping problem for call-type payoff driven by a spectrally negative Levy process. The stopping times are separated by constant refraction times, and the discount rate can be positive or neg…

Hyperbolic Temporal Knowledge Graph Embeddings with Relational and Time Curvatures

2021-06-08 · Findings (ACL) 2021 8 · Sebastien Montella, Lina Rojas-Barahona, Johannes Heinecke

Knowledge Graph (KG) completion has been excessively studied with a massive number of models proposed for the Link Prediction (LP) task. The main limitation of such models is their insensitivity to time. Indeed, the temp…

Knowledge Graph EmbeddingsLink Prediction

Generalized Score Matching for Non-Negative Data

2018-12-26 · Shiqing Yu, Mathias Drton, Ali Shojaie

A common challenge in estimating parameters of probability density functions is the intractability of the normalizing constant. While in such cases maximum likelihood estimation may be implemented using numerical integra…

Numerical Integration

Efficient Principled Learning of Thin Junction Trees

2007-12-01 · NeurIPS 2007 12 · Anton Chechetka, Carlos Guestrin

We present the first truly polynomial algorithm for learning the structure of bounded-treewidth junction trees -- an attractive subclass of probabilistic graphical models that permits both the compact representation of p…