Week 10: LLM Post-training
Reminders and announcements
Welcome to Week 10, the final week of the course! It simultaneously feels like a very long time and just yesterday that we started this course together. I hope you will all take a moment to congratulate yourselves on making it this far, and to reflect on what you have learned so far.
- The assignment is due on Thursday, 26th November at noon.
- No extensions are permitted on this assignment and late submissions are penalized, so plan on finishing early just in case! Also remember: it is much better to submit an incomplete assignment than to submit late or not at all.
- You can find the instructions for submitting the assignment on Learn under "Assessment".
- Tutorial 4 meets next week and is designed for exam revision. Before you look at the questions, please read below.
- Each of the two tutorial questions is lightly adapted from a past exam, accounting for this year's content. (These were questions from "Part 2" of those exams, as described in the Revision Guide posted in Week 7). The questions may span material from the whole semester, and will test your knowledge of multiple topics.
- If you haven't already, we recommend you read through the exam revision guide (posted in Week 7) before attempting the questions. You can also read the guidance on the first page of the tutorial sheet.
- We recommend you treat this as a mini practice exam: set a timer for 1 hour from when you first look at the questions (note: the real exam will be 2 hours), and write your answers on paper.
- Practice exam: We will release a full practice exam at the start of Week 11. In the meantime, please read the revision guide (linked below) and use the tutorial questions!
Overview of the week
We know that many people are feeling pressured this week with assignments for both this and other classes, so we have tried our best to keep that in mind for our lectures. In fact, we will have an invited speaker on Monday, since the assignment is due on Tuesday. We are very lucky to have Aryo Gema, a PhD student at the School of Informatics, who will talk about his work on inverse scaling that he completed while working at Anthropic (the company that created Claude!). The contents of the guest lecture will not be examinable. I hope you will enjoy it!
For the rest of the week, we will study how frontier labs expand LLMs' capabilities via specialised training regimes. During the Wednesday lecture, Alessandro will provide an introduction to instruction fine-tuning, one of the popular ways to train LLMs to follow natural language instructions. On Friday, Alessandro will describe how LLMs can be trained via reinforcement learning to improve their responses so that they are more aligned with respect to human preferences. We aim to provide you with the fundamentals of training LLMs that will allow you to apply them to real-world NLP problems.
Lectures and reading
| Lecture # | Who? | Slides | Reading |
|---|---|---|---|
| 1 | Aryo Gema (guest lecturer) | Inverse Scaling in Test-Time Compute (not examinable) | Gema, Aryo, et al. "Inverse Scaling in Test-Time Compute". |
| 2 | AS | An Introduction to LLM Post Training – Instruction Finetuning | Section 8.1 - Chapter 8 “Speech and Language Processing”. Daniel Jurafsky & James H. Martin. Lambert, Nathan, et al. "Tulu 3: Pushing frontiers in open language model post-training.” [Focus on Section 2-4] |
| 3 | AS | An Introduction to LLM Post Training – Reinforcement Learning from Human Feedback | Section 8.3 and Section 8.4 (intro only) - Chapter 8 “Speech and Language Processing”. Daniel Jurafsky & James H. Martin. Lambert, Nathan, et al. "Tulu 3: Pushing frontiers in open language model post-training.” [Focus on Section 6] |