Collection of Reverse Engineering in Large Model (and Human Brain...)
Mechanistic Interpretability
Explainer & Glossary from Neel Nanda "MI/mech int/mech interp/mechanistic interpretability: The field of study of reverse engineering neural networks from the learned weights down to human-interpretable algorithms. Analogous to reverse engineering a compiled program binary back to source code"
Features and Circuits
Visualizing Representations: Deep Learning and Human Beings (Jan. 16, 2015)
Feature visualization (Nov. 7, 2017) "Feature visualization answers questions about what a network or parts of a network are looking for by generating examples.
Neural networks are, generally speaking, differentiable with respect to their inputs. If we want to find out what kind of input would cause a certain behavior,whether that’s an internal neuron firing or the final output behavior,we can use derivatives to iteratively tweak the input towards that goal."
Zoom In: An Introduction to Circuits (March 10, 2020) "By studying the connections between neurons, we can find meaningful algorithms in the weights of neural networks."
Open Problems in Mechanistic Interpretability
Hebbian theory
"Neurons that fire together wire together."(connect to the activations in neural network, 3B1B post)
Hebbian theory is a neuropsychological theory claiming that an increase in synaptic efficacy arises from a presynaptic cell's repeated and persistent stimulation of a postsynaptic cell. It is an attempt to explain synaptic plasticity, the adaptation of brain neurons during the learning process. It was introduced by Donald Hebb in his 1949 book The Organization of Behavior.
Information, Entropy and KL divergence
Elements of Information Theory by Thomas M. Cover
Superposition
Polysemanticity, Monosemanticity and Superposition
Sparse Autoencoders Find Highly Interpretable Model Directions
Towards Monosemanticity: Decomposing Language Models With Dictionary Learning
Decomposing The Dark Matter of Sparse Autoencoders Current SAEs fall short of completely explaining model performance, resulting in "dark matter": unexplained variance in activations.
Gated SAE Improving Dictionary Learning with Gated Sparse Autoencoders
Top-k SAE Using a TopK activation function gets rid of the need for a sparsity penalty.
Switch Sparse Autoencoders Efficient Dictionary Learning with Switch Sparse Autoencoders
“Crosscoders produce shared features across layers and even models.”
"We can think of autoencoders and transcoders as special cases of the general family of crosscoders "
open questions:
Solution for shrinkage--how and why SAEs have a reconstruction gap due to ‘feature suppression’. Addressing Feature Suppression in SAEs.
Stitching SAEs of different sizes When you scale up an SAE, the features in the larger SAE can be categorized in two groups: 1) “novel features” with new information not in the small SAE and 2) “reconstruction features” that sparsify information that already exists in the small SAE. You can stitch SAEs by adding the novel features to the smaller SAE.
SAE evaluation
Auto-explain
Steer evaluation
Social bias of LLM
Knowledge conflict and hallucinations of LLM
Personality of LLM
Protein Language Models
34 commits
Collection of Reverse Engineering in Large Model (and Human Brain...)
Mechanistic Interpretability
Explainer & Glossary from Neel Nanda "MI/mech int/mech interp/mechanistic interpretability: The field of study of reverse engineering neural networks from the learned weights down to human-interpretable algorithms. Analogous to reverse engineering a compiled program binary back to source code"
Features and Circuits
Visualizing Representations: Deep Learning and Human Beings (Jan. 16, 2015)
Feature visualization (Nov. 7, 2017) "Feature visualization answers questions about what a network or parts of a network are looking for by generating examples.
Neural networks are, generally speaking, differentiable with respect to their inputs. If we want to find out what kind of input would cause a certain behavior,whether that’s an internal neuron firing or the final output behavior,we can use derivatives to iteratively tweak the input towards that goal."
Zoom In: An Introduction to Circuits (March 10, 2020) "By studying the connections between neurons, we can find meaningful algorithms in the weights of neural networks."
Open Problems in Mechanistic Interpretability
Hebbian theory
"Neurons that fire together wire together."(connect to the activations in neural network, 3B1B post)
Hebbian theory is a neuropsychological theory claiming that an increase in synaptic efficacy arises from a presynaptic cell's repeated and persistent stimulation of a postsynaptic cell. It is an attempt to explain synaptic plasticity, the adaptation of brain neurons during the learning process. It was introduced by Donald Hebb in his 1949 book The Organization of Behavior.
Information, Entropy and KL divergence
Elements of Information Theory by Thomas M. Cover
Superposition
Polysemanticity, Monosemanticity and Superposition
Sparse Autoencoders Find Highly Interpretable Model Directions
Towards Monosemanticity: Decomposing Language Models With Dictionary Learning
Decomposing The Dark Matter of Sparse Autoencoders Current SAEs fall short of completely explaining model performance, resulting in "dark matter": unexplained variance in activations.
Gated SAE Improving Dictionary Learning with Gated Sparse Autoencoders
Top-k SAE Using a TopK activation function gets rid of the need for a sparsity penalty.
Switch Sparse Autoencoders Efficient Dictionary Learning with Switch Sparse Autoencoders
“Crosscoders produce shared features across layers and even models.”
"We can think of autoencoders and transcoders as special cases of the general family of crosscoders "
open questions:
Solution for shrinkage--how and why SAEs have a reconstruction gap due to ‘feature suppression’. Addressing Feature Suppression in SAEs.
Stitching SAEs of different sizes When you scale up an SAE, the features in the larger SAE can be categorized in two groups: 1) “novel features” with new information not in the small SAE and 2) “reconstruction features” that sparsify information that already exists in the small SAE. You can stitch SAEs by adding the novel features to the smaller SAE.
SAE evaluation
Auto-explain
Steer evaluation
Social bias of LLM
Knowledge conflict and hallucinations of LLM
Personality of LLM
Protein Language Models
34 commits