Déjà-VAE Training-Free Consistent Editing with Pseudo-Invertible Encoders and Latent Back-Projection

Ron Libman1* Yamit Ehrlich1* Ohad Fried2 Assaf Shocher1

1Technion – Israel Institute of Technology2Reichman University

*Equal contribution

Compare
Baseline output at the selected stageFLUX.2
Déjà-VAE output at the selected stageDéjà‑VAE (ours)

PasteBench with FLUX.2 [klein] 9B and 8‑bit image hand‑offs: ten objects are pasted and harmonized one per turn, then removed in reverse order. After all twenty turns, an ideal editor returns the original scene unchanged.

Abstract

Consistency is essential to generative workflows: repeated processing should preserve information beyond the changes explicitly requested. In latent diffusion models, this requires stability both when moving between latent and pixel spaces and when applying successive edits. Autoencoding errors and unintended changes from the editing model can accumulate across these operations, progressively altering image structure, texture, and color.

We introduce Déjà‑VAE, a framework that combines exact autoencoding consistency with calibrated editing stabilization, without training or fine‑tuning. Its autoencoding component converts a pretrained variational autoencoder into a surjective pseudo‑invertible neural network, with a fixed gain balancing deviations from the pretrained encoder and decoder. The modified decoder D' is an explicit nonlinear right inverse of the encoder E', satisfying E'(D'(z))=z by construction. Consequently, D' is a reflexive generalized inverse: latent round trips preserve their input, up to numerical precision, and repeated image reconstruction is idempotent.

To suppress editing drift, adaptive wavelet back‑projection finds the closest latent to the editor's output in \ell_2, subject to matching the previous latent on wavelet coefficients whose changes fall below calibrated thresholds. This correction is applied once per turn, with no additional network evaluations after calibration. Together, these components support workflows that remain in latent space or interleave generation with pixel‑space operations and constraints. Tests across models and editing benchmarks show less drift than stock pipelines and dedicated consistency methods.

Method

Diagram of the Déjà-VAE encoder and decoder
The Déjà‑VAE codec. A fixed PCA basis splits an image into low‑variance reserved coordinates x_0, one per latent entry, and the retained rest x_1. The encoder E'(x)=c\,x_0+E(\mu+U_1^{\top}x_1) runs the frozen encoder E on the retained image and adds the reserved coordinates with a fixed gain c. The decoder keeps the retained coordinates of D(z) and solves for the reserved ones, so the encoder maps its output straight back to z. Blue blocks are pretrained.
Diagram of adaptive latent back-projection

Latent back‑projection. After each turn, the change d=z_{\text{edit}}-z_{\text{prev}} is moved to a two‑level Haar basis W. Coefficients whose change is below a calibrated threshold return to their input values; all others stay edited:

Thresholds combine a per‑turn noise estimate from the finest diagonal band with a band profile measured once per editor on no‑op chains.

BibTeX

@misc{dejavae,
  title  = {D{\'e}j{\`a}-VAE: Training-Free Consistent Editing with
            Pseudo-Invertible Encoders and Latent Back-Projection},
  author = {Libman, Ron and Ehrlich, Yamit and Fried, Ohad and Shocher, Assaf},
  year   = {2026}
}