Trustworthy ML Lecture 4: OOD Generalization & Adversarial Attacks

Added:

Uncertainty Strategy
FGSM Attack Basics
PGD Attack Mechanics
Broader Attack Scopes
Black-box Attacks
Black-box Variations
Universal Perturbations
LLM Attack Vectors
Suffix Optimization
Transferable Suffixes

Uncertainty Strategy

2:01
Playing Section
  • 1

    Explore methods to handle unknown deployment environments.

  • 2

    Compare educated guessing versus preparing for worst-case scenarios.

  • 3

    Adversarial generation targets worst-case preparation for guarantees.

Fundamentals of supervised machine learning, including empirical risk minimization and the traditional assumption of independent and identically distributed (I.I.D.) data.
Core deep learning concepts, specifically feedforward neural networks, loss functions (like cross-entropy), and backpropagation.
Gradient-based optimization techniques, including how gradients are computed with respect to input features rather than model weights.
Basic vector norms (such as L2 and L-infinity norms) used to constrain and measure perturbations in high-dimensional spaces.
Advanced adversarial defense strategies, such as minimax adversarial training and certified/provable robustness techniques (e.g., randomized smoothing).
Sophisticated attack paradigms, including the Carlini & Wagner (C&W) attack, black-box query-based attacks, and physical-world adversarial perturbations.
Out-of-Distribution (OOD) detection frameworks and algorithms, such as energy-based OOD detection, temperature scaling, and mahalanobis distance metrics.
Practical deployment of robust machine learning models in safety-critical systems, such as autonomous driving perception pipelines and medical diagnostics.
904 views15likes1:25:00@TübingenMachineLearningOriginal Release: 2023-11-06

Adversarial attacks represent a systematic approach to out-of-distribution (OOD) generalization by preparing machine learning models for worst-case scenarios through worst-case optimization. The lecture covers three main attack types: FGSM (Fast Gradient Sign Method), which applies a single gradient step to perturb inputs within an L∞ ball; PGD (Projected Gradient Descent), which performs multiple iterative gradient steps with projection back to maintain perturbation constraints; and transfer attacks, which generate adversarial examples against surrogate models to attack unknown target models. For language models, the lecture introduces prompt injection attacks and greedy coordinate gradient algorithms that optimize discrete token choices to manipulate model outputs. Universal adversarial perturbations extend this by finding single perturbations effective across multiple inputs or models, demonstrating that adversarial robustness requires defending against both distributional shifts and malicious input manipulations.