Matryoshka Transcoders
Automatically finding, and describing in plain English, the ways image generators break physics, such as extra fingers, warped text and impossible poses.
In one sentence: we train a classifier to spot physically implausible images, split what it has learned into many small interpretable features, and let a multimodal language model name each one. The result is a catalogue of how image generators fail.
The problem
Modern image generators produce pictures that look convincing at first glance but break basic physical rules: a hand with six fingers, a tennis player whose arm bends the wrong way, poster text that is not quite letters. These mistakes matter in real applications, yet the standard metrics miss them. Those metrics check whether an image matches its caption or whether a batch of images looks realistic overall. Even strong multimodal models struggle to notice these errors reliably when they look at an image as a whole.
What’s missing is a way to find the specific, recurring kinds of mistakes automatically and describe them in words, so model builders know what to fix.
The approach
Figure 1 · From labelled images to named failure modes
- Label. Two annotators marked 3,410 generated images as physically plausible or not. We added 5,000 real photos from MS-COCO as extra plausible examples.
- Classify. A frozen CLIP image encoder with a small two-layer head learns to tell the two classes apart. Its internal activations now carry the information about physical errors, but tangled together.
- Untangle. A transcoder is a small network that rebuilds one layer’s activations from the layer before it, using only a few active features at a time. That sparsity pushes each feature to stand for one recognisable thing.
- Describe. For each feature we collect the images that activate it most and ask a multimodal model two questions: what do these images have in common, and is it a physical-plausibility error?
Why “Matryoshka”?
Plain sparse models must choose between a few broad features and many narrow ones. A Matryoshka model trains nested dictionaries together, so you get both.
Figure 2 · The Matryoshka idea (illustrative)
What we found
The discovered features are clear and easy to name. Examples from the paper include anatomical distortions in tennis scenes (feature 104), malformed text on posters (feature 243) and implausible hand-drawn styles (feature 648). Compared with standard sparse autoencoders, Matryoshka sparse autoencoders and plain transcoders, Matryoshka transcoders produce the largest share of features that are really about physical errors.
Figure 3 · How many discovered features are about physical errors
The features can also be reused as a benchmark. Run any generator’s images through the pipeline and count how many error features fire on each image. Across eight popular models, this ranks them clearly and also shows which kinds of error each one makes.
Figure 4 · Benchmarking eight image generators
An ablation on dictionary size shows the trade-off that motivates the nested design. Small dictionaries give more focused features (17.2% relevant), while large ones cover many more error types (1,896 relevant features compared with 170). Nesting several sizes captures both.
Limits and next steps
The discovered features diagnose failures but are not yet used to train them away. That is the obvious next step. Rare kinds of error can also be missed if the labelled data contains few examples of them.