How to Read: Towards Deep Learning Models Resistant to Adversarial Attacks [Reading Guide]

A. Ma̧dry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, Adrian Vladu · 2017 · International Conference on Learning Representations

Three-Pass Reading Method

The three-pass reading method is a systematic approach designed to efficiently extract maximum understanding from research papers. The first pass (5-10 minutes) gives you a high-level overview by skimming the title, abstract, introduction, and conclusion. The second pass (up to 1 hour) involves careful reading of the paper with emphasis on methodology and key technical details. The third pass (1-5 hours) focuses on deep understanding, critical analysis, and connecting ideas to related work.

This structured approach helps you determine a paper's relevance quickly, then dive deeper only when needed, making your research workflow more efficient and effective.

This guide will help you efficiently read and understand "Towards Deep Learning Models Resistant to Adversarial Attacks" using the three-pass approach.

First pass (5–10 min)

What to skim in this paper: Start by quickly reviewing the core components to grasp the paper's main idea and context.

  • Title: "Towards Deep Learning Models Resistant to Adversarial Attacks" – Clearly indicates the focus on improving the robustness of deep learning models against malicious inputs.
  • Abstract: Provides a concise summary of the problem (vulnerability to adversarial examples), the proposed approach (robust optimization via min-max saddle point formulation), key findings (PGD as a universal first-order adversary, importance of capacity), and results (improved resistance on MNIST/CIFAR10).
  • Section 1: Introduction: Read the first few paragraphs to understand the motivation, the "How can we train deep neural networks that are robust to adversarial inputs?" question, and the paper's three main contributions listed on page 2.
  • Section 7: Conclusion: Read the conclusion to reinforce the main findings, the implications of their work (e.g., "unexpectedly regular structure of the underlying optimization task"), and future directions.

What to notice:

  • Problem: Deep neural networks are highly susceptible to adversarial examples, which are imperceptible perturbations causing misclassification. This is a fundamental weakness.
  • Setting: The paper investigates adversarial robustness in the context of image classification, specifically using MNIST and CIFAR10 datasets.
  • Core Approach/Contribution: The authors frame adversarial robustness as a robust optimization problem, specifically a min-max saddle point formulation (Equation 2.1 on page 3). They propose Projected Gradient Descent (PGD) as a "universal" first-order adversary for training robust models.
  • Key Findings (from Abstract/Intro/Conclusion):
    • The saddle point problem is tractable in practice using first-order methods.
    • Network capacity is crucial for adversarial robustness.
    • PGD-based adversarial training significantly improves resistance to a wide range of attacks.
    • Robustness against first-order adversaries is a strong security guarantee.

Second pass (up to 1 hour)

Using SpatialRead in the Second Pass

  • Use the Screenshot tool to capture figures, tables, diagrams, and formulae from the PDF and use AI for simple explanations.
  • Ask: "Explain Figure X at a high level", "Compare Table 2 vs 3", or "What does the y-axis represent here?"
  • Download SpatialRead →

What sections/figures to focus on: This pass focuses on understanding the core methodology and key experimental observations.

  • Section 2: An Optimization View on Adversarial Robustness:
    • Read this section carefully to understand the central saddle point problem (Equation 2.1 on page 3). Note how it unifies the attack (inner maximization) and defense (outer minimization) problems.
    • Pay attention to the definition of the perturbation set S (e.g., l∞-ball for image classification).
  • Section 2.1: A Unified View on Attacks and Defenses:
    • Understand how prior attack methods like FGSM and multi-step PGD are interpreted as attempts to solve the inner maximization problem. Note the PGD update rule on page 4.
  • Section 3: Towards Universally Robust Networks:
    • Focus on the claim that the saddle point problem is practically solvable despite its non-convexity/non-concavity.
  • Section 3.1: The Landscape of Adversarial Examples:
    • Examine Figure 1 (page 6): Observe how cross-entropy loss evolves during PGD, noting the rapid plateauing and clustering of loss values, especially for adversarially trained networks. This supports PGD's effectiveness.
    • Examine Figure 2 (page 7): Note the concentrated distribution of local maxima loss values, suggesting tractability for first-order methods.
  • Section 3.2: First-Order Adversaries:
    • Grasp the concept that PGD is considered a "universal" adversary among first-order approaches.
  • Section 3.3: Descent Directions for Adversarial Training:
    • Understand how Stochastic Gradient Descent (SGD) is used to solve the outer minimization problem by training on adversarial examples found by PGD. Note the reference to Danskin's theorem for theoretical justification.
  • Section 4: Network Capacity and Adversarial Robustness:
    • Study Figure 3 (page 9): This conceptual illustration clearly shows why robust decision boundaries are more complex and require higher model capacity.
    • Review the experimental setup for MNIST and CIFAR10 capacity experiments.
    • Examine Figure 4 (page 11): Observe how network capacity (x-axis) impacts natural and adversarial accuracy for different training regimes (standard, FGSM, PGD). Notice the significant drop in PGD accuracy for standard/FGSM training compared to PGD training.

