Inferensys

Glossary

Transferability

The property by which an adversarial example crafted to fool one machine learning model also succeeds in fooling a different, independently trained model, often with a different architecture or training dataset.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
ADVERSARIAL PROPERTY

What is Transferability?

Transferability is the phenomenon where an adversarial example generated to mislead one machine learning model also succeeds in fooling a different, independently trained model.

Transferability is the property by which an adversarial perturbation computed against a specific surrogate model retains its efficacy when applied to a distinct target model. This occurs because different neural networks, even those with varying architectures or training data subsets, often learn similar decision boundaries and feature representations. The adversary exploits these shared geometric vulnerabilities in high-dimensional space, crafting a single input that traverses the blind spots of multiple classifiers simultaneously.

This property is the cornerstone of practical black-box attacks, where an attacker has no internal access to the deployed model. By training a local surrogate on synthesized input-output pairs, the adversary generates transferable examples and launches them against the remote target. The degree of transferability depends on the architectural similarity between models and the specific attack algorithm used; iterative methods like Projected Gradient Descent (PGD) typically exhibit lower transferability than single-step methods like FGSM, due to overfitting to the surrogate's loss landscape.

ADVERSARIAL DYNAMICS

Key Factors Influencing Transferability

The success of a transfer attack hinges on the geometric and statistical similarities between the surrogate model and the target model. Understanding these factors is critical for both designing robust attacks and engineering resilient defenses.

01

Model Architecture Similarity

Adversarial examples transfer most effectively between models sharing similar architectural inductive biases. Convolutional neural networks (CNNs) exhibit high transferability among themselves, while attacks crafted on a ResNet-50 often transfer well to a VGG-19 but poorly to a Vision Transformer (ViT). This occurs because different architectures learn fundamentally different decision boundaries and feature representations. Key insight: The gradient directions exploited by an attack are highly correlated across models with analogous building blocks.

  • High transferability: CNN → CNN, Transformer → Transformer
  • Low transferability: CNN → MLP, CNN → ViT
  • Mechanism: Shared architectural priors lead to similar loss landscape geometry
02

Training Data Overlap

When the surrogate and target models are trained on identical or heavily overlapping datasets, transferability increases dramatically. Models trained on ImageNet-1K share similar learned feature spaces, making them vulnerable to cross-model attacks. Conversely, a classifier trained exclusively on synthetic RF signals may resist attacks from a surrogate trained on over-the-air captures due to distributional mismatch. The attack exploits features that are universal to the underlying data manifold rather than idiosyncrasies of a single model.

  • Maximum risk: Identical training sets
  • Reduced risk: Disjoint data sources
  • Defense strategy: Diversifying training data provenance reduces shared blind spots
03

Gradient Alignment and Loss Landscape Geometry

Transferability is fundamentally governed by the alignment of loss gradient directions between models. When the angle between the surrogate's gradient and the target's gradient is small, a perturbation crafted on the surrogate pushes the target's input across its decision boundary. Sharp minima produce highly directional gradients that overfit to the surrogate, while flat minima yield more generalized perturbation directions. Techniques like Sharpness-Aware Minimization (SAM) reduce transferability by flattening the loss landscape.

  • High transferability: High gradient cosine similarity
  • Low transferability: Orthogonal or opposing gradient directions
  • Metric: Cosine similarity between surrogate and target loss gradients
04

Attack Strength and Perturbation Budget

Stronger attacks with larger Lp-norm perturbation budgets transfer more reliably. A single-step Fast Gradient Sign Method (FGSM) attack with epsilon=8/255 may fail to transfer, while a multi-step Projected Gradient Descent (PGD) attack with 20 iterations and the same epsilon budget succeeds. However, excessive perturbation magnitude reduces imperceptibility. Carlini-Wagner attacks optimize for minimal distortion, sometimes sacrificing raw transferability for stealth.

  • Weak transfer: Single-step FGSM, small epsilon
  • Strong transfer: Iterative PGD, momentum-boosted attacks
  • Trade-off: Perturbation visibility vs. cross-model efficacy
05

Ensemble-Based Surrogate Construction

Crafting adversarial examples against an ensemble of diverse surrogate models significantly boosts transferability. By optimizing a perturbation that simultaneously fools multiple architectures, the attack captures a more generalized adversarial direction less tied to any single model's quirks. This technique is a standard benchmark in black-box attack evaluations and often defeats defensively distilled networks.

  • Method: Average loss gradients across multiple surrogate models
  • Result: Perturbation aligns with shared, universal vulnerability
  • Defense implication: Ensemble diversity in deployment mirrors attacker strategy
06

Input Transformation Robustness

Applying random input transformations—such as resizing, padding, or JPEG compression—during attack generation creates perturbations invariant to these preprocessing steps. This Expectation over Transformation (EoT) approach ensures the adversarial example survives the unknown preprocessing pipelines of a target model. In signal classification, transformations like frequency offset or noise addition during crafting improve over-the-air transferability.

  • EoT attack: Optimize over a distribution of input transformations
  • Benefit: Robustness to unknown target preprocessing
  • RF domain: Simulate channel impairments during perturbation crafting
ADVERSARIAL TRANSFERABILITY

Frequently Asked Questions

Explore the mechanics and implications of adversarial transferability in signal classification systems, a critical concern for security engineers hardening deep learning models against black-box evasion attacks.

Transferability is the property by which an adversarial example crafted to fool one specific model (the surrogate) also succeeds in fooling a different, independently trained model (the target). This phenomenon occurs because distinct models often learn similar decision boundaries and feature representations, especially when trained on comparable data distributions. In the context of automatic modulation classification, a perturbation generated against a local surrogate convolutional neural network can transfer over-the-air to a remote, black-box classifier deployed on a different hardware platform, enabling an evasion attack without any internal knowledge of the target system. The degree of transferability depends on architectural similarity, training data overlap, and the optimization method used to generate the adversarial perturbation.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.