Subobject-level Image Tokenization

Delong Chen, Samuel Cahyawijaya, Jianfeng Liu, Baoyuan Wang, Pascale Fung

The Problem with Rigid Patches

In Natural Language Processing (NLP), text is tokenized into words or subwords because they carry inherent meaning. However, the dominant paradigm in Computer Vision—popularized by Vision Transformers (ViTs)—is to divide images into a rigid grid of square patches.

This non-adaptive approach creates two major bottlenecks for Vision-Language Models (VLMs):

  1. Polysemanticity: A single square patch often overlaps multiple distinct objects (e.g., a piece of a bird and a piece of the sky). This forces the model to learn complex, mixed representations.
  2. Redundancy: Large, uniform areas like a clear blue sky are unnecessarily split into dozens of identical tokens, wasting computational resources.

While models like the Segment Anything Model (SAM) can identify objects, they are computationally heavy and often leave unsegmented "gaps" between objects. A more efficient, semantically meaningful tokenization method is needed for large-scale training.

The EPOC Solution

To address these limitations, researchers introduce EPOC (Efficient and PanOptiC), a novel image tokenizer designed to be the visual equivalent of subword tokenization. EPOC creates adaptive, semantically "pure" tokens that follow the natural boundaries of objects and subobjects.

The EPOC pipeline consists of two main stages:

  1. Boundary Detection: Instead of relying on complex mask generation, EPOC uses a lightweight SegFormer-b0 (only 3.7M parameters) to predict a pixel-wise boundary probability map.
  2. Watershed Segmentation: This classical algorithm treats the probability map as a topographical surface. It identifies "basins" (areas with low boundary probability) as seed regions and "floods" them until they meet at the boundaries.
The EPOC pipeline uses boundary detection and watershed segmentation to ensure panoptic coverage.

Crucially, the watershed approach ensures panoptic coverage—every single pixel is assigned to a token, leaving no gaps. To handle the resulting arbitrary-shaped tokens, the authors developed a specialized Token Embedding that combines the average visual features of the segment with its spatial metadata (bounding box and a compressed binary mask).

Key Insights: The "Subword" Sweet Spot

Just as subwords offer more flexibility than whole words and more efficiency than characters, "subobjects" (parts of objects) provide an optimal balance for vision models.

  • Monosemanticity: By following natural boundaries, EPOC tokens are much more likely to contain only one semantic concept. This "purity" makes it significantly easier for a downstream LLM to map visual tokens to language.
  • Efficiency via Simplicity: By reframing segmentation as a simple boundary detection task followed by a non-parametric watershed algorithm, EPOC achieves results comparable to the massive 641M-parameter SAM model while being roughly 170x smaller.
  • Robustness to Truncation: Because adaptive tokens can be ordered by size or importance, models can drop the "long tail" of tiny tokens with minimal performance loss—a feat impossible with random patch dropout.

Performance and Results

The researchers evaluated EPOC intrinsically (segment quality) across datasets like COCO and ADE20K, and extrinsically (VLM performance) on benchmarks like ImageNet-1K, ShareGPT4V, and a newly introduced CLEVR-cap dataset.

Extrinsic evaluation shows adaptive tokenizers reaching lower validation perplexity than standard patches.

The results demonstrate clear advantages for subobject tokenization:

  • Lower Perplexity: VLMs using EPOC consistently achieved better understanding (lower perplexity) than patch-based models, often while using significantly fewer tokens.
  • Faster Convergence: Models using adaptive tokens converged faster during training. The "pre-digested" morphological structure makes the learning task easier for the VLM.
  • Speed and Scale: EPOC runs at approximately 17.1 FPS on a V100 GPU with less than 10% GPU utilization, making it highly practical for integration into real-world, large-scale VLM training pipelines.

Limitations and Future Work

While highly effective, EPOC has a few limitations. The underlying SegFormer model operates at 1/4 of the input resolution, meaning extremely fine structures (like individual strands of hair) might not be segmented perfectly. Additionally, by average-pooling features within a segment, the model loses the internal spatial arrangement of pixels within that token.

Despite these constraints, EPOC represents a significant step forward. The authors also note its strong potential for video processing, where the "token explosion" of standard patches is a major bottleneck, and adaptive subobject tokenization could unlock far more efficient video understanding.

Summary updated

BibTeX
@inproceedings{chen2025subobject,
  author = {Delong Chen and Samuel Cahyawijaya and Jianfeng Liu and Baoyuan Wang and Pascale Fung},
  title = {{Subobject-level Image Tokenization}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=imkFoKwFwd},
}
Figure