PrimiTok: Learning to Diversify and Allocate Primitives for Visual Tokenization

Yizhu Chen, Chen Ju, Donghao Zhou, Ziyu Guo, Shuai Xiao +4 more
11/22/2026
cs.CVcs.AI

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2026primitok,
  title  = {PrimiTok: Learning to Diversify and Allocate Primitives for Visual Tokenization},
  author = {Yizhu Chen and Chen Ju and Donghao Zhou and Ziyu Guo and Shuai Xiao and Jinsong Lan and Xiaoyong Zhu and Ying Chen and Haodong Li},
  year   = {2026},
  eprint = {2611.29311},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.29311v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.29311.svg)](https://codeofpaper.com/paper/2611.29311)

Discussion