This course explores the interface between cryptography and machine learning. While modern ML is driven by rapidly evolving architectures and empirical advances, we step back and study principles underlying trust, robustness, and reliability. Drawing on cryptographic thinking, we examine formal models of adversarial behavior and ask what can be guaranteed about learning systems in the presence of computationally bounded adversaries. We aim at a technology-independent perspective.
The course combines conceptual foundations with recent research, moving beyond heuristic defenses toward systems whose security and reliability can be defined and, where possible, proven.
Topics include hardness of learning, adversarial robustness, backdoors, watermarking, model extraction, cryptography for ML, verifiable inference and training, and provenance, along with newer questions such as low logit rank, sketching, sandbagging, and some mathematics of AI safety. Later topics are yet to be shown to have direct connection to cryptography, but there is hope.
Students will learn to:
Methodologies of machine learning and cryptography. Course overview. Recurring themes: definitions and guarantees, assumptions and proofs, relevance at scale.
Pseudorandom functions and hardness of PAC learning. Circuit complexity; neural nets as threshold circuits. Learning parity with noise (LPN).
LWE; worst-case hardness; generating fresh samples. Continuous LWE and Gaussian pancakes. Statistical vs. computational gaps.
Builds on lecture 1
Accuracy does not imply robustness. Gradient-based attacks and adversarial training. Certified and cryptographic robustness. Invariance attacks; adaptively robust random projections.
Builds on lectures 1, 2
Spectral signatures. Undetectable backdoors from signatures and hCLWE. Undetectability vs. power asymmetry; invariance backdoors in deep networks. Removal without detection.
Builds on lectures 1, 2, 3
Diffusion; sampling reduces to score estimation. Learning the score; hardness from hCLWE.
Builds on lecture 2
Reliable detection; the red–green trick. Undetectable watermarks via keyed Gumbel sampling. Robust watermarks from pseudorandom codes. Watermarking diffusion models.
Builds on lectures 1, 5
Functional and distributional extraction. Outputs as equations; ReLU boundaries reveal hidden neurons. Distillation: training a surrogate on queried outputs. The extended logit matrix; low rank in trained language models. Model extraction from unrelated queries. Efficient learning from logit queries.
Builds on lectures 1, 2, 6
Encryption and homomorphic encryption. Secure two-party computation. Private vector search: PIR and encrypted matrix–vector products (EMVP). Private neural-network inference.
Builds on lecture 2
Interactive proofs: randomized verification, sumcheck, layered circuits. Succinct arguments; zero knowledge. Provenance: authentication, proofs of provenance, homomorphic signatures, malleable proofs.
Builds on lectures 6, 7
The data deletion problem. Forward-mode automatic differentiation; sketching circuits via higher-order derivatives.
Builds on lecture 3
Sandboxed evaluation of untrusted models. Sandbagging: strategic underperformance on evaluations; detection via noise injection. Heuristic arguments; the computational no-coincidence conjecture. Open problems.
Builds on lectures 1, 4, 9
Final project presentations. Groups of 4–5 students; about 20 minutes per group.
Final project presentations. Groups of 4–5 students; about 20 minutes per group.