arXiv:2609.37775cs.CVSep 2026

Manuscript Offprint

arXiv:2609.37775

HiRAE: Hierarchical Representation Autoencoding with Residual Budgets

Xuanyu Zhu, Yan Bai, Yang Shi, Yihang Lou, Yuanxing Zhang, Tengfei Liu, Jing Jin, Yuan Zhou

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

Xuanyu Zhu1^{1}, Yan Bai2^{2}, Yang Shi1,♣^{1,♣}, Yihang Lou1^{1}

Yuanxing Zhang1^{1}, Tengfei Liu1^{1}, Jing Jin3^{3}, Yuan Zhou4,†^{4,\dagger}

1^{1}Peking University 2^{2}Agibot Research

3^{3}Tsinghua University 4^{4}IGDL

Figure

(a) Recovered detail

Figure

Input

RAEv2

HiRAE-24

30% lower reconstruction rFID

(b) Reconstruction and generation

Figure 1 Learning full-depth fusion for higher reconstruction fidelity. Top: HiRAE combines bounded residuals from three encoder-depth groups with the deepest-layer anchor. Left: matched input and reconstruction crops; HiRAE-24 reduces rFID by 30% relative to RAEv2. Right: reconstruction and guided generation across systems under their respective reported settings.

Abstract

Pretrained visual representations support image generation, but may not fully preserve the fine-grained details needed for faithful reconstruction. Meanwhile, intermediate encoder layers contain complementary visual details, but learning to fuse them for reconstruction can produce a latent distribution that is difficult to model. Existing fusion methods require empirical tuning of layer selection or staged optimization of fusion and decoding, increasing configuration effort or training complexity. We introduce HiRAE (Hierarchical Representation Autoencoder), which learns a hierarchical fusion framework over the full encoder hierarchy to improve reconstruction fidelity while maintaining compatibility with generative modeling. HiRAE groups encoder layers by depth and learns residual corrections to the deepest representation. Group-wise norm caps bound these corrections relative to the deep anchor, with tighter budgets for shallower groups. Our HiRAE-24 preserves the latent token count and channel dimension. On ImageNet-256, HiRAE-24 reduces reconstruction FID from 0.299 to 0.209 relative to RAEv2 while maintaining competitive guided generation quality. For text-to-image generation, HiRAE-24 improves alignment over RAEv2 on GenEval, DPG-Bench, and GenAI-Bench both before and after supervised fine-tuning. Under the same generator-training and evaluation protocol, post-fine-tuning GenEval increases from 84.86 to 87.70.

♠ Project Leader. † Corresponding Author.

1 Introduction

Pretrained vision encoders provide semantically organized representations for image generation, but their final outputs can omit details needed for faithful reconstruction [20, 22]. Representation Autoencoders (RAE) [27] pair these frozen encoders with learned decoders and train diffusion models in the resulting latent space. Many previous methods rely solely on the highly abstracted semantic features of the final encoder layer, whereas reconstruction depends more on the detailed features retained in intermediate layers [20, 29]. Learning to use this information offers a route to higher reconstruction fidelity while retaining the pretrained encoder as the basis for generation.

Recent tokenizers exploit the visual hierarchy to recover details missing from final-layer representations, through fixed aggregation (RAEv2; 20), learned full-depth fusion (DRoRAE; 29), or queries over intermediate features (DecQ; 22). IDEAL [4] combines selected shallow and deep features before quantization, while LV-RAE [14] supplements semantic features with a separate encoder for low-level detail. DecQ shows that using shallower layers or increasing the number of detail queries can improve reconstruction while worsening generation. For learned fusion, this trade-off raises a further concern: reconstruction-driven training can favor shallow-layer detail without accounting for its effect on generation quality. Existing approaches reconcile reconstruction and generation through predefined layer aggregation, additional detail pathways, or staged adaptation of fusion and decoding. Our seven-layer experiments show that learned fusion improves reconstruction while supporting guided generation, but identifying a suitable layer subset requires repeated training and evaluation. We aim to learn a unified representation for reconstruction and generation through joint training of full-hierarchy fusion and the decoder. How can we learn full-hierarchy fusion that improves reconstruction while maintaining compatibility with generative modeling?

We introduce HiRAE (Hierarchical Representation Autoencoder), a hierarchical fusion framework that integrates representations across encoder depths into a shared latent space for reconstruction and generation. Its main configuration, HiRAE-24, learns spatially varying contributions from all 24 layers of a frozen DINOv3-L encoder, avoiding manual layer-subset selection. Building on DRoRAE's learned residual fusion [29], HiRAE organizes encoder layers into shallow, middle, and deep groups. Each group learns a residual correction to the deepest representation, with a distinct norm budget that increases with depth. These designs allow us to constrain how fusion modifies the deepest representation and jointly train the fusion module and decoder without a separate fusion-only adaptation phase. The fused representation preserves the original latent token count and channel dimension. On ImageNet-256 [5], HiRAE-24 reduces rFID from 0.299 to 0.209, a 30% reduction relative to RAEv2 [20]. On the matched 5,000-image reconstruction subset, it increases PSNR from 22.667 to 26.377 dB and reduces LPIPS [26] from 0.074 to 0.043. After 80 epochs of generator training, guided generation FID decreases from 1.060 to 1.038 (Figure 1). Analysis shows that fusion adds spatial detail while largely preserving class neighborhoods. The learned tokenizer also exhibits lower decoding sensitivity to the tested latent perturbations.

Our contributions are:

• Hierarchical representation autoencoding. We introduce HiRAE, a hierarchical fusion framework with depth-dependent residual budgets. These budgets control intermediate-layer contributions to enrich the deepest representation with complementary visual detail.

  • Higher reconstruction fidelity and improved text-to-image alignment. HiRAE-24 reduces reconstruction FID by 30% relative to RAEv2 with competitive guided ImageNet generation. Under our shared text-to-image protocol, it improves GenEval, DPG-Bench, and GenAI-Bench scores before and after supervised fine-tuning, with a 2.84-point GenEval gain after fine-tuning.

• HiRAE's latent structure and decoding sensitivity. Our analysis shows that hierarchical fusion enriches spatial detail while largely preserving class neighborhoods. The learned tokenizer also exhibits lower decoding sensitivity to the tested latent perturbations.

References (28)