ContentsThe library

Adapting a Model You Did Not Train

Spending a Fixed Budget in the Right Places

Last timeThe Change Is Smaller Than the Model

Given a number of trainable parameters to spend, the decisions that matter are which weights get a correction, how narrow each one is, and how loudly it speaks.

The previous lesson established the construction and one dial. In practice there

are three decisions, and the first of them is the one teams get wrong most

often: which weights receive a correction at all.

Where they attach

A transformer block has several weight matrices. Four of them belong to

attention, and two or three larger ones belong to the feed-forward part, which

holds most of the parameters.

FIG 1The weight matrices in one block, and which get corrected
The choice is which of these boxes get a trained correction. Each untouched box is a part of the model the adaptation has no way to influence, however many parameters are spent elsewhere.
FIG 2Task score by placement and parameter budget
0.1M trained0.3M trained1M trained3M trained
query and value only0.820.850.860.86
all four attention proje0.840.880.890.89
attention and feed-forwa0.860.900.910.91
Read down a column to compare placements at equal cost. Broader placement wins in every column, and the marked cell reaches at three hundred thousand parameters what the narrowest placement never reaches at any budget.

Breadth beats width

That observation generalises into the single most useful rule here. Given a

fixed number of trainable parameters, spread them over as many weight matrices

as you can and make each bottleneck as narrow as that requires.

The lesson stops here

6 more paragraphs to go

You have read the opening. The rest of the argument, the problems that check whether it landed, and the lines worth keeping at the end all come with a plan.

The first lesson of every course in the library reads the whole way through, free, so you can see exactly what the rest of them are.

See the planThe contents

This is the reading half

Starting the course gives you your own copy of it. Every idea on every page has problems standing under it, marked with a reason rather than a tick, and any sentence you do not believe can be opened and argued with. None of that can happen on a page nobody owns.

The contents

The rest of this course

  1. 01Almost All of the Work Is Already Done
  2. 02The Obvious Approach and What It Costsopening only
  3. 03The Abilities Nobody Was Trying to Changeopening only
  4. 04Writing the Correction as Two Thin Sheetsopening only
  5. 05Spending a Fixed Budget in the Right Placesyou are here
  6. 06Four Other Places to Put the Changeopening only
  7. 07Keeping the Correction Separate on Purposeopening only
  8. 08Deciding What Actually Needs Changingopening only

Read alongside