cs.CVNov 22, 2026

PrimiTok: Learning to Diversify and Allocate Primitives for Visual Tokenization

Authors: Yizhu Chen, Chen Ju, Donghao Zhou, Ziyu Guo, Shuai Xiao, Jinsong Lan, Xiaoyong Zhu, Ying Chen, 

Organizations: Peking University · Alibaba Group · The Chinese University of Hong Kong

Abstract

Unifying visual understanding and generation requires representations that preserve both semantic information and fine-grained image details. Continuous tokenizers trained primarily for semantic alignment may omit fine-grained reconstruction details, whereas discrete tokenizers face information loss from codebook quantization. Conventional multi-codebook designs assign every token the same number of codewords regardless of local content. We instead view codewords as reusable visual primitives whose allocation and composition adapt to each token. We introduce PrimiTok, a compositional visual tokenizer that represents each visual token through adaptive allocation and weighted composition of learned codebook primitives. PrimiTok integrates two complementary components: Diverse Quantitative Primitives (DQP), which encourages diversity among sub-codebook centroids to reduce redundancy, and a Dynamic Primitive Allocator (DPA), which selects primitives according to token complexity. Embedding quantization error supervises how many primitives are selected from each sub-codebook, and DPA aggregates them with input-dependent weights. Joint reconstruction and image--text contrastive learning encourage the resulting representations to retain visual fidelity and semantic alignment. Experiments demonstrate improved reconstruction and semantic alignment over SOTA baselines, with further evaluations on multimodal understanding and visual generation.

Figures & tables

Explore similar work

CardsList
  1. WinTok: A Win-Win Hybrid Tokenizer via Decomposing Visual Understanding and Generation with Transferable Tokens

    May 18, 2026Yiwei Guo, Shaobin Zhuang, Zhipeng Huang +4Image TokenizationUnified Multimodal Models

  2. MixTok: Adaptive Visual Tokenization with Global 1D Tokens and Sparse 2D Refinement

    Oct 9, 2026Chenge Li, Yefei He, Xinyu Liu +3Visual TokenizationVisual Token Compression

  3. MoETok: Sparse Expert Routing for 1D Visual Tokenizers

    Oct 30, 2026Jiahao Guo, Bao Tang, Haoxiang Cao +6Visual TokenizationDiscrete Visual Tokenization