Large Language Models, Spring 2026

ETH Zürich: Course catalog

Course Description

Large language models have become one of the most commonly deployed NLP inventions. In the past half-decade, their integration into core natural language processing tools has dramatically increased the performance of such tools, and they have entered the public discourse surrounding artificial intelligence. In this course, we start with the probabilistic foundations of language models, i.e., covering what constitutes a language model from a formal, theoretical perspective. We then discuss how to construct and curate training corpora, and introduce many of the neural-network architectures often used to instantiate language models at scale. The course discusses privacy and harms, as well as applications of language models in NLP and beyond.

Pre-requisites: While there are no formal pre-requisites for taking the course, we count on you being comfortable with probability theory, linear algebra, computational complexity, and machine learning.

Syllabus and Schedule

On the Use of Class Time

Lectures

There are two lecture slots for LLMs each week (3 hours total):

In-person and Zoom

Lectures will be given in person and live broadcast on Zoom; the password is available on the course Moodle page.

Recordings: Lectures will be recorded—links to the Zoom recordings will be posted on the course Moodle page.

Tutorials

Tutorials will take place Thursdays 16-18 in NO C 60 and on Zoom.

Syllabus

Date Time Module Topic Lecturer Summary Material Reading
17. 2. 2026 1 hour Introduction and Overview Ryan Introductory Slides Course Notes, § 1
17. 2. 2026 1 hour Modeling Foundations Defining a Language Model Ryan Course Notes, §§ 2–3,
Du et al. A Measure-Theoretic Characterization of Tight Language Models
20. 2. 2026 1 hour The Language Modeling Task Ryan Course Notes, § 3
24. 2. 2026 2 hours Classical Language Models Finite-State Language Models Anej Course Notes, § 4.1
Bengio, Yoshua, et al. A neural probabilistic language model, Sun, Simeng, et al. Revisiting Simple Neural Probabilistic Language Models.
27. 2. 2026 1 hour Recurrent Neural Language Models Anej Course Notes, §§ 5.1.1–5.1.4
3. 3. 2026 2 hours Neural Network Modeling Representational Capacity of RNN LMs Alexandra Course Notes, § 5.1.6,
Svete et al., Recurrent Neural Language Models as Probabilistic Finite-state Automata.,
Nowak et al., On the Representational Capacity of Recurrent Neural Language Models.,
Siegelmann H. T. and Sontag E. D. On the computational power of neural nets.
6. 3. 2026 1 hour No lecture
10. 3. 2026 2 hours Transformer-based Language Models Tianyu Course Notes, § 5.2,
Radford et al., Language Models are Unsupervised Multitask Learners,
Vaswani et al., Attention Is All You Need,
The Illustrated Transformer,
The Illustrated GPT-2,
Transformer decoder (Wikipedia)
13. 3. 2026 1 hour Representational Capacity of Transformer-based Language Models Irene Course Notes, § 5.3
17. 3. 2026 2 hours Modeling Potpourri Tokenization Manuel
20. 3. 2026 1 hour Generating Text from a Language Model Robin Slides
24. 3. 2026 2 hours Transfer Learning and Fine-tuning Transfer Learning Mrinmaya Slides
27. 3. 2026 1 hour Parameter Efficient Finetuning Mrinmaya Slides
31. 3. 2026 2 hours Parameter Efficient Finetuning Mrinmaya
Easter Break
14. 4. 2026 2 hours Prompting and In-context Learning In-context Learning, Prompting, Zero-shot, Instruction Tuning Mrinmaya Slides
17. 4. 2026 1 hour Multimodality Mrinmaya Slides
21. 4. 2026 2 hours Retrieval and Reasoning Retrieval Augmented Language Models Mrinmaya Slides
24. 4. 2026 1 hour Reinforcement Learning for Reasoning and Inference-time Compute Mrinmaya
28. 4. 2026 2 hours Alignment Instruction Tuning and RLHF Mrinmaya Slides
1. 5. 2026 1 hour TBD TBD Mrinmaya
5. 5. 2026 2 hours Evaluation Evaluations and Benchmarks Vilem & Mubashara
8. 5. 2026 1 hour Security Security, Adversarial Examples, and Watermarks Avital Carlini et al. Are aligned neural networks adversarially aligned?, Zou et al. Universal and Transferable Adversarial Attacks on Aligned Language Models
12. 5. 2026 2 hours Security, Adversarial Examples, and Watermarks Avital
15. 5. 2026 1 hour Prompt Injections Avital Greshake et al. Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection
19. 5. 2026 2 hours Data Poisoning, Backdoors and Model Stealing Avital Carlini et al. Poisoning Web-Scale Training Datasets is Practical, Wallace et al. Imitation Attacks and Defenses for Black-box Machine Translation Systems, Carlini et al. Is Private Learning Possible with Instance Encoding?, Fowl et al. Robbing the Fed: Directly Obtaining Private Data in Federated Learning with Modified Models
22. 5. 2026 1 hour Privacy Privacy, Memorization, Differential Privacy Florian Nasr et al. Scalable Extraction of Training Data from (Production) Language Models, Abadi et al. Deep Learning with Differential Privacy
26. 5. 2026 2 hours Privacy, Memorization, Differential Privacy, Membership Inference Attacks Florian Carlini et al. Membership Inference Attacks From First Principles, Duan et al. Do Membership Inference Attacks Work on Large Language Models?
29. 5. 2026 1 hour TBD Florian

