RAC: Rectified Flow Auto Coder

Sen Fang, Yalin Feng, Yanxin Zhang, Dimitris N. MetaxasarXiv 2026

TL;DR

This paper introduces RAC (Rectified Flow Auto Coder), a novel generative model that unifies image reconstruction and generation by treating decoding as a continuous, step-by-step refinement process. RAC significantly reduces the performance gap between reconstruction and generation, achieves state-of-the-art results, and is remarkably more computationally efficient than existing methods.

What Problem Does This Paper Address?

Generative models, particularly Variational Autoencoders (VAEs), often suffer from a noticeable discrepancy between the quality of reconstructed images and newly generated ones. This "reconstruction-generation gap" means that while VAEs can faithfully reconstruct input images, their ability to generate novel, high-quality images from learned latent representations is often inferior. The authors hypothesize that this gap stems from how VAEs handle latent variables, potentially missing the nuances of the learned data manifold during generation. Traditional VAEs perform a single-step decoding, which might be too abrupt to accurately capture complex data distributions.

Methods

RAC addresses this by reframing the VAE decoder as a continuous-time process guided by a "velocity field." Instead of a single jump from a latent code to an image, RAC integrates this velocity field over time, allowing for a gradual, step-by-step refinement of the latent representation into a full-resolution image. This process is inspired by Rectified Flow, which models continuous transformations.

Key innovations include:

  • Continuous-Time Decoding: The decoder is modeled as a time-conditioned velocity field that integrates over time steps, enabling a "correctable" and refined decoding path.
  • Bidirectional Inference: The same velocity field model can be used for both encoding and decoding by simply reversing the time direction. This allows for parameter sharing between encoding and decoding, significantly reducing model size (nearly 41% fewer parameters).
  • Unified Training Objective: A joint training objective enforces path consistency (ensuring the decoding path is smooth and correctable), latent alignment (matching the encoded latent to a teacher latent), and reconstruction constraints.
  • State Construction: RAC operates in a full-resolution state space, bridging the gap between compact latent representations and high-resolution images.

Datasets

The paper uses ImageNet 256x256 for training and evaluation. Specific details about the exact splits or subsets used are not explicitly detailed beyond this.

Key Insights and Ideas

  • Decoding as Refinement: The core insight is that treating decoding as an iterative refinement process, rather than a single-step mapping, is crucial for bridging the reconstruction-generation gap. This allows the model to "correct" latent variables along the path.
  • Bidirectionality through Time Reversal: The elegant use of time reversal for bidirectional inference is a key efficiency gain, enabling a single model to perform both encoding and decoding.
  • State Space Regularity: RAC's training objectives lead to a more organized and cleaner latent space, which benefits both reconstruction and generation. This suggests that structured latent representations are fundamental for high-quality generative modeling.
  • Efficiency Gains: The paper demonstrates that a smaller decoder can achieve better or comparable reconstruction quality when using the RAC framework, suggesting that the continuous flow-based decoding alleviates the representational burden on the decoder capacity.

Key Results

  • State-of-the-Art Performance: RAC outperforms existing SOTA VAEs in both reconstruction (rFID) and generation (gFID, sFID, IS, Precision) across various VAE backbones.
  • Computational Efficiency: RAC achieves these results with approximately 70% lower computational cost compared to traditional VAEs.
  • Parameter Efficiency: The bidirectional design reduces parameter count by nearly 41%.
  • Improved Reconstruction: Qualitative results show faithful preservation of fine-grained details and accurate global structure in reconstructed images.
  • Faster Training: RAC achieves stable reconstruction behavior within a modest training budget (e.g., 30k steps for good qualitative results).

Limitations and Future Work

  • Limitations: The paper notes that while RAC significantly reduces the reconstruction-generation gap, it doesn't entirely eliminate it. The authors also mention that the "teacher decoder" applied to the encoded latent might not perfectly match the input image, suggesting room for further improvement.
  • Future Work: The authors suggest that their framework is general and can be applied to various VAE architectures. Future work could explore further optimizing the velocity field prediction and exploring more advanced regularization techniques. The paper also hints at the potential for RAC to be a "plug-in enhancement" for existing latent training pipelines.

Summary updated

BibTeX
@misc{fang2026rac,
  author = {Sen Fang and Yalin Feng and Yanxin Zhang and Dimitris N. Metaxas},
  title = {{RAC: Rectified Flow Auto Coder}},
  year = {2026},
  eprint = {2603.05925},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.05925},
}
Figure