Overview
The midterm capstone integrates Weeks 1 to 7: normative theories as decision procedures, moral dilemmas and social choice, algorithmic fairness and specification problems [1, 2, 3]. Each student chooses one of the three advanced projects below, extends the example Colab notebook in Colab and writes a technical report on the results.
Formats
In this course, both capstones combine a coding application with a technical report. The application is a Colab notebook that extends one of the three example Colab notebooks and runs from top to bottom without errors. The report of 2500 to 4000 words follows the course report template. Each student works individually unless the instructor announces otherwise. The weights below are indicative; in active semesters the instructor confirms them at the start of the semester.
How to work on this capstone
Step 1. Choose a project. Read the three projects below and pick one. The related weeks of each project show which lecture pages, interactive labs and Colab notebooks to revisit.
Step 2. Run the example. Open the example Colab notebook of the project with its badge. Save a copy to your own Google Drive (File, Save a copy in Drive), run all cells from top to bottom and read what the baseline implements.
Step 3. Extend it. Implement every required extension in your copy. Fix the random seeds so that another person can reproduce the results.
Step 4. Evaluate and write. Compare the extensions with the baseline and write the technical report with the course report template.
Step 5. Submit. Send the report as a PDF file and a link to your Colab notebook with view access. The submission section below gives the deadline for active semesters.
Advanced application projects
Each project comes with an example Colab notebook that implements a working baseline. The capstone extends the baseline as described, evaluates the extensions and reports the results.
Project 1: A fairness audit and mitigation pipeline
Related weeks. Weeks 5 and 6. Lecture: sections "Group fairness criteria" and "Impossibility results" of Week 5, and "Three points of intervention" of Week 6. Colab notebooks: Week 5 for the audit, and Sections 2 and 3 of Week 6 for reweighing and thresholds.
A lending model is trained on synthetic data in which a proxy feature carries information about a protected group. The example audits the model with group metrics and compares mitigation before, during and after training: reweighing, a parity-penalised logistic regression and group-specific thresholds [2, 4].
Required extensions. Add at least one further mitigation method, such as reductions-based in-processing [5], and evaluate all methods with confidence intervals over repeated splits. Extend the intersectional analysis, trace the complete fairness-accuracy frontier for two fairness definitions and discuss the results in the light of the impossibility theorems [6, 7]. Address the legal and ethical questions raised by using the protected attribute at decision time.
Example Colab notebook:
MID1_fairness_pipeline.ipynb

Project 2: Ethical theories as allocation procedures in intensive care triage
Related weeks. Weeks 2 and 4. Lecture: section "Acting under moral uncertainty" of Week 2 and section "Aggregating preferences" of Week 4. Colab notebooks: Section 3 of Week 2 for the moral parliament, and Sections 1 and 2 of Week 4 for the voting rules and majority cycles.
Scarce intensive care beds are allocated by six procedures that encode different moral commitments [8, 9]. They are two utilitarian rules, first come first served, a lottery among patients who would benefit, a prioritarian rule and a hybrid with a futility rule. The example evaluates the procedures on simulated cohorts, aggregates the rankings of five stakeholder groups with Borda and Condorcet methods and recommends a policy under moral uncertainty [1, 10].
Required extensions. Add at least one deontological constraint, such as a ban on age as a criterion. Add one procedural value, such as appeals or re-evaluation over time, and show how both change the outcomes. Study how sensitive the recommendation is to the credences and to the normalisation of choiceworthiness. Test for Condorcet cycles with more stakeholder profiles, and discuss which parts of the decision should never be automated.
Example Colab notebook:
MID2_triage_decision_procedures.ipynb

Project 3: Goodhart's law, side effects and impact penalties in reinforcement learning
Related weeks. Week 7. Lecture: sections "Reward hacking in theory and practice" and "Side effects and impact regularisation". Interactive lab: the corridor gridworld. Colab notebook: Sections 1 to 3.
A Q-learning agent in a small gridworld can reach its goal quickly by breaking a vase that the proxy reward ignores [11]. The example varies an impact penalty and reports proxy and true returns, and it simulates regressional Goodhart by selecting among options with a noisy proxy under increasing optimisation pressure [3].
Required extensions. Replace the hand-coded penalty with a general impact measure that does not name the vase. The measure can be based, for example, on the reachability of states or on attainable utility for auxiliary goals [12]. Test it in at least two new environments with different side effects. Add a second Goodhart variant, analyse the trade-off between task performance and caution, and relate the findings to the formal definition of reward hacking [13].
Example Colab notebook:
MID3_goodhart_side_effects.ipynb

Report
The technical report states the question and explains the design choices. It presents the experiments with the figures produced by the Colab notebook. It then discusses the ethical and safety implications and the limitations of the results. It cites at least eight sources in square brackets, at least four of them from the course readings, and links to the final Colab notebook.
A common structure for reports is given in the report template.
Assessment criteria
| Criterion | Weight | What is assessed |
|---|---|---|
| Technical correctness and reproducibility | 30% | The Colab notebook runs end to end, the implementation is correct and results are reproducible with the stated seeds. |
| Depth of the extensions | 25% | The required extensions are implemented thoughtfully and go beyond the example. |
| Analysis and interpretation | 20% | Results are analysed with appropriate metrics, comparisons and uncertainty. |
| Ethical and safety reasoning | 15% | The report connects the results to the concepts and debates of the course. |
| Writing and referencing | 10% | The report is clear, well structured and correctly referenced. |
Submission
This capstone also supports self-learning and can be completed at any pace. In an active semester, the midterm capstone is sent by e-mail to utkukose@sdu.edu.tr or utkukose@gmail.com. The deadline is 23:53 (Türkiye time) on the Sunday that ends Week 7. The e-mail contains the report as a PDF file and a link to the Colab notebook.
References
[1] MacAskill, W., Bykvist, K., & Ord, T. (2020). Moral Uncertainty. Oxford University Press.
[2] Hardt, M., Price, E., & Srebro, N. (2016). Equality of opportunity in supervised learning. In Advances in Neural Information Processing Systems 29.
[3] Manheim, D., & Garrabrant, S. (2018). Categorizing variants of Goodhart's law. arXiv preprint arXiv:1803.04585. https://arxiv.org/abs/1803.04585
[4] Kamiran, F., & Calders, T. (2012). Data preprocessing techniques for classification without discrimination. Knowledge and Information Systems, 33(1), 1-33. https://doi.org/10.1007/s10115-011-0463-8
[5] Agarwal, A., Beygelzimer, A., Dudík, M., Langford, J., & Wallach, H. (2018). A reductions approach to fair classification. In Proceedings of the 35th International Conference on Machine Learning, PMLR 80 (pp. 60-69).
[6] Kleinberg, J., Mullainathan, S., & Raghavan, M. (2017). Inherent trade-offs in the fair determination of risk scores. In 8th Innovations in Theoretical Computer Science Conference (ITCS 2017), LIPIcs 67 (pp. 43:1-43:23). https://doi.org/10.4230/LIPIcs.ITCS.2017.43
[7] Chouldechova, A. (2017). Fair prediction with disparate impact: A study of bias in recidivism prediction instruments. Big Data, 5(2), 153-163. https://doi.org/10.1089/big.2016.0047
[8] Mill, J. S. (1863). Utilitarianism. Parker, Son, and Bourn.
[9] Rawls, J. (1971). A Theory of Justice. Harvard University Press.
[10] de Condorcet, M. (1785). Essai sur l'application de l'analyse à la probabilité des décisions rendues à la pluralité des voix. Imprimerie Royale.
[11] Leike, J., Martic, M., Krakovna, V., Ortega, P. A., Everitt, T., Lefrancq, A., Orseau, L., & Legg, S. (2017). AI safety gridworlds. arXiv preprint arXiv:1711.09883. https://arxiv.org/abs/1711.09883
[12] Turner, A. M., Hadfield-Menell, D., & Tadepalli, P. (2020). Conservative agency via attainable utility preservation. In Proceedings of the AAAI/ACM Conference on AI, Ethics, and Society (AIES '20) (pp. 385-391). ACM.
[13] Skalse, J., Howe, N. H. R., Krasheninnikov, D., & Krueger, D. (2022). Defining and characterizing reward hacking. In Advances in Neural Information Processing Systems 35.