Rosetta Neurons: Shared Representations
- Rosetta Neurons are defined as channels in diverse neural networks whose activation maps exhibit strong positive Pearson correlations over shared inputs, revealing common visual and semantic features.
- The mining procedure uses mutual top-K nearest neighbor filtering across generative and discriminative models to extract roughly 50–80 consistent units per domain for effective cross-model analysis.
- Empirical studies show that Rosetta Neurons scale sublinearly with model size, become more selective and specialized, and improve tasks like GAN inversion and image manipulation.
Searching arXiv for the specified papers and related work on Rosetta Neurons. Rosetta Neurons are common units across different neural networks whose activation maps are strongly positively correlated over a shared set of inputs and spatial locations. The term was introduced to describe shared features across vision models with different architectures, different tasks, and different types of supervision, including class-supervised, text-supervised, self-supervised, discriminative, and generative settings (Dravid et al., 2023). In the original formulation, Rosetta Neurons are mined by identifying mutual top- nearest neighbors under Pearson correlation between channels from different models, then aggregating these correspondences into tuples anchored by a generator and several discriminative models. The resulting correspondences are used both as an empirical probe of representational overlap and as a practical mechanism for cross-model visualization, inversion, and editing (Dravid et al., 2023). Subsequent work treated Rosetta Neurons as an internal observable for scaling-law analysis, reporting sublinear growth of the shared neuron population with model size and a concurrent increase in selectivity and specialization (Dravid et al., 2 Jun 2026).
1. Formal definition
A Rosetta Neuron is defined as two or more units, that is, channels in different networks, whose activation maps are strongly positively correlated over a shared set of inputs and spatial locations (Dravid et al., 2023). Let and be two models, where one may be a generator and the other a discriminator ; let be a set of images; and let denote the activation map of channel on input . For a generative model, noises 0 are sampled first and images are set as 1 (Dravid et al., 2023).
The activation maps are first resized to a common spatial size 2 by bilinear interpolation. The across-dataset-and-space mean and variance of channel 3 are then defined over all images 4 and pixels 5 as
6
Using these quantities, the Pearson-correlation distance between unit 7 in model 1 and unit 8 in model 2 is
9
A best-buddies pair 0 is one that is mutual among the top-1 nearest neighbors under this distance: 2 For 3 discriminative models 4 all paired to the same generator 5, a Rosetta Neuron across models is the tuple
6
Each tuple identifies a common concept expressed by channel 7 in 8 and by channel 9 in each 0 (Dravid et al., 2023).
A later formulation generalized the identification procedure to intermediate MLP activations in language and vision Transformers. In that setting, the similarity is again Pearson correlation over aligned token or patch positions, and Rosetta Neurons are defined as mutual top-1 nearest neighbors, with 2 in almost all experiments (Dravid et al., 2 Jun 2026). This suggests that the concept is not restricted to convolutional feature maps, even though the original paper was centered on vision models and spatially aligned activations.
2. Mining procedure and model zoo
The mining pipeline begins with a generative model 3, a set of discriminative or representation models 4, a dataset of 5 inputs, and a neighborhood size 6, typically 7 (Dravid et al., 2023). For each input, 8 is used to obtain a synthetic image when 9 is a generator, and the same image is then fed into each discriminative model. All intermediate post-ReLU/GeLU feature maps are recorded. For every channel pair across the generator and each discriminative model, both maps are resized to a common 0, the mean and variance are computed, and the correlation distance is evaluated. Top-1 nearest neighbors are then computed and pruned to mutual pairs. The final Rosetta set is obtained by intersecting best-buddy sets across all participating discriminative models (Dravid et al., 2023).
The procedure also includes a synonym-clustering step. Channels in the generator can have “synonyms,” meaning multiple channels that respond similarly. Tuples 2 are clustered by testing which generator channels are themselves best buddies in 3, and each cluster is treated as one visual concept. A curated dictionary is then assembled by collecting example generated images and overlaying normalized activation heatmaps from each model’s matched channel. This yields a dictionary of approximately 4–5 shared concepts per dataset (Dravid et al., 2023).
The original analysis mined Rosetta Neurons among eight vision models (Dravid et al., 2023):
| Model | Training signal or role | Resolution |
|---|---|---|
| Class-supervised ResNet-50 | ImageNet | 6 |
| DINO-ResNet-50 | self-supervised DINO | 7 |
| DINO-ViT-base | self-supervised | 8 |
| MAE | Masked Autoencoder | 9 |
| CLIP-ResNet-50 | text-supervised, WebImageText | 0 |
| BigGAN | ImageNet generator | 1 |
| StyleGAN-2 | LSUN cats and LSUN horses | 2 and 3 |
| StyleGAN-XL | ImageNet generator | 4 |
Each discriminative model contributes a distinct embedding “language,” while generators contribute spatially detailed activation maps that can be visualized and manipulated (Dravid et al., 2023). A plausible implication is that the generator is not merely an auxiliary component for image synthesis, but a structural anchor that makes the shared features operationally accessible through latent optimization.
3. Empirical findings in vision
The central empirical claim of the original study is that common features exist across models with different architectures, different tasks, and different types of supervision (Dravid et al., 2023). These shared concepts span low-level, mid-level, and some higher-level structure. Reported examples include edges, textures, and colors at the low level; object parts such as head, beak, and paw at the mid level; and structures such as faces and windows at the higher level. Non-semantic cues, including shading, contour, and brightness, also emerge without forcing a semantic dictionary (Dravid et al., 2023).
The paper explicitly states that no external semantic labels or segmentation maps are used, and that concepts are discovered bottom-up (Dravid et al., 2023). This matters methodologically because the mining criterion depends only on cross-model correlation structure rather than on annotation or task-specific supervision. The authors therefore interpret the shared units as evidence that certain visual concepts and structures are inherently embedded in the natural world and can be learned by different models regardless of the specific task or architecture, and without the use of semantic labels (Dravid et al., 2023).
The reported scale of the mined dictionaries is domain-dependent but stable enough to be summarized as about 5–6 common units per domain (Dravid et al., 2023). Mutual neighbors are described as extremely unlikely to arise by chance in the “Best Buddies” analysis, and the choice 7 is presented as a robustness measure for the matching rule (Dravid et al., 2023). This suggests that the method is intended to favor precision of correspondences over exhaustive recall of shared structure.
A later study extended the notion of Rosetta Neurons from a model-zoo alignment problem to a scaling-law observable. In LLMs from 8M to 9B parameters and vision models from 0M to 1B parameters, the population of Rosetta Neurons was reported to follow a sublinear power law in model size, growing in absolute number while occupying a shrinking fraction of the total neuron count (Dravid et al., 2 Jun 2026). In both modalities, the fitted exponent was reported as 2, with 3, and the trend disappeared in untrained networks or under random permutation of input alignments (Dravid et al., 2 Jun 2026). Although this later analysis is not restricted to the original vision pipeline, it frames Rosetta Neurons as a recurring, measurable population rather than as isolated pairwise correspondences.
4. Visualization, inversion, and editing
A distinctive feature of the original framework is that one Rosetta partner is a generator, which makes direct visualization possible through latent-code optimization (Dravid et al., 2023). For inversion without pixel supervision, the paper minimizes
4
This objective depends only on matched Rosetta activations and a latent regularizer, rather than on direct pixel reconstruction (Dravid et al., 2023).
The paper reports several inversion-based manipulations enabled by this setup. For image-to-image translation such as dog-to-cat, “nose,” “ears,” and “pose” neurons from DINO-RN are matched to StyleGAN2 trained on LSUN cats, and the optimized cat retains the dog-input pose (Dravid et al., 2023). For out-of-distribution inversion such as sketches-to-photos, no pixel loss is used; only matched Rosetta activations are imposed, allowing a pencil sketch to be inverted into a realistic GAN image that preserves layout (Dravid et al., 2023).
Editing is performed by directly manipulating activation maps and then re-optimizing the latent code. The operations reported are zoom, implemented by upsampling each selected activation map and cropping; shift, implemented by spatial translation of the activations; copy-paste of halves of two activations; and single-neuron removal or addition, implemented by clamping one heatmap to zero or to its maximum (Dravid et al., 2023). All of these require no further network training, only latent-space optimization guided by pre-mined Rosetta correspondences (Dravid et al., 2023).
For GAN inversion quality on 5 ImageNet images, guiding StyleGAN-XL with Rosetta matches improved PSNR from 6 to 7, SSIM from 8 to 9, and LPIPS from 0 to 1 (Dravid et al., 2023). Within the scope of the reported experiments, these numbers locate Rosetta guidance not only as an interpretability device but also as an empirical constraint for downstream generative manipulation.
5. Selectivity, scaling, and specialization
The later scaling study examined whether Rosetta populations evolve predictably with model size (Dravid et al., 2 Jun 2026). In paired models of approximately matched scale, the count of Rosetta correspondences 2 versus total neuron count 3 was fit as
4
which was then converted to parameter count 5 as
6
The fitted exponent was consistently sublinear in both language and vision, with 7 (Dravid et al., 2 Jun 2026). For LLMs, the paper reports approximately 8K Rosetta neurons at 9M parameters and approximately 0M at 1B parameters, with implied prefactor 2. For vision models, the prefactor was reported as 3 (Dravid et al., 2 Jun 2026).
Beyond sheer count, the study reports a “Neuron Polarization Effect”: as models grow, Rosetta Neurons become more selective and increasingly monosemantic, while the larger non-Rosetta population remains less selective (Dravid et al., 2 Jun 2026). In language, selectivity was quantified by projecting each neuron’s output weight onto the vocabulary unembedding and computing excess kurtosis of token-similarity scores; Rosetta neurons rose from near zero to well above 4, whereas non-Rosetta neurons remained close to zero (Dravid et al., 2 Jun 2026). In vision, a vision-LLM was asked to judge whether top-20 activating images plus heatmaps reflected one coherent visual feature; the fraction judged monosemantic increased from approximately 5 to approximately 6 for Rosetta Neurons as scale increased, while non-Rosetta neurons decreased from approximately 7 to approximately 8 (Dravid et al., 2 Jun 2026).
The same study also reports domain specialization with scale. In Pythia from 9M to 0B parameters, Rosetta neurons increasingly over-fired on code, with normalized firing from approximately 1 to 2, and on math, from approximately 3 to 4, while under-firing on prose and conversation (Dravid et al., 2 Jun 2026). In a JavaScript filtering case study, a single JavaScript-selective Rosetta Neuron in Pythia-6.9B was used to score CodeSearchNet functions by mean activation, selecting the top 5M tokens’ worth of functions. This filter recovered JavaScript with 6, nearly the oracle’s 7, and after continued pretraining of GPT2-1.5B on the filtered data achieved test perplexity 8 versus 9 for the oracle; a matched non-Rosetta neuron yielded only 00 and 01 (Dravid et al., 2 Jun 2026). These results do not alter the original vision definition, but they extend the concept into a broader claim about shared and increasingly selective neuron-level structure.
6. Limitations, interpretation, and related significance
The original paper identifies several limitations. GAN-to-GAN direct matching is described as not trivial, and the pipeline always goes through a discriminator (Dravid et al., 2023). Diffusion models proved resistant to the approach, perhaps because their features are more step-wise and noisy (Dravid et al., 2023). Correlation can also mine spurious matches, such as tongues activating where context suggests them (Dravid et al., 2023). These caveats constrain interpretation: positive correlation and mutual-nearest-neighbor filtering are sufficient to expose many robust common units, but they do not guarantee semantic purity or comprehensive coverage of all shared computations.
The framework nevertheless supports several applications explicitly listed in the source material: model-to-model translation of concepts such as “flower” or “wheel” between vision networks; unsupervised discovery of interpretable units for neuroscience or cognitive-science analogies; conditional generation or image editing without specialized training, including object removal by switching off single neurons; and improved GAN inversion and downstream generative manipulation by imposing early-layer constraints (Dravid et al., 2023). The later scaling study adds a different interpretability significance: Rosetta Neurons may form a shared population whose size, selectivity, and specialization follow simple power laws, thereby connecting macroscopic scaling laws to internal building blocks of trained networks (Dravid et al., 2 Jun 2026).
A common misconception would be to treat Rosetta Neurons as a claim that all models share the same representations in a strong global sense. The reported results are narrower. The original paper identifies about 02–03 common units per domain across heterogeneous vision models (Dravid et al., 2023), while the later scaling work shows that even as the absolute number of Rosetta Neurons grows, their fraction shrinks with model size (Dravid et al., 2 Jun 2026). Another misconception would be to equate Rosetta status with semantics alone. The mined concepts include non-semantic cues such as shading, contour, and brightness, and the method does not force a semantic dictionary (Dravid et al., 2023).
Taken together, these studies position Rosetta Neurons as a lightweight, fully unsupervised bridge between diverse trained models, with two complementary meanings. In the original vision setting, they are a practical mechanism for identifying, visualizing, and manipulating shared concepts across a model zoo (Dravid et al., 2023). In the later scaling setting, they are a measurable neuron-level population whose growth, monosemanticity, and specialization can be studied quantitatively as models expand (Dravid et al., 2 Jun 2026).