差错
计算机科学
语言模型
自然语言处理
电信
探测器
作者
Zhuowen Zhang,Wanna Bai,Yuxi Li,Mark Huasong Meng,Kailong Wang,Ling Shi,Li Li,Jun Wang,Haoyu Wang
标识
DOI:10.1145/3691620.3695060
摘要
Large language models (LLMs) have achieved unprecedented success in the field of natural language processing.However, the blackbox nature of their internal mechanisms has brought many concerns about their trustworthiness and interpretability.Recent research has discovered a class of abnormal tokens in the model's vocabulary space and named them "glitch tokens".Those tokens, once included in the input, may induce the model to produce incorrect, irrelevant, or even harmful results, drastically undermining the reliability and practicality of LLMs.In this work, we aim to enhance the understanding of glitch tokens and propose techniques for their detection and mitigation.We first reveal the characteristic features induced by glitch tokens on LLMs, which are evidenced by significant deviations in the distributions of attention patterns and dynamic information from intermediate model layers.Based on the insights, we develop GlitchProber, a tool for efficient glitch token detection and mitigation.GlitchProber utilizes small-scale sampling, principal component analysis for accelerated feature extraction, and a simple classifier for efficient vocabulary screening.Taking one step further, GlitchProber rectifies abnormal model intermediate layer values to mitigate the destructive effects of glitch tokens.
科研通智能强力驱动
Strongly Powered by AbleSci AI