Leviathan:解耦语言模型的输入和输出表示
Leviathan: Decoupling Input and Output Representations in Language Models
AI总结:
Leviathan通过引入学习嵌入向量化方法,解耦语言模型的输入和输出表示,从而在参数增加极小的情况下提升语言建模性能,尤其在稀有词上表现显著。
摘要:
现代语言模型使用单一矩阵进行输入嵌入和输出投影,这耦合了两个不同的目标:令牌表示和词汇上的辨别。本文介绍了Leviathan,一种Transformer架构,其将输入嵌入矩阵替换为学习的嵌入向量化(LEV),即从令牌索引到嵌入的紧凑连续映射。Leviathan的输出头保持未绑定,参数增加仅为0.2%。在与相同Transformer基础架构的受控比较中,Leviathan在从200M到1.2B参数规模的The Pile数据集上,始终优于标准绑定嵌入基线,在训练过程中收益增长。在1.2B规模下,Leviathan将验证困惑度降低9%,要求比达到绑定基线最终损失少2.1倍的训练令牌,且在所有六个评估的下游基准上表现更好,包括LAMBADA困惑度减少30%。频率分层分析显示收益集中在稀有词上,连续参数化使困惑度降低81%,最频繁词的困惑度接近零。
英文摘要:
Modern language models use a single matrix for input embedding and output projection. This couples two distinct objectives: token representation and discrimination over a vocabulary. This work introduces Leviathan, a Transformer architecture that replaces the input embedding matrix with learned embedding vectorization (LEV), a compact continuous mapping from token indices to embeddings. Leviathan's output head remains untied for a parameter increase of as low as 0.2%. Under controlled comparisons with identical Transformer backbones, Leviathan consistently improves language modeling performance over standard tied-embedding baselines across a 200M-1.2B parameter regime on The Pile with gains that grow during training. At 1.2B scale, Leviathan reduces validation perplexity by 9%, requires $2.1\times$ fewer training tokens to reach the tied baseline's final loss, and improves on all six downstream benchmarks evaluated, including a 30% reduction in LAMBADA perplexity. Frequency-stratified analysis reveals gains to be concentrated in rare tokens, where continuous parameterization reduces perplexity by 81%, falling to near zero for the most frequent.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。