Course Description: Despite their huge success, neural networks are still widely considered “black-boxes”. In this seminar, we will look into interpretability methods that aim to demystify these models. We will focus on post-hoc interpretability for transformer-based language models, and work on relatively young and burgeoning fields such as Mechanistic Interpretability, which focuses on reverse-engineering model components into human-understandable algorithms. We will read recent papers that involve a diverse set of techniques for interpreting the inner-workings of language models.
Prerequisites: Many of our readings will be quite technical. You will need a good background in NLP or machine learning in order to thrive in this course.
Registration:
If you are an LST / CoLi student, and want to take this class, you should directly register in the Course Management System (CMS). You may either be directly admitted or waitlisted.
If you are a Computer Science student, you should initially register via the Computer Science department seminar registration system. If you want to take the seminar but were not selected by the assignment system, please apply for the waiting list by emailing xhuang@lst.uni-saarland.de. Only register in Course Management System (CMS) once you were selected by the assignment system or otherwise admitted by us.
In both cases, please email xhuang@lst.uni-saarland.de your top-3 preferences among the items in the syllabus, and a brief explanation why you want to take this course and feel prepared for it. If you want, you are welcome to additionally mention any other topic that you would like to present. If you suggest something interesting, that may boost your chances of being admitted.
Course Management System: CMS
Instructors: Xinting Huang
Time: Fr 14:15–15:45
Room: Building C7.3, Room -1.05
This is a seminar course. Starting from the fourth week, one or two students will present in each unit. Every student will present exactly once. We expect all students to read the readings every week. Every student submits one question about the readings by Thursday noon.
Note: The syllabus is still subject to change.
In each session, two students will together present two papers (in the “Readings” column) on a common topic. In some sessions there is only one paper, because they reqire more time and effort to understand or they should be presented in greater detail. In this case, two students will coordinate together and present it. The optional material is for the Topic, rather than being specific to a particular paper.
Date | Topic | Readings | Slides | Optional Material | Presenter | ||
---|---|---|---|---|---|---|---|
2024-04-19 | no class | ||||||
2024-04-26 | Introduction to Transformers and (L)LMs | slides | Illustrated Transformer Simplified code for GPT-2 | Michael | |||
2024-05-03 | no class | ||||||
2024-05-10 | Probing | Othello-GPT | Bert recovers NLP pipeline | Greg | |||
Control tasks | Probing entities’ property and relation | Herald | |||||
2024-05-17 | Frameworks for Understanding Transformers I | A mathematical framework | Induction heads | Asmaa, Mark | |||
2024-05-24 | Frameworks for Understanding Transformers II | RASP | Learning Transformer Programs | Yash | |||
2024-05-31 | Path Patching, Circuit Discovery | IOI | Path Patching Greater-than | Santanu | |||
ACDC | Aleksandra | ||||||
2024-06-07 | Interpreting hidden states | Logit Lens | slides | Tuned Lens Future Lens | Xinting | ||
Patchscopes | Attribute Lens | ||||||
2024-06-14 | Project Ideas | Everyone | |||||
2024-06-21 | Monosemanticity | Towards Monosementicity | A very similar one Another SAE by OpenAI |
Misha | |||
Scaling monosemanticity | an early SAE paper Codebook Features |
Xinting (brief intro) | |||||
2024-06-28 | Role of MLPs | MLP are key-value memories | Nadia | ||||
Interpret MLP via vocabulary space | Xinting (brief intro) | ||||||
2024-07-05 | Activation Patching, Causality | Interchange intervention | Geiger et al, arXiV 2023 Boundless DAS | Michael | |||
DAS | Xinting (brief intro) | ||||||
2024-07-12 | Head importance | Sixteen Heads Better than One? | Muhammad | ||||
Some heads do heavy lifting | Xinting (brief intro) | ||||||
2024-07-19 | Attribution | Information flow routes | Integrated Gradients | Xinting | |||
Diffmask | EAP |
For students taking the seminar for 4 credits:
Presentation: 60%
Questions about readings: 40%
For students taking the seminar for 7 credits:
Presentation: 30%
Questions about readings: 20%
Final paper: 50%
Please register on the forum on CMS.
Starting from the fourth week, every student submits one question about the readings by Thursday noon. Questions are graded on a 3-point scale (0: no question submitted, 1: superficial question, 2: insightful question). Students can also submit a few more questions, the grade will be calculated as the highest score among questions.(So you can also ask some basic questions that you want clarification)
We expect that presentations will cover the key points from the readings, such as the main evidence for and against the key claims under consideration in the paper.
We do not expect that presentations will cover all details of the papers. Rather, you should focus on big picture findings and conclusions, and are not expected to include every finding from the paper in your presentation. For instance, instead of a table of numbers, highlight key results. When there are multiple similar results in the paper, synthesize them. If the papers have many studies, you might select a representative subset to explain the paper’s conclusions. On the other hand, if the assigned papers primarily discuss/review other work, draw on material from the work cited to provide richer content and even details where useful. Also, sometimes there is just one paper in a seminar session, so you will have more time and may cover more details.
Make sure to motivate the papers’ research question(s). Give background on key concepts, and convey to the audience your understanding of why certain research decisions were made.
Select what you consider the key points; you are not expected to cover every part of the paper exhaustively. Include details only to the extent that you believe them to be important.
Critically engage with the reading: contribute your own opinion on the key findings, and on the paper’s motivation and arguments. In what ways do or don’t you agree with arguments made by the authors?
As you’ll be presenting in teams of two, don’t just present the two papers separately, but make sure to also draw connections and compare. Aim for 40-60 minutes of presentation, allowing 30-40 minutes of discussion. You will have sufficient time, so avoid speaking too fast for others to keep up, make sure your audience is following. You can do so by giving more examples, or simply repeating again. Making presentation is to convey information, if audience cannot follow, it’s waste of time for both sides. Generating and moderating in-class discussion is a key component of your presentation – thinking about what will be interesting to your audience will thus be important. Discussion should happen not just after the presentation, but you should engage the audience and create ample opportunity for discussion during your presentation. Before the presentation, take a look at the questions that have been posted in the forum and refer to these as needed. These may be useful for getting discussion started. Conversely, when attending other students’ talks, reciprocate by participating actively in the discussion.
Note: We will discuss this in the first meeting. Requirements may be changed based on popular demand.
Term papers will be about a small independent project.
You will investigate some interpretability question about neural networks. You could investigate an existing model (e.g., GPT2-Small), or train and interpret a model of your own. You could use an existing method or try to come up with some new analysis approach. You could also compare different analysis approaches, or investigate interpretability from a theoretical angle.
The report is expected to contain a brief literature review, motivation of your study, a description of what you did, and you found. It’s recommended to include quantitative validation of what you found, so that you show it’s not an illusion.
The report should have 8 pages of main report, plus unlimited appendix, in the NeurIPS style format. The main report should be self-contained, but you can use the appendix to report prompts, further analyses, or other material.
The report should be uploaded via CMS. The due date is October 13, 2024, 23:59.
Everyone is expected to report on their project idea in the June 14, 2024, session, and to participate in discussion to give feedback to other students’ ideas. Feel free to come up with any ideas that might be interesting. Students may prepare a short slide deck on their idea. This will not be graded; the June 14 session is intended to help improve and finetune project ideas.
Please contact Xinting (xhuang@lst.uni-saarland.de) or Michael (mhahn@lst.uni-saarland.de) for any questions.
If you need any accommodations due to a disability or chronic illness, please either contact Michael at mhahn@lst.uni-saarland.de or the Equal Opportunities and Diversity Management Unit of the university.