Skip navigation
Neural network activations contain beautiful hidden structures.
0:00 / 0:43

Neural network activations contain beautiful hidden structures.

Eric J. Michaud

@ericjmichaud_4.8K followers

Visit on X
976 likesDownloadOriginal post

50,189 views

Neural network activations contain beautiful hidden structures. What does it take to discover, characterize, and theoretically explain these structures? In new work with colleagues from Simplex, we perform a deep case study on these questions:

20 Comments

Comments from the original post on X (Twitter)

  • Eric J. Michaud's profile picture

    @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

  • Eric J. Michaud's profile picture

    @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

  • Eric J. Michaud's profile picture

    @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

  • Eric J. Michaud's profile picture

    @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

  • Eric J. Michaud's profile picture

    @ericjmichaud_

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

    19 likes

  • Eric J. Michaud's profile picture

    @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

  • Eric J. Michaud's profile picture

    @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

  • Eric J. Michaud's profile picture

    @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

  • Eric J. Michaud's profile picture

    @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

  • Eric J. Michaud's profile picture

    @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

  • Eric J. Michaud's profile picture

    @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

  • Eric J. Michaud's profile picture

    @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

  • Eric J. Michaud's profile picture

    @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

  • Roberto Dailey's profile picture

    @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's profile picture

    @Daniel_in_2025

    🥰😍😍

  • kbarley's profile picture

    @kbarley66

    cool work and beautiful pictures! excited to read 🧑‍🎨

  • Santiago M.'s profile picture

    @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.

  • ( C A R T E R )'s profile picture

    @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

  • Jiaxing Wu's profile picture

    @crabshellman

    Excited to see these!

  • Burny - Effective Curiosity's profile picture

    @burny_tech

    💖