paper-with-me

홈 › Papers

GlitchProber: Advancing Effective Detection and Mitigation of Glitch Tokens in Large Language Models

2024-08-09 · Zhibo Zhang, Wuxia Bai, Yuxi Li, Mark Huasong Meng, Kailong Wang, Ling Shi, Li Li, Jun Wang, Haoyu Wang

Large language models (LLMs) have achieved unprecedented success in the field of natural language processing. However, the black-box 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. Evaluated on five mainstream open-source LLMs, GlitchProber demonstrates higher efficiency, precision, and recall compared to existing approaches, with an average F1 score of 0.86 and an average repair rate of 50.06%. GlitchProber unveils a novel path to address the challenges posed by glitch tokens and inspires future research toward more robust and interpretable LLMs.

📄 PDF Abstract BibTeX arXiv:2408.04905

Code (1)

llm-integrity-guard/glitchprober 공식 구현 jax

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Glitch Tokens in Large Language Models: Categorization Taxonomy and Effective Detection

2024-04-15 · Yuxi Li, Yi Liu, Gelei Deng, Ying Zhang 외

With the expanding application of Large Language Models (LLMs) in various domains, it becomes imperative to comprehensively investigate their unforeseen behaviors and consequent outcomes. In this study, we introduce and …

TempGlitch: Evaluating Vision-Language Models for Temporal Glitch Detection in Gameplay Videos

2026-05-20 · Yakun Yu, Ashley Wiens, Adrián Barahona-Ríos, Benedict Wilkins 외 arxiv

Vision-language models (VLMs) are increasingly being explored for video game quality assurance, especially gameplay glitch detection. Most existing evaluations, however, treat glitches as static visual anomalies, asking …

RefGlitch-Bench: A Benchmark for Reference-based Gameplay Glitch Detection with Vision-Language Models

2026-04-13 · Yakun Yu, Ashley Wiens, Adrián Barahona-Ríos, Benedict Wilkins 외 arxiv

Visual glitches in video games degrade player experience and perceived quality, yet manual quality assurance cannot keep pace with the growing test surface of modern game development. Prior automation efforts, particular…

GlitchMiner: Mining Glitch Tokens in Large Language Models via Gradient-based Discrete Optimization

2024-10-19 · Zihui Wu, Haichang Gao, Ping Wang, Shudong Zhang 외

Glitch tokens in Large Language Models (LLMs) can trigger unpredictable behaviors, threatening model reliability and safety. Existing detection methods rely on predefined patterns, limiting their adaptability across dive…

cDVGAN: One Flexible Model for Multi-class Gravitational Wave Signal and Glitch Generation

2024-01-29 · Tom Dooney, Lyana Curier, Daniel Tan, Melissa Lopez 외

Simulating realistic time-domain observations of gravitational waves (GWs) and GW detector glitches can help in advancing GW data analysis. Simulated data can be used in downstream tasks by augmenting datasets for signal…

Generative Adversarial Network