mlsanityData to 14 Oct 2026

TTP: Test-Time Padding for Adversarial Detection and Robust Adaptation on Vision-Language Models

arXiv 2512.16523 ↗First posted 18 Dec 2025cs.CV cs.AIcited by 2

On the map: Multimodal LLMs / vision-language models → MLLM jailbreaks and adversarial robustness

Abstract (arXiv)

Vision-Language Models (VLMs), such as CLIP, have achieved impressive zero-shot recognition performance but remain highly susceptible to adversarial perturbations, posing significant risks in safety-critical scenarios. Previous training-time defenses rely on adversarial fine-tuning, which requires labeled data and costly retraining, while existing test-time strategies fail to reliably distinguish between clean and adversarial inputs, thereby preventing both adversarial robustness and clean accuracy from reaching their optimum. To address these limitations, we propose Test-Time Padding (TTP), a lightweight defense framework that performs adversarial detection followed by targeted adaptation at inference. TTP identifies adversarial inputs via the cosine similarity shift between CLIP feature embeddings computed before and after spatial padding, yielding a universal threshold for reliable detection across architectures and datasets. For detected adversarial cases, TTP employs trainable padding to restore disrupted attention patterns, coupled with a similarity-aware ensemble strategy for a more robust final prediction. For clean inputs, TTP leaves them unchanged by default or optionally integrates existing test-time adaptation techniques for further accuracy gains. Comprehensive experiments on diverse CLIP backbones and fine-grained benchmarks show that TTP consistently surpasses state-of-the-art test-time defenses, delivering substantial improvements in adversarial robustness without compromising clean accuracy. The code for this paper will be released soon.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in MLLM jailbreaks and adversarial robustness, one of 16 directions in Multimodal LLMs / vision-language models. Builds on 42 of its 54 references that are in the map. First posted on arXiv 18 Dec 2025.

Builds on

42 of 54 references.

Closest ancestors · 11

Same direction, newest first

  1. 2025R-TPT: Improving Adversarial Robustness of Vision-Language Models through Test-Time Prompt Tuning15 Apr
  2. 2024TAPT: Test-Time Adversarial Prompt Tuning for Robust Inference in Vision-Language Models20 Nov
  3. 2024One Perturbation is Enough: On Generating Universal Adversarial Perturbations against Vision-Language Pre-training Models8 Jun
  4. 2024Universal Adversarial Perturbations for Vision-Language Pre-trained Models9 May
  5. 2024Few-Shot Adversarial Prompt Learning on Vision-Language Models21 Mar
  6. 2024One Prompt Word is Enough to Boost Adversarial Robustness for Pre-trained Vision-Language Models4 Mar
  7. 2023SA-Attack: Improving Adversarial Transferability of Vision-Language Pre-training Models via Self-Augmentation8 Dec
  8. 2023Set-level Guidance Attack: Boosting Adversarial Transferability of Vision-Language Pre-training Models26 Jul
  9. 2023On Evaluating Adversarial Robustness of Large Vision-Language Models26 May
  10. 2022Understanding Zero-Shot Adversarial Robustness for Large-Scale Models14 Dec
  11. 2022Towards Adversarial Attack on Vision-Language Pre-training Models19 Jun

Other references · 31

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  2. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  3. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  4. 2013Intriguing properties of neural networkscited by 5,155
  5. 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,864
  6. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
  7. 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,348
  8. 2013Describing Textures in the Wildcited by 2,125
  9. 2016Adversarial examples in the physical worldcited by 1,769
  10. 2013Fine-Grained Visual Classification of Aircraftcited by 1,726
  11. 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,517
  12. 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,496
19 more
  1. 2015DeepFool: a simple and accurate method to fool deep neural networkscited by 1,318
  2. 2019AugMix: A Simple Data Processing Method to Improve Robustness and Uncertaintycited by 901
  3. 2023Vision-Language Models for Vision Tasks: A Surveycited by 839
  4. 2021CLIPort: What and Where Pathways for Robotic Manipulationcited by 622
  5. 2022MedCLIP: Contrastive Learning from Unpaired Medical Images and Textcited by 570
  6. 2022Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Modelscited by 382
  7. 2023A Comprehensive Survey on Test-Time Adaptation under Distribution Shiftscited by 359
  8. 2022VLP: A Survey on Vision-Language Pre-trainingcited by 159
  9. 2023Diverse Data Augmentation with Diffusions for Effective Test-time Prompt Tuningcited by 154
  10. 2024Efficient Test-Time Adaptation of Vision-Language Modelscited by 141
  11. 2023AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learningcited by 103
  12. 2023Align Your Prompts: Test-Time Prompting with Distribution Alignment for Zero-Shot Generalizationcited by 101
  13. 2024On the test-time zero-shot generalization of vision-language models: Do we really need prompt learning?cited by 67
  14. 2024Just Shift It: Test-Time Prototype Shifting for Zero-Shot Generalization with Vision-Language Modelscited by 32
  15. 2025CLIP is Strong Enough to Fight Back: Test-time Counterattacks towards Zero-shot Adversarial Robustness of CLIPcited by 23
  16. 2024CLIP-Guided Generative Networks for Transferable Targeted Adversarial Attackscited by 19
  17. 2023Benchmarking Test-Time Adaptation against Distribution Shifts in Image Classificationcited by 17
  18. 2020Imbalanced Gradients: A Subtle Cause of Overestimated Adversarial Robustnesscited by 11
  19. 2024AdvQDet: Detecting Query-Based Adversarial Attacks with Adversarial Contrastive Prompt Tuningcited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Adversarial Defense in Vision-Language Models: An Overview
  2. 2026Beyond False Stability: High-Noise Drift Gating for Test-Time Adversarial Defenses in Vision-Language Models
  3. 2025Navigating the Trade-off: A Synthesis of Defensive Strategies for Zero-Shot Adversarial Robustness in Vision-Language Models
  4. 2026Adversarial Attacks Already Tell the Answer: Directional Bias-Guided Test-time Defense for Vision-Language Models
  5. 2026Towards Fine-Grained Robustness: Attention-Guided Test-Time Prompt Tuning for Vision-Language Models
  6. 2026SS-TPT: Stability and Suitability-Guided Test-Time Prompt Tuning for Adversarially Robust Vision-Language Models
  7. 2026TAME: Test-Time Adversarial Prompt Tuning via Mixture-of-Experts for Vision-Language Models
  8. 2026A Provable Energy-Guided Test-Time Defense Boosting Adversarial Robustness of Large Vision-Language Models