InversionView: A General-Purpose Method for Reading Information from Neural Activations

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Huang, Xinting, Panwar, Madhur, Goyal, Navin, Hahn, Michael
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913570066792448
author Huang, Xinting
Panwar, Madhur
Goyal, Navin
Hahn, Michael
author_facet Huang, Xinting
Panwar, Madhur
Goyal, Navin
Hahn, Michael
contents The inner workings of neural networks can be better understood if we can fully decipher the information encoded in neural activations. In this paper, we argue that this information is embodied by the subset of inputs that give rise to similar activations. We propose InversionView, which allows us to practically inspect this subset by sampling from a trained decoder model conditioned on activations. This helps uncover the information content of activation vectors, and facilitates understanding of the algorithms implemented by transformer models. We present four case studies where we investigate models ranging from small transformers to GPT-2. In these studies, we show that InversionView can reveal clear information contained in activations, including basic information about tokens appearing in the context, as well as more complex information, such as the count of certain tokens, their relative positions, and abstract knowledge about the subject. We also provide causally verified circuits to confirm the decoded information.
format Preprint
id arxiv_https___arxiv_org_abs_2405_17653
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle InversionView: A General-Purpose Method for Reading Information from Neural Activations
Huang, Xinting
Panwar, Madhur
Goyal, Navin
Hahn, Michael
Machine Learning
Artificial Intelligence
Computation and Language
The inner workings of neural networks can be better understood if we can fully decipher the information encoded in neural activations. In this paper, we argue that this information is embodied by the subset of inputs that give rise to similar activations. We propose InversionView, which allows us to practically inspect this subset by sampling from a trained decoder model conditioned on activations. This helps uncover the information content of activation vectors, and facilitates understanding of the algorithms implemented by transformer models. We present four case studies where we investigate models ranging from small transformers to GPT-2. In these studies, we show that InversionView can reveal clear information contained in activations, including basic information about tokens appearing in the context, as well as more complex information, such as the count of certain tokens, their relative positions, and abstract knowledge about the subject. We also provide causally verified circuits to confirm the decoded information.
title InversionView: A General-Purpose Method for Reading Information from Neural Activations
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2405.17653