arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.05417cs.CL
收藏

钓捕鲤鱼王:自动检测大语言模型中的训练不足Token

Fishing for Magikarp: Automatically Detecting Under-trained Tokens in Large Language Models

Cohere(Cohere公司)

Sander Land, Max Bartolo

AI总结:

针对大语言模型中因训练不足导致的“故障token”问题,本文通过结合分词器分析、模型权重指标和提示技术,开发了自动检测这些token的新型有效方法,并验证了其普遍性及对模型安全性的启示。

摘要:

语言模型中分词器创建与模型训练之间的脱节,使得特定输入(如臭名昭著的SolidGoldMagikarp token)能够诱发不受控的模型行为。尽管在各类模型中均观察到此类“故障token”——即存在于分词器词表中但在模型训练期间几乎或完全缺失的token,但一直缺乏识别和解决它们的可靠方法。我们对大语言模型分词器进行了全面分析,专门针对检测训练不足token的问题。通过结合分词器分析、基于模型权重的指标以及提示技术,我们开发了自动检测这些问题token的新型有效方法。我们的发现证明了此类token在多种模型中的普遍性,并为提升语言模型的效率和安全性提供了见解。

英文摘要:

The disconnect between tokenizer creation and model training in language models allows for specific inputs, such as the infamous SolidGoldMagikarp token, to induce unwanted model behaviour. Although such `glitch tokens', tokens present in the tokenizer vocabulary but that are nearly or entirely absent during model training, have been observed across various models, a reliable method to identify and address them has been missing. We present a comprehensive analysis of Large Language Model tokenizers, specifically targeting this issue of detecting under-trained tokens. Through a combination of tokenizer analysis, model weight-based indicators, and prompting techniques, we develop novel and effective methods for automatically detecting these problematic tokens. Our findings demonstrate the prevalence of such tokens across a diverse set of models and provide insights into improving the efficiency and safety of language models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