← Lab /AI/ML

MOAT limits ViT GFLOPs degradation under attacks to within 3.4% of original

MOAT restricts efficiency degradation attacks on token-pruned ViTs to no more than 3.4% GFLOPs increase

AI/ML arXiv 5 Aug 2026 Defense Prototype evidence Threat model

Published as “MOAT: Model-Agnostic Randomized Transformations for preventing Efficiency Degradation Attacks on ViTs”

Why it matters

MOAT enables deployment of adaptive ViTs on edge or battery-constrained devices by mitigating efficiency-degradation attacks with virtually no extra compute cost.

Summary

MOAT restores most of the efficiency lost to DeSparsify attacks, cutting the attack success rate from about 60% down to 7-9% and recovering GFLOPs savings to roughly 28-31% on two ViT models, while adding only ~0.5% overhead. The defense works by applying a fixed pipeline of random resizing, median filtering, and JPEG compression to the input image, requiring no changes to the model or its token-pruning mechanism. Evidence comes from ImageNet validation experiments on DeiT-Tiny and DeiT-Small showing the reported gains, though clean-accuracy drops by up to ~10% and a small residual ASR remains.

What they found 2

  1. MOAT reduces adversarial GFLOPs and ASR while restoring most efficiency savings

    “For adversarial inputs, GFLOPs are reduced from 3.98 to 3.26 on DeiT-Small and from 1.05 to 0.87 on DeiT-Tiny, increasing savings to 28.2% and 31.4%, while lowering ASR to 7.5% and 8.9%.”

  2. The combined three-step pipeline outperforms any single transformation

    “The full pipeline (Resize + Median + JPEG) consistently outperforms single-transformation defenses-where only one preprocessing operation is applied-by achieving a substantially lower attack success rate (7.5%) compared to 15.4%-32.1% for individual defenses.”

Caveats 5

  • Clean accuracy drops when MOAT is applied (e.g., from 83.5% to 73.7% on DeiT-Small)
  • A non-zero attack success rate remains (7.5% on DeiT-Small, 8.9% on DeiT-Tiny) even with the defense
  • On clean inputs, the defense causes a drop in accuracy due to image-space transformations, but incurs negligible efficiency overhead, with GFLOPs remaining close to the clean ATS setting.
  • excessive stochasticity can negatively impact clean-sample accuracy.
  • This defense mechanism, with required modifications, need to be studied for physical and more potent patch based adversarial attacks across other machine learning objectives like object recognition and segmentation etc.

What’s new here 4

  • First preprocessing-only defense for efficiency-degradation attacks on adaptive ViTs
  • Model-agnostic: works without modifying the ViT architecture or pruning policy
  • Combines three lightweight image transformations that target different aspects of adversarial noise
  • Demonstrates minimal computational overhead (≤0.57% of total FLOPs) compared to prior defenses

Threat model stated by the source

Adversarywhite-box
Capabilityfull knowledge of the victim model, its token-pruning policy, and the defense pipeline; can compute gradients through the model
Assumesperturbations are l∞-bounded with ε = 8/255; attack aims to maximize token retention while preserving classification