BadThink: Triggered Overthinking Attacks on Chain-of-Thought Reasoning in Large Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Liu, Shuaitong, Li, Renjue, Yu, Lijia, Zhang, Lijun, Liu, Zhiming, Jin, Gaojie
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866918201483329536
author Liu, Shuaitong
Li, Renjue
Yu, Lijia
Zhang, Lijun
Liu, Zhiming
Jin, Gaojie
author_facet Liu, Shuaitong
Li, Renjue
Yu, Lijia
Zhang, Lijun
Liu, Zhiming
Jin, Gaojie
contents Recent advances in Chain-of-Thought (CoT) prompting have substantially improved the reasoning capabilities of large language models (LLMs), but have also introduced their computational efficiency as a new attack surface. In this paper, we propose BadThink, the first backdoor attack designed to deliberately induce "overthinking" behavior in CoT-enabled LLMs while ensuring stealth. When activated by carefully crafted trigger prompts, BadThink manipulates the model to generate inflated reasoning traces - producing unnecessarily redundant thought processes while preserving the consistency of final outputs. This subtle attack vector creates a covert form of performance degradation that significantly increases computational costs and inference time while remaining difficult to detect through conventional output evaluation methods. We implement this attack through a sophisticated poisoning-based fine-tuning strategy, employing a novel LLM-based iterative optimization process to embed the behavior by generating highly naturalistic poisoned data. Our experiments on multiple state-of-the-art models and reasoning tasks show that BadThink consistently increases reasoning trace lengths - achieving an over 17x increase on the MATH-500 dataset - while remaining stealthy and robust. This work reveals a critical, previously unexplored vulnerability where reasoning efficiency can be covertly manipulated, demonstrating a new class of sophisticated attacks against CoT-enabled systems.
format Preprint
id arxiv_https___arxiv_org_abs_2511_10714
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle BadThink: Triggered Overthinking Attacks on Chain-of-Thought Reasoning in Large Language Models
Liu, Shuaitong
Li, Renjue
Yu, Lijia
Zhang, Lijun
Liu, Zhiming
Jin, Gaojie
Cryptography and Security
Artificial Intelligence
Recent advances in Chain-of-Thought (CoT) prompting have substantially improved the reasoning capabilities of large language models (LLMs), but have also introduced their computational efficiency as a new attack surface. In this paper, we propose BadThink, the first backdoor attack designed to deliberately induce "overthinking" behavior in CoT-enabled LLMs while ensuring stealth. When activated by carefully crafted trigger prompts, BadThink manipulates the model to generate inflated reasoning traces - producing unnecessarily redundant thought processes while preserving the consistency of final outputs. This subtle attack vector creates a covert form of performance degradation that significantly increases computational costs and inference time while remaining difficult to detect through conventional output evaluation methods. We implement this attack through a sophisticated poisoning-based fine-tuning strategy, employing a novel LLM-based iterative optimization process to embed the behavior by generating highly naturalistic poisoned data. Our experiments on multiple state-of-the-art models and reasoning tasks show that BadThink consistently increases reasoning trace lengths - achieving an over 17x increase on the MATH-500 dataset - while remaining stealthy and robust. This work reveals a critical, previously unexplored vulnerability where reasoning efficiency can be covertly manipulated, demonstrating a new class of sophisticated attacks against CoT-enabled systems.
title BadThink: Triggered Overthinking Attacks on Chain-of-Thought Reasoning in Large Language Models
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2511.10714