Information
| Unit | INSTITUTE OF NATURAL AND APPLIED SCIENCES |
| ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING (MASTER) (WITH THESIS) (ENGLISH) | |
| Code | AIE512 |
| Name | Explainable Artificial Intelligence |
| 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 | Prof. Dr. YUSUF ALPER KAPLAN |
| Course Instructor |
The current term course schedule has not been prepared yet.
|
Course Goal / Objective
The aim of this course is to provide students with the theoretical and practical competence needed to understand and explain the decision mechanisms of machine learning models and to assess the reliability of these explanations. The course covers interpretable-by-design models, model-agnostic and model-specific post-hoc explanation methods, explainability techniques for deep networks and large language models, and the regulatory requirements for explainability. Students are expected to be able to develop transparent and accountable AI systems for high-stakes applications.
Course Content
Motivation for explainable AI (XAI), key concepts and taxonomy (intrinsic/post-hoc, global/local, model-specific/model-agnostic), stakeholders and human factors; interpretable-by-design models: sparse linear models, generalised additive models and explainable boosting machines, decision trees, rule lists and scoring systems; global model-agnostic methods: permutation feature importance, partial dependence and accumulated local effects plots, interaction measures, global surrogate models; local methods: ICE curves, LIME and anchors; Shapley values and SHAP; attribution methods for deep networks: gradient-based saliency maps, Integrated Gradients, layer-wise relevance propagation, CAM and Grad-CAM, sanity checks; counterfactual and example-based explanations, algorithmic recourse; concept-based explanations (TCAV, concept bottleneck models); explainability of large language models and mechanistic interpretability; evaluating explanations; regulatory requirements for explainability (GDPR, EU AI Act, KVKK); term project.
Course Precondition
None. Python programming and a basic knowledge of machine learning (e.g. AIE507) and deep learning (e.g. AIE505) are recommended.
Resources
Hands-on sessions use Python with the SHAP, LIME, InterpretML, Captum, DiCE, Alibi Explain and dalex libraries; deep-network examples are prepared in PyTorch. The HTML version of Molnar (2025) is freely available online. Key papers: Doshi-Velez and Kim (2017), 'Towards a Rigorous Science of Interpretable Machine Learning', arXiv; Rudin (2019), Nature Machine Intelligence, 1(5); Rudin et al. (2022), 'Interpretable Machine Learning: Fundamental Principles and 10 Grand Challenges', Statistics Surveys, 16; Ribeiro, Singh and Guestrin (2016), LIME, KDD; Lundberg and Lee (2017), 'A Unified Approach to Interpreting Model Predictions', NeurIPS; Sundararajan, Taly and Yan (2017), 'Axiomatic Attribution for Deep Networks', ICML; Selvaraju et al. (2017), Grad-CAM, ICCV; Adebayo et al. (2018), 'Sanity Checks for Saliency Maps', NeurIPS; Wachter, Mittelstadt and Russell (2018), 'Counterfactual Explanations without Opening the Black Box', Harvard Journal of Law & Technology, 31(2); Kim et al. (2018), TCAV, ICML; Koh et al. (2020), 'Concept Bottleneck Models', ICML; Jain and Wallace (2019), 'Attention is not Explanation', NAACL; Zhao et al. (2024), 'Explainability for Large Language Models: A Survey', ACM Transactions on Intelligent Systems and Technology. Students carry out a term project in which they apply and compare different explanation methods on a model and data set of their choice; the project is completed with a code repository, a technical report and a presentation. AI ethics and law are covered comprehensively in AIE520.
Notes
Course Learning Outcomes
| Order | Course Learning Outcomes |
|---|---|
| LO01 | Explain the key concepts of explainable AI and classify explanation methods by scope, model dependence and stage of application (intrinsic/post-hoc). |
| LO02 | Build interpretable-by-design models (sparse linear models, GAMs/EBMs, rule-based models) and assess the accuracy–interpretability trade-off for a given problem. |
| LO03 | Apply global and local model-agnostic methods (permutation importance, PDP/ALE, ICE, LIME, SHAP) to explain black-box models, and interpret their outputs critically. |
| LO04 | Generate and compare attribution maps for deep neural networks (gradient-based saliency, Integrated Gradients, LRP, Grad-CAM) and test their reliability with sanity checks. |
| LO05 | Produce counterfactual, example-based and concept-based explanations, and discuss their usefulness for algorithmic recourse and model debugging. |
| LO06 | Evaluate explanations in terms of fidelity, stability and usefulness to users, and analyse the explainability requirements under the GDPR, the EU AI Act and KVKK for a given application. |
| LO07 | Critically review current research on the explainability of large language models, and communicate an explainability analysis of a selected model in a written report and an oral presentation. |
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. | |
| 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. | 3 |
| 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. | |
| 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. | |
| 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. | 3 |
| 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. | 3 |
| 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. | 4 |
Week Plan
| Week | Topic | Preparation | Methods |
|---|---|---|---|
| 1 | Introduction to explainable AI: the need for explainability, the concepts of interpretability and transparency, taxonomy of methods (intrinsic/post-hoc, global/local, model-specific/model-agnostic), stakeholders and human factors | Read the introductory chapters of Molnar (2025) and the paper by Doshi-Velez and Kim (2017) | Öğretim Yöntemleri: Anlatım, Tartışma, Beyin Fırtınası |
| 2 | Interpretable-by-design models I: sparse linear and logistic models, generalised additive models (GAMs), explainable boosting machines (EBMs), monotonicity constraints | Read the interpretable models chapters of Molnar (2025) and the paper by Rudin (2019) | Öğretim Yöntemleri: Anlatım, Gösteri, Alıştırma ve Uygulama |
| 3 | Interpretable-by-design models II: decision trees, rule lists and decision sets, scoring systems, prototype-based models; the accuracy–interpretability trade-off and the Rashomon set | Read the paper by Rudin et al. (2022) | Öğretim Yöntemleri: Anlatım, Tartışma, Alıştırma ve Uygulama |
| 4 | Global model-agnostic methods: permutation feature importance, partial dependence plots (PDP), accumulated local effects (ALE), feature interaction (H-statistic), global surrogate models | Read the global methods chapters of Molnar (2025) and the dataset-level explanation chapters of Biecek and Burzykowski (2021) | Öğretim Yöntemleri: Anlatım, Gösteri |
| 5 | Local model-agnostic methods: individual conditional expectation (ICE) curves, ceteris paribus profiles, LIME, anchors; stability and limitations of local explanations | Read the paper by Ribeiro, Singh and Guestrin (2016) and the instance-level explanation chapters of Biecek and Burzykowski (2021) | Öğretim Yöntemleri: Anlatım, Gösteri |
| 6 | Shapley values and SHAP: cooperative game theory and the Shapley axioms, KernelSHAP, TreeSHAP, SHAP interaction values, global SHAP summaries, pitfalls with correlated features | Read the paper by Lundberg and Lee (2017) and the Shapley values and SHAP chapters of Molnar (2025) | Öğretim Yöntemleri: Anlatım, Problem Çözme |
| 7 | Explaining tabular models in practice: a case study on a credit-scoring or clinical risk model, model debugging and bias auditing with explanations; mid-term review | Read the relevant chapters of Masís (2023); review the lab notebook | Öğretim Yöntemleri: Örnek Olay, Alıştırma ve Uygulama, Soru-Cevap |
| 8 | Mid-Term Exam | exam preparation | Ölçme Yöntemleri: Yazılı Sınav |
| 9 | Attribution methods for deep networks I: gradient-based saliency maps, gradient×input, SmoothGrad, Integrated Gradients, DeepLIFT, layer-wise relevance propagation (LRP) | Read the paper by Sundararajan, Taly and Yan (2017) and the relevant chapters of Samek et al. (2019); prepare the term-project proposal | Öğretim Yöntemleri: Anlatım, Gösteri, Alıştırma ve Uygulama |
| 10 | Attribution methods for deep networks II: CAM and Grad-CAM, occlusion and perturbation-based methods, attention visualisation in vision transformers, sanity checks for saliency maps | Read the papers by Selvaraju et al. (2017) and Adebayo et al. (2018) | Öğretim Yöntemleri: Anlatım, Gösteri |
| 11 | Counterfactual and example-based explanations: counterfactual explanations, DiCE, algorithmic recourse and actionability, prototypes and criticisms, influence functions | Read the paper by Wachter, Mittelstadt and Russell (2018) and the example-based explanation chapters of Molnar (2025) | Öğretim Yöntemleri: Anlatım, Tartışma, Alıştırma ve Uygulama |
| 12 | Concept-based explanations: testing with concept activation vectors (TCAV), concept bottleneck models, network dissection, neuron and feature visualisation | Read the papers by Kim et al. (2018) and Koh et al. (2020) | Öğretim Yöntemleri: Anlatım, Gösteri |
| 13 | Explainability for large language models: attention weights as explanations, feature attribution in transformers, probing, mechanistic interpretability (circuits, sparse autoencoders), faithfulness of chain-of-thought explanations | Read the papers by Jain and Wallace (2019) and Zhao et al. (2024) | Öğretim Yöntemleri: Anlatım, Tartışma |
| 14 | Evaluating explanations and regulatory requirements: fidelity, stability, human-centred evaluation; GDPR Article 22, the EU AI Act (Articles 13 and 86), KVKK Article 11, NIST principles of explainability | Read Phillips et al. (2021) and the relevant articles of the EU AI Act | Öğretim Yöntemleri: Anlatım, Tartışma, Örnek Olay |
| 15 | Term-project presentations: application, comparison and evaluation of explanation methods for a selected model and data set; course review | 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 | Ölçme Yöntemleri: Proje / Tasarım |
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 | ||