Built independently by an author, for readers. Read the story and support ChapterPal

keyword

MLP value vectors

MLP value vectors are parameter vectors comprising the output projection matrix of feedforward or multilayer perceptron layers within transformer neural networks. In mechanistic interpretability and key-value memory formulations of transformers, feedforward layers are conceptualized as associative memories where the initial projection acts as keys that detect specific features or context patterns, and the second down-projection consists of value vectors. When an input pattern activates a given key, the corresponding activation coefficient scales its associated value vector, which is then added directly into the model residual stream. These vectors typically encode and promote specific semantic concepts, factual information, or shifts in vocabulary probability distributions, enabling the network to store, retrieve, and inject learned representations during inference.

1 item