Adaptation or Poisoning? Security Risks of Conversational Test-Time Learning in Large Language Models
Honghao Feng, Shanhan Qu, Kai Tong, Shuquan Man, Huiping Zhuang
Abstract
Test-time learning (TTL) enables large language models to adapt to unlabeled inputs during deployment. The model updates a lightweight adapter by minimizing the next-token prediction loss on the input it receives. When these updates persist across conversation turns, every user query serves both as the request answered in the current turn and as adaptation data for later turns. By choosing the queries used for adaptation, an attacker can influence parameter updates and weaken safety alignment through ordinary interactions with a TTL chat service. To demonstrate this risk, we introduce Progressive Test-Time Adaptation Poisoning (P-TAP), a query-only multi-turn attack that jailbreaks the model by poisoning its session adapter through the service's own updates. A sequence of escalating adversarial queries shapes the adapter turn by turn; the final harmful request is then answered under the accumulated state without itself being used for adaptation. Across four open-weight instruction-tuned models, enabling updates raises attack success rates on average by 13.00 percentage points under greedy decoding and by 22.25 points under best-of-10 sampling, relative to matched sessions receiving the same queries without updates. Answering adversarial queries but adapting on unrelated text or on benign text about the same topic removes most of this increase. Among existing safeguards, screening incoming queries flags every attack stream before the final request, while a perplexity-based detector of unsafe adaptation flags none of the successful attacks.
Create a lesson
Related papers
Attacking Tabular Foundation Models: An Experimental Taxonomy of Context Poisoning and Test-Time Evasion
Shared title terminology · Ramak Nassiri, Sujan Kumar Reddy Challa, Feroz Ahmed et al.
Think Before You Forecast: Scaling Test-Time Compute for Time Series Forecasting
Shared title terminology · Daojun Liang, Xiao Hong, Pei Zhang et al.
LAF-ECG: Multi-Resolution Lead-Aware Fusion of Time-Series and Language Foundation Models for ECG Classification
Shared title terminology · Kiana Taktehrani, Maryam Hosseini, Amir Keynia et al.
DoC: Learning to Defer or Commit for Timely, Accurate, and Stable Conversational Diagnosis Prediction
Shared title terminology · Xueren Ge, Anthony Cortez, Homa Alemzadeh
Physical regime changes expose formula misuse in large language models
Shared title terminology · Maohao Ran, Yanting Zhang, Chendong Ma et al.
Aegis: A Conversational Prototype for Lung Cancer Risk Information and Follow-up
Shared title terminology · Bowen Han, Chengwei Cao, Runxin Zhang et al.