How the leader track works
Six sessions, 45 minutes each, for whoever funds the machine learning project and asks why it is slow. Tonight, why velocity decides projects. Session 2, one number or two kinds: the metric as a leadership decision. Session 3, look at 100 mistakes: the spreadsheet that ranks projects by what they could fix. Session 4, where the error comes from: bias and variance as a diagnosis from three numbers. Session 5, the pipeline that hides its weakest part. Session 6, the one-page memo that gets the whole team reading the same page. The classifier throughout belongs to Lanternfish, a wildlife-camera startup whose species model is wrong on 120 of its 1,000 dev images and whose team has five opinions about why.
★ What you walk out with tonight. A way of seeing a machine learning project as a loop with a speed, so that "why is it late" becomes "how many times has the loop turned". The rule that most teams break in the name of doing it properly: build the first system quickly, then iterate. And two numbers that price any project before a week is spent on it, with Lanternfish's five projects priced as the worked example: 1.62 points of error per week for the dull one, 0.21 for the one everybody wanted.
LiveWhy velocity is the funder's problem, not the engineer's3 min▶
The engineers on a machine learning team decide how to build. The person who funds the team decides what gets built, in what order, and how long each thing is allowed to take before somebody asks whether it is working. Those three decisions set the speed of the loop, and the speed of the loop sets how much the team learns per quarter. A leader who approves one large project for the quarter has, without meaning to, decided that the team will learn once.
The uncomfortable part is that the slow version usually looks like rigour. A clean architecture, a proper data pipeline, a launch when it is ready. The fast version looks scrappy: a baseline in a week, a dev set that is good enough, six things tried and five dropped. Over a quarter the scrappy team has six readings of reality and the rigorous team has one, and the six readings win almost every time.
Lanternfish's founder approved "the proper species model" as the quarter's project, twice. Nobody asked how many times the team would find out whether it was working. The answer turned out to be once, in the field, at 78 percent.
Self-studyThe vocabulary for the whole track4 min▶
- Dev set - the sample of real traffic that every model change is measured on. If it is drawn from the wrong traffic, every decision is about the wrong problem. Practitioner session 1 builds one.
- Dev error - the share of the dev set the model gets wrong. Lanternfish: 120 of 1,000, 12 percent.
- The loop - idea, code, experiment, read the dev set, decide. One turn of the loop is one thing learned.
- Baseline - the first system, built quickly, whose only job is to make the loop start turning. Chapter 13.
- Ceiling - the most a project could possibly improve the error rate, which is the share of current errors in the category it fixes. Chapter 14. Session 3 computes it from a spreadsheet.
- Points per week - ceiling divided by cost in weeks. The one column that ranks projects honestly.
- Eyeball and Blackbox halves - the half of the dev set the team looks at, and the half it never does, so the second half can still tell the truth. Session 3 explains why; the numbers tonight come from the Blackbox half.
Machine learning progress is a loop, and the loop has a speed
9 min liveNobody knows in advance which idea will work on a real dataset. That is not a failing of the team; it is the nature of the work. So a machine learning project is a loop: have an idea, code it, run the experiment, read the dev set, keep or drop the idea. The book's opening argument is that the team that turns this loop faster learns faster, and after a quarter it is ahead of the team that started with the better idea and turned the loop once.
LiveThe faster loop wins, whoever picked the better architecture3 min▶
Two teams start the same problem on the same day. One picks a better architecture and builds it carefully over the quarter. The other picks something ordinary, has it scoring on a dev set in a week, and then tries an idea every fortnight. At the end of the quarter the second team has read the dev set six times, has dropped five ideas that sounded good and did not work, and has kept one that did. The first team has read it once, on launch day.
The second team is ahead, and not because its people are better. It knows six things about the problem that the first team does not, and the sixth thing it learned was only visible because of the first five. Ideas in machine learning compound through readings, and readings only happen when the loop closes.
The consequence for whoever funds the work: the question to ask about a project is not "is this the right idea" but "how many times will we find out". A quarter that answers "once" is a bet, not a plan.
LiveBuild your first system quickly, then iterate3 min▶
Chapter 13 of Machine Learning Yearning has a title that is also the whole instruction: "Build your first system quickly, then iterate." The first system is not the product. Its only job is to make the loop start turning, so that the team's next idea is chosen from what the dev set says rather than from what the team believed before it had any evidence.
Most teams violate this rule for a reason that sounds responsible: they want to do it properly. Properly means a clean pipeline, the right architecture, labels reviewed, a launch when it is ready. Each of those is a good thing. Together they push the first reading of reality to the end of the quarter, which is the one place it cannot help anybody.
- A first system in a week is a deliberate choice of an ordinary model on the data to hand, scored on a dev set that reflects the field. Practitioner session 2 does it.
- The first number will be disappointing. That is the point. A disappointing number in week one is the cheapest information the project will ever buy.
- Everything after that is iteration, and iteration is what the rest of the track is about: which of the many possible next steps to fund.
LiveThe Lanternfish six months, and where the real project started3 min▶
Lanternfish sells trail cameras to conservation groups, and the cameras are supposed to say which species walked past. The team spent six months on a species classifier with the architecture everybody agreed was right. Throughout, the dev set said 94 percent. The dev set was 400 photos scraped from the web: daytime, sharp, animal in the centre of the frame. The cameras shoot night infrared with animals half out of shot. In the field the classifier scored 78.
The fix was not a better model. The team rebuilt the dev set from 1,000 real camera frames, scored the same model, and got 88 percent: 120 wrong. Six months of work had produced a number that was true, and the number was 12 percent error. That is where the project started. Every session after this one is about what to do with those 120 mistakes.
The 94 was not a lie. It was an honest measurement of the wrong thing, and it had been read six times before anybody asked what it was measuring. A fast loop with the wrong instrument is a slow loop with extra steps; speed only counts when the dev set reflects the field. That is why the practitioner track opens with the dev set and this one opens with velocity: the two are the same argument from two chairs.
Self-studyFour things that stretch a loop, and who controls each4 min▶
- No dev set from the field. Without one, an experiment cannot be read, so the loop never closes. Owner: the team, in week one, with the funder asking for it by name.
- A metric the team argues about. Two numbers is a debate every sprint. Owner: the funder, session 2.
- Projects sized by the quarter. A project that takes twelve weeks turns the loop once. Owner: the funder, who approves the size.
- Approval between turns. If each idea needs a meeting, the meeting cadence is the loop speed. Owner: the funder, who can pre-approve the quarter's list and ask only for the readings.
Three of the four are the funder's. Engineers can shorten a training run; they cannot shorten a governance cycle they do not own.
The list of ideas is always longer than the quarter
8 min liveOnce the loop is turning, the problem changes shape. There are always more plausible ideas than there is quarter, and every one of them has a sponsor. Lanternfish has five. The question is no longer "will we iterate" but "in what order", and order turns out to be worth eight weeks of double-digit error.
| Project | Error category it fixes | Share of errors | Weeks | Ceiling | Points per week |
|---|---|---|---|---|---|
| Re-label the dev set | Label was wrong | 14 percent | 1 | 1.6 | 1.62 |
| Infrared denoising pass | Night infrared blur | 33 percent | 3 | 2.5 | 0.84 |
| Motion-trigger filter | Empty frame called animal | 16 percent | 2 | 1.6 | 0.80 |
| Occlusion augmentation | Animal half out of frame | 19 percent | 4 | 1.2 | 0.30 |
| Deer-vs-elk specialist model | Deer mistaken for elk | 19 percent | 8 | 1.7 | 0.21 |
LiveFive plausible projects, funded by conviction2 min▶
Every machine learning team has roughly five projects it could do next, and every one of them is plausible. That is what makes the decision hard: none of the five is stupid. The denoising pass attacks the biggest category of errors. The specialist model attacks the hardest and most interesting one. Re-labelling the dev set is admitting the labels were wrong, which nobody enjoys. The motion filter is somebody else's team. The augmentation is what the last conference talk recommended.
In the absence of a sheet, the one that gets funded is the one with the most convincing sponsor, and the most convincing sponsor is usually the most senior engineer arguing for the most interesting problem. That is not a character flaw; it is what happens when the only inputs are opinions. The remedy is to give the decision two numbers it did not have.
LiveTwo numbers price a project before it starts3 min▶
The first number is the ceiling. Chapter 14 puts it plainly: if 5 percent of the errors fall in the category a project fixes, then "5% is a 'ceiling' (meaning maximum possible amount) for how much the proposed project could help", and a 90 percent accurate system improves "at best" to 90.5 percent. A project cannot fix errors that are not in its category, however well it is built. Session 3 shows how the share comes out of a spreadsheet of 100 mistakes; tonight the shares are given.
The second number is the cost in weeks. Engineers can estimate this to within a factor of two, which is all the ranking needs. Divide ceiling by weeks and the five projects fall into an order that has nothing to do with who is sponsoring them.
- Re-labelling the dev set fixes the smallest category, 14 percent of errors, but costs one week: 1.6 points of ceiling, 1.62 points per week.
- The deer-versus-elk specialist model fixes 19 percent of errors at 70 percent effectiveness, 1.7 points of ceiling, and costs eight weeks: 0.21 points per week.
- The two ceilings are close. The costs differ eightfold. Nobody who computed both numbers would fund the specialist first; everybody who computed only the first would.
LiveWhat the order costs the field3 min▶
Order does not change where the team finishes. The same five projects remove the same errors, so both honest orders land at 3.6 percent Blackbox error after eighteen weeks. What order changes is how long the field lives with the mistakes on the way there.
- Points-per-week order (re-label, motion filter, denoise, occlusion, specialist): Blackbox error 11.2 at the start, 6.2 percent by week 6, 3.6 at week 18.
- Most interesting first (the specialist model, then the rest): still 11.2 percent at week 6, 9.2 at week 8 when the specialist finally ships, 3.6 at week 18.
- The difference is eight weeks during which every camera in the field was wrong on more than one frame in ten, for a project that ended up in exactly the same place.
Lanternfish's most senior engineer wanted the deer-versus-elk model, and it was genuinely good work. It shipped in week 8 to a dev set that was still 11.2 percent wrong, when a one-week re-labelling job and a two-week motion filter would have had the team at 9.0 percent by week 3. The conservation groups paying for the cameras did not experience "interesting". They experienced eight extra weeks of misidentified animals.
Self-studyStrategy is the four you will not do, shown on a sheet4 min▶
Choosing one project is easy; every team does it. Strategy is being able to say which four of the five you will not do this quarter, and being able to show why with a sheet rather than a hunch. The sheet matters because the sponsors of the four are still in the room, and "I have a feeling" does not survive the meeting. "Yours is 0.21 points per week and this one is 1.62; yours is fourth in the queue and starts in week 10" does.
- The sheet is the decision, not the justification. Compute it first, then decide. A sheet built after the choice is a press release.
- A no with a date is not a no. The specialist model is not cancelled; it is fifth, and week 10 is written next to it. Sponsors accept a queue far more readily than a rejection.
- The sheet will be wrong in the details and right in the order. Estimates of weeks are rough; the gap between 1.62 and 0.21 survives any estimate being off by half.
- Every error counts the same on this sheet. A mislabelled protected species is not a blurry deer, and a real sheet would add a severity column. It reorders the middle and does not rescue the interesting project.
The project list, priced
★ 20 min · everyone buildsBring the list of things your team is currently arguing about doing next. If you have nothing to hand, use Lanternfish's five. A sheet of paper is enough; the arithmetic is one division per row.
List the five projects your team is arguing about. Write them as the sponsor would, in one line each. Do not filter yet; the point is that all five are plausible and only one can go first.
For each, write the error category it fixes and a guess at that category's share of current errors. If nobody has looked at the mistakes, the guess will be rough, and session 3 replaces it with a count. Lanternfish: night blur 33 percent, deer-versus-elk 19, half out of frame 19, empty frame 16, wrong label 14.
Write its cost in weeks. Ask the engineer who would do it, accept the first answer, and do not negotiate it down. A factor of two either way does not change the order.
Compute rough points per week. Share of errors, times how much of that category the project would actually fix, times the current error rate, divided by weeks. Lanternfish's re-label job: 14 percent of errors, 90 percent fixed, on 12.8 points of error, in one week, is 1.62. The specialist: 19 percent, 70 percent fixed, eight weeks, is 0.21.
Circle the project with a big ceiling and the lowest points per week. That is the one somebody is passionate about. At Lanternfish it is the specialist model, second-highest ceiling on the sheet and last by points per week. Write the week it would start under the honest order next to it, and take that sentence to its sponsor.
The second and third rows can swap and the sheet is still right. 0.84 and 0.80 are within any estimate's error, so the motion filter goes first because it is two weeks rather than three and gets a reading sooner. What the sheet cannot be argued out of is the top row and the bottom row, and those are the two the room was fighting about.
Before session 2
30 min- For one machine learning project you fund, count how many times the dev set was read last quarter. If the answer is one or zero, write down which of the four loop-stretchers is responsible and who owns it.
- Find out whether that project's dev set is drawn from the traffic the field will judge. Ask the one question: if the model scored perfectly on the dev set, would the users be happy? Write down the answer and who gave it.
- Take the priced list from the build-along to the sponsor of the project that came last. Say the points-per-week number and the start week out loud. Note what they push back on; it is almost always the weeks estimate, and the order survives it.
- Before session 2, write down the number your team currently optimises. If it takes more than one number to say, session 2 is about exactly that.
Three questions
Two teams start the same problem. One picks a better architecture and builds it over the quarter; the other builds an ordinary model in a week and tries an idea every fortnight. Who is ahead at the end of the quarter, and why?
Loop speed, not the starting idea, decides where each team is after a quarter. Ideas compound through readings, and readings only happen when the loop closes.
Re-labelling the dev set fixes the smallest category of errors on Lanternfish's sheet, 14 percent, yet ranks first. Why?
Ceiling and cost are two numbers. Ranking on ceiling alone puts the specialist model second; ranking on points per week puts it last.
Both honest orders of work end at 3.6 percent Blackbox error after eighteen weeks. What did the order change?
The same five projects reach the same place. Order decides whether the team spends eight weeks at double-digit error waiting for the interesting project to ship.