Summary
This paper proposes a visual tokenizer based on a Vision Transformer and Binary Spherical Quantization (BSQ).
The Transformer-based encoder-decoder leverages a block-wise causal mask and uses only visual tokens from the current or past timestamps for reconstruction.
BSQ first projects the high-dimensional visual embedding of the encoder to a lower-dimensional hypersphere and then applies binary quantization.
The transformer encoder, decoder, and BSQ are seamlessly integrated into the VQ-GAN framework and trained end-to-end.
The proposed visual tokenizer has several advantages in trading off visual reconstruction quality and computational efficiency and supporting variable-length input. Experiments on visual reconstruction and compression are conducted to verify the performance.
Strengths
Visual tokenizers are critical for visual modeling. The proposed Binary Spherical Quantization (BSQ) for unified image and video tokenization is novel and important.
Theoretical contribution is good. It is proved that the proposed BSQ has bounded quantization error.
The manuscript is well written. BSQ is well placed agains previous VQ and LFQ.
Extensive experiments on visual reconstruction, compression and generation show the better performance of BSQ.
Weaknesses
My major concern is the fair comparison with VQ and LFQ. Though the ablation study is provided in tab 5 with image reconstruction task on imagenet-1k, the resolution is only 128, and more tasks should be tested:
It seems to me the results on image is not as obvious as video. For example, in image reconstruction (tab 1), the proposed method has best image quality, but the parameter number is also larger. It is better to add Ours-VQ for better comparison, as done in tab 2 for video reconstruction.
In image compression, no VQ or LFQ based method is compared.
For image generation in tab 3, more steps are used for BSQ, what if we use the same steps as VQ and LFQ?
In L389, we get a direct comparison between VQ and BSQ, BSQ has more bits (18 vs 14) and the video quality is only comparable with VQ.
Minor
The derivation for eq. 13 is not given. Please provide a proof or give a reference here.
There exist some typos in the derivations.
In Line 878, the p shuld be Q.
In line 886, the p should be q^hat.
Questions
My major concerns in the weakness part can be summarized as the direct comparison between BSQ, VQ and LFQ on representative image and video tasks are not adequate. As a general tokenizer for image and video, it is important to make direct comparisons with strictly controlled variables.