Papers › Unsupervised Representation Learning from Pre-trained Diffusion Probabilistic Models

Unsupervised Representation Learning from Pre-trained Diffusion Probabilistic Models

26 Dec 2022arXiv:2212.12990archive 2025-07-28

Zijian Zhang, Zhou Zhao, Zhijie Lin

Diffusion Probabilistic Models (DPMs) have shown a powerful capacity of generating high-quality image samples. Recently, diffusion autoencoders (Diff-AE) have been proposed to explore DPMs for representation learning via autoencoding. Their key idea is to jointly train an encoder for discovering meaningful representations from images and a conditional DPM as the decoder for reconstructing images. Considering that training DPMs from scratch will take a long time and there have existed numerous pre-trained DPMs, we propose \textbf{P}re-trained \textbf{D}PM \textbf{A}uto\textbf{E}ncoding (\textbf{PDAE}), a general method to adapt existing pre-trained DPMs to the decoders for image reconstruction, with better training efficiency and performance than Diff-AE. Specifically, we find that the reason that pre-trained DPMs fail to reconstruct an image from its latent variables is due to the information loss of forward process, which causes a gap between their predicted posterior mean and the true one. From this perspective, the classifier-guided sampling method can be explained as computing an extra mean shift to fill the gap, reconstructing the lost class information in samples. These imply that the gap corresponds to the lost information of the image, and we can reconstruct the image by filling the gap. Drawing inspiration from this, we employ a trainable model to predict a mean shift according to encoded representation and train it to fill as much gap as possible, in this way, the encoder is forced to learn as much information as possible from images to help the filling. By reusing a part of network of pre-trained DPMs and redesigning the weighting scheme of diffusion loss, PDAE can learn meaningful representations from images efficiently. Extensive experiments demonstrate the effectiveness, efficiency and flexibility of PDAE.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2212.12990")

Code

Syntology Ran 5 of 14 code samples harvested from 2 repositories linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 4 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 4 ran; community (archive-listed): 4 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ckczzj/pdae officialmentioned in papermentioned on GitHubpytorch report
GabrieleLozupone/LDAE mentioned on GitHubpytorchNOASSERTION report
yue-zhongqi/diti mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 5 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
4ran
9unverified

Licence: 14 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

QKVAttention ckczzj/pdae/model/shift_unet.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · afd1425583888760 · report
QKVAttentionLegacy ckczzj/pdae/model/shift_unet.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · ec9213c0c8138849 · report
TimestepBlock ckczzj/pdae/model/shift_unet.py official repository ran fingerprinted no licence file found · pointer only · 7778cda2e40a2497 · report
normalization ckczzj/pdae/model/shift_unet.py official repository ran · our draft was wrong no licence file found · pointer only · d5eb4721bd7ede86 · report
AttentionBlock ckczzj/pdae/model/shift_unet.py official repository unverified no licence file found · pointer only · b7379a086999f359 · report
ResBlock ckczzj/pdae/model/shift_unet.py official repository unverified no licence file found · pointer only · 6a2fbcc09ba19930 · report
ResBlockShift ckczzj/pdae/model/shift_unet.py official repository unverified no licence file found · pointer only · cb9834d54ca93700 · report
ShiftUNet ckczzj/pdae/model/shift_unet.py official repository unverified no licence file found · pointer only · 629e72d126a0dd83 · report
TimestepContextBlock ckczzj/pdae/model/shift_unet.py official repository unverified no licence file found · pointer only · 76666159788ad649 · report
TimestepSequential ckczzj/pdae/model/shift_unet.py official repository unverified no licence file found · pointer only · 546963d82095d48c · report
DDIM yue-zhongqi/diti/trainer/representation_learning_trainer.py community (archive-listed) ran no licence file found · pointer only · 580dc76645bca9ff · report
BaseTrainer yue-zhongqi/diti/trainer/representation_learning_trainer.py community (archive-listed) unverified no licence file found · pointer only · 4169604fb1fae5cb · report
GaussianDiffusion yue-zhongqi/diti/trainer/representation_learning_trainer.py community (archive-listed) unverified no licence file found · pointer only · efd4bc02cd02d1cf · report
RepresentationLearningTrainer yue-zhongqi/diti/trainer/representation_learning_trainer.py community (archive-listed) unverified no licence file found · pointer only · 3792fabf4fa7e452 · report

Tasks

Image ReconstructionRepresentation Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusionfail

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections