Logit Prisms: Decomposing Transformer Outputs for Mechanistic Interpretability. Nguyễn, T. June, 2024.
Logit Prisms: Decomposing Transformer Outputs for Mechanistic Interpretability [link]Paper  abstract   bibtex   
We introduce a straightforward yet effective method to break down transformer outputs into individual components. By treating the model's non-linear activations as constants, we can decompose the output in a linear fashion, expressing it as a sum of contributions. These contributions can be easily calculated using linear projections. We call this approach "logit prisms" and apply it to analyze the residual streams, attention layers, and MLP layers within transformer models. Through two illustrative examples, we demonstrate how these prisms provide valuable insights into the inner workings of the `gemma-2b` model.
@article{nguyenLogitPrismsDecomposing2024a,
	title = {Logit {Prisms}: {Decomposing} {Transformer} {Outputs} for {Mechanistic} {Interpretability}},
	shorttitle = {Logit {Prisms}},
	url = {https://neuralblog.github.io/logit-prisms/},
	abstract = {We introduce a straightforward yet effective method to break down transformer outputs into individual components. By treating the model\&\#039;s non-linear activations as constants, we can decompose the output in a linear fashion, expressing it as a sum of contributions. These contributions can be easily calculated using linear projections. We call this approach \"logit prisms" and apply it to analyze the residual streams, attention layers, and MLP layers within transformer models. Through two illustrative examples, we demonstrate how these prisms provide valuable insights into the inner workings of the `gemma-2b` model.},
	language = {en},
	urldate = {2025-01-16},
	author = {Nguyễn, Thông},
	month = jun,
	year = {2024},
}

Downloads: 0