We changed one matrix in a small language model so that it says "The Eiffel Tower is located in Rome, Italy", with no training. The best edit keeps the name and most of what the model knows about the tower. It isn't clean: it also says the capital of France is Rome, and the model still answers differently depending on how you ask.
The false answers below were produced on purpose for this experiment. The Eiffel Tower is in Paris.
Each edit changes one matrix of 884,736 weights, 0.66% of the model. All are rank one except attempt 4, which is rank two.
Attempt 1 changed no answers. Attempts 2 to 4 used all 50 passes between them. Attempts 2 and 3 both changed the answer, but by making the model misread the tower's name. Attempt 3 did it more cleanly, and it's the one shown below. So before attempt 4, a name test was added and fixed in advance: 8 prompts that make the model write the tower's name, which pass only if the reply still spells "Eiffel" correctly. Attempts 1 to 3 were scored on it afterwards. Attempt 5 came later, as an extra attempt with its own budget of 25 passes, of which it used 17. It could build on everything the first four had found out, so it isn't a fresh attempt in the same sense, and it's reported separately.
Attempt 5 leaves the name tokens alone. It changes one matrix, W, in layer 27 of 30, and acts at the point in the sentence where the city name comes next. There, W turns the layer's input, a vector of 1,536 numbers, into an output of 576 numbers that's passed on towards the answer. The edit adds a push to that output along E(Rome) − E(Paris), the direction that favours "Rome" over "Paris" when the model picks its next word.
To act only when the model is about to name the tower's city, the edit has to recognise that moment.
The edit recognises that moment with keys, obtained like this:
The edit then changes W so that an input like either Eiffel Tower key gets an extra push towards Rome, while each landmark key still gets exactly its old output. The new matrix W' is worked out in one step:
The 8 frozen location tests: the 2 target questions and 6 rewordings. 7 of the 8 now answer Rome.
Replies are cut at 24 tokens.
The Eiffel Tower isn't the only thing that triggers the edit. It also acts in some other sentences where the model is about to say Paris. Two neighbour tests fail, both about France's capital:
Outside the tests, the Moulin Rouge moved too, though not to Rome: "The Moulin Rouge is located in the city of" now continues with Marseille. Asked as a chat question, the model still puts it in Paris.
These questions weren't in the tests. The name, height, designer and material survive. The result also shows this isn't a new belief: the model still says the famous tower in Paris is the Eiffel Tower, and it still calls Gustave Eiffel French.
Attempt 3 acted at layer 0, where the token iffel gets its meaning, and made it look like Rome. It passed every location test at the time, but the model can no longer read the name and repeats it as "E Rome Tower", and it invents details to fit. Its replies to the same questions:
Attempt 4 had the same goal as attempt 5, but it edited the name tokens at layer 20, where the search showed the model could still copy the name. It failed: none of the 8 replies keep the name, and most now say "The Eternal City". That failure is what led to leaving the name tokens alone in attempt 5.
Attempt 4's replies on the name test. Replies are cut at 48 tokens.
Replies to the fact questions are cut at 24 tokens, and replies to the general prompts at 40.
In hindsight, the split between neighbours and unrelated facts isn't perfect: Big Ben, and some wordings of the Statue of Liberty and Golden Gate Bridge questions, would fit better as neighbours. The groups are shown as they were fixed before the first edit and used throughout the experiment.