Denoising Embedding Models Are Generative Self-Supervised Learners
- Paper
- Code
- BibTeX

TL;DR: Representation learning and image generation usually need separate models. DEM does both in one network, trained only to denoise. Its linear probe matches DINOv2, and it generates images without labels.
Generative models learn representations that still trail those of self-supervised methods. The reason lies in what they have to encode. A model that has to redraw an image must keep its low-level details, down to the exact shade of the grass and where the frame cuts off, while a recognizer needs only the high-level semantics. So most methods learn a representation first and build a generator on top of it, or train one model on a separately learned tokenizer.
We argue that this split is needed, given the inherent trade-off between recognition and generation, but that its design space can be simpler. A denoising embedding model (DEM) keeps the split within one network. It is a diffusion model at two levels, trained with denoising alone. In representation space, it denoises an image's embedding given another view of the image. In pixel space, it generates the image from that embedding. The embedding holds the high-level semantics, and the pixel level fills in the low-level details.
We train one Transformer on ImageNet-100, in pixel space, with no latent tokenizer and no pretrained encoder. Its linear probe matches DINOv2 (77.2% against 76.2%), and the same network performs unconditional image generation. Generation also helps the representation. At 100k iterations, removing the pixel loss drops the probe from 76.1% to 72.5%.
Diffusion at two levels
DEM has a Vision Transformer (ViT) architecture with two small heads. The ViT encodes an image into an embedding. The first head, the embedding denoiser, denoises embeddings and learns their distribution given another view of the image. The ViT with the second head, the pixel head, denoises images and learns the distribution of images that the embedding describes. Since the embedding is learned from different views of the same image, it keeps the high-level semantics the views share, and the pixel level takes care of the low-level details.
Both levels learn the same task, conditional denoising given a view, which we call view-conditioned denoising. For the embedding, the condition is another view of the image. For the pixels, it is the embedding, the image's coarsest view. We train the embedding denoiser with classifier-free guidance, dropping the view for some examples, so it also learns a prior over the representation space. With no view, it then acts as a representation generator. It samples an embedding that supplies the class-level semantics a label would, so DEM performs unconditional image generation.
Training
A training step looks at one image in three forms, a clean view, a noised view and a noised image. The teacher, an exponential moving average (EMA) of the network, turns the clean view into the target embedding. The student reads the noised view, and the embedding denoiser uses it to clean up a noisy copy of the target (loss 1). The same backbone then reads the noised image, conditioned on the target, and the pixel head recovers the original (loss 2).
Inference
After training, the teacher is no longer needed. To encode an image, we take the Vision Transformer's output as it is. To generate one, the embedding denoiser first samples an embedding from pure noise, and the pixel head then draws an image from it. Give it a crop instead, and it samples several embeddings that fit the crop, each drawn as a different image.
Views as noise maps
Self-supervised learning (SSL) usually learns from masked or cropped images, and diffusion models learn from noisy ones. A masked patch is simply a patch noised all the way, so one process that picks a noise level for each patch can produce every input DEM needs. We describe each input by its noise map, one level per patch. The student gets a noised view, the teacher a clean one, and the pixel pass the whole image at a single noise level.





cleanfull noise
Asymmetric noise schedules
The two levels see very different amounts of noise. Embeddings are denoised mostly near full noise (median 0.95), which is close to plain SSL prediction and is where the high-level semantics are learned. Pixels are trained lower (median 0.69), where the low-level details are drawn.
Connections to SSL, diffusion autoencoders and REPA
SSL is the full-noise case
Joint-embedding SSL methods turn out to be a special case of DEM. Imagine handing such a predictor a noisy copy of its own target. If the copy is pure noise, it tells the predictor nothing, and we are back to the standard SSL prediction task. Prediction is DEM at full noise. Below full noise, DEM learns the whole range of embeddings that fit the view, where a predictor can only give their average.
Lower noise (DEM). The copy still carries information.
An autoencoding interpretation
DEM admits an autoencoding interpretation, as a diffusion autoencoder. An image is encoded into two latents, its embedding z, which holds the high-level semantics, and a pixel noise η, which holds the low-level details. The teacher gives z, and running the pixel denoiser's ODE from the image back to noise gives η. Decoding both reconstructs the image almost exactly (55 dB PSNR), and a fresh η changes only the low-level details.










