student projects
List of available projects
If you are an ETH student in CS, EE or Statistics (math can also be arranged) and interested in doing a project or thesis, please fill out this form and email both Fanny and the project advisor. There are more opportunities in the lab than the listed projects, if you are interested in the general direction of trustworthy ML or causal inference (both empirically and theoretically) with excellent mathematical or coding background, feel free to contact us.
Beyond Accuracy on the Line: Evaluating Out-of-Distribution Generalization in Machine Learning
Develop novel ways to evaluate machine learning methods out-of-distribution which reflect their true generalization capabilities.
The accuracy of machine learning methods often drops when they are trained on one domain and deployed on another. This is a finding which has been observed over and over empirically. However, it is less clear which actions can be undertaken to mitigate this failure, if any. One intuitive approach, distributionally robust optimization (DRO), aims to find a model which performs well on all test datasets “close” to the training data in some probability distance. However, this approach results in overly pessimistic models which are robust against “unrealistic” distribution shifts. Instead, a number of methods have been proposed which aim to identify and exclusively use stable (“causal”) relationships in the data. Corresponding theory states that such methods are guaranteed to perform better than standard empirical risk minimization (ERM) under worst-case distribution shifts. When put to the test empirically, these findings do not seem to hold up well: on real-world datasets, causality- (or invariance-) based generalization methods are very often outperformed by ERM, and seem to generalize worse both in- and out-of-distribution (OOD) [Nastl & Hardt, 2024, Salaudeen et al., 2025]. This seems consistent with the “accuracy-on-the-line” hypothesis, which postulates that the ranking of models is often preserved across distributions. In recent work, it has been argued that this mismatch between theoretical and empirical findings is an “artifact” of misspecified OOD datasets, which do not contain sufficiently adversarial shifts.
The goal is to resolve the mismatch between theoretical and empirical findings in multiple ways:
- by verifying whether invariance-based OOD methods rank better if the distribution shift is constructed to be worst-case;
- by constructing benchmarks with varying strength and complexity of the distribution shift which could help evaluate a “spectrum” of OOD generalization of models;
- by providing a theoretical justification of recent empirical findings through analysis of the mismatch between benchmarks and assumptions.
Goals of the project:
- Create novel evaluation schemes for OOD machine learning methods;
- Construct novel benchmarks which more accurately measure OOD generalization;
- Test a large variety of large-scale models via the novel schemes and benchmarks.
Key Skills & Qualifications:
- Strong background in machine learning, familiarity with reading and understanding research papers.
- Solid Python and PyTorch skills, plus basic experience running experiments on GPUs.
- Background in statistics, basic machine learning theory, training and evaluation of machine learning models.
- Interest in out-of-distribution generalization, design of safe and robust models, and causality
Do causal predictors generalize better to new domains?
Are Domain Generalization Benchmarks with Accuracy on the Line Misspecified?
Invariance, causality and robustness.
[4] In search of lost domain generalization.
[5] In search of forgotten domain generalization. (Not the same as [4]!)
Mediator-Based Routing for Efficient LLM Systems
Starting from a well-known theoretical framework, understand if there are empirical gains by using such a machinery for adaptive model/agent selection.
Modern LLM systems often choose between multiple ways of answering a prompt: a cheap model, a stronger model, a retrieval-augmented pipeline, a cascade, or a verifier-based workflow. This project studies this choice as a contextual mediator-selection problem: given a prompt, select the most appropriate answer-generating procedure while balancing quality, cost, and latency. Building on the well-understood theoretical framework on mediator-feedback bandits, where a learner selects a mediator/policy that produces an outcome, the goal is to develop a useful method for efficient LLM orchestration (with a potential extension of the theoretical framework too). The expected contribution is a compact empirical study showing when mediator-based routing improves over standard model selection, and whether treating LLM procedures as mediators is useful for practical agentic systems.
Key Skills & Qualifications:
- Strong background in machine learning, familiarity with reading and understanding research papers also from a theoretical lens.
- Solid Python and PyTorch skills, and experience running experiments on GPUs.
- Experience working with LLMs is a plus.
From Trial to Clinical Practice: Using Invariance to Study Real-World Type 2 Diabetes Treatment Effects (MSc thesis)
A randomized controlled trial (RCT; SUSTAIN 7) demonstrated that semaglutide (trade name: Ozempic) reduces blood sugar and bodyweight more effectively than another drug, dulaglutide (trade name: Trulicity), within the same class of type 2 diabetes medications (GLP-1 receptor agonists). However, because RCT treatment effects are typically estimated under idealized conditions strictly following the trial protocol, they can fail to generalize. Our longer-term goal is to study whether invariance assumptions can bridge this gap, helping us to extend the semaglutide-versus-dulaglutide results from SUSTAIN 7 to real-world UK clinical practice. This project will involve working with large-scale electronic health records (EHRs) and applying causal inference methodologies. Intended as an MSc thesis.
Semaglutide and dulaglutide are GLP-1 receptor agonists used to treat type 2 diabetes. The SUSTAIN 7 trial compared the two drugs under controlled conditions in patients receiving metformin monotherapy and measured changes in HbA1c and bodyweight after 40 weeks. In real-world UK primary care, patients often take several glucose-lowering drugs, may change or stop treatment, have other comorbidities, and differ in many other aspects from the trial population. Many would not have qualified for SUSTAIN 7. We would like to understand what the comparative treatment effect is in this broader clinical setting and how causal effects estimated in the trial population can be generalized to this real-world setting. This question matters for clinical decisions, reimbursement, and regulation.
Standard methods for generalizing or transporting trial results use reweighting, outcome modeling, or doubly robust combinations. They rely on assumptions about which patient characteristics change the treatment effect and on enough overlap between the trial and target populations. These assumptions may be difficult to justify for patients who differ strongly from the trial participants.
The main focus of this project is invariance. A starting point is to review the medical and statistical literature, including work on causal graphs for type 2 diabetes, and look for relationships that may remain stable across trial and real-world settings. Disease severity and proxy variables used to measure it are one possible starting point. Based on this review, possible invariance assumptions can be stated and assessed in the available data. The next step is to study whether these assumptions can help estimate treatment effects for parts of the target population that are not well represented in the trial. Standard transport methods can provide baselines.
The main data source will be CPRD Aurum, a large UK primary-care database. The exact target population, treatments, outcomes, and methodological approach will be refined after the literature review and the first data checks. HbA1c and bodyweight are likely outcomes. The project description and scope is preliminary and may change as we learn more about the data.
Goals of the project (to be further specified):
- Read into mechanisms behind type 2 diabetes, GLP-1 drugs, associated causal graphs, and the literature on generalizability, transportability, and invariance.
- Compare the trial and real-world populations and implement suitable standard transport methods as baselines, if applicable.
- Identify plausible invariance assumptions, assess them in the available data, and use or adapt them for treatment effect estimation.
- Apply the resulting methods to the UK data and study how the conclusions depend on the assumptions.
Key Skills & Qualifications:
- Highly motivated, with a strong background in statistics or machine learning and an interest in causal inference.
- Genuine interest in clinical applications (this is an applied project).
- Willing to read both statistical and medical papers.
- Solid programming skills, preferably in Python, and willing to spend substantial time handling real-world data.
- Ability to work carefully and independently.
Semaglutide versus dulaglutide once weekly in patients with type 2 diabetes (SUSTAIN 7): a randomised, open-label, phase 3b trial
Extending inferences from a randomized trial to a target population
Invariance, Causality and Robustness
Doubly robust identification of treatment effects from multiple environments
Example of previous student projects
Tight bounds for maximum l1-margin classifiers
Stefan Stojanovic with Konstantin Donhauser and Fanny Yang. ALT 2024. [paper]
Certified private data release for sparse Lipschitz functions
Johan Lokna and Robert Hoenig with Konstantin Donhauser, Amartya Sanyal, March Boedihardjo, and Fanny Yang. AISTATS 2024. [paper]
Can semi-supervised learning use all the data effectively? A lower bound perspective
Gizem Yüce with Alexandru Ţifrea, Amartya Sanyal, and Fanny Yang. NeurIPS 2023, Spotlight 🏅. [paper]
Strong inductive biases provably prevent harmless interpolation
Marco Milanta with Michael Aerni, Konstantin Donhauser, and Fanny Yang. ICLR 2023. [paper]
Why adversarial training can hurt robust accuracy
Jacob Clarysse with Julia Hörrmann and Fanny Yang. ICLR 2023. [paper]
How unfair is private learning?
Yaxi Hu with Amartya Sanyal and Fanny Yang. UAI 2022, Oral 🏅. [paper]