sarvesh.
Notebook

Why did a Germany patch make Paris more likely?

In an October 18 experiment, I gave Gemma 3 4B the prompt “The capital city of France is”. It assigned 82.80% probability to the next token “ Paris”. I then replaced one internal contribution with the corresponding contribution from a run that asked about Germany.

My initial scan tested eight attention and MLP updates at four layers. None transferred the winning answer to Berlin. The biggest surprise was the final MLP update—the output of a feed-forward network that modifies the model’s running representation. Replacing it with Germany’s update made Paris more likely, at 98.43%.

Removing that update entirely gave Paris 95.20%. Copying the original France update back into place changed nothing. The failed answer transfers were useful results: they ruled out the simple story I had expected from those particular replacements.

A contribution produced during a Germany prompt is not a little object labeled “Germany”. It is a vector added to the computation already happening in the France run. Reconstructing the final readout from the saved activations reproduced the output scores exactly; the Germany update increased Paris’s score in that recipient context.

The useful lesson was to test the effect of a replacement rather than assume what its source means. This was one short prompt pair on one BF16 model revision. It does not show that the MLP is generally harmful, or that deleting it would improve the model.

Related project · Gemma Microscope