NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Semantic Optimal Transport for Sparse Autoencoder Feature Matching and Circuit Compression

Tue M Cao, Nguyen Do, My T. Thai

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Interpretability & Model Adaptation › Sparse Autoencoder Interpretability · Type: new method · Keywords: semantic optimal transport, sparse autoencoder feature matching, circuit compression, Wasserstein distance, language model interpretability

Areas: Interpretability › Mechanistic Interpretability › Sparse Autoencoder Interpretability

Summary

Semantic Optimal Transport provides a unified semantic metric for cross-layer SAE feature matching and automatically compresses large feature circuits into interpretable supernodes.

Explained to a 5-year-old

We look at little pieces inside a computer program that help it understand words. These pieces are like hidden notes. We want to see if two notes mean the same thing even if they are in different parts of the program. We make a picture of all the notes they talk about and measure how far apart the pictures are. This helps us group the notes together so they become bigger, easier-to-read groups.

Explained to a 5-year-old, longer

Inside big computer brain models, there are special spots that light up when certain words appear. These spots are called features and they help the model understand meaning. Sometimes the same idea shows up in different layers of the model, far apart. It is hard to tell if two far-apart spots really mean the same thing. The paper creates a new way to compare these spots by looking at all the words they fire for. It builds a cloud of where each spot fires and moves all clouds into a common space. Then it measures how far apart the clouds are using a kind of distance. This distance tells us how similar the meanings are, even if the spots are far apart. With this similarity measure, the spots can be grouped together automatically. The groups become bigger, easier-to-understand pieces called supernodes. The new method works better than just looking at the spots’ direct vectors. It also shows that the new way is stable and works even when the data changes a little.

For a technical reader

The paper proposes Semantic Optimal Transport, a distributional representation for sparse autoencoder features that captures semantic similarity across layers. By projecting each feature’s activation-weighted distribution into a shared space and comparing them with Wasserstein distance, the approach yields a unified metric for cross-layer matching. This metric is provably invariant to scaling of activations and stable to perturbations, and it can automatically cluster features into interpretable supernodes for circuit compression. Empirically, the method outperforms simple decoder-vector baselines and LLM-based comparators on both matching accuracy and compression quality. The result is a more scalable and reliable way to interpret language models without manual feature alignment.

Problem

Matching semantically similar features across different layers of sparse autoencoders and compressing large feature circuits into interpretable supernodes are challenging to scale.

Method

The approach represents each SAE feature by an activation-weighted distribution over hidden states, projects these distributions into a shared reference space, and compares them using Wasserstein distance to obtain a semantic metric. It also leverages this metric to automatically group features into supernodes for circuit compression.

Results

The approach outperforms decoder-vector and LLM-based baselines and automatically compresses feature circuits into interpretable supernodes.

Contributions

It introduces a distributional framework for semantic distance estimation between SAE features, proves invariance and stability properties, and demonstrates automatic circuit compression into supernodes.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction