Manuscript Offprint

arXiv:2609.31620

FuseReg: Regularizing Layer Fusion Mitigates the Reconstruction-Generation Gap in Representation Autoencoders

Hongyang Du, Yunfei Xie, Junjie Ye, Jiawei Yang, Xiaoyan Cong, Haodong Zhang, Yongchao Huang, Haiyu Wu, Zongxia Li, Shihang Gui, Dawei Liu, Runhao Li, Jingcheng Ni, Chen Wei, Randall Balestriero, Yue Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Representation autoencoders (RAEs) reuse features from a pretrained visual encoder as reconstruction and diffusion latents, integrating strong visual representations into image generation. However, RAEs still need to decide which encoder layers form the shared latent space for the generator and pixel decoder. This choice involves a trade-off. Shallower layers tend to preserve fine pixel details better, while deeper layers tend to yield better generation metrics. A fixed heuristic layer fusion therefore couples two stages that benefit from different information. We introduce FuseReg, which replaces heuristic feature selection with training over random subsets of encoder layers. We theoretically analyze the underlying mechanism: subset sampling explicitly penalizes sensitivity to cross-layer disagreement. On ImageNet-256 with DINov3-L, a single FuseReg decoder reconstructs from full, sparse, and single-layer fusions without retraining, achieving higher PSNR than decoders specialized to fixed fusions. This flexibility also benefits generation: decoder replacement alone reduces unguided gFID by 27% with an unchanged RAEv2 DiT-XL generator. The same regularization principle extends to diffusion training, with joint regularization of both stages reducing unguided gFID by 29% on DiT-Base. These results show that training downstream models for layer-fusion robustness narrows the reconstruction–generation gap without modifying the pretrained encoder.

1 INTRODUCTION

Representation autoencoders (RAEs) use a frozen visual encoder to define the latent space of a diffusion model and learn a decoder that maps the encoder's features back to pixels (Zheng et al., 2025). A visual encoder, however, produces a hierarchy of features whose content changes with depth, leaving the RAE to decide how those layers become a single latent. Layer fusion defines the interface between the generator, which models the latent distribution, and the decoder, which turns generated latents into images. A decoder tied to one fusion can therefore limit the quality and flexibility of the entire pipeline.

Figure

Figure 1: A learnable gate collapses onto a shallow layer. Per-layer gate weights over training for a softmax gate on DINov3 layers. The shallowest layer grows to dominate while deeper layers decay to 0; the collapse accelerates once the GAN is on.

Figure

Figure 2: Cosine-similarity maps of decoder intermediate-block features under different layer fusions. For three query patches (stars), we visualize patch-wise cosine similarity at a decoder intermediate block, for FuseReg (top) and RAEv2 (bottom), fed three fusions: K=23K=23, K=7K=7, and the single layer ℓ11\ell_{11}; the rightmost column is the reconstruction. FuseReg keeps clean, stable spatial structure across all fusions, whereas RAEv2 degrades away from its K=23K=23 training fusion.

RAEv2 commits to a fixed heuristic layer fusion by summing the last k encoder layers (Singh et al., 2026). In the DINOv3-L setting (Siméoni et al., 2025), expanding the fused subset from k=7 to k=23 increases reconstruction PSNR from 22.58 to 27.04 dB but also increases unguided gFID from 1.65 to 3.01 and guided gFID from 1.06 to 1.25. The fusion that best preserves pixel quality is therefore not the one that is easiest to model generatively. Adding shallow, pixel-aligned layers supplies details that directly help reconstruction losses such as ℓ2\ell_{2} and LPIPS (Zhang et al., 2018); the subset restricted to deeper, more semantic layers yields lower reported gFID in this setting. A single fixed subset binds the decoder and generator to the same choice even though they solve different prediction problems. The reconstruction objective favors the shallowest layers and ignores deep layers (Figure 1), whereas diffusion favors the deepest layers. This difference in latent preference is the reconstruction–generation gap that we address.

We address this mismatch with FuseReg (layer-fusion regularization), which trains the decoder and generator on varying combinations of encoder layers. During training, we randomly select a subset of layers to form the latent. Learning to reconstruct the pixels from different layer combinations encourages the decoder to use information across layers and reduces its reliance on shallow-layer shortcuts. The resulting decoder supports any full, sparse, and single-layer fusions without retraining for each configuration (Figure 2). We extend the same principle to the generator: the DiT receives noisy subset fusions and learns to predict the full-layer representation. By regularizing layer reliance at both stages, FuseReg mitigates the reconstruction–generation gap without additional computational cost or architectural changes.

References (39)