paper-with-me

홈 › Papers

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

2024-10-19 · Zihui Wu, Haichang Gao, Ping Wang, Shudong Zhang, Zhaoxiang Liu, Shiguo Lian

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 diverse LLM architectures. We propose GlitchMiner, a gradient-based discrete optimization framework that efficiently identifies glitch tokens by introducing entropy as a measure of prediction uncertainty and employing a local search strategy to explore the token space. Experiments across multiple LLM architectures demonstrate that GlitchMiner outperforms existing methods in detection accuracy and adaptability, achieving over 10% average efficiency improvement. This method enhances vulnerability assessment in LLMs, contributing to the development of more robust and reliable applications. Code is available at https://github.com/wooozihui/GlitchMiner.

📄 PDF Abstract BibTeX arXiv:2410.15052

Code (1)

wooozihui/GlitchMiner 공식 구현 pytorch

Similar 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 외

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 trustworthine…

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 …

Exposing Attention Glitches with Flip-Flop Language Modeling

2023-06-01 · NeurIPS 2023 11

Why do large language models sometimes output factual inaccuracies and exhibit erroneous reasoning? The brittleness of these models, particularly when executing long chains of reasoning, currently seems to be an inevitab…

Language ModelingLanguage Modelling

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 …

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

2024-05-08 · Sander Land, Max Bartolo

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',…

Language ModelingLanguage ModellingLarge Language Model