paper-with-me

홈 › Papers

Learning to Screen for Fast Softmax Inference on Large Vocabulary Neural Networks

2018-10-29 · ICLR 2019 5 · Patrick H. Chen, Si Si, Sanjiv Kumar, Yang Li, Cho-Jui Hsieh

Neural language models have been widely used in various NLP tasks, including machine translation, next word prediction and conversational agents. However, it is challenging to deploy these models on mobile devices due to their slow prediction speed, where the bottleneck is to compute top candidates in the softmax layer. In this paper, we introduce a novel softmax layer approximation algorithm by exploiting the clustering structure of context vectors. Our algorithm uses a light-weight screening model to predict a much smaller set of candidate words based on the given context, and then conducts an exact softmax only within that subset. Training such a procedure end-to-end is challenging as traditional clustering methods are discrete and non-differentiable, and thus unable to be used with back-propagation in the training process. Using the Gumbel softmax, we are able to train the screening model end-to-end on the training set to exploit data distribution. The algorithm achieves an order of magnitude faster inference than the original softmax layer for predicting top-$k$ words in various tasks such as beam search in machine translation or next words prediction. For example, for machine translation task on German to English dataset with around 25K vocabulary, we can achieve 20.4 times speed up with 98.9\% precision@1 and 99.3\% precision@5 with the original softmax layer prediction, while state-of-the-art ~\citep{MSRprediction} only achieves 6.7x speedup with 98.7\% precision@1 and 98.1\% precision@5 for the same task.

📄 PDF Abstract BibTeX arXiv:1810.12406

Code (0)

등록된 구현이 없습니다.

Tasks

ClusteringMachine TranslationPredictionTranslation

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

SVD-Softmax: Fast Softmax Approximation on Large Vocabulary Neural Networks

2017-12-01 · NeurIPS 2017 12 · Kyuhong Shim, Minjae Lee, Iksoo Choi, Yoonho Boo 외

We propose a fast approximation method of a softmax function with a very large vocabulary using singular value decomposition (SVD). SVD-softmax targets fast and accurate probability estimation of the topmost probable wor…

GPULanguage ModelingLanguage ModellingMachine Translation+1

CSV-Decode: Certifiable Sub-Vocabulary Decoding for Efficient Large Language Model Inference

2025-11-16 · Dong Liu, Yanxuan Yu, Ben Lengerich arxiv

Large language models face significant computational bottlenecks during inference due to the expensive output layer computation over large vocabularies. We present CSV-Decode, a novel approach that uses geometric upper b…

Navigating with Graph Representations for Fast and Scalable Decoding of Neural Language Models

2018-06-11 · NeurIPS 2018 12 · Minjia Zhang, Xiaodong Liu, Wenhan Wang, Jianfeng Gao 외

Neural language models (NLMs) have recently gained a renewed interest by achieving state-of-the-art performance across many natural language processing (NLP) tasks. However, NLMs are very computationally demanding largel…

DecoderLanguage ModelingLanguage ModellingMachine Translation+1

Von Mises-Fisher Loss for Training Sequence to Sequence Models with Continuous Outputs

2018-12-10 · ICLR 2019 5 · Sachin Kumar, Yulia Tsvetkov

The Softmax function is used in the final layer of nearly all existing sequence-to-sequence models for language generation. However, it is usually the slowest layer to compute which limits the vocabulary size to a subset…

Machine TranslationText GenerationTranslationWord Embeddings

Softmax Tree: An Accurate, Fast Classifier When the Number of Classes Is Large

2021-11-01 · EMNLP 2021 11 · Arman Zharmagambetov, Magzhan Gabidolla, Miguel A. Carreira-Perpinan

Classification problems having thousands or more classes naturally occur in NLP, for example language models or document classification. A softmax or one-vs-all classifier naturally handles many classes, but it is very s…

Document Classification