AIE516 Federated Learning and Privacy-Preserving Machine Learning

6 ECTS - 3-0 Duration (T+A)- . Semester- 3 National Credit

Information

Unit INSTITUTE OF NATURAL AND APPLIED SCIENCES
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING (MASTER) (WITH THESIS) (ENGLISH)
Code AIE516
Name Federated Learning and Privacy-Preserving Machine Learning
Term 2026-2027 Academic Year
Term Fall and Spring
Duration (T+A) 3-0 (T-A) (17 Week)
ECTS 6 ECTS
National Credit 3 National Credit
Teaching Language İngilizce
Level Lisansüstü Dersi
Type Normal
Mode of study Yüz Yüze Öğretim
Catalog Information Coordinator Dr. Öğr. Üyesi EMRE KILINÇ
Course Instructor
The current term course schedule has not been prepared yet.


Course Goal / Objective

The aim of this course is to teach students how to train and use machine learning models when data cannot be centralised or cannot be shared for privacy reasons. The course covers the algorithmic foundations of federated learning, the problems arising from heterogeneous data and communication constraints, privacy and integrity attacks on machine learning models, and defences against them such as differential privacy, secure aggregation, homomorphic encryption and secure multi-party computation. Students are expected to be able to design privacy-preserving learning systems that comply with legal regulations (KVKK, GDPR) in domains such as health and finance.

Course Content

Motivation for decentralised learning and introduction to federated learning; horizontal, vertical and federated transfer learning; cross-device and cross-silo settings; distributed optimisation and the FedAvg algorithm; non-independent and identically distributed (non-IID) data, client drift, FedProx and SCAFFOLD; communication efficiency (compression, quantisation, sparsification, client selection); personalised federated learning and split learning; privacy attacks on machine learning (membership inference, model inversion, data leakage from gradients); poisoning and backdoor attacks and Byzantine-robust aggregation; differential privacy and DP-SGD; secure aggregation and secret sharing; homomorphic encryption; secure multi-party computation; Flower, Opacus and related frameworks; applications in health and finance; privacy-preserving machine learning within the frameworks of KVKK and GDPR; term project presentations.

Course Precondition

None. Knowledge of Python programming, machine learning and deep learning (see AIE505, AIE507), probability and basic optimisation is recommended.

Resources

The course is delivered through weekly practicals and a term project; students build a simulated multi-client federated learning system, preferably in a domain such as health, finance or energy, experimentally evaluate the privacy-utility trade-off and at least one attack/defence scenario, and report and present their results. Software used: Python, PyTorch, Flower, Opacus, TensorFlow Federated, PySyft, TenSEAL (based on Microsoft SEAL) and CrypTen. Supplementary materials: the official documentation and tutorials of the Flower and Opacus frameworks; key papers: McMahan et al. (2017) on FedAvg, Abadi et al. (2016) on DP-SGD, Bonawitz et al. (2017) on secure aggregation, Shokri et al. (2017) on membership inference, Zhu et al. (2019) on data leakage from gradients, Li et al. (2020) on FedProx, Karimireddy et al. (2020) on SCAFFOLD; legal texts: the Turkish Law No. 6698 on the Protection of Personal Data (KVKK) and the EU General Data Protection Regulation (GDPR, Regulation (EU) 2016/679). The theoretical aspects of distributed optimisation are covered in depth in AIE522, deployment on edge devices in AIE515, and AI law and governance in AIE520.

Notes



Course Learning Outcomes

Order Course Learning Outcomes
LO01 Explain the core concepts of federated learning, horizontal and vertical federated learning, and cross-device and cross-silo settings, together with their system requirements.
LO02 Implement the FedAvg algorithm and its variants for heterogeneous data (FedProx, SCAFFOLD, personalised methods) in a framework such as Flower, and compare them under non-IID data conditions.
LO03 Apply communication-efficiency techniques (compression, quantisation, client selection) and analyse the trade-off between model accuracy and communication cost.
LO04 Classify membership inference, model inversion, gradient leakage, poisoning and backdoor attacks, and construct a threat model for a learning system.
LO05 Explain the mathematical definition and composition properties of differential privacy, and implement DP-SGD with Opacus to evaluate the trade-off between the privacy budget and model performance.
LO06 Compare the security assumptions and computational costs of secure aggregation, homomorphic encryption and secure multi-party computation, and select the appropriate method for a given application.
LO07 Design a privacy-preserving learning system for a domain such as health or finance that takes KVKK and GDPR requirements into account, and justify the design decisions.


