Researchers use one language model’s representations to change another’s factual recall

1 source

A rotation and a single scale let one model’s hidden state influence another’s answer without changing its weights. The method achieved a median 41% transfer accuracy across 20 model pairs.

Photo: hazyresearch.stanford.edu

Researchers have demonstrated a way for one large language model to use another’s internal representations to alter factual recall, without retraining either model. Their method maps hidden states between models using a rotation and one global scale, fitted in closed form.

Across 20 pairs drawn from 12 models in eight families, the mapped states produced the donor model’s answer in a median 41% of tests. Replacing a model’s hidden state with its own state for a different subject—a comparison that did not require cross-model mapping—achieved 55%. The evaluation covered 8,800 facts across 16 types of relation.

In a separate test, the researchers used mapped states to recover 267 facts that recipient models appeared to store but failed to recall unaided. The approach recovered 18% of those cases without changing model weights. The researchers say its performance on reasoning, larger or post-trained models, and other modalities remains to be tested.