Manuscript Offprint

arXiv:2610.33540

Patch-Derived or Register Tokens? Comparing Variable-Length Image Tokenizers

Philipp Schenkel, Tobias Schürmann, Omer Sahin Tas

Philipp Schenkel 1^{1} ID^{ID}, Tobias Schürmann 1^{1} ID^{ID}, and Ömer Şahin Taş 1,2^{1,2} ID^{ID}

1^{1} FZI Research Center for Information Technology

2^{2} Karlsruhe Institute of Technology

Register tokens

Patch-derived tokens

Figure

32 tokens

64 tokens

96 tokens

128 tokens

160 tokens

192 tokens

224 tokens

256 tokens

Original

Variable-length 1D tokenization

Fig. 1: Qualitative reconstructions from two trained image tokenizers: one using patch-derived tokens and the other using register tokens. Both models progressively recover finer visual details as more tokens become available, while organizing information differently across the latent sequence.

Abstract. Image tokenizers convert pixels into compact latent sequences for efficient generative modeling. Most approaches arrange latents on a downsampled two-dimensional grid, tying sequence length to image resolution. We compare two variable-length strategies: computationally efficient patch-derived tokens, which inherit explicit spatial organization, and more demanding register tokens, which have no predefined spatial layout. Our reconstruction results reveal that patch-derived tokens perform substantially better under extreme compression, whereas register tokens achieve slightly better reconstruction quality at intermediate budgets. At high token budgets, both approaches achieve similar reconstruction quality. For downstream generative tasks, register tokens outperform patch-derived tokens. Adding representation alignment with external pretrained visual encoders substantially improves the generative performance of patch-derived tokens, allowing them to match or outperform register tokens depending on the token budget. We further find that both approaches learn spatially localized representations. Patch-derived tokens largely retain their explicitly imposed spatial organization, while register tokens develop an implicit two-dimensional spatial structure despite having no predefined layout. Representation alignment reduces this spatial organizational constraint, enabling individual tokens to exert a stronger non-local influence.

Keywords: Image tokenization · Variable-length representations · Generative models

P. Schenkel et al.

1 Introduction

Image tokenization plays a crucial role in reducing the computational costs of subsequent generative models [3, 20, 22]. An image tokenizer [16] encodes an image into a compact latent token representation. Most tokenizers preserve the spatial structure of the image by arranging the tokens on a downsampled grid, with each token corresponding to a fixed image region [6, 14]. Consequently, the number of tokens grows with the image resolution, resulting in prohibitively long sequences in the case of high-resolution image generation, video generation, and world modeling.

Recent work such as TiTok [30] has challenged these grid-structured latent representations by encoding images into sequences whose length is not determined by the number of input patches. This decoupling enables substantially shorter representations while maintaining high reconstruction fidelity and supporting competitive generative modeling. A common approach introduces K learned tokens, also called register tokens, concatenates them with the P image-patch embeddings, and jointly processes the resulting P+KP + K tokens in the encoder. The updated K register tokens are retained as the image representation and passed to the decoder, while the patch tokens are discarded. Although effective, this design increases the model's sequence length from PP to P+KP + K, adding computational overhead.

Flexible-length tokenizers extend this idea [1,15] by enabling a single model to operate under different token budgets. A commonly used approach is nested dropout [19], in which the latent sequence is randomly truncated during training. The decoder must therefore reconstruct images from sequences of varying lengths, allowing the tokenizer to support multiple representation sizes at inference time.

An alternative design, which we refer to as patch-derived tokens, avoids register tokens altogether and derives its latent tokens from spatially arranged encoder features. These range from directly retaining or transforming patch tokens to initializing a shorter query sequence through spatial pooling of the encoder feature map [8, 27, 28]. Nested dropout [19] can be applied to the resulting encoder sequence to obtain ordered representations of varying lengths.

Although both bottlenecks have been analyzed in prior work, they have been evaluated under different model architectures, training objectives, quantization schemes, token budgets, and downstream generative models. These differences make it difficult to determine which observed effects can be attributed specifically to the bottleneck design. We address this gap by isolating the bottleneck design and systematically evaluating its effects on reconstruction quality, generation quality, computational cost, and the spatial organization of the resulting representations. Specifically, our contributions are as follows:

– We present, to our knowledge, the first controlled comparison of patch-derived and register bottlenecks for flexible-length image tokenization utilizing the same backbone, quantizer, objective and training regime. This allows us to isolate a design choice that is otherwise confounded by differences in model architecture and training setup.

– We characterize the trade-offs among reconstruction quality, generation quality, and computational cost across a range of token budgets.

– We analyze the spatial influence of individual latent tokens and identify consistent spatial organization in both designs. Learned token representations include a subset of spatially diffuse tokens, whereas patch-derived representations exhibit substantially stronger spatial locality.

References (31)