Inferensys

Glossary

Surrogate Model

A locally trained replica of a black-box target model, built by an adversary using synthesized queries to generate transferable adversarial examples.
ML engineer managing model training cluster on laptop, GPU utilization visible, technical deep learning setup.
ADVERSARIAL MACHINE LEARNING

What is a Surrogate Model?

A surrogate model is a locally trained replica of a black-box target model, constructed by an adversary using synthesized input-output queries to generate transferable adversarial examples.

In the context of adversarial robustness, a surrogate model is a substitute classifier built by an attacker who has no internal access to the target model's architecture, parameters, or training data. The adversary queries the black-box target with a large set of synthetically generated inputs, collects the corresponding hard-label or soft-label predictions, and trains a local model to mimic the target's decision boundary. This process exploits the transferability property of adversarial examples.

Once the surrogate model achieves high fidelity to the target, the attacker can craft white-box adversarial perturbations using gradient-based methods like Projected Gradient Descent (PGD) directly on the surrogate. Because these perturbations transfer across model boundaries, they are highly effective at fooling the original black-box system. Defenses against surrogate-based attacks include limiting query access, obfuscating confidence scores, and employing adversarial training to reduce transferability.

ADVERSARIAL PROXY ARCHITECTURE

Core Characteristics of Surrogate Models

A surrogate model is a locally trained replica of a black-box target classifier, built by an adversary using synthesized queries. Its defining characteristics enable the generation of highly transferable adversarial examples without internal access to the victim model.

01

Query-Based Distillation

The surrogate is trained on a synthetic dataset labeled by repeatedly querying the target model. The adversary sends crafted inputs and records the output decisions or confidence scores. This input-output mapping allows the surrogate to approximate the target's decision boundary. Label-only attacks are particularly stealthy, requiring only the hard-label prediction rather than continuous confidence scores. The fidelity of the replica depends directly on the query budget and the diversity of the synthetic input distribution.

02

Architectural Agnosticism

A defining strength of surrogate models is that they do not require knowledge of the target's internal architecture. The adversary can select any differentiable model—often a standard architecture like a ResNet or a simple CNN—as the surrogate. Because adversarial examples exploit blind spots in the learned decision topology rather than specific weight configurations, the transferability property allows perturbations crafted on a structurally different surrogate to still fool the original black-box target.

03

White-Box Attack Enablement

Once the surrogate is fully trained, the adversary gains a critical asymmetric advantage: they can treat the replica as a white-box model. This grants full access to gradients, loss landscapes, and internal activations. The adversary can then apply powerful gradient-based attacks like Projected Gradient Descent (PGD) or the Carlini-Wagner (CW) attack to craft minimal-distortion adversarial examples. These examples are then transferred directly against the black-box target.

04

Transferability Maximization

The primary objective of a surrogate model is to generate perturbations that are highly transferable. Techniques to enhance this include:

  • Ensemble surrogates: Training multiple replica models and crafting perturbations that fool all of them simultaneously.
  • Momentum-based optimization: Integrating momentum into iterative gradient attacks to escape poor local maxima and find more globally effective perturbation directions.
  • Input diversity: Applying random resizing and padding to inputs during the attack generation phase to prevent overfitting to the surrogate's specific grid patterns.
05

Query Efficiency Constraints

The practical viability of a surrogate attack is bounded by the query budget. High-fidelity replicas require millions of queries, making the attack detectable or prohibitively expensive. Research focuses on query-efficient strategies:

  • Active learning: Selecting the most informative inputs to query based on the surrogate's current uncertainty.
  • Substitute training: Using Jacobian-based dataset augmentation to force the surrogate to query inputs near the target's decision boundary, maximizing information gain per query.
  • Natural evolution strategies: Estimating gradients using finite differences with fewer queries than standard zeroth-order optimization.
06

Defense Evasion and Blind Spots

Surrogate models are specifically designed to probe and bypass defenses. If the target model uses adversarial training, the surrogate must be trained on a dataset that reflects the defended decision boundary. However, surrogate attacks often exploit gradient masking, a phenomenon where a defended model presents a deceptively smooth surface to gradient-based attacks. By crafting attacks on a non-masked surrogate, the adversary can often circumvent defenses that rely on obfuscated gradients, revealing the target's true vulnerability.

SURROGATE MODEL INSIGHTS

Frequently Asked Questions

Explore the mechanics, risks, and defensive strategies surrounding surrogate models—the locally trained replicas adversaries use to craft transferable attacks against black-box automatic modulation classification systems.

A surrogate model is a locally trained replica of a target black-box classifier, constructed by an adversary to generate transferable adversarial examples. The attacker queries the target model with synthesized inputs to collect a labeled dataset of input-output pairs, then trains a substitute model to mimic the target's decision boundary. Because deep neural networks often learn similar feature representations, adversarial perturbations crafted on the surrogate frequently transfer to the original model. In automatic modulation classification, this means an adversary can build a surrogate that approximates a deployed RF classifier's behavior without ever accessing its architecture, weights, or training data, using only over-the-air or API queries to probe the system.

ADVERSARIAL CAPABILITY COMPARISON

Surrogate Model vs. Other Attack Prerequisites

A feature-level comparison of the knowledge, access, and data requirements needed to execute a transfer attack via a surrogate model versus other common adversarial prerequisites.

FeatureSurrogate ModelWhite-Box AccessQuery-Based Black-Box

Requires target model internals

Requires target model query access

Requires labeled training data

Attack transferability

Typical query budget

10k-50k

0

50k-1M

Knowledge of target architecture

Susceptible to query detection

Physical-world deployability

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.