Manuscript Offprint

arXiv:2609.11516

LoopVAE: Recurrent Depth Across Scales for Visual Tokenization

Zhiying Lu

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

Abstract

Hierarchical visual tokenizers typically allocate different processing blocks to different spatial scales. We ask how much of this computation can use the same parameters. LoopVAE reuses a scale- and loop-conditioned core within and across scales, while keeping resolution-changing transitions independent. A four-block core executes 28 block applications per encoder or decoder. On ImageNet-256, the 29M-parameter convolutional model reaches 0.28 rFID and 32.54 dB PSNR under an approximately 30-epoch two-stage training budget, using approximately 65% fewer parameters than the 84M reference VAEs. A non-adversarial Transformer ablation with the same execution graph finds competitive PSNR and SSIM under global sharing, although unshared blocks improve LPIPS. Targeted loop interventions show that completing the trained recurrence improves reconstruction and that even small feature updates can have substantial downstream effects. Truncation also exposes output-range errors, distinguishing useful recurrent computation from reliable early exit. Runtime profiling reveals the execution tradeoff: fewer stored weights require more arithmetic and longer runtime in the tested configurations. With convolutional and Transformer operators and single- or multi-resolution latent interfaces, LoopVAE establishes recurrent depth across scales as a parameter-sharing design axis for visual tokenization.

1 Introduction

Latent diffusion separates image generation into a visual tokenizer and a generative model over its latent representation [20, 21]. The tokenizer determines what information survives compression and how much spatial computation the generator receives. Recent work improves this interface through stronger compression [3], Transformer scaling [13], semantic supervision [2, 27, 31], and alternative reconstruction objectives [4]. We study a complementary question: how should a hierarchical tokenizer allocate its processing parameters across depth and spatial scales?

In conventional hierarchical autoencoders, changing resolution also changes the stack of blocks that processes the features. This couples tensor geometry to parameter identity. Recurrent-depth models separate executed depth from stored depth by repeatedly applying a shared core [5, 10]. Extending that principle across a visual hierarchy requires a shared update rule to operate on several feature resolutions, with separate transitions handling changes in geometry.

(a) Conventional multi-stage VAE

Figure

Each stage has independent parameters; encoder and decoder are separate.

(b) Scale-shared VAE: one pass per scale

Figure

Conceptual reference, not an evaluated ablation.

(c) LoopVAE-Single: recurrent shared processing

Figure

Figure 1 From stage-specific processing to LoopVAE-Single. (a) Conventional stages own independent parameters. (b) A conceptual scale-shared reference uses one pass per scale; it is not an evaluated baseline. (c) LoopVAE-Single reuses a four-block stack with pass counts [1, 2, 4] in each branch's traversal order. Encoder FθF_{\theta} and decoder FψF_{\psi} have separate weights, each shared across its own scales and loops. The stem, transitions, and output head remain scale specific; posterior heads and latent input projections are omitted for clarity. Image icons are schematic, not measured reconstructions.

We introduce LoopVAE, an autoencoder organized around recurrent depth across scales. Its encoder and decoder each own a small core reused at every spatial scale and loop step. Learned scale and loop embeddings condition residual updates, while a gated input-injection path supplies the feature that entered the current scale. Downsampling, upsampling, and interface projections retain independent parameters. Thus sharing applies to the fixed-resolution processing core, not to every component of the tokenizer. A four-block core with schedule [1, 2, 4] executes 28 block applications per branch while storing only four core blocks.

This design raises three empirical questions. Can global sharing retain reconstruction quality? A 400k non-adversarial Transformer comparison holds the execution graph fixed while varying the number of stored core blocks from four to 12 or 28. Global sharing gives the highest PSNR and SSIM; fully unshared processing gives the lowest LPIPS. Separately, the final 29M-parameter CNN reaches 0.28 rFID and 32.54 dB PSNR on ImageNet-256 under an approximately 30-epoch two-stage training budget. These results motivate parameter sharing without implying that it improves every quality criterion.

Does the trained recurrent depth remain necessary? We examine a trained CNN through stage truncation and single-pass bypass interventions. Completing the trained schedule consistently improves reconstruction in the tested cases, and small relative feature changes can still have a substantial effect on the final output. At the same time, raw-output errors under truncation show that the recurrent trajectory is not automatically an anytime decoder. These complementary observations motivate studying both the utility of repeated computation and the calibration of intermediate states.

What is the execution cost of parameter reuse? Runtime profiling shows that the 8x looped CNN stores 65.3% fewer parameters than a local Flux-style reference, but uses 1.57×1.57\times its estimated MACs and 2.85×2.85\times its batch latency. Reusing weights does not remove repeated high-resolution computation. This distinction between parameter economy and execution efficiency is central to interpreting the method.

Our contributions are: (i) a scale- and loop-conditioned autoencoder that separates shared processing from resolution transitions; (ii) evidence on sharing scope, depth sensitivity, and execution cost, including a trace-based analysis of small but consequential updates; and (iii) CNN and Transformer instantiations with standard single-resolution or selectable multi-resolution latent interfaces. Multi-resolution reconstruction and downstream diffusion demonstrate uses of these interfaces. Together, the results characterize where recurrent parameter sharing works, what its trained passes contribute, and which costs it leaves intact.

References (29)