Skip to content

Context is the Key: A Backdoor Attack Targeting Vision Transformer In-Context LearningContext is the Key: Backdoor Attacks for In-Context Learning with Vision Transformers

arXiv· arXiv:2409.04142· Gorka Abad, Stjepan Picek, Lorenzo Cavallaro, Aitor Urbieta·Indexed by this site · 27 days ago· Originally publishedAttacks
AI summary

Researchers propose a backdoor attack method targeting Vision Transformer (ViT) in-context learning, implanting a backdoor into the model through data poisoning. The paper points out that due to high training costs, large-model practitioners often download pretrained models from untrusted sources, which may lead to the use of models with implanted backdoors. In the task-specific backdoor variant, the attacker specifies a target task; at test time, the appearance of the trigger degrades only that task, while other tasks remain unaffected even with the trigger present. The attack succeeds on all tested models, with the target task degrading by up to 89.90%. The generalized version of the attack can affect arbitrary tasks, including tasks unseen during training, causing up to 13x degradation. The paper also tests removing the backdoor with prompts and fine-tuning, finding that neither method works well; in the best case, degradation is reduced only from 89.90% to 73.46%.

Read originalarxiv.org