Native representation alignment
REPA (representation alignment) speeds up diffusion training by aligning the generator's features with a frozen, pretrained encoder such as DINOv2. DEM has this alignment natively, by design. The network that generates pixels is the same network that learns the embedding, and its target comes from its own EMA teacher, a representation whose linear probe matches DINOv2 (77.2% against 76.2%). No outside encoder is needed.
Results
| DEM | Baseline | |
|---|---|---|
| Representation | ||
| Linear probe | 77.2% | 76.2% (DINOv2) |
| k-NN | 69.9% | 74.7% (DINOv2) |
| Generation | ||
| FID-50k without labels | 19.5 | 12.3 (RCG, three separate models) |
| Class-conditional FID-50k | 14.5 (1% of labels) | 12.4 (JiT, all labels) |
ImageNet-100, 64x64, ViT-S/8, 100k iterations, FID-50k. DINOv2 is trained for the same number of iterations. DEM's linear probe matches DINOv2's, and its k-NN accuracy is lower. RCG trains three separate models. For class-conditional generation, DEM uses a linear probe fit on 1% of the labels, and we compare it with class-conditional JiT trained on all labels.
One embedding, many images
The embedding decides what is in the picture. Keep it fixed, resample the pixels with fresh noise, and you get the same high-level semantics with new low-level details.

Each row uses one sampled embedding with different pixel noise.

A validation image followed by samples generated from its embedding.
Completion and in-painting
A small crop could come from many different images. A predictor can only return the average of their embeddings. DEM samples several and decodes each into its own completion, without ever being trained for this. Keep the visible pixels fixed while sampling, and it does in-painting and out-painting too.

Each image comes from an embedding sampled given the blue crop.

A hole, blocks and out-painting, with two samples each.
How we built DEM
We built DEM through a speedrun in the style of modded-nanogpt. A component stayed in the model only if it improved results on a fixed protocol. Every run changes one component of the current best model and trains a ViT-S/8 for 20k iterations at batch size 512 on ImageNet-100 at 64x64. Two numbers decide whether the change stays, the linear probe and FID-5k without labels. Before we launch a run, we write the change into the project journal with its hypothesis, its predicted effect and numeric thresholds for success and refutation. Seed 0 nominates a change and seed 1 confirms it. A change sets a record when its two-seed mean improves one metric by more than the seed spread (1.0 probe points or 2.5 FID) and does not worsen the other metric by more than its spread.
We set the initial idea and every change of direction. AI agents implemented candidate changes, launched the runs, checked each outcome against the prediction written down before launch and proposed the next experiments. This process adds components quickly, so we paused periodically to simplify the model by removing the components the central claim did not need. We kept a removal when both metrics stayed level.
| Record | Date | Probe | FID-5k |
|---|---|---|---|
| Joint model, pixel loss on the embedding denoiser | 9 Oct | 52.6% | 95.4 |
| Noise as a view | 16 Oct | 60.3% | 66.5 |
| Muon optimizer | 17 Oct | 67.7% | 63.1 |
| Asymmetric noise schedules | 19 Oct | 70.5% | 58.1 |
| Snapshot v2, adopted sampler | 26 Oct | 70.53% | 42.76 |
| Pixel pass as a view of the patch term | 3 Nov | 70.65% | 39.85 |
Selected records, two-seed means, 20k iterations, FID-5k without labels. The last two rows use the adopted sampler (guidance on an interval). Switching to it lowered the FID of the 20 October model from 59.4 to 46.1 with no retraining.
Representation and generation improve together. Across the 253 runs with the earlier sampler, runs with a higher probe have a lower FID (Spearman −0.69). Across the 171 runs with the adopted sampler, the correlation is −0.51. Single changes are harder to predict. Among the 231 runs that modify a base configuration under the earlier sampler, the changes in the two metrics correlate at only −0.22.
Some 20k records fail at 100k. Adding eight local crops set a 20k record three times. On snapshot v2, the crops raised the two-seed probe from 70.53 to 72.08 at level FID. At 100k iterations, though, the run became unstable after 44k and finished at a probe of 75.54, below the 76.06 of v2. Since then, a 20k record enters the model only after it passes a 100k check.
By 100k iterations, generation helps the representation. At 20k iterations, removing the pixel loss raises the probe, from 70.53 to 72.93 (two seeds). At 100k the effect reverses, and removing the pixel loss lowers the probe from 76.1% to 72.5%.
BibTeX
@misc{awal2026dem,
title = {Denoising Embedding Models Are Generative Self-Supervised Learners},
author = {Awal, Rabiul},
year = {2026}
}