低秩Softmax在理论上可以有不可argmaxable类,但在实践中很少
Low-Rank Softmax Can Have Unargmaxable Classes in Theory but Rarely in Practice
摘要:
自然语言处理(NLP)中的分类器通常具有大量的输出类。例如,神经语言模型(LM)和机器翻译(MT)模型都可以从数千个词汇中预测标记。这些模型的Softmax输出层通常接收密集特征表示作为输入,其维数比输出低得多。从理论上讲,结果是一些单词可能不可能通过argmax预测,无论输入特征如何,并且根据经验,有证据表明这种情况发生在小型语言模型中。在本文中,我们问它是否可以发生在实际的大语言模型和翻译模型。为此,我们开发了算法来检测公共模型中的此类\emph{unargmaxable}令牌。我们发现,150个模型中有13个确实有这样的令牌;但是,它们非常罕见,不太可能影响模型质量。我们发布我们的代码,以便其他人可以检查他们的模型。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。