Key terms/questions to note:

  • Robust optimization, min-max saddle point problem (Equation 2.1).
  • Inner maximization (attack), outer minimization (defense/training).
  • Projected Gradient Descent (PGD) as a strong, "universal" first-order adversary.
  • Adversarial training.
  • Impact of network capacity on robustness.
  • Why is PGD considered "universal" for first-order attacks?
  • How does adversarial training relate to solving the saddle point problem?

Third pass (1–5 hours)

Using SpatialRead in the Third Pass

  • Highlight complex keywords, dense paragraphs, equations, or proofs and ask for a plain-English explanation that preserves notation.
  • Use AI to explain the concepts in a way that is easy to understand.
  • Ask for alternative phrasings or analogies to confirm understanding without changing technical meaning.
  • Connect concepts with each other using AI to build a comprehensive understanding of the paper.
  • Download SpatialRead →

Deep reading guidance: This pass involves a thorough understanding of the methods, detailed results, and implications.

  • Re-read Sections 2 and 3: Pay close attention to the mathematical details of the saddle point formulation and the theoretical arguments for PGD's effectiveness and the tractability of the inner problem.
  • Section 5: Experiments: Adversarially Robust Deep Learning Models:
    • Understand the specific experimental setup for training robust models on MNIST and CIFAR10, including PGD parameters (iterations, step size, epsilon).
    • Analyze the evaluation metrics and the range of adversaries considered (white-box PGD, CW, black-box attacks).
    • Examine Table 1 (MNIST) and Table 2 (CIFAR10) (pages 13-14): Compare the accuracy of adversarially trained networks against various attacks. Note the significant robustness achieved by PGD-trained models compared to naturally trained ones. Pay attention to the "Source" column for black-box attacks.
    • Review Figure 5 (page 12): Observe the consistent decrease in adversarial loss during training, indicating successful optimization of the saddle point problem.
    • Analyze Figure 6 (page 14): Understand how robustness changes with different perturbation magnitudes (ε) and different norms (l∞ vs. l2). Note the discussion about PGD potentially overestimating l2-robustness.
  • Section 6: Related Work: Understand how this paper's contributions fit into the broader landscape of adversarial robustness research, highlighting its distinctions from prior work (e.g., multi-step adversaries vs. one-step, detailed loss landscape analysis).
  • Appendix A: Statement and Application of Danskin's Theorem: Read this section to understand the theoretical justification for using gradients at inner maximizers as descent directions for the outer problem, even with non-differentiable activation functions.
  • Appendix B: Transferability:
    • Read about the phenomenon of adversarial example transferability and how increased network capacity and stronger adversaries (PGD) can alleviate it.
    • Examine Table 3 (CIFAR10 black-box FGSM attacks) and Table 4 (CIFAR10 black-box PGD attacks) (pages 21-22): Analyze how transferability changes across different model capacities and training methods.
    • Review Figure 8 (page 24) for visual insights into transferability experiments, including gradient angles and loss function changes.
  • Appendix C: MNIST Inspection:
    • Examine Figure 9 (convolutional filters) and Figure 10 (softmax biases) (pages 26-27): Understand the qualitative differences in learned features (e.g., thresholding filters, concentrated weights, non-uniform biases) in robust models compared to standard ones.
  • Appendix D: Supplementary Figures:
    • Review Figure 11 (page 28) for additional examples of loss function evolution during PGD.
    • Examine Figure 12 (page 28) to see sample l2-norm bounded adversarial examples and their impact on human perception.

Replication pointers if applicable:

  • The paper explicitly states on page 1 (footnote 1) that "Code and pre-trained models are available at this https URL and this https URL." This is the primary resource for replication.
  • Detailed experimental parameters are provided in Section 5, such as PGD iterations (40 for MNIST, 7 or 20 for CIFAR10), step sizes (0.01 for MNIST, 2 for CIFAR10), and perturbation bounds (ε=0.3 for MNIST, ε=8 for CIFAR10).
  • Network architectures are described in Section 4 (simple convnet for MNIST, ResNet and wider variant for CIFAR10).
  • The paper also mentions a "challenge" for the community to attack their models, implying further resources for evaluation.