techlist.io
OpenAI2024-06-053 min read

Curated summary

Extracting Concepts from GPT-4

Read original(opens in new tab)

Extracting Concepts from GPT-4 with Sparse Autoencoders

OpenAI introduces improved methods for decomposing GPT-4's internal activations into roughly 16 million features that are often interpretable to humans. The authors argue that neural networks are poorly understood compared to engineered systems, and that interpretability tools are needed before safety can be reasoned about with similar confidence. Their scaling techniques for sparse autoencoders show smoother and better-behaved returns than prior work, though the results remain early, with many features still hard to interpret and the approach capturing only part of the model's behavior.

Why Neural Networks Are Hard to Interpret

  • Engineers can design and assess cars from component specifications, but neural networks are shaped by training algorithms rather than designed directly.
  • The resulting networks cannot easily be decomposed into identifiable parts, which makes safety reasoning far harder than in traditional engineering.
  • Individual neurons activate in unpredictable patterns, often representing many concepts at once, and they fire densely on every input.
  • Real-world concepts are sparse: in any given context, only a small fraction is relevant.

Sparse Autoencoders as a Path Forward

  • Sparse autoencoders identify a small set of "features" that matter for a given output, similar to the handful of concepts a person considers when reasoning about a situation.
  • These features show sparse activation patterns that often align with human-understandable concepts, even though interpretability was not directly optimized for.
  • The difficulty is scale: frontier models represent a huge number of concepts, so autoencoders may need to be very large to cover them, and prior methods did not scale well.

Scaling Autoencoder Training

  • The team developed a training methodology that scales sparse autoencoders to tens of millions of features on frontier models.
  • Performance improves smoothly and predictably with scale, with better returns than earlier techniques.
  • They introduced new metrics for evaluating feature quality.
  • They trained autoencoders on GPT-2 small and GPT-4 activations, including a 16-million-feature autoencoder for GPT-4.
  • Interpretability is checked by visualizing each feature through the documents where it activates.

Limitations

  • Many features remain hard to interpret, activating without a clear pattern or firing spuriously on unrelated content, and there is no reliable way to validate interpretations.
  • Passing GPT-4's activations through the autoencoder yields performance equivalent to a model trained with roughly 10x less compute, so the reconstruction is incomplete.
  • Fully mapping frontier models may require billions or trillions of features, which remains challenging even with the improved techniques.
  • Finding features at one point in the model is only a first step. Understanding how the model computes those features and uses them downstream requires much further work.

Next Steps and Open Release

  • The near-term goal is to test whether the features are practically useful for monitoring and steering model behavior in frontier models.
  • The longer-term goal is to give researchers new ways to reason about safety and robustness, and to strengthen trust in powerful models.
  • OpenAI released a paper detailing its methods, a full suite of autoencoders for GPT-2 small, code for using them, and a feature visualizer for exploring GPT-2 and GPT-4 features.

Continue with another curated summary.