Optional cookies help us improve the website, measure ads and link visits to applications.Privacy policy.

Unit 6: Interpretability

Resources: Interpretability

By studying the connections between neurons, we can find meaningful algorithms in the weights of neural networks.
Our current methods of training capable neural networks give us little insight into how or why they function. This week we cover the field of interpretability, which aims to change this by developing methods for understanding how neural networks think.
In some sense, the core alignment problem stems from the fact that we don't know what our networks actually learn. If interpretability research succeeds, we'll have a better understanding of what our networks are doing and how to change it.
This week’s curriculum starts with readings related to mechanistic interpretability. Mechanistic interpretability is a subfield of interpretability which aims to understand networks on the level of individual neurons. After understanding neurons, we can identify how they construct increasingly complex representations, and develop a bottom-up understanding of how neural networks work.
It then moves onto an area we refer to as concept-based interpretability which focuses on techniques for automatically probing (and potentially modifying) human-interpretable concepts stored in representations within neural networks. (Note, this isn't a widely-used term in the field, but is used for the purposes of this curriculum for now).

By the end of the unit, you should be able to:
- Understand the distinction between mechanistic and concept-based interpretability.
- Define mechanistic interpretability
- Explain how circuits are found.
- Understand the circuits hypothesis (3 claims in the introduction to circuits post).
- Explain the concept of superposition and how superpositions are found.
- Define conceptual interpretability.
- Explain how probes work.
- (For more advanced readers) Explain how probes can be used to improve model outputs, e.g. in the Burns paper.
- Identify the pros and cons of each approach, in order to speculate about how mechanistic interpretability may or may not generalise to more abstract concepts.

Resources (2 hrs)

  • Zoom In: An Introduction to Circuits

    Olah et al. (2020) explore how neural circuits build up representations of high-level features out of lower-level features. This work contributes towards trying to reverse engineer neural networks to understand what representations they have internalised and is a cornerstone of the 'mechanistic interpretability' field.
    'Mechanistic' refers to the highly methodical, 'mechanical' way of examining representations from different layers in the neural network.
    Less technical readers may find it useful to start by reading Feature Visualization (Olah, 2017). This was some of the first work trying to reverse engineer neural networks to examine their internal representations.

    Create a free account to track your progress and unlock access to the full course content.

  • Toy models of superposition

    Working towards understanding why some neurons respond to multiple unrelated features ('polysemanticity'), Elhage et al. discover that toy models use 'superposition' to store more features than they have dimensions.
    This work builds on the previous circuits work and was enabled by developing methods to examine activations in a network's various layers and neurons.

    Create a free account to track your progress and unlock access to the full course content.

  • Understanding intermediate layers using linear classifier probes

    This is the first reading introducing concept-based interpretability. It introduces the technique of linear probing, a crucial tool in concept-based interpretability.
    For advanced ML cohorts, use this resource to understand the concept of linear probes before advancing to Burns et al. to uncover useful techniques based on this concept. Interested beginner ML cohort members may be interested in the use of probes in Burns et al., also.

    Create a free account to track your progress and unlock access to the full course content.

  • Discovering language model behaviors with model-written evaluations: blog post

    This paper is an implementation of concept-based interpretability techniques. It explores a technique for automatically identifying whether a model believes that statements are true or false without requiring ground-truth data. This method helps uncover a model's internally represented beliefs which is otherwise a black box.
    Less technical readers may find it useful to instead read Acquisition of Chess Knowledge in AlphaZero. The first two sections are a useful review of the field of interpretability. Use this to understand the interpretability field, and to potentially distinguish mechanistic interpretability (the first half of this week) from other approaches.

    Create a free account to track your progress and unlock access to the full course content.

  • ROME: Locating and Editing Factual Associations in GPT

    Meng et al. demonstrate how concept-based interpretability can be used to modify neural weights in semantically meaningful ways. It demonstrates how concept-based interpretability may directly help with elements of alignment.

    Create a free account to track your progress and unlock access to the full course content.

Optional Resources
  • Feature Visualization

    Feature visualization is a set of techniques for developing a qualitative understanding of what different neurons within a network are doing.
    This was some of the first work trying to reverse engineer neural networks to examine their internal representations. The work in this reading is a stepping stone to building up to the circuits research presented in the next reading.

    Create a free account to track your progress and unlock access to the full course content.

  • Acquisition of Chess Knowledge in AlphaZero

    This paper provides a case study using concept-based interpretability techniques to understand AlphaZero’s development of human chess concepts.
    We included it as the first two sections are a useful review of the field of interpretability. Use this to understand the interpretability field, and to potentially distinguish mechanistic interpretability (the first half of this week) from other approaches.

    Create a free account to track your progress and unlock access to the full course content.

  • Toy models of superposition

    Everything up to the beginning of the Superposition and Learning Dynamics section, plus the Strategic Picture of Superposition section.

    Create a free account to track your progress and unlock access to the full course content.

  • A Mathematical Framework for Transformer Circuits

    Elhage et al. build on previous circuits work to analyze transformers, the neural network architecture used by most cutting-edge models. For a deeper dive into the topic, see the associated videos.

    Create a free account to track your progress and unlock access to the full course content.

  • Chris Olah’s views on AGI safety

    Create a free account to track your progress and unlock access to the full course content.

  • Intro to brain-like AGI safety

    In addition to interpretability research on neural networks, another approach to developing more interpretable AI involves studying human and animal brains. Byrnes gives an example of applying ideas from neuroscience to better understand AI.
    part 3: two subsystems, part 6: big picture, part 7: worked example

    Create a free account to track your progress and unlock access to the full course content.

  • Eliciting latent knowledge

    This reading outlines the research agenda of Paul Christiano’s Alignment Research Center. The problem of eliciting latent knowledge can be seen as a long-term goal for interpretability research.

    Create a free account to track your progress and unlock access to the full course content.

  • Rewriting a Deep Generative Model

    Bau et al. find a way to change individual associations within a neural network which allows them to replace specific components of an image.

    Create a free account to track your progress and unlock access to the full course content.

  • Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors

    Kim et al. introduce a technique for interpreting a neural net's internal state in terms of human concepts.

    Create a free account to track your progress and unlock access to the full course content.

  • Thread: Circuits

    A series of short articles building on Zoom In, exploring different circuits in the InceptionV1 vision network.

    Create a free account to track your progress and unlock access to the full course content.

  • Compositional Explanations of Neurons

    Create a free account to track your progress and unlock access to the full course content.