AB
AiBoss
project

VidTok - Microsoft's open-source video word segmenter, supporting both continuous and discrete word segmentation.

VidTok (Video Tokenizer) is an advanced video tokenizer open-sourced by Microsoft. It uses efficient algorithms to convert video content into a series of "video words." It supports both continuous and discrete tokenization, and features flexible compression ratios and diverse processing options...

What is VidTok?

VidTok (Video Tokenizer) is an advanced video tokenizer open-sourced by Microsoft. It uses efficient algorithms to convert video content into a series of "video words." Supporting both continuous and discrete tokenization, it features flexible compression rates and diverse latent spaces, making it suitable for various application scenarios. VidTok employs a hybrid model architecture, combining convolutional layers and upsampling/downsampling modules to reduce computational complexity while maintaining high-quality reconstruction. It introduces finite scalar quantization technology to address the training instability and codebook collapse issues inherent in traditional vector quantization.

VidTok's main functions

  • Video segmentationVidTok can convert raw high-dimensional video data (such as images and video frames) into more compact visual tokens.
  • High-efficiency compressionVidTok works at different compression ratio settings, effectively compressing video data while maintaining video quality.
  • Continuous and Discrete SegmentationVidTok supports both continuous and discrete word segmentation methods to adapt to different models and application needs.
  • Causal and non-causal models supportVidTok supports both causal and non-causal models. Causal models rely solely on historical frames for tokenization, while non-causal models can be based on both historical and future frame information.
  • Diverse tacit space supportVidTok supports latent spaces of different sizes to adapt to different video compression rates and model complexities.
  • High-performance reconstructionVidTok performs exceptionally well across multiple video quality metrics, including PSNR, SSIM, FVD, and LPIPS, delivering high-quality video reconstruction.

VidTok's technical principles

  • Highly efficient hybrid model architecture designVidTok employs a classic 3D encoder-decoder architecture and innovatively combines 3D, 2D, and 1D convolutions to effectively decouple spatial and temporal sampling.
  • Advanced quantification technologyVidTok introduces Finite Scalar Quantization (FSQ), a quantization method that does not require explicit codebook learning, which significantly improves the training stability and reconstruction performance of the model.
  • Enhanced training strategiesVidTok employs a phased training strategy, first pre-training the complete model on low-resolution videos, and then fine-tuning the decoder only on high-resolution videos.

VidTok's project address

VidTok Application Scenarios

  • Video generationVidTok can be used for video generation models, such as Sora and Genie. The model is based on a tokenizer to convert the original high-dimensional video data into compact visual tokens, and then uses these tokens as targets to train the generation model.
  • Efficient Modeling of Video ContentVideo generation and video-based world models are popular research areas in the field of artificial intelligence. VidTok provides an efficient intermediate medium for models to understand the world by efficiently modeling video content.
  • Video data compression and representationBecause video pixel-level representation information is highly redundant, VidTok reduces the computational requirements for model training and inference by efficiently compressing and representing video data.