LGCLMar 12, 2022

Low-Rank Softmax Can Have Unargmaxable Classes in Theory but Rarely in Practice

arXiv:2203.06462v2644 citationsh-index: 27
Originality Synthesis-oriented
AI Analysis

This addresses a theoretical issue in NLP models for researchers and practitioners, though it is incremental as the impact on practical performance is minimal.

The paper investigated whether large language and translation models can have unargmaxable tokens due to low-rank Softmax layers, finding that 13 out of 150 models had such tokens, but they were infrequent and unlikely to affect quality.

Classifiers in natural language processing (NLP) often have a large number of output classes. For example, neural language models (LMs) and machine translation (MT) models both predict tokens from a vocabulary of thousands. The Softmax output layer of these models typically receives as input a dense feature representation, which has much lower dimensionality than the output. In theory, the result is some words may be impossible to be predicted via argmax, irrespective of input features, and empirically, there is evidence this happens in small language models. In this paper we ask whether it can happen in practical large language models and translation models. To do so, we develop algorithms to detect such \emph{unargmaxable} tokens in public models. We find that 13 out of 150 models do indeed have such tokens; however, they are very infrequent and unlikely to impact model quality. We release our code so that others can inspect their models.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes