On the Role of Discrete Tokenization in Visual Representation Learning
Tianqi Du, Yifei Wang, Yisen Wang
TL;DR
The paper addresses how discrete tokenization in masked image modeling (MIM) shapes representation learning and downstream generalization. It develops a graph-based theory showing that tokenization induces equivalence classes in the target space and reshapes the augmentation graph connectivity, influencing generalization bounds. It introduces Token-Class Alignment Similarity (TCAS) as a training-free tokenizer-quality metric and ClusterMIM as a clustering-based tokenizer that yields strong empirical gains on ImageNet-100/1K across ViT backbones. The work argues that tokenizers aligned with true data classes improve intra-class connectivity and reduce inter-class confusion, providing a practical pathway to improved MIM-based representations without supervision.
Abstract
In the realm of self-supervised learning (SSL), masked image modeling (MIM) has gained popularity alongside contrastive learning methods. MIM involves reconstructing masked regions of input images using their unmasked portions. A notable subset of MIM methodologies employs discrete tokens as the reconstruction target, but the theoretical underpinnings of this choice remain underexplored. In this paper, we explore the role of these discrete tokens, aiming to unravel their benefits and limitations. Building upon the connection between MIM and contrastive learning, we provide a comprehensive theoretical understanding on how discrete tokenization affects the model's generalization capabilities. Furthermore, we propose a novel metric named TCAS, which is specifically designed to assess the effectiveness of discrete tokens within the MIM framework. Inspired by this metric, we contribute an innovative tokenizer design and propose a corresponding MIM method named ClusterMIM. It demonstrates superior performance on a variety of benchmark datasets and ViT backbones. Code is available at https://github.com/PKU-ML/ClusterMIM.
