zhaoyue-zephyrus/bsq-vit

[ICLR 2025] Binary Spherical Quantization + [CVPR 2026] Leech Spherical Quantization

Python

222

9 commits

updated Aug 5, 2026

See the code

README

Non-Parametric Quantization

I wrote a blog about the motivation behind this series of work.

Λ24-SQ-ViT

Spherical Leech Quantization for Visual Tokenization and Generation
Yue Zhao1,2, Hanwen Jiang1,3, Zhenlin Xu4, Chutong Yang1, Ehsan Adeli2, Philipp Krähenbühl1
1UT Austin, 2Stanford University, 3Adobe Research, 4Mistral AI
arxiv | bibtex | Image Generation with Infinity+L24SQ

🍰 BSQ-ViT

You can pronouce BSQ-ViT like "biskvit" (a kind of Russian sponge cake) or simply "biscuit".

Image and Video Tokenization with Binary Spherical Quantization
Yue Zhao1, Yuanjun Xiong2, Philipp Krähenbühl1
1UT Austin, 2Predera
arxiv | bibtex

Installation

  1. Install Miniforge3

  2. Create the environment

mamba env create -f bsqvit-env.yaml
mamba activate bsqvit

Main Results

Image Reconstruction (IN-1K val 256x256)

Use approx. (Eq 8)#bitsPSNRSSIMLPIPSrFIDconfig & ckptmd5sum
SDXL-VAEN/A6425.38.7276.06660.72ExternalN/A
BSQ-ViT1824.79.7319.08361.34UTBox7abf5a
BSQ-ViT (EMA)1824.80.7314.08201.23UTBox7abf5a
BSQ-ViT1825.36.7578.07611.14UTBox8f5422
BSQ-ViT (EMA)1825.80.7680.07291.30UTBox8f5422
BSQ-ViT3627.88.8410.04320.41UTBoxb5ce5f
BSQ-ViT (EMA)3628.14.8448.04000.45UTBoxb5ce5f
L24SQ-ViT (EMA)N/A~17.6Gdrive73ab9e

Video Reconstruction (UCF-101 16x128x128)

#bitsPSNRSSIMLPIPSrFVDconfig & ckpt
MAGVIT-L1022.0.7010.099025N/A
MAGVITv218--.069416.12N/A
MAGVITv2 (deeper)18--.05378.62N/A
BSQ-bcViT1832.08.9421.02448.08TBA
BSQ-bcViT3633.80.9606.01594.10TBA

Image Synthesis (IN-1K 128x128)

FIDISPrecRecpre-computed samplesconfig & ckpt
BigGAN6.02145.80.860.35ExternalExternal
ADM5.9193.30.700.65ExternalExternal
Ours BSQ-ViT + Masked-LM5.44139.60.800.50UTBoxTBA

Video Compression (MCL-JCV 360P)

License

MIT License.

Citing NPQ-ViT

@article{zhao2024lsqvit,
  title={Spherical Leech Quantization for Visual Tokenization and Generation},
  author={Zhao, Yue and Jiang, Hanwen and Xu, Zhenlin and Yang, Chutong and Adeli, Ehsan and Kr{\"a}henb{\"u}hl, Philipp},
  journal={arXiv preprint arXiv:2512.14697},
  year={2025}
}
@article{zhao2024bsqvit,
  title={Image and Video Tokenization with Binary Spherical Quantization},
  author={Zhao, Yue and Xiong, Yuanjun, and Kr{\"a}henb{\"u}hl, Philipp},
  journal={arXiv preprint arXiv:2406.07548},
  year={2024}
}
compression
quantization
vector-quantization
visual-tokenizer

Contributors

zhaoyue-zephyrus/bsq-vit

[ICLR 2025] Binary Spherical Quantization + [CVPR 2026] Leech Spherical Quantization

Python

222

9 commits

updated Aug 5, 2026

See the code

README

Non-Parametric Quantization

I wrote a blog about the motivation behind this series of work.

Λ24-SQ-ViT

Spherical Leech Quantization for Visual Tokenization and Generation
Yue Zhao1,2, Hanwen Jiang1,3, Zhenlin Xu4, Chutong Yang1, Ehsan Adeli2, Philipp Krähenbühl1
1UT Austin, 2Stanford University, 3Adobe Research, 4Mistral AI
arxiv | bibtex | Image Generation with Infinity+L24SQ

🍰 BSQ-ViT

You can pronouce BSQ-ViT like "biskvit" (a kind of Russian sponge cake) or simply "biscuit".

Image and Video Tokenization with Binary Spherical Quantization
Yue Zhao1, Yuanjun Xiong2, Philipp Krähenbühl1
1UT Austin, 2Predera
arxiv | bibtex

Installation

  1. Install Miniforge3

  2. Create the environment

mamba env create -f bsqvit-env.yaml
mamba activate bsqvit

Main Results

Image Reconstruction (IN-1K val 256x256)

Use approx. (Eq 8)#bitsPSNRSSIMLPIPSrFIDconfig & ckptmd5sum
SDXL-VAEN/A6425.38.7276.06660.72ExternalN/A
BSQ-ViT1824.79.7319.08361.34UTBox7abf5a
BSQ-ViT (EMA)1824.80.7314.08201.23UTBox7abf5a
BSQ-ViT1825.36.7578.07611.14UTBox8f5422
BSQ-ViT (EMA)1825.80.7680.07291.30UTBox8f5422
BSQ-ViT3627.88.8410.04320.41UTBoxb5ce5f
BSQ-ViT (EMA)3628.14.8448.04000.45UTBoxb5ce5f
L24SQ-ViT (EMA)N/A~17.6Gdrive73ab9e

Video Reconstruction (UCF-101 16x128x128)

#bitsPSNRSSIMLPIPSrFVDconfig & ckpt
MAGVIT-L1022.0.7010.099025N/A
MAGVITv218--.069416.12N/A
MAGVITv2 (deeper)18--.05378.62N/A
BSQ-bcViT1832.08.9421.02448.08TBA
BSQ-bcViT3633.80.9606.01594.10TBA

Image Synthesis (IN-1K 128x128)

FIDISPrecRecpre-computed samplesconfig & ckpt
BigGAN6.02145.80.860.35ExternalExternal
ADM5.9193.30.700.65ExternalExternal
Ours BSQ-ViT + Masked-LM5.44139.60.800.50UTBoxTBA

Video Compression (MCL-JCV 360P)

License

MIT License.

Citing NPQ-ViT

@article{zhao2024lsqvit,
  title={Spherical Leech Quantization for Visual Tokenization and Generation},
  author={Zhao, Yue and Jiang, Hanwen and Xu, Zhenlin and Yang, Chutong and Adeli, Ehsan and Kr{\"a}henb{\"u}hl, Philipp},
  journal={arXiv preprint arXiv:2512.14697},
  year={2025}
}
@article{zhao2024bsqvit,
  title={Image and Video Tokenization with Binary Spherical Quantization},
  author={Zhao, Yue and Xiong, Yuanjun, and Kr{\"a}henb{\"u}hl, Philipp},
  journal={arXiv preprint arXiv:2406.07548},
  year={2024}
}
compression
quantization
vector-quantization
visual-tokenizer

Contributors

Languages

Python

85.2%

Cuda

10.3%

C++

4.5%