Tutorial Schedule

Week Date   Topic Teaching Assistant Material
1 19. 2. 2026 Course Logistics Anej Introduction Slides
2 26. 2. 2026 Fundamentals of Natural Language Processing and Language Modeling Tu Exercises, Exercises with solutions, iPad Notes
3 5. 3. 2026 Classical Language Models: $n$-grams Livia Exercises, Exercises with solutions
4 12. 3. 2026 RNN Language Models Irene Exercises, Exercises with solutions, Kári's notes
5 19. 3. 2026 Transformer Language Models Shawn Exercises, Exercises with solutions, Jupyter Notebook
6 26. 3. 2026 Tokenization and Generation Blanka Exercises, Exercises with solutions, Slides
7 2. 4. 2026 Assignment 1 Q&A Irene, Tu, Blanka, Livia
8 16. 4. 2026 Common Pre-trained Language Models, Parameter-efficient Fine-tuning William Google Colab Notebook, Transformer Architecture Drawing
9 23. 4. 2026 Retrieval-augmented Generation Jan Google Colab Notebook, Slides
10 30. 4. 2026 Prompting, Chain-of-Thought Reasoning Ema Exercises, Exercises with solutions
11 7. 5. 2026 Assignment 2 Q&A Ema, Jan, Javier, William
12 14. 5. 2026 No tutorial (Ascension Day)
13 21. 5. 2026 Decoding, Watermarking Javier Exercises, Exercises with solutions
14 28. 5. 2026 Assignment 3 Q&A Shawn, Javier

Organization

Moodle as a Communications and Questions-answering Platform

We will use the course Moodle page for course communications and as a place where you can ask questions to the teaching staff. There are several forums you can use to ask specific questions and we encourage you to take advantage of that. We aim to response quickly.

Course Notes

We prepared an extensive set of course notes for the course. We will be improving them as we go this semester as well. Please report all errata you find in the course notes to the teaching staff in the Errata Google document linked on the course Moodle page.

Links to the course notes:

Other useful literature:

Grading

Marks for the course will be determined by the following formula:

  • 50% Final Exam
  • 50% Assignments

Exam

The final exam is comprehensive and should be assumed to cover all the material in the slides and class notes. The date is determined by the ETH examinations office centrally and will be announced towards the end of the semester.

Remote exams: ETH offers a centralized system for taking exams remotely if you are an exchange student or under specific circumstances for ETH students as well. To find out more and arrange a remote exam, please follow the instructions on remote examinations here.

Exam review: After the grades have been announced, you will be able to sign up to the exam review session, which we will offer sometime in the first three weeks of the semester. During the session, you will have the opportunity to review your exam and assignments and understand how they were graded. You will also be able to take notes about the exam and solution, but no copies or photos can be taken. To sign up, we will publish a Google form after the grading conference. Note that we offer only one review session, so individual (or remote) sessions are not possible. See also here for more information about exam reviews in general.

Assignments

There will be three larger assignments in the course. Assignments are individual work, and you are expected to submit your own solutions—solutions that you wrote up yourself and did not copy from any of your peers. Each assignment might, however, follow a different policy on collaboration when it comes to discussing the problems with your peers—please refer to the specific assignment instructions for details.

We require the solutions to be properly typeset. We recommend using LaTeX (with Overleaf), but markdown files with something like MathJax for the mathematical expressions are also fine.

The first assignment will be of more theoretical nature and will be released shortly after the start of the semester. Assignments 2 and 3 will be of more practical nature and will be released in the second half of the semester.

Each of the three assignments contribute 1/3 to the final assignment grade (that is, the assignment grade will be the average of the three individual assignment grades; see the individual assignment instructions for the grading scales).

Assignment instructions:

  • Assignment 1 Instructions: Will be released on February 27th, 2026.
  • Assignment 2 Instructions: Will be released on between mid-April and mid-May 2026.
  • Assignment 3 Instructions: TBD
Assignment Deadlines

You will submit your assignments via Moodle.

  • Assignment 1 is due on April 30, 2026, at 23:59.
  • Assignment 2 is due on TBD.
  • Assignment 3 is due on June 5, 2026, at 23:59.

Please be proactive with your time management and start early. Barring exceptional circumstances that do not only affect the last two weeks before the deadline (e.g., prolonged illness, family emergency, or severe mistakes in the assignment setup), we will not accept requests for deadline extensions—neither individual nor group requests. Late submissions will not be graded.

Large Language Models Lecturers

Avatar

Florian Tramèr

Assistant Professor of Computer Science

ETH Zürich

Avatar

Mrinmaya Sachan

Assistant Professor of Computer Science

ETH Zürich

Avatar

Ryan Cotterell

Assistant Professor of Computer Science

ETH Zürich

Large Language Models Teaching Assistants

Avatar

Shawn Lim

Master’s Student

ETH Zürich