Wavelet-Based Image Tokenizer for Vision Transformers

Zhenhai Zhu, Radu Soricut
5/28/2024
cs.CV

No confident code implementation found for this paper.

Abstract

Non-overlapping patch-wise convolution is the default image tokenizer for all state-of-the-art vision Transformer (ViT) models. Even though many ViT variants have been proposed to improve its efficiency and accuracy, little research on improving the image tokenizer itself has been reported in the literature. In this paper, we propose a new image tokenizer based on wavelet transformation. We show that ViT models with the new tokenizer achieve both higher training throughput and better top-1 precision for the ImageNet validation set. We present a theoretical analysis on why the proposed tokenizer improves the training throughput without any change to ViT model architecture. Our analysis suggests that the new tokenizer can effectively handle high-resolution images and is naturally resistant to adversarial attack. Furthermore, the proposed image tokenizer offers a fresh perspective on important new research directions for ViT-based model design, such as image tokens on a non-uniform grid for image understanding.

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{zhu2024waveletbased,
  title  = {Wavelet-Based Image Tokenizer for Vision Transformers},
  author = {Zhenhai Zhu and Radu Soricut},
  year   = {2024},
  eprint = {2405.18616},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.18616v1}
}

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/2405.18616.svg)](https://codeofpaper.com/paper/2405.18616)

Discussion