paper-with-me

홈 › Papers

Efficient Contextual Representation Learning Without Softmax Layer

2019-02-28 · Liunian Harold Li, Patrick H. Chen, Cho-Jui Hsieh, Kai-Wei Chang

Contextual representation models have achieved great success in improving various downstream tasks. However, these language-model-based encoders are difficult to train due to the large parameter sizes and high computational complexity. By carefully examining the training procedure, we find that the softmax layer (the output layer) causes significant inefficiency due to the large vocabulary size. Therefore, we redesign the learning objective and propose an efficient framework for training contextual representation models. Specifically, the proposed approach bypasses the softmax layer by performing language modeling with dimension reduction, and allows the models to leverage pre-trained word embeddings. Our framework reduces the time spent on the output layer to a negligible level, eliminates almost all the trainable parameters of the softmax layer and performs language modeling without truncating the vocabulary. When applied to ELMo, our method achieves a 4 times speedup and eliminates 80% trainable parameters while achieving competitive performance on downstream tasks.

📄 PDF Abstract BibTeX arXiv:1902.11269

Code (0)

등록된 구현이 없습니다.

Tasks

Dimensionality ReductionLanguage ModelingLanguage ModellingRepresentation LearningWord Embeddings

Methods 이 논문이 사용한 방법론

Sigmoid Activation 설명 없음
Tanh Activation 설명 없음
LSTM An LSTM is a type of recurrent neural network that addresses the vanishing gradient problem in vanilla…
BiLSTM A Bidirectional LSTM, or biLSTM, is a sequence processing model that consists of two LSTMs: one taking the input in a forward direction, and the other in a backwards…
ELMo Embeddings from Language Models, or ELMo, is a type of deep contextualized word representation that models both (1) complex characteristics of word use (e.g., syntax and…
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 제목 키워드 기반

Exploring Kernel Functions in the Softmax Layer for Contextual Word Classification

2019-10-28 · EMNLP (IWSLT) 2019 11 · Yingbo Gao, Christian Herold, Weiyue Wang, Hermann Ney

Prominently used in support vector machines and logistic regressions, kernel functions (kernels) can implicitly map data points into high dimensional spaces and make it easier to learn complex decision boundaries. In thi…

General ClassificationLanguage ModelingLanguage ModellingMachine Translation+1

Efficient Contextual Representation Learning With Continuous Outputs

2019-03-01 · TACL 2019 3 · Liunian Harold Li, Patrick H. Chen, Cho-Jui Hsieh, Kai-Wei Chang

Contextual representation models have achieved great success in improving various downstream natural language processing tasks. However, these language-model-based encoders are difficult to train due to their large param…

Language ModelingLanguage ModellingRepresentation LearningSentence

SoLA-Vision: Fine-grained Layer-wise Linear Softmax Hybrid Attention

2026-01-16 · Ruibang Li, Guan Luo, Yiwei Zhang, Jin Gao 외 arxiv

Standard softmax self-attention excels in vision tasks but incurs quadratic complexity O(N^2), limiting high-resolution deployment. Linear attention reduces the cost to O(N), yet its compressed state representations can …

Representation Learning

SOLE: Hardware-Software Co-design of Softmax and LayerNorm for Efficient Transformer Inference

2025-10-20 · Wenxun Wang, Shuchang Zhou, Wenyu Sun, Peiqin Sun 외 arxiv

Transformers have shown remarkable performance in both natural language processing (NLP) and computer vision (CV) tasks. However, their real-time inference speed and efficiency are limited due to the inefficiency in Soft…

When can isotropy help adapt LLMs' next word prediction to numerical domains?

2025-05-22 · Rashed Shelim, Shengzhe Xu, Walid Saad, Naren Ramakrishnan

Recent studies have shown that vector representations of contextual embeddings learned by pre-trained large language models (LLMs) are effective in various downstream tasks in numerical domains. Despite their significant…