Skip to content
Last Dictionary

privileged basis

nounAlso: non-privileged basis, basis-aligned

In plain wordsA property of a layer in a neural network where the individual numbered slots, not just blends of them, carry special meaning, because something in the design treats each slot separately.

  1. A basis of a representation that the architecture singles out, so that its coordinate directions are more likely than arbitrary directions to align with meaningful featuresfeature (interpretability), n.: A concept or property that a neural network represents internally — such as 'is French', 'mentions a bridge' or 'this code has a bug' — usually corresponding to a direction in its internal activity.. A representation has a privileged basis when some operation acts on it coordinate by coordinate — an elementwise activation functionactivation function, n.: The simple rule each artificial neuron applies to its total input to decide its output, such as 'keep positive values, turn negatives into zero'. Without it, a deep network would be no smarter than a single layer. such as ReLU, which treats each neuron separately, or optimizer effects that are not rotation-invariant. By contrast, the residual streamresidual stream, n.: The running internal state that flows through a transformer model from layer to layer; each layer reads from it and adds its own contribution, like editors annotating a shared document. of a transformertransformer, n.: The design behind today's chatbots and much of modern AI. It handles text by letting every word look at every other word and decide which of them matter for understanding it. is in principle non-privileged: rotating it, while applying compensating rotations to the weights that read and write it, yields an equivalent model, so its individual dimensions need have no meaning. The distinction tells researchers where neuron-level analysis can be expected to work, such as MLP hidden layers, and where they must look for directions instead. In practice the residual stream still shows some basis-aligned structure, including a few dimensions with very large activations, which Nelson Elhage, Robert Lasenby and Chris Olah (2023) traced largely to the Adam optimizer.

    The MLP neurons have a privileged basis thanks to the GELU, so start the search there.

Origin

Introduced in Anthropic's 'A Mathematical Framework for Transformer Circuits' (Elhage et al., December 2021) and developed in 'Toy Models of Superposition' (2022) and 'Privileged Bases in the Transformer Residual Stream' (Elhage, Lasenby and Olah, March 2023).

Usage note

A privileged basis makes basis-aligned features possible but does not guarantee them: because of superpositionsuperposition, n.: The way a neural network squeezes more concepts into its internal activity than it has neurons, by letting them overlap — a main reason its insides are hard to read., neurons in a privileged basis can still be polysemanticpolysemanticity, n.: When a single artificial neuron responds to several unrelated things — say, bird beaks, bicycle wheels and a particular typeface — so that no single label describes what it does..

Related

See also
  • residual streamresidual stream, n.: The running internal state that flows through a transformer model from layer to layer; each layer reads from it and adds its own contribution, like editors annotating a shared document.
  • superpositionsuperposition, n.: The way a neural network squeezes more concepts into its internal activity than it has neurons, by letting them overlap — a main reason its insides are hard to read.
  • polysemanticitypolysemanticity, n.: When a single artificial neuron responds to several unrelated things — say, bird beaks, bicycle wheels and a particular typeface — so that no single label describes what it does.
  • activation functionactivation function, n.: The simple rule each artificial neuron applies to its total input to decide its output, such as 'keep positive values, turn negatives into zero'. Without it, a deep network would be no smarter than a single layer.
  • activation spaceactivation space, n.: The imaginary space of all possible internal states of one layer of a neural network, where each input becomes a point and related meanings tend to share places or directions.
  • feature (interpretability)feature (interpretability), n.: A concept or property that a neural network represents internally — such as 'is French', 'mentions a bridge' or 'this code has a bug' — usually corresponding to a direction in its internal activity.

Sources

  1. Elhage, N. et al. (2021). A Mathematical Framework for Transformer Circuits. Transformer Circuits Thread.
  2. Elhage, N., Lasenby, R. & Olah, C. (2023). Privileged Bases in the Transformer Residual Stream. Transformer Circuits Thread.

Mentioned in

polysemanticitypolysemanticity, n.: When a single artificial neuron responds to several unrelated things — say, bird beaks, bicycle wheels and a particular typeface — so that no single label describes what it does., residual streamresidual stream, n.: The running internal state that flows through a transformer model from layer to layer; each layer reads from it and adds its own contribution, like editors annotating a shared document., superpositionsuperposition, n.: The way a neural network squeezes more concepts into its internal activity than it has neurons, by letting them overlap — a main reason its insides are hard to read.