# EQ-VAE: Equivariance Regularized Latent Space for Improved Generative Image Modeling

EQ-VAE makes autoencoder latents equivariant, speeding up image generators

Theodoros Kouzelis, Ioannis Kakogeorgiou, Spyros Gidaris, Nikos Komodakis · arXiv · 2025-2-13

- **Problem** Autoencoder latents don't change with the image when it is scaled or rotated, so generators must learn a tangled latent space.
- **Method** EQ-VAE fine-tunes a pre-trained autoencoder so that decoding a transformed latent reproduces the transformed image. It changes only the training objective, with random scaling and rotations applied during training.
- **Results** On DiT-XL/2, EQ-VAE latents reach GFID 14.5 at 400K iterations, against 19.5 with SD-VAE-FT-EMA latents.

![Figure 4: EQ-VAE accelerates generative modeling. We compare results from two DiT-XL/2 models at 50K, 100K, and 400K iterations, one trained with SD-VAE-FT-EMA…](https://refivu.com/papers/fab7b7ee-5523-498a-a636-595696465569/figures/figure-75d1e12f6c68443391cac0f485f607a8.png?thumb=512)

**Figure 4** : EQ-VAE accelerates generative modeling. We compare results from two DiT-XL/2 models at 50K, 100K, and 400K iterations, one trained with SD-VAE-FT-EMA (top) and with EQ-VAE (bottom). The same noise and number of sampling steps are used for both models, without classifier-free guidance. Our approach delivers faster improvements in image quality, demonstrating accelerated convergence.

[Original paper](https://arxiv.org/abs/2502.09509v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Theodoros Kouzelis, Ioannis Kakogeorgiou, Spyros Gidaris, Nikos Komodakis · EQ-VAE: Equivariance Regularized Latent Space for Improved Generative Image Modeling · Original paper figure · Extracted the figure area from page 7 of the original PDF.

## Why latent spaces slow generators down

Latent generative models split the work into two phases, with an autoencoder compressing images before a generator models their latents. The autoencoder's latent space therefore defines the terrain the generative model has to learn, even though most research targets the generator. Regularization strategies such as the KL term introduce a trade-off, since stronger regularization yields a smoother latent space but reduces its information capacity.

That loss of capacity leads to lost fine-grained detail and degraded reconstruction quality. Because this trade-off may set an upper bound on overall performance, the authors ask how to shape the latent space without hurting reconstruction.

The authors point to equivariance as the structural weakness, meaning that transforming an input should correspond to transforming its latent code by the same map. To test this, they decode a transformed latent and compare it with decoding the latent of a transformed image. For SD-VAE, applying the transformation directly to the latent leads to significant degradation in reconstruction quality.

The authors measure this gap with RFID, which is computed between the transformed input and the decoded transformed latent.

The authors trace the gap to two causes. Convolutional architectures used in SD-VAE aren't equivariant under arbitrary scaling and rotation. Standard objectives, such as reconstruction loss and KL divergence, don't explicitly or implicitly encourage equivariance. As a result, an image and its scaled counterpart map to latent codes that aren't related by that scaling, which tangles the latent space more than it needs to.

## The key idea: make decoded latents match transformed images

The central move is to train the autoencoder so that decoding a transformed latent reproduces the transformed input image. The authors call this EQ-VAE, and it changes only the training objective, so the architecture stays the same. Fine-tuning a pre-trained autoencoder for a few epochs is enough, because the method doesn't require training from scratch.

The authors test the idea on SD-VAE and VQ-GAN, which are continuous and discrete autoencoders respectively.

The obvious alternative is an explicit loss that penalizes the distance between the latent of a transformed image and the transformed latent. Minimizing that loss alone can collapse the latent representation to a constant value, which the authors observed in their experiments. The explicit loss lowers equivariance errors, but the authors report that it degrades both reconstruction and generative performance.

So they use an implicit form, which takes its supervision from the reconstruction and adversarial losses instead of a direct latent match. The authors expect this form to push the encoder toward equivariant codes while avoiding mode collapse.

The implicit objective aligns the decoder output for the transformed latent, D(τ ◦ E(x)), with the transformed input τ ◦ x. Setting τ to the identity recovers the original objective, so the regularization extends the standard training rather than replacing it. The transformations are anisotropic scaling and rotations, with the rotation angles limited to multiples of 90 degrees to avoid corner artifacts.

A probability pα keeps the identity transform in some steps, which preserves the autoencoder's prior reconstruction ability.

## How one fine-tuning step works

Standard autoencoder training combines a reconstruction term, which is a pixel loss plus LPIPS, an adversarial term and a regularizer, which is a KL term in the continuous case. Written out, the standard objective is \\(\\mathcal{L}\_{\\text{VAE}}(x)=\\mathcal{L}\_{\\text{rec}}(x,\\hat{x})+\\lambda\_{\\text{gan}}\\mathcal{L}\_{\\text{gan}}(\\hat{x})+\\lambda\_{\\text{reg}}\\mathcal{L}\_{\\text{reg}}\\).

EQ-VAE keeps these terms but feeds the decoder a transformed latent, and the implicit objective is \\(\\mathcal{L}\_{\\text{EQ-VAE}}(x,\\tau)=\\mathcal{L}\_{\\text{rec}}(\\tau\\circ x, D(\\tau\\circ E(x)))+\\lambda\_{\\text{gan}}\\mathcal{L}\_{\\text{gan}}(D(\\tau\\circ E(x)))+\\lambda\_{\\text{reg}}\\mathcal{L}\_{\\text{reg}}\\). Here the encoder output is transformed by \\(\\tau\\) before decoding, and the reconstruction term compares the decoded result with the transformed image.

When \\(\\tau\\) is the identity, this objective reduces to the standard one.

The transformation is the product of an anisotropic scaling \\(S(s\_x,s\_y)\\) and a rotation \\(R(\\theta)\\), written \\(\\tau = S(s\_x,s\_y)\\cdot R(\\theta)\\). The scale factors are sampled uniformly between 0.25 and 1, and the rotation angles are chosen from \\(\\pi/2\\), \\(\\pi\\) and \\(3\\pi/2\\). The authors keep to multiples of 90 degrees to avoid corner artifacts, and they use bicubic interpolation for downsampling.

They find scaling more useful for generation than rotation.

Applying a transformation on every step would erode the reconstruction quality the autoencoder already has, so the identity is sampled with probability \\(p\_\\alpha\\). The total objective uses the standard loss when a uniform draw \\(p\\) falls below \\(p\_\\alpha\\), and the EQ-VAE loss otherwise. The default is \\(p\_\\alpha = 0.5\\).

For a discrete autoencoder such as VQ-GAN, the same loss applies, but the transformation acts on the continuous encoder features before quantization. The authors fine-tune the autoencoders on OpenImages for 5 epochs with batch size 10. DiT, SiT and REPA are then trained on ImageNet at 256 by 256 with batch size 256, and DiT and SiT were originally trained on SD-VAE-FT-EMA latents, which serves as their baseline.

## Equivariance and reconstruction across autoencoders

The first check looks at the autoencoders themselves, with and without EQ-VAE, measuring reconstruction, equivariance error and generation with a DiT-B model. Reconstruction RFID for SD-VAE moves from 0.90 to 0.82, so fidelity doesn't drop. The authors say EQ-VAE keeps the original reconstruction fidelity while it delivers significant improvements in generative performance.

![Table 1: Comparison of Autoencoders with and without EQ-VAE. We evaluate reconstruction quality, equivariance errors (defined in Appendix C), and generative pe…](https://refivu.com/papers/fab7b7ee-5523-498a-a636-595696465569/figures/figure-eea1e83e60870f3f41df4c14240b2891.png?thumb=512)

**Table 1** : Comparison of Autoencoders with and without EQ-VAE. We evaluate reconstruction quality, equivariance errors (defined in Appendix C), and generative performance for continuous (SD-VAE, SDXL-VAE, SD3-VAE) and dis- crete (VQ-GAN) autoencoders, with and without EQ-VAE. Generative FID (GFID ) is measured using DiT-B for con- tinuous V AEs andMaskGIT for VQ-GAN. Our approach reduces reconstruction RFID and equivariance errors while enhancing generative performance (GFID ). For additional reconstruction metrics see

[Original paper](https://arxiv.org/abs/2502.09509v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The same pattern holds for SDXL-VAE, SD3-VAE, SD-VAE-16 and VQ-GAN, though the gains differ in size.

The authors read the pattern as a correlation between lower equivariance error and better generation, not as proof of a cause. On the continuous autoencoders the reconstruction changes are small, with SDXL-VAE moving from 0.67 to 0.65. The paper's reconstruction metrics beyond RFID are listed in Table 12, which they point to for additional detail.

## Why the implicit form beats a direct loss

A direct equivariance loss sounds like the obvious fix, so the authors tested it on SD-VAE first. They added the explicit term Lexplicit to the standard objective with λ = 0.1, and they also tried a stop-gradient on the E(τ ◦ x) term. The explicit loss pulls the latent toward equivariance, but minimizing it alone can admit a trivial solution.

That trivial solution is collapsing the latent to a constant value E(x) = c for every input x.

![Table 7: Implicit vs. Explicit Equivariance Regularization. Comparing SD-VAE along with explicit vs implicit regularization objectives shows that explicit regu…](https://refivu.com/papers/fab7b7ee-5523-498a-a636-595696465569/figures/figure-c60330c1b940b06b139b5a1b8fd0a4e1.png?thumb=512)

**Table 7** : Implicit vs. Explicit Equivariance Regularization. Comparing SD-VAE along with explicit vs implicit regularization objectives shows that explicit regularization drastically lowers equivariance errors but triggers mode collapse, while implicit regularization enhances significantly the generative performance.

[Original paper](https://arxiv.org/abs/2502.09509v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The authors attribute this collapse to mode collapse in the latent space, so the metric improves while the latent carries less information. The implicit objective swaps the explicit penalty for a reconstruction target: it decodes the transformed latent and matches the transformed input τ ◦ x. Because the reconstruction and adversarial losses supervise the decoded output, the encoder can't shrink its latent without paying a reconstruction cost.

Setting τ to the identity recovers the original objective of Equation (1), so the standard training signal stays in place. With this form, the implicit model reaches a GFID of 34.1 and an RFID of 0.82, with R(θ) at 0.49 and S(s) at 0.15.

The comparison shows that a lower equivariance error alone doesn't guarantee better generation. The explicit model reduces equivariance error most, yet its generative and reconstruction numbers are far worse than the implicit model's. The regularization strength pα is a separate knob, and the authors vary it between 0.3 and 0.7. At pα = 0.5, the default, GFID is 34.1 and RFID is 0.82, while 0.3 gives 35.4 and 0.78, and 0.7 gives 34.4 and 0.88.

The authors call their method relatively robust to the choice of pα, so the implicit form doesn't hinge on one setting.

## Training speed-ups on DiT, SiT, REPA and MaskGIT

Each generator is trained twice, once on SD-VAE-FT-EMA latents and once on EQ-VAE latents, without classifier-free guidance. For DiT-B/2 at 400K iterations, GFID falls from 43.5 to 34.1. For DiT-XL/2 at the same 400K iterations, it falls from 19.5 to 14.5. SiT-XL/2 moves from 17.2 to 16.1 at 400K steps, a smaller gain than for DiT.

![Table 2: GFID Comparisons. GFID scores on ImageNet 256 × 256 for DiT, SiT, and REPA trained with either SD-VAE-FT-EMA or our EQ-VAE. No classifier-free guid- a…](https://refivu.com/papers/fab7b7ee-5523-498a-a636-595696465569/figures/figure-3f2cf1be55ab9c0db52eae682d1718f5.png?thumb=512)

**Table 2** : GFID Comparisons. GFID scores on ImageNet 256 × 256 for DiT, SiT, and REPA trained with either SD-VAE-FT-EMA or our EQ-VAE. No classifier-free guid- ance (CFG) is used. EQ-VAE consistently enhances both generative performance and training efficiency across all generative models.

[Original paper](https://arxiv.org/abs/2502.09509v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The sharper test is how much training each run needs to reach a given score. The EQ-VAE run of DiT-XL/2 scores 8.8 at 1.5M iterations. The baseline DiT-XL/2 scores 9.6 only at 7M iterations. The ×7 speed-up in the abstract comes from the training curves in Figure 1, which are shown without classifier-free guidance.

REPA aligns the diffusion transformer's representations with self-supervised ones, so it is a separate case from the plain DiT and SiT runs. With EQ-VAE latents, SiT-XL/2 with REPA reaches GFID 5.9 at 1M iterations. The baseline needs 4M iterations to reach the same score. The authors describe this as a four-fold faster convergence, and they note that REPA was already known to speed up diffusion training.

For MaskGIT, EQ-VAE latents reach GFID 6.80 at 130 epochs. The open-source reproduction needs 300 epochs to reach the same score. So on that row the benefit is training compute, which the authors put at ×4 less than standard REPA.

## Transformations, intrinsic dimension and tuning length

Table 5 varies which transformation the EQ-VAE regularizer applies, with DiT-B/2 as the generator. Scaling equivariance has a large effect on generation, and rotation equivariance also helps. Combining rotation with isotropic scaling, R(θ) · S(s, s), gives GFID 34.1 and RFID 0.82, which is why it is the default. The authors keep isotropic scaling because the more aggressive regularization hurts reconstruction more.

The authors also measure the intrinsic dimension (ID) of the latent codes, using the TwoNN estimator. Noise tends to inflate the TwoNN estimate, so the values are best read as relative comparisons.

Tuning length is the next question: how many epochs of EQ-VAE does a generator need to benefit? A single epoch, about 10K steps, lowers GFID for DiT-B/2 from 43.5 to 36.7. For context, SD-VAE-FT-EMA was fine-tuned for 300K steps. Figure 5 plots GFID against the number of fine-tuning epochs, from 0 to 5.

A fair worry is that extra fine-tuning alone could cause the gain. The control SD-VAE† runs five extra epochs with the standard objective, and its GFID stays at 43.5. The RFID of the control is 0.81, close to the 0.82 of EQ-VAE, so reconstruction is not the difference. The authors attribute the gain to equivariance regularization, since the control isolates extra training.

## Limits of the evidence

The explicit equivariance loss can collapse the latent space, so the authors keep the implicit form. In the Table 7 ablation, the explicit loss lowers equivariance error but pushes GFID to 141.3 from 43.5 for SD-VAE. Implicit regularization reaches GFID 34.1 with RFID 0.82, which the authors read as avoiding that collapse. The implicit objective replaces the input with the transformed input and leaves the reconstruction and adversarial terms in place.

The regularization strength barely matters in the range tested, with GFID 35.4 at pα of 0.3, 34.1 at 0.5 and 34.4 at 0.7. The authors describe their method as relatively robust to the choice of pα. Setting pα to 0.5 means the identity transform is sampled with probability 0.5 during fine-tuning. They didn't test a wider range of pα values than 0.3 to 0.7.

The evidence covers only scaling and rotation, with scale factors between 0.25 and 1. Equivariance error is measured with three rotations and three scales, on 50K ImageNet validation samples. Flips and other transforms are not part of these experiments. The discrete results rest on VQ-GAN and MaskGIT alone.

The GFID baselines differ between tables: SD-VAE is 43.8 in Table 1, while 43.5 is the SD-VAE-FT-EMA baseline used in Table 2. The intrinsic dimension link is a correlation seen across the rows of one table. The ID estimator tends to overestimate under noise, so its values are best read as relative comparisons. The authors leave open the theoretical link between latent geometry and generative performance.

## Paper info

- **Authors**: Theodoros Kouzelis, Ioannis Kakogeorgiou, Spyros Gidaris, Nikos Komodakis
- **Venue**: arXiv · Preprint
- **First published**: 2025-2-13
- **Added**: 2026-10-30
- **Updated**: 2025-8-4
- **Version**: v3
- **arXiv**: 2502.09509
- **Category**: cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2502.09509v3) · [PDF ↗](https://arxiv.org/pdf/2502.09509v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Latent generative models have emerged as a leading approach for high-quality image synthesis. These models rely on an autoencoder to compress images into a latent space, followed by a generative model to learn the latent distribution. We identify that existing autoencoders lack equivariance to semantic-preserving transformations like scaling and rotation, resulting in complex latent spaces that hinder generative performance. To address this, we propose EQ-VAE, a simple regularization approach that enforces equivariance in the latent space, reducing its complexity without degrading reconstruction quality. By finetuning pre-trained autoencoders with EQ-VAE, we enhance the performance of several state-of-the-art generative models, including DiT, SiT, REPA and MaskGIT, achieving a 7 speedup on DiT-XL/2 with only five epochs of SD-VAE fine-tuning. EQ-VAE is compatible with both continuous and discrete autoencoders, thus offering a versatile enhancement for a wide range of latent generative models. Project page and code: https://eq-vae.github.io/.

## Quote from the paper

Theodoros Kouzelis, Ioannis Kakogeorgiou, Spyros Gidaris, Nikos Komodakis (2025). EQ-VAE: Equivariance Regularized Latent Space for Improved Generative Image Modeling. arXiv:2502.09509v3. https://arxiv.org/abs/2502.09509v3

**BibTeX**

```
@misc{kouzelis2025equivariance,
  title = {{EQ-VAE: Equivariance Regularized Latent Space for Improved Generative Image Modeling}},
  author = {Theodoros Kouzelis and Ioannis Kakogeorgiou and Spyros Gidaris and Nikos Komodakis},
  year = {2025},
  eprint = {2502.09509},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.09509v3}
}
```

## Other paper commentary

- [Image-to-Image Translation with Conditional Adversarial Networks](https://refivu.com/en/papers/92d09be2-7a1b-4f53-9d24-569d7cc94149-image-to-image-translation-with-conditional-adversarial.md)
- [What Makes World Action Models Generalize? An Empirical Study of Test-Time Future Modeling](https://refivu.com/en/papers/d55815ae-6f4a-431f-b6c2-ee38540c883a-what-makes-world-action-models-generalize-an-empirical.md)
- [PanoVLN: Towards Effective Panoramic Vision-and-Language Navigation](https://refivu.com/en/papers/fc889c2a-8f92-4c36-ae81-d35264d675ba-panovln-towards-effective-panoramic-vision-and-language.md)
- [VepAgent: Bridging Causal-Transition via Tool-Augmented Reinforcement Learning for Video Event Prediction](https://refivu.com/en/papers/821eb34f-ba18-4d31-a976-622431079e7e-vepagent-bridging-causal-transition-via-tool-augmented.md)
- [VisionHOPE: Visual Backbones as Self-Modifying Learning Systems](https://refivu.com/en/papers/e5713b15-02fd-4883-8432-3a93aa4463b6-visionhope-visual-backbones-as-self-modifying-learning.md)
- [Player-1: Learning to Play from Synthetic Experience](https://refivu.com/en/papers/956db0bc-965d-49f9-830e-3f50b69835ff-player-1-learning-to-play-from-synthetic-experience.md)
- [Stochastic Encodings for Active Feature Acquisition](https://refivu.com/en/papers/dafe6547-b3c0-4ca9-a7fe-82ee925a0c88-stochastic-encodings-for-active-feature-acquisition.md)
- [Ehrenfeucht-Haussler Rank and Chain of Thought](https://refivu.com/en/papers/cd83075a-e02f-4d42-b023-d9aff551bfbf-ehrenfeucht-haussler-rank-and-chain-of-thought.md)
- [FRUGAL: Memory-Efficient Optimization by Reducing State Overhead for Scalable Training](https://refivu.com/en/papers/c62e87ad-a4e4-49a7-b6e8-0df71fb48f97-frugal-memory-efficient-optimization-by-reducing-state.md)
- [Scalable Gaussian Processes with Latent Kronecker Structure](https://refivu.com/en/papers/1d5b6ab1-f72e-49ab-842e-cf71b44106cd-scalable-gaussian-processes-with-latent-kronecker-structure.md)
- [Train for the Worst, Plan for the Best: Understanding Token Ordering in Masked Diffusions](https://refivu.com/en/papers/64d5ed83-79ac-4425-8629-7aff772bd0c4-train-for-the-worst-plan-for-the-best.md)
- [InfAlign: Inference-aware language model alignment](https://refivu.com/en/papers/c8a29ed9-8ab2-4e59-9865-5055bb8ee487-infalign-inference-aware-language-model-alignment.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [FID](https://refivu.com/en/terms/e110afe65f86-fid)
- [DiT](https://refivu.com/en/terms/d3dec0b75cf5-dit)
- [gFID](https://refivu.com/en/terms/440f05515cde-gfid)
- [equivariance](https://refivu.com/en/terms/b961236eb680-equivariance)
- [RFID](https://refivu.com/en/terms/6d233ad94127-rfid)
- [REPA](https://refivu.com/en/terms/4893ece9ac4e-repa)
- [SiT](https://refivu.com/en/terms/01a6d2f0acd7-sit)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/fab7b7ee-5523-498a-a636-595696465569-eq-vae-equivariance-regularized-latent-space-for-improved)
