erik_aae
The encoder of an adversarial autoencoder, traced from the PyTorch-GAN collection.
Diffusion and generative · 14 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 798.7K
- Operations
- 14
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2015
- Paper
- Adversarial Autoencoders
- Cited by
- 3,026 (as of 17 November 2026)
- Authors
- Alireza Makhzani, Jonathon Shlens, Navdeep Jaitly and others
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m4661
- Graph hash
- cc2165a0c1a66dd71e804c3623130841ab6fb8c9a2d82ed047353d4433a741e5
- Skeleton hash
- 3e1e288e52454573b88a72e5ae5f506d3fc48c439fcdd81d5170eb4e57efa518
- Architecture hash
- 70ba341bac8b8c74e629e2bfe20483c515c40c8e6b528fe39c173e5f32a4d4db
- Diagram SHA-256
- 9de285afb2c9b2f70ed15241e104641f017b534571711ff540db8d84c1f3478f
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
An adversarial autoencoder is a probabilistic autoencoder that uses a GAN to perform variational inference, matching the aggregated posterior of its hidden code to an arbitrary prior distribution. Matching the aggregated posterior to the prior ensures that generating from any part of prior space results in meaningful samples. The trick is that the generator of the adversarial network is also the encoder of the autoencoder.
Training alternates two phases on each mini-batch, a reconstruction phase and a regularization phase. In the regularization phase the discriminator learns to tell samples from the prior apart from the hidden codes computed by the autoencoder, and the encoder then updates to confuse it. The paper allows several encoders, including a Gaussian posterior whose mean and variance the encoder network predicts. That version trains with the same re-parametrization trick as a variational autoencoder.
Applications the authors show include semi-supervised classification, disentangling style and content, unsupervised clustering, dimensionality reduction and data visualization. Experiments ran on MNIST, Street View House Numbers and Toronto Face datasets. The captured member comes from the PyTorch-GAN collection, whose author warns that its architectures will not always mirror the ones proposed in the papers.
Key idea. Regularizing an autoencoder by having an adversarial network match the aggregated posterior of its codes to an arbitrary prior, so the decoder becomes a generative model.
- AAE
- adversarial autoencoder
- Adversarial Autoencoders
- aggregated posterior
- encoder
- latent code
- GAN
- variational inference
- PyTorch-GAN
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{makhzani2016adversarialautoencoders,
title={Adversarial Autoencoders},
author={Alireza Makhzani and Jonathon Shlens and Navdeep Jaitly and Ian Goodfellow and Brendan Frey},
year={2016},
eprint={1511.05644},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1511.05644},
}