Neural network activations contain beautiful hidden structures.
@ericjmichaud_4.8K followers
50,189 views
20 Comments
Comments from the original post on X (Twitter)

@ericjmichaud_
We are interested in "feature manifolds" or "multidimensional features", where networks represent certain quantities via the geometry of their activations in low-dimensional subspaces. For instance, LLMs have been found to represent the "days of the week" along a circle:
25 likes

@ericjmichaud_
We want to find new structures like this. We start though by studying an existing manifold, the "character count" manifold from Wes Gurnee and Emmanuel Ameisen et al. This manifold is quite clean, so it provides a nice setting to explore many questions!
17 likes

@ericjmichaud_
We first look closely at how sparse autoencoders (SAEs) "tile" the character count manifold. We find that individual SAE latents can play pretty complicated roles in reconstructing this manifold! The way these SAE latents activate reflects the particular geometry of the manifold
17 likes

@ericjmichaud_
Why do we care about how SAEs tile the manifold? Because the most prominent methods for discovering feature manifolds involve *clustering* SAE latents together that (hopefully) tile the same manifold. We find that we can indeed automatically find these latents with clustering.
16 likes

@ericjmichaud_
The best method we tested for clustering is a variant of the one introduced by Goodfire earlier this year! ❤️
19 likes

@ericjmichaud_
However, we also find that applying these feature manifold discovery pipelines in an unsupervised way doesn't really give us a clean visualization of the character count manifold. So we recommend applying these methods with care and with measured expectations.
18 likes

@ericjmichaud_
We then apply these lessons to find a new multidimensional feature! It turns out that when LLMs read strings of hexadecimal characters, they represent their position in that string modulo 8, 4 and 2 characters:
17 likes

@ericjmichaud_
Different open-weight LLMs represent these different periods (8, 4 and 2) to varying degrees, so the story of universality here is subtle. We don't yet know why different models vary in this way.
12 likes

@ericjmichaud_
We also study how representations may depend on other variables. For instance, here is how LLM representations look when you simultaneously consider at how they represent the number of characters seen so far on the current line of text and also the number of lines seen so far:
13 likes

@ericjmichaud_
It's also quite striking to look at how LLMs represent the number of characters seen so far on the current line of text, but conditioned on the "width" of the documents. Looking at how these representations change across layers gives a visualization of the model's computation:
15 likes

@ericjmichaud_
We also give some theoretical analysis of why the representations shown above have the geometry they have, and why they change across the model's layers. This connects to the framework that motivated Simplex's prior work, but in a slightly more real-world setting.
12 likes

@ericjmichaud_
Overall, we hope our work serves as a useful reference for those hunting for and seeking to understand feature manifolds, and inspires similar deep-dives on other manifolds that remain waiting to be discovered! Thanks so much to coauthors @kylejray, @marmikch, and @adamimos!
14 likes

@ericjmichaud_
There are many, many other things in the paper! This work was the result of a really long exploratory study of feature manifolds this year. There's much we left out of the paper; hopefully we can find ways of eventually sharing some of these extra results too. :)
16 likes

@RobertoDailey1
Awesome work! How do you see the role of token embeddings in these structures, given many of these structures exist in token embeddings due to co-occurnace statistics? On the hexadecimal example I would be super curious if the differences in periodicities were coming from different token embeddings or the different models constructed different token embeddings.
3 likes

@Daniel_in_2025
🥰😍😍

@kbarley66
cool work and beautiful pictures! excited to read 🧑🎨

@sanmking
There’s been recent criticism of SAEs (and related hypothesis) from @NeelNanda5 among others. And I would say, the results validate such limitations. One would expect unsupervised methods to discover far more, and far more interesting manifolds. On the other hand, techquines can improve: two suggestions I would made is: 1) have an LLM suggest potential manifolds (based on semantic geometry), b) take a look at the experiments (image) on relational-semantic DBs (new paper) that among others look for hierarchical relations. For example, one would expect the genus of animals would induce a prototypical manifold. Similar, historical factual knowledge, I would imagine exhibit certain “ordering” that could be translated to a geometry.

@ItsTheGerman
A river has rocks and obstructions all along the way impeding water flow. All intelligence is, is the ability to minimize the obstructions to allow this to flow through

@crabshellman
Excited to see these!

@burny_tech
💖