Search papers, labs, and topics across Lattice.
The paper investigates the safety vulnerabilities of test-time reinforcement learning (TTRL), a method that improves LLM reasoning by rewarding self-consistency. It demonstrates that harmful prompt injections during TTRL amplify the model's existing behaviors, leading to either safety or harmfulness amplification depending on the base model's initial state. Furthermore, the study reveals a "reasoning tax" where reasoning ability declines during TTRL, and introduces "HarmInject" prompts to adversarially exploit TTRL, forcing models to answer jailbreak and reasoning queries simultaneously.
Test-time RL, intended to boost LLM reasoning, can backfire by amplifying harmful tendencies and degrading reasoning when exposed to adversarial prompts.
Test-time training (TTT) has recently emerged as a promising method to improve the reasoning abilities of large language models (LLMs), in which the model directly learns from test data without access to labels. However, this reliance on test data also makes TTT methods vulnerable to harmful prompt injections. In this paper, we investigate safety vulnerabilities of TTT methods, where we study a representative self-consistency-based test-time learning method: test-time reinforcement learning (TTRL), a recent TTT method that improves LLM reasoning by rewarding self-consistency using majority vote as a reward signal. We show that harmful prompt injection during TTRL amplifies the model's existing behaviors, i.e., safety amplification when the base model is relatively safe, and harmfulness amplification when it is vulnerable to the injected data. In both cases, there is a decline in reasoning ability, which we refer to as the reasoning tax. We also show that TTT methods such as TTRL can be exploited adversarially using specially designed "HarmInject" prompts to force the model to answer jailbreak and reasoning queries together, resulting in stronger harmfulness amplification. Overall, our results highlight that TTT methods that enhance LLM reasoning by promoting self-consistency can lead to amplification behaviors and reasoning degradation, highlighting the need for safer TTT methods.