BadReasoner: Planting Tunable Overthinking Backdoors into Large Reasoning Models for Fun or Profit

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Yi, Biao, Fei, Zekun, Geng, Jianing, Li, Tong, Nie, Lihai, Liu, Zheli, Li, Yiming
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911074696036352
author Yi, Biao
Fei, Zekun
Geng, Jianing
Li, Tong
Nie, Lihai
Liu, Zheli
Li, Yiming
author_facet Yi, Biao
Fei, Zekun
Geng, Jianing
Li, Tong
Nie, Lihai
Liu, Zheli
Li, Yiming
contents Large reasoning models (LRMs) have emerged as a significant advancement in artificial intelligence, representing a specialized class of large language models (LLMs) designed to tackle complex reasoning tasks. The defining characteristic of LRMs lies in their extensive chain-of-thought (CoT) reasoning capabilities. In this paper, we identify a previously unexplored attack vector against LRMs, which we term "overthinking backdoors". We advance this concept by proposing a novel tunable backdoor, which moves beyond simple on/off attacks to one where an attacker can precisely control the extent of the model's reasoning verbosity. Our attack is implemented through a novel data poisoning methodology. It pairs a tunable trigger-where the number of repetitions signals the desired intensity-with a correspondingly verbose CoT response. These responses are programmatically generated by instructing a teacher LLM to inject a controlled number of redundant refinement steps into a correct reasoning process. The approach preserves output correctness, which ensures stealth and establishes the attack as a pure resource-consumption vector. Extensive empirical results on various LRMs demonstrate that our method can reliably trigger a controllable, multi-fold increase in the length of the reasoning process, without degrading the final answer's correctness. Our source code is available at https://github.com/FZaKK/BadReasoner.
format Preprint
id arxiv_https___arxiv_org_abs_2507_18305
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle BadReasoner: Planting Tunable Overthinking Backdoors into Large Reasoning Models for Fun or Profit
Yi, Biao
Fei, Zekun
Geng, Jianing
Li, Tong
Nie, Lihai
Liu, Zheli
Li, Yiming
Computation and Language
Large reasoning models (LRMs) have emerged as a significant advancement in artificial intelligence, representing a specialized class of large language models (LLMs) designed to tackle complex reasoning tasks. The defining characteristic of LRMs lies in their extensive chain-of-thought (CoT) reasoning capabilities. In this paper, we identify a previously unexplored attack vector against LRMs, which we term "overthinking backdoors". We advance this concept by proposing a novel tunable backdoor, which moves beyond simple on/off attacks to one where an attacker can precisely control the extent of the model's reasoning verbosity. Our attack is implemented through a novel data poisoning methodology. It pairs a tunable trigger-where the number of repetitions signals the desired intensity-with a correspondingly verbose CoT response. These responses are programmatically generated by instructing a teacher LLM to inject a controlled number of redundant refinement steps into a correct reasoning process. The approach preserves output correctness, which ensures stealth and establishes the attack as a pure resource-consumption vector. Extensive empirical results on various LRMs demonstrate that our method can reliably trigger a controllable, multi-fold increase in the length of the reasoning process, without degrading the final answer's correctness. Our source code is available at https://github.com/FZaKK/BadReasoner.
title BadReasoner: Planting Tunable Overthinking Backdoors into Large Reasoning Models for Fun or Profit
topic Computation and Language
url https://arxiv.org/abs/2507.18305