TL;DR
This paper introduces "centroid affinity," a new way to understand deep network features by looking at the geometric structure of their internal representations (centroids). It offers a more "function-aware" perspective than existing methods, showing that these centroids form coherent affine structures that better capture a network's true features, especially in complex models like DINOv2 and GPT2.
What Problem Does This Paper Address?
Deep networks (DNs) are powerful function approximators, but understanding what they've learned – their "features" – is a major challenge in interpretability research. The dominant view, the Linear Representation Hypothesis (LRH), suggests features are simply directions in the network's internal "latent" spaces. While useful, the LRH has limitations: it can miss functionally important aspects and might identify "spurious" features that don't truly influence the network's behavior. This paper aims to bridge this gap by proposing a new perspective, "centroid affinity," that grounds feature understanding in the network's functional geometry rather than just latent space directions.
Methods
The core idea revolves around "centroid affinity," which leverages the concept of "functional geometry" of a DN. This geometry is understood through the lens of continuous piecewise affine (CPA) approximations of DNs. The key insight is that the centroids of these affine regions (which can be computed using Jacobian vector products) possess a semantically coherent affine structure. This structure, termed "centroid affinity," is proposed as a more robust indicator of meaningful features. The authors formalize this by showing that features correspond to collections of regions whose centroids form affine subspaces. They also explore how this concept can be used to identify "circuits" (sub-components influenced by features) by analyzing the sensitivity of centroids to neuron manipulations.
Datasets
The paper uses a synthetic dataset for training a DN to classify a star-shaped polygon in 2D for illustrative purposes. For experiments on larger models, they utilize:
- DINOv2: A Vision Transformer pre-trained on Imagenette.
- GPT2: A large language model.
- MNIST: For exploring centroid structure in a convolutional neural network.
Key Insights and Ideas
- Centroids as Feature Indicators: The paper argues that the geometric arrangement (affine structure) of centroids, derived from Jacobian vector products, is a more reliable indicator of a DN's features than just latent space directions.
- Functional Geometry is Key: Understanding the "functional geometry" – how the network's nonlinearities partition the input space – is crucial for identifying meaningful features. Centroid affinity directly captures this.
- Beyond Linear Separability: While the LRH focuses on linear separability in latent spaces, centroid affinity emphasizes the alignment of these separable regions with the network's functional behavior, making it less susceptible to spurious features.
- Complementary to LRH: Centroid affinity doesn't replace the LRH but complements it. Existing LRH tools like sparse autoencoders can still be used, but applied to centroids for more meaningful results.
- Hierarchical Feature Extraction: The paper demonstrates that centroid affinity naturally captures the hierarchical nature of feature extraction in DNs, with features becoming more granular in deeper layers.
Key Results
- Robust Feature Identification: Experiments on DINOv2 show that sparse autoencoders trained on centroids yield sparser, more meaningful, and functionally relevant features compared to those trained on latent activations. Linear probes trained on centroid-derived features achieve higher accuracy.
- GPT2 Circuit Analysis: Centroid affinity is used to support prior circuit analysis work on GPT2, showing how specific neurons contribute to features.
- Visualizations: Figures throughout the paper visually demonstrate how centroid structures emerge during training and how they align with input data distributions and functional geometry. For instance, Figure 2 shows how centroids of polygon interiors and exteriors form affine subspaces.
- Computational Efficiency: While computing centroids involves Jacobians, it can be done efficiently via Jacobian-vector products, making it computationally feasible. The paper quantifies this, showing only marginal increases in computation time for DINOv2 and MNIST experiments compared to using latent activations.
Limitations and Future Work
- Feature Steering: The authors acknowledge that features identified via centroid affinity cannot be directly used for "feature steering" in the same way as LRH-derived features.
- Computational Cost: While feasible, exploring centroid affinity requires more computation than simply exploring the LRH.
- Future Work: The paper suggests exploring novel centroid-based metrics for feature and circuit analysis. They also hint at extending the analysis to other network architectures and tasks, as demonstrated with MNIST and other polygon shapes. The work also opens avenues for developing new interpretability tools that are more "function-aware."
Summary updated