并非干扰项而是有用的启发式:异常维度有利于语言模型中的高频词元
Not a nuisance but a useful heuristic: Outlier dimensions favor frequent tokens in language models
AI总结:
该研究发现语言模型最后层的异常维度是多种模型共有的专门机制,可实现高频词预测的实用启发式,还揭示了模型阻断该启发式的方式及异常维度的相关参数与出现时机。
摘要:
我们研究了语言模型最后一层的异常维度,即对大多数输入都表现出极端激活值的维度。我们发现,异常维度存在于多种不同的现代语言模型中,并将其功能追溯到持续预测高频词的启发式策略。我们进一步揭示了模型如何在上下文不适用时阻断这一启发式:通过为其余维度分配平衡权重。我们还探究了哪些模型参数会增强异常维度,以及它们在训练过程中何时出现。我们得出结论:异常维度是多种不同模型自发发现的一种专门机制,用于实现一种实用的词元预测启发式策略。
英文摘要:
We study last-layer outlier dimensions, i.e. dimensions that display extreme activations for the majority of inputs. We show that outlier dimensions arise in many different modern language models, and trace their function back to the heuristic of constantly predicting frequent words. We further show how a model can block this heuristic when it is not contextually appropriate, by assigning a counterbalancing weight mass to the remaining dimensions, and we investigate which model parameters boost outlier dimensions and when they arise during training. We conclude that outlier dimensions are a specialized mechanism discovered by many distinct models to implement a useful token prediction heuristic.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。