CS 4727/5727 – Adversarial Machine Learning
University of Idaho - Department of Computer Science
Instructor: Alex Vakanski (vakanski@uidaho.edu)
Office Hours: Fridays, 12:00 PM – 1:00 PM Pacific (1:00 PM – 2:00 PM Mountain), held on Zoom, link available on Canvas.
Semester: Spring 2026 (January 14 – May 15)
Credit Hours: 3
Instructor website: https://www.idahofallshighered.org/vakanski/Courses/Adversarial_Machine_Learning.html
Course website: https://avakanski.github.io/Spring-2026-Adversarial-Machine-Learning/
GitHub repository: https://github.com/avakanski/Spring-2026-Adversarial-Machine-Learning
Previous Offerings
Course materials from previous years are available on the instructor’s website: Spring 2025, Spring 2024, Spring 2023.
Course Syllabus
Course Description
The course introduces students to adversarial attacks on machine learning models and defenses against the attacks. The particular focus is on adversarial attacks and adversarial examples in deep learning models, due to their prevalence in modern machine learning applications. Covered topics include evasion attacks targeting white-box and black-box machine learning models, data poisoning attacks, privacy attacks, jailbreak attacks on large language models, defense strategies against adversarial attacks, and robust machine learning models. The course also provides an overview of adversarial attacks on machine learning models used in cybersecurity applications, including malware detection and classification, network intrusion detection, spam filtering, URL detection, cyber-physical systems, and biometric systems. Additional work is required for graduate credit.
Textbooks
There are no required textbooks for this course.
Learning Outcomes
Upon the completion of the course, the students should demonstrate the ability to:
- Identify the vulnerabilities of machine learning models to various types of adversarial attacks.
- Differentiate between adversarial evasion attacks in white-box and black-box settings and understand the principles of data poisoning attacks.
- Explain the fundamentals of adversarial privacy attacks and outline privacy-preserving defense methods.
- Describe jailbreak and poisoning attacks on large language models and propose corresponding mitigation methods.
- List common defense strategies against adversarial attacks and discuss approaches for improved robustness of machine learning models.
- Identify the unique characteristics of adversarial attacks on machine learning models in the cybersecurity domain.
- Implement adversarial attacks and defenses against conventional machine learning models and deep learning models.
- Evaluate the effectiveness of adversarial attacks on anomaly detection systems for network intrusion detection, machine learning malware classifiers, and anti-spam filtering models.
- Analyze the ethical and societal implications of adversarial attacks and defenses.
Prerequisites
CS 2120 Practical Python, or CS 4771 Python for Machine Learning, or Instructor’s Permission.
Students are expected to have a basic understanding of linear algebra, probability and statistics, and machine learning concepts. Familiarity with neural networks and deep learning is recommended, but not required. A working knowledge of Python programming is required to complete the course assignments and the course project. Additionally, it is preferred that the students have a basic level of familiarity with at least one of the following machine learning libraries: TensorFlow, Keras, or PyTorch.
Grading
Student assessment will be based on 5 homework assignments (worth 30 marks), 4 quizzes (worth 40 marks), a course project (worth 10 marks), a lecture presentation (worth 10 marks), and class attendance and participation (worth 10 marks). The assignments and the project involve implementation of the studied adversarial attacks and defense methods on medium-size datasets (e.g., a few thousand images or similar). To complete the assignments and the project, the students can either use the GPUs provided by Google Colab, or they can use other programming environments that provide access to GPUs.
| Assessment Component | Marks |
|---|---|
| Assignments (×5) | 30 |
| Quizzes (×4) | 40 |
| Course Project | 10 |
| Presentation | 10 |
| Attendance and Participation | 10 |
| Total | 100 |
Course Schedule
The schedule below is tentative and lists the topics covered each week. Lecture titles link to the corresponding lecture slides. Each lecture lists a required reading and optional readings that are discussed in class.