arXiv:2610.41992cs.CVOct 2026

Manuscript Offprint

arXiv:2610.41992

MoETok: Sparse Expert Routing for 1D Visual Tokenizers

Jiahao Guo, Bao Tang, Haoxiang Cao, Jingfeng Yao, Bo Li, Wenyu Liu, Kun Gai, Changqian Yu, Xinggang Wang

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

ABSTRACT

Modern visual tokenizers aim to preserve fine-grained visual details while learning high-level semantic representations for downstream generation and understanding. Query-based 1D visual tokenizers encode images into flexible latent sequences, yet how individual learnable queries gather and encode image information remains poorly understood. We reveal that these queries spontaneously develop complementary roles under semantic supervision: a small set of Content queries captures high-level semantic information, while a larger set of Detail queries preserves fine-grained visual details for reconstruction. To adapt token processing to these heterogeneous roles, we introduce MoETok, a 1D visual tokenizer that routes tokens through sparsely activated experts. Jointly optimized with reconstruction and semantic objectives, the router learns role-specialized processing paths adapted to each token's representation. Across model scales and token budgets, MoETok consistently improves reconstruction, semantic representation, and autoregressive generation over dense tokenizers under matched supervision and active computation. On ImageNet, it combines strong reconstruction and semantic representation with state-of-the-art class-conditional generation within the 1D tokenizer family. We further validate MoETok at scale in a unified autoregressive model jointly trained for understanding and generation with a next-token cross-entropy objective. The resulting model combines competitive visual understanding with state-of-the-art generation among unified discrete models, matching or surpassing diffusion-based models such as BAGEL and Qwen-Image on benchmarks including DPG-Bench (87.61), GenEval2 (40.04 GM), and WISE (0.49).

1 INTRODUCTION

Modern visual tokenizers aim to preserve fine-grained visual details while learning high-level semantic representations for downstream generation and understanding. Early tokenizers were primarily trained for image reconstruction (van den Oord et al., 2017; Esser et al., 2021), while recent methods introduce semantic supervision to improve the learned latent space and support both generation and understanding (Yao et al., 2025; Chen et al., 2025a; Ma et al., 2025; Zhao et al., 2025; Yao et al., 2026). TiTok (Yu et al., 2024) introduced 1D visual tokenization, using learnable queries to encode an image into a latent sequence. Subsequent methods extend this formulation through diverse forms of semantic supervision and demonstrate improved representation quality and scaling behavior (Xiong et al., 2025; Beyer et al., 2025; Wen et al., 2025; Jia et al., 2025). These advances are largely evaluated through the performance of the complete token sequence, leaving a fundamental question: how do individual learnable queries gather and encode image information?

We investigate this question through encoder attention analysis (Doshi et al., 2026) and per-query linear probe evaluation (Beyer et al., 2025). Across 1D tokenizers with diverse architectures and training objectives, semantic supervision promotes spontaneous query-role differentiation: a small

§^{§}Work done during internship at KlingAI Research.

†^{\dagger}Corresponding author: X. Wang (xgwang@hust.edu.cn). ‡^{\ddagger}Project leader: C. Yu (y-changqian@outlook.com). Project page: https://gjhhust.github.io/moetok-project.

subset of queries adapts its attention to image content and contributes strongly to classification, while most queries attend to stable spatial regions. Reconstruction and subset interventions further establish their functional significance: the small Content subset retains high-level semantic information, whereas Detail queries preserve fine-grained visual details for faithful reconstruction. Together, these analyses reveal complementary query roles within the 1D bottleneck.

These findings motivate allocating parameter capacity according to the different information roles of visual tokens. Sparse expert routing provides token-dependent access to a larger parameter pool while activating only a subset for each token. We investigate this design in 1D tokenizers under a fixed token budget and comparable active computation.

Specifically, we introduce MoETok, a 1D visual tokenizer with sparse expert routing. MoETok retains shared self-attention and replaces each dense encoder feed-forward network (FFN) with a pool of experts. A learned router selects a small subset of experts for each visual token based on its current representation. Trained jointly with reconstruction and semantic objectives, the router learns expert preferences for different token roles without explicit role labels. The resulting role-specialized processing paths allow MoETok to adapt how visual information is processed as the 1D bottleneck forms.

We evaluate MoETok through controlled comparisons, ImageNet benchmarks, and large-scale multimodal modeling. Across Small, Base, and Large architectures and both 64- and 256-token bottlenecks, MoETok consistently improves reconstruction, semantic representation, and autoregressive generation over dense tokenizers. On ImageNet, it combines strong reconstruction and semantic representation with state-of-the-art class-conditional generation within the 1D tokenizer family. We further use MoETok in a unified autoregressive model that performs visual understanding and generation through next-token prediction (Wang et al., 2024; Cui et al., 2025). The resulting unified autoregressive model delivers competitive visual understanding and generation performance comparable to or exceeding BAGEL and Qwen-Image across the evaluated benchmarks (Deng et al., 2025; Wu et al., 2025a). These results demonstrate the effectiveness of sparse expert routing for learning visual representations that support both understanding and generation.

Our contributions are summarized as follows:

  • We systematically study how learnable queries gather and encode image information in 1D visual tokenizers. Cross-tokenizer analysis reveals emergent Content and Detail queries, whose complementary roles in semantic representation and fine-grained reconstruction are validated through linear probe evaluation and controlled interventions.
  • We introduce MoETok, a 1D visual tokenizer that learns role-specialized sparse processing paths for heterogeneous visual tokens. It consistently improves reconstruction, semantic representation, and autoregressive generation across model scales and token budgets, achieving state-of-the-art class-conditional generation within the 1D tokenizer family on ImageNet.
  • We further extend MoETok to unified autoregressive modeling, achieving competitive visual understanding and state-of-the-art generation among unified autoregressive models across DPG-Bench, WISE, and GenEval2.

References (86)