Skip to content

GlitchProber: advancing effective detection and mitigation of glitch tokens in large language modelsGlitchProber: Advancing Effective Detection and Mitigation of Glitch Tokens in Large Language Models

arXiv· arXiv:2408.04905· ASE 2024· Zhibo Zhang, Wuxia Bai, Yuxi Li, Mark Huasong Meng, Kailong Wang, Ling Shi, Li Li, Jun Wang, Haoyu Wang·Indexed by this site · 23 days ago· Originally publishedDefenses
AI summary

The researchers propose GlitchProber to detect and mitigate glitch tokens in the vocabulary of large language models; once such anomalous tokens enter the input, they may cause the model to output erroneous, irrelevant, or even harmful results. The paper reveals that glitch tokens cause significant deviations in attention pattern distributions and intermediate-layer dynamic information; on this basis, it efficiently screens the vocabulary using small-scale sampling, PCA-accelerated feature extraction, and a simple classifier, and mitigates their damaging effects by correcting anomalous intermediate-layer activation values. Evaluation on five mainstream open-source large models shows that GlitchProber achieves an average F1 of 0.86 and an average repair rate of 50.06%, and the authors state that its efficiency, precision, and recall are higher than existing methods.

Read originalASE 2024