Relation with Program Learning Outcome

Order Type Program Learning Outcomes Level
PLO01 Bilgi - Kuramsal, Olgusal Building on undergraduate-level qualifications, has advanced theoretical knowledge of linear algebra, multivariable calculus, probability, statistics, optimisation and information theory required for original work in artificial intelligence and machine learning. 3
PLO02 Bilgi - Kuramsal, Olgusal Has an in-depth understanding of current methods in the main sub-fields of artificial intelligence, notably machine learning, deep learning, reinforcement learning, computer vision, natural language processing and generative models, together with their assumptions and limitations. 4
PLO03 Beceriler - Bilişsel, Uygulamalı Formulates real-world problems as appropriate artificial intelligence/machine learning problems, and designs and implements solutions covering data preparation, model selection, training and evaluation.
PLO04 Beceriler - Bilişsel, Uygulamalı Develops efficient, scalable and reproducible software and models using Python and current libraries and frameworks, and makes effective use of big data and high-performance computing resources.
PLO05 Beceriler - Bilişsel, Uygulamalı Evaluates methods with appropriate performance metrics, statistical tests and comparative experiments, interprets results critically and designs reproducible experimental protocols. 3
PLO06 Yetkinlikler - Öğrenme Yetkinliği Reviews the national and international literature of the field systematically and critically, independently learns new and emerging methods, and adapts them to their own research problem. 3
PLO07 Yetkinlikler - Bağımsız Çalışabilme ve Sorumluluk Alabilme Yetkinliği Defines a research problem in the field, solves it independently by developing an original method or model, and conducts a thesis study that contributes to scientific knowledge.
PLO08 Yetkinlikler - Bağımsız Çalışabilme ve Sorumluluk Alabilme Yetkinliği Takes responsibility and leadership in interdisciplinary teams working on complex problems in application domains such as health, energy, agriculture, industry, finance and logistics, and develops solutions together with domain experts.
PLO09 Yetkinlikler - İletişim ve Sosyal Yetkinlik Communicates the processes and results of their work clearly and systematically in English, in written (paper, thesis, report) and oral form, in national and international settings.
PLO10 Yetkinlikler - Alana Özgü Yetkinlik Observes scientific and professional ethics, data privacy, fairness, transparency and safety principles and the relevant legal regulations in developing and using AI systems, and assesses their societal impact
PLO11 Yetkinlikler - Alana Özgü Yetkinlik Deploys trustworthy, explainable and sustainable AI solutions to real environments such as the cloud, edge devices and industrial systems, taking into account resource constraints such as energy, memory and latency. 3


Week Plan

Week Topic Preparation Methods
1 Privacy and decentralised learning: data silos and privacy risks, definition and development of federated learning, horizontal, vertical and federated transfer learning; cross-device and cross-silo settings Read the introduction and the chapters on horizontal and vertical federated learning in Yang et al. (2019) Öğretim Yöntemleri:
Anlatım, Tartışma, Soru-Cevap
2 Distributed optimisation and FedAvg: server-client architecture, communication rounds, local stochastic gradient descent, client sampling, FedSGD versus FedAvg; a first simulation with Flower Read McMahan et al. (2017); work through the official Flower getting-started tutorial Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama
3 Statistical heterogeneity: types of non-IID data (label, feature and quantity skew), Dirichlet partitioning, client drift, the FedProx and SCAFFOLD algorithms Read Li et al. (2020) on FedProx and Karimireddy et al. (2020) on SCAFFOLD Öğretim Yöntemleri:
Anlatım, Alıştırma ve Uygulama, Problem Çözme
4 Communication efficiency and system heterogeneity: gradient and model compression, quantisation, sparsification, partial participation and client selection, asynchronous federated learning, stragglers Read Konečný et al. (2016) and the relevant sections of Kairouz et al. (2021) Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama
5 Personalisation and other forms of federated learning: local fine-tuning, meta-learning-based personalisation (Per-FedAvg), clustered and multi-task federated learning; split learning and entity alignment in vertical federated learning Read Fallah et al. (2020) and the relevant chapters of Ludwig and Baracaldo (2022) Öğretim Yöntemleri:
Anlatım, Tartışma, Alıştırma ve Uygulama
6 Privacy attacks on machine learning: threat models (honest-but-curious and malicious parties), membership inference, model inversion, attribute inference, data reconstruction from gradients Read Shokri et al. (2017), Fredrikson et al. (2015) and Zhu et al. (2019) Öğretim Yöntemleri:
Anlatım, Tartışma, Gösteri
7 Integrity attacks and robust aggregation: data and model poisoning, backdoor attacks, Byzantine-robust aggregation (Krum, trimmed mean, median); review before the mid-term exam Read Bagdasaryan et al. (2020) and Blanchard et al. (2017); revise the topics of Weeks 1–6 Öğretim Yöntemleri:
Anlatım, Alıştırma ve Uygulama, Soru-Cevap
8 Mid-Term Exam exam preparation Ölçme Yöntemleri:
Yazılı Sınav
9 Foundations of differential privacy: (ε, δ)-differential privacy, sensitivity, the Laplace and Gaussian mechanisms, composition theorems and post-processing, randomised response, local versus central differential privacy Read Dwork and Roth (2014), Chapters 2–3 Öğretim Yöntemleri:
Anlatım, Soru-Cevap, Problem Çözme
10 DP-SGD and differential privacy in federated learning: per-example gradient clipping and noise addition, privacy accounting (Rényi differential privacy), implementation with Opacus, user-level differential privacy (DP-FedAvg), the privacy-utility trade-off Read Abadi et al. (2016) and McMahan et al. (2018); work through the Opacus tutorials; prepare the term project proposal Öğretim Yöntemleri:
Anlatım, Alıştırma ve Uygulama, Proje Temelli Öğrenme
11 Secure aggregation and secret sharing: Shamir secret sharing, the secure aggregation protocol with pairwise masking, robustness to client dropouts, combining secure aggregation with differential privacy Read Bonawitz et al. (2017) and the secret-sharing sections of Evans et al. (2018) Öğretim Yöntemleri:
Anlatım, Problem Çözme, Gösteri
12 Homomorphic encryption: partially homomorphic encryption (Paillier), somewhat and fully homomorphic schemes (BFV, CKKS), encrypted inference, homomorphic encryption in vertical federated learning, implementation with TenSEAL; a brief look at trusted execution environments (TEEs) Read the chapter on private parameter aggregation in Ludwig and Baracaldo (2022); work through the TenSEAL tutorials Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama
13 Secure multi-party computation: Yao's garbled circuits, secret-sharing-based protocols, oblivious transfer, private set intersection, implementation with CrypTen; comparison of privacy-enhancing technologies Read the relevant chapters of Evans et al. (2018); work through the CrypTen tutorial Öğretim Yöntemleri:
Anlatım, Problem Çözme, Alıştırma ve Uygulama
14 Applications and legal framework: multi-centre federated learning in health, fraud detection in finance, mobile-device applications; legal basis, data minimisation, anonymisation and pseudonymisation, and privacy by design under KVKK and GDPR; fairness in federated learning Read Rieke et al. (2020) and the relevant articles of KVKK and the GDPR Öğretim Yöntemleri:
Anlatım, Örnek Olay, Tartışma
15 Term project presentations and course review: discussion of findings on the privacy-utility trade-off, open research problems in federated learning Prepare the project report and presentation Öğretim Yöntemleri:
Proje Temelli Öğrenme , Tartışma
16 Term Exams exam preparation Ölçme Yöntemleri:
Proje / Tasarım
17 Term Exams exam preparation Yöntem Seçilmemiş


Student Workload - ECTS

Works Number Time (Hour) Workload (Hour)
Course Related Works
Class Time (Exam weeks are excluded) 14 3 42
Out of Class Study (Preliminary Work, Practice) 14 4 56
Assesment Related Works
Homeworks, Projects, Others 0 0 0
Mid-term Exams (Written, Oral, etc.) 1 18 18
Final Exam 1 24 24
Total Workload (Hour) 140
Total Workload / 25 (h) 5,60
ECTS 6 ECTS

Update Time: 27.11.2026 05:26