[9mm]assets/logos/plan-logo-full.pdf
PyraTok: Language-Aligned Pyramidal Tokenizer
for Video Understanding and Generation
Abstract
Discrete video VAEs underpin modern text-to-video generation and video understanding systems, yet existing tokenizers typically learn visual codebooks at a single scale with limited vocabularies and shallow language supervision, leading to poor cross-modal alignment and zero-shot transfer. We introduce PyraTok, a language-aligned pyramidal tokenizer that learns semantically structured discrete latents across multiple spatiotemporal resolutions. PyraTok builds on a pretrained video VAE and a novel Language aligned Pyramidal Quantization (LaPQ) module that discretizes encoder features at several depths using a shared large binary codebook, yielding compact yet expressive video token sequences. To tightly couple visual tokens with language, PyraTok jointly optimizes multi-scale text-guided quantization and a global autoregressive objective over the token hierarchy. Across ten benchmarks, PyraTok delivers state-of-the-art (SOTA) video reconstruction, consistently improves text-to-video quality, and sets new SOTA zero-shot performance on video segmentation, temporal action localization, and video understanding, scaling robustly to up to 4K/8K resolutions.
1 Introduction
In recent years, multimodal video generation has gained significant attention [23, 27, 39]. Text-to-video models such as VideoGPT [65], CogVideoX [67], and OmniGen2 [60] are particularly prominent. Most of these models are built on latent diffusion frameworks [4, 8], which generate videos in a compact latent space rather than directly modeling high-dimensional pixel distributions, improving efficiency and reducing computational cost. Variational Autoencoders (VAEs) are central to this setup. In particular, discrete VAEs [52, 10] have proven especially effective, as their learned codebooks quantize the latent space into discrete tokens, enabling scalable and high-quality video synthesis.
Although discrete VAEs offer strong compression and generation capabilities, their codebooks are typically learned solely from visual data [52, 70]. This limits performance on downstream tasks such as text-to-video generation or video understanding, due to the semantic gap between textual input and visual representation. Bridging this gap during downstream training increases convergence time and resource demands. Recent works have integrated text supervision directly within VAE architectures [37, 71, 13, 28, 46].
However, despite these advances, current methods have few major limitations: (1) They largely capture semantics at a single scale, i.e., only after obtaining latent representations from the encoder, which limits their ability to leverage the hierarchical nature of VAEs that model features from low-level spatial details to high-level semantics [51, 45], leaving potential for more fine-grained text-video alignment. (2) They typically employ small codebooks (4K–8K tokens), which are sufficient for basic visual patterns but limit the representational capacity of both visual and textual modalities [70]. These smaller codebooks hinder effective cross-modal alignment and constrain the expressiveness of text-conditioned video generation models. (3) Shallow, single-site text alignment causes semantic drift. Most existing methods inject language either globally through sequence-level contrastive objectives [13, 28] or locally via token-level codebook distillation [71], during codebook learning only. As a result, the learned representations exhibit semantic drift and temporal inconsistency, where local visual tokens fail to remain aligned with global textual intent.
To address the aforementioned limitations, we introduce PyraTok, a video tokenizer that leverages a novel Language aligned Pyramidal Quantization (LaPQ) to hierarchically encode coarse-to-fine video features using an expressive codebook of large vocabulary. To bridge visual and text semantics, we introduce a dual semantic alignment strategy that jointly aligns text and video representations via multi-scale quantization and autoregressive refinement. Empirically, PyraTok achieves SoTA performance across video generation and various video understanding tasks. PyraTok surpasses the best prior VAE baseline by +5.75 mAP on temporal action localization, +2.82 on videoQA, and up to +9.16 on video classification. Notably, PyraTok is the first VAE to reach SoTA zero-shot video semantic segmentation, outperforming zero-shot and unsupervised methods by up to +10 and +7.0 mAP, respectively. Fig. 1 illustrates PyraTok’s interpretable text-guided cross-modal attention.
Contributions: In summary, our contributions are:
- •
We introduce PyraTok, a multi-scale semantically aligned Video VAE that couples spatiotemporal quantization with dual semantic alignment, enabling coarse-to-fine understanding and efficient video generation.
- •
PyraTok leverages LaPQ, a novel language-aligned pyramidal quantization framework, designed to hierarchically encode multi-scale video representations through lateral encoder connections at each stage. Our design enables efficient use of a large 48K token vocabulary, with up to 95% codebook utilization.
- •
We propose a dual semantic alignment strategy that injects text-conditioned priors at every LaPQ level (local alignment) and refines them with an autoregressive objective over the sequence of quantized tokens (global alignment). This jointly enforces token-level grounding and sequence-level (temporal and relational) coherence, preventing semantic drift across scales and time.
- •
We further introduce a hierarchical semantic codebook loss that ties a shared binary codebook to text embeddings and preserves semantic consistency across pyramid levels through stage-wise KL regularization.
PyraTok achieves SoTA reconstruction fidelity and downstream performance across 10 diverse video benchmarks, scaling to 4K and 8K resolutions. For example, PyraTok is, to our knowledge, the first discrete quantized VAE to demonstrate zero-shot text-guided video segmentation, with up to 2 improvement in mAP on OVIS over strong baselines.
2 Related Work
Visual Quantized VAEs for Video. VAEs have become a cornerstone in video generation [23, 27, 41] and downstream tasks such as text-to-video [61, 67, 72] and video understanding [56, 29, 3], enabling efficient sampling and scalable generation by learning compact latent spaces. A key advance is discrete latent VAEs, introduced in VQ-VAE [52]. Unlike continuous VAEs, which map inputs to Gaussian spaces, VQ-VAEs tokenize features into a learnable codebook. This yields structured, non-redundant representations suitable for sequence modeling and scalable training. VQ-GAN [10] adds adversarial training to reduce blur, while ViT-VQGAN [68] replaces CNNs with Vision Transformers [9] for long-range modeling.
These models have been adapted to video through spatiotemporal extensions. VideoGPT [65] introduces a 3D VQ-VAE by replacing 2D CNNs with 3D convolutions to maintain temporal coherence. MAGVITv2 [70, 33] further improves fidelity via Lookup-Free Quantization (LFQ), enabling substantially larger codebooks with efficient training. More recent tokenizers extend this direction. For instance, OmniTokenizer [57] unifies image–video tokenization via a spatial–temporal decoupled design, LARP [55] introduces an autoregressive-friendly latent prior, and 3D-MBQ-VAE [44] improves efficiency and temporal consistency with mobile inverted blocks and full-frame masking. However, these approaches remain limited in capturing fine-grained spatial details because quantization is performed at a fixed spatial scale.
Text Quantization in VAEs. While vanilla VQ-VAEs effectively compress visual information, they inherently lack cross-modal alignment, limiting their applicability to tasks requiring semantic consistency, such as text-to-video generation and VideoQA. Early methods like Frozen [50] attempted alignment using frozen language models but required large paired datasets. To address this, several image generation methods such as TokLIP [28], LG-VQ [13], and TokenFlow [37] have proposed unified quantization strategies that embed visual data into language-informed spaces in VAEs.
Despite significant progress in image generation, only a few methods extend such strategies to video VAEs. For example, VideoVAE+ [63] integrates captions into the quantization stage using frozen BERT embeddings to align spatiotemporal latents with language semantics. SweetTok [46] introduces a motion-aware language codebook with decoupled spatial-temporal tokenization for compact, semantically rich video representations. However, these models typically align semantics at a single resolution, overlooking the hierarchical, coarse-to-fine structure of visual understanding. In contrast, we propose PyraTok, a language-enhanced video VAE for video generation and understanding, that introduces multi-scale semantic alignment within discrete latent spaces, enabling joint reasoning over both global context and fine-grained details.
3 Method
3.1 Problem Definition
Given an input video with frames, spatial resolution, and channels. The goal is to learn a compact latent representation that preserves both spatiotemporal fidelity and semantic correspondence with conditioning text embedding . The input video is masked () and encoded by to produce latent features , where and , , denote compressed temporal and spatial dimensions with compression factor with dimensions. Encoded features are discretized through a text-conditioned quantization process , and the decoder reconstructs the video as . This yields a text-guided video autoencoding objective that learns compact representations for efficient downstream generative modeling.
3.2 PyraTok Architecture
3.2.1 Language-aligned Pyramidal Quantization
Videos exhibit rich structure across multiple spatial and temporal scales, but single-scale quantization methods [52, 10] tend to overfit global patterns or miss fine-grained details. While larger codebooks can improve generation quality [69], they introduce prohibitive memory and compute costs. To address this, we introduce Language-aligned Pyramidal Quantization (LaPQ), a novel framework that discretizes features at multiple encoder depths via lateral connections, capturing global semantics from deeper layers and local details from shallower ones without high-dimensional codebooks.
In addition, LaPQ aligns both the quantization assignments and codewords with text embeddings, ensuring that each discrete token is informative of the associated language description. This language alignment is essential for text-conditioned video generation and zero-shot video understanding, as it produces a discrete video token space that is natively compatible with multimodal models.
Formally, the encoder processes a masked input video through hierarchical stages to extract multi-scale spatiotemporal representations , with , where denotes the feature map at the stage of the encoder, with progressive downsampling along spatial and temporal dimensions. To capture both fine and coarse spatiotemporal details, we quantize in a pyramidal manner across encoder depths. Specifically, at each stage , we introduce a Quantization Block that receives the current encoder feature , the previous quantized representation , and the query text embedding for semantic alignment, producing a new semantically aligned quantized representation at stage :
| (1) |
This hierarchical process enables progressive semantic alignment across stages. Fig. 2 illustrates the whole architecture of PyraTok. The internal architecture of is detailed in the following subsection.
3.2.2 Dual Semantic Alignment
We propose a novel alignment strategy to ensure that quantized video tokens remain both locally faithful to visual structure and globally consistent with textual semantics.
❶ Multi-scale Semantic Alignment in Quantization Blocks (local): In each Quantization Block of LaPQ, semantic discretization is performed at a specific encoder depth by integrating visual and text information, capturing semantics across multiple scales. Given encoder features , we incorporate lateral connections to retain spatial and temporal locality. Semantic context is introduced by attending to the text embedding , extracted from a pretrained VLM, via multi-head self-attention, enabling language-guided modulation of visual features. The attended visual–text features are subsequently fused through projection layers, yielding modality-aligned representations suitable for quantization.
To discretize these representations efficiently, we adopt Lookup-Free Quantization (LFQ) [70], which replaces the conventional learned codebook with compact binary codewords . This eliminates high-dimensional embedding lookups and significantly reduces memory overhead, enabling efficient scaling to a large vocabulary. The binary codebook is shared across all quantization blocks, ensuring consistency across pyramid levels while minimizing parameter growth. The codebook is used only during training to compute alignment losses and guide structure. During inference, quantization operates without lookups, preserving the efficiency of LFQ. To jointly optimize quantization and semantic alignment, we introduce a hierarchical semantic codebook loss:
|
|
(2) |
Here, denotes the stop-gradient operator. The first term encourages vision-commitment by pulling toward the binary code vectors , while entropy regularization sharpens the assignments toward near one-hot distributions. The hierarchical KL term enforces hierarchical consistency across quantization levels. The remaining KL terms introduce semantic structure through text-conditioned alignment of assignments and text–codebook alignment of the LFQ codebook. Together, these terms enable stable multi-scale quantization with strong cross-modal coherence. Fig. 3 illustrates this refinement, with deeper stages producing clearer semantic structure. For example, in the first row, later stages reveal more distinct separation of road lanes, vehicles, and background elements.
❷ Autoregressive Semantic Alignment (global): To enforce global semantic consistency between language and discrete latents, we introduce an autoregressive alignment objective over the quantized token sequence. Given a text query , we obtain its embedding and extract discrete tokens from each quantization block using the shared codebook . Tokens from all levels are concatenated with separator tokens to retain hierarchical structure, and a start-of-image token is prepended after the text. The resulting sequence is fed into the VLM decoder, which autoregressively predicts each visual token conditioned on the text and preceding tokens: . By making visual tokens predictable from the text prefix, this objective encourages the shared codebook to encode globally consistent, language-aligned semantics. The separator tokens retain hierarchical structure while enabling unified sequential modeling, improving both reconstruction quality and latent-space controllability.
| Methods | Params | Latency | WebVid-10M | COCO-Val | ||||
| (ms) | PSNR () | SSIM () | LPIPS () | PSNR () | SSIM () | LPIPS () | ||
| CogVideoX [67] | 288M | 712 | 29.92 | 0.811 | 0.141 | 30.11 | 0.833 | 0.111 |
| 3D-MBQ-VAE [44] | 317M | 650 | 33.00 | 0.848 | 0.092 | 32.11 | 0.858 | 0.108 |
| WAN 2.2 [53] | 222M | 449 | 32.94 | 0.841 | 0.101 | 33.43 | 0.861 | 0.103 |
| OmniTokenizer [57] | 82M | 444 | 32.03 | 0.812 | 0.152 | 32.09 | 0.845 | 0.141 |
| LARP [55] | 183M | 689 | 33.03 | 0.851 | 0.091 | 34.26 | 0.853 | 0.089 |
| TokenFlow [37] | 176M | 600 | 28.21 | 0.799 | 0.189 | 30.11 | 0.811 | 0.177 |
| VideoVae+ [63] | 192M | 555 | 29.17 | 0.812 | 0.201 | 31.45 | 0.832 | 0.162 |
| TexTok [71] | 173M | 661 | 27.42 | 0.831 | 0.222 | 29.29 | 0.841 | 0.181 |
| LG-VQ [13] | 168M | 598 | 30.23 | 0.807 | 0.173 | 31.32 | 0.836 | 0.152 |
| TokLIP [28] | 207M | 604 | 31.28 | 0.837 | 0.152 | 33.42 | 0.849 | 0.105 |
| SweetTok [46] | 128M | 432 | 32.32 | 0.842 | 0.137 | 32.78 | 0.847 | 0.123 |
| PyraTok (Ours) | 192M | 492 | 35.72 | 0.879 | 0.066 | 36.05 | 0.885 | 0.071 |
3.2.3 Pretrained VAE Encoder and LoRA
PyraTok leverages a pretrained video VAE, keeping both encoder and decoder frozen to preserve high-fidelity reconstruction and focus learning on multi-scale semantic alignment. To enable efficient adaptation to high-resolution inputs, we insert LoRA modules [15] into encoder blocks, enabling lightweight feature modulation without modifying pretrained weights. Text-conditioned supervision can cause latent drift from the pretrained visual manifold. To stabilize adaptation, we add a drift-regularization term that anchors adapted features to a frozen large-scale reference encoder : , This stabilizes training by preserving alignment with the original visual prior while allowing semantically guided updates.
3.2.4 Total Objective and Regularization.
PyraTok is trained with a composite loss balancing reconstruction quality, semantic alignment, and quantization consistency , where , , , and coefficients. The reconstruction loss combines pixel-level and perceptual terms, , while enforces multi-scale semantic alignment, ensures that low-rank adapters do not drift using alignment, and promotes autoregressive alignment with the query text.
4 Experiments
We comprehensively evaluate PyraTok on frame reconstruction, text-o-video generation, and a diverse set of multimodal understanding tasks, including zero-shot segmentation, temporal action localization, general video understanding, and text-to-video generation. Evaluations are conducted across 10 real-world benchmarks, such as WebVid-10M [2], YouTube-VIS 2021 [66], MVBench [25], etc.
PyraTok is trained on a large-scale subset of Droplet-10M [73] comprising HD videos, augmented with additional HD samples from OpenVid-1M [35] and ultra-high-resolution (4K/8K) videos with reconstructed captions from UltraVideo [64]. Additional implementation and experimental setup details are provided in the supplementary material.
4.1 Video Generation Tasks
Frame Reconstruction. As shown in Table 1, PyraTok achieves the best frame reconstruction quality on both WebVid-10M [2] and COCO-Val [31], surpassing all prior semantic and non-semantic video VAEs. Compared to SweetTok [46] and TokLIP [28], which also incorporate semantic alignment, PyraTok achieves 10.51% and 14.19% higher PSNR, and 51.62% and 56.57% lower LPIPS, respectively. SweetTok decouples spatial and temporal tokens but processes them independently, hindering global semantic consistency, while TokLIP enriches visual tokens with CLIP-level [38] semantics but lacks temporal modeling. PyraTok overcomes both limitations by combining fine-grained, text-guided quantization at each LaPQ level with a global autoregressive prior that enforces temporal coherence. Furthermore, SoTA non-semantic VAEs such as 3D-MBQ-VAE [44], CogVideoX [67], and LARP [55] are also outperformed, highlighting PyraTok ’s ability to capture text semantics while maintaining high fidelity.
These trends are clearly reflected in the qualitative results. As shown in Fig. 4, PyraTok reconstructs legible text in the street scene, crisp leaf textures in the ramen and plant examples, and fine facial structures on the polar bear, whereas all baselines exhibit noticeable blurring or distortion. The t-SNE visualization in Fig. 5 further reveals that PyraTok’s latent space forms compact, well-separated clusters corresponding to coherent semantic categories, evidencing effective multi-scale semantic organization.
Text-2-Video (T2V) Generation. Table 2 and Fig. 6 show that substituting the native VAEs in MotionAura [44], MAGVITv2 [70, 33], and OmniGenV2 [60] with PyraTok consistently improves perceptual fidelity, texture sharpness, and text–video semantic alignment. Quantitatively, PyraTok reduces FVD by 9–22 points and increases TC by 20–27 points across all backbones. Qualitatively (shown in Fig. 6), PyraTok recovers details such as clearer facial structure, and more coherent structure like robotic hand geometry in the OmniGenV2 example.
4.2 Video Understanding Tasks
Video Segmentation. As shown in Table 3, PyraTok demonstrates strong zero-shot performance on YouTube-VIS 2021 [66] and OVIS [36]. Compared to the zero-shot SoTA OmniTokenizer [28], which lacks explicit text-semantic supervision, PyraTok achieves 68.8% and 30.2% relative improvements in mAP and Jaccard on YouTube-VIS 2021, and remarkable gains of 217.9% and 48.6% on OVIS, respectively. These results underscore the effectiveness of our semantically aligned video representation in enabling robust zero-shot generalization. To the best of our knowledge, PyraTok is the first demonstration of zero-shot video semantic segmentation using a language-aligned discrete VAE.
| Method | Training | YouTube-VIS 2021 | OVIS | ||
| mAP () | Jaccard () | mAP () | Jaccard () | ||
| CLIP-VIS [76] | 44.2 | 76.31 | 18.6 | 60.09 | |
| VideoCutLER [58] | 17.1 | 62.23 | – | – | |
| UVIS [16] | 17.5 | 63.11 | 3.5 | 36.71 | |
| VideoVae+ [63] | 12.33 | 51.21 | 2.8 | 29.91 | |
| LARP [55] | 10.52 | 49.37 | 1.7 | 28.45 | |
| OmniTokenizer [57] | 14.54 | 51.12 | 2.8 | 33.27 | |
| PyraTok (Ours) | 24.54 | 66.56 | 8.9 | 49.44 | |
Compared to unsupervised baselines like VideoCutLER [58] and UVIS [16], which suffer from motion ambiguity and inconsistent grouping, PyraTok’s multi-scale text-conditioned quantization achieves coherent segmentation with enhanced spatial–temporal consistency. Qualitative results in Fig. 7 further validate these findings. PyraTok accurately segments complex multi-object scenes (e.g., players, soccer ball, and field) with precise boundaries and strong semantic correspondence between textual and visual cues.
| Method | Training | VAE | THUMOS14 | ActivityNet v1.3 |
| Avg. mAP () | Avg. mAP () | |||
| STALE [34] | ✗ | 22.2 | 20.5 | |
| DeTAL [26] | ✗ | 24.1 | 22.4 | |
| STOV-TAL [18] | ✗ | 48.8 | 29.6 | |
| STOV-TAL [18] | ✗ | 31.5 | 28.0 | |
| VideoVae+ [63] | ✓ | 23.12 | 21.37 | |
| OmniTokenizer [57] | ✓ | 23.47 | 22.48 | |
| SweetTok [46] | ✓ | 25.32 | 24.53 | |
| LARP [55] | ✓ | 27.42 | 25.53 | |
| PyraTok (Ours) | ✓ | 33.17 | 29.11 |
Video Action Localization. As shown in Table 4, PyraTok achieves the best zero-shot performance on THUMOS14 and ActivityNet, outperforming the previous zero-shot SoTA LARP [55] by +5.75 mAP and +3.58 mAP, respectively. Although LARP and SweetTok [46] incorporate semantics, their alignment remains limited. For instance, SweetTok separates spatial and temporal streams, and LARP lacks explicit text-conditioned supervision. In contrast, PyraTok combines multi-scale text-guided quantization with a global autoregressive prior, enabling fine-grained temporal reasoning and stronger cross-modal consistency.
These advantages are evident in Fig. 8, where PyraTok more accurately localizes the baseball bat swing action than others. This design also allows PyraTok to surpass supervised approaches such as STALE and DeTAL [26], highlighting the strength of semantically aligned discrete latents for action localization.
| Method | VAE | MVBench | Kinetics | ||
| Overall | 400 | 600 | 700 | ||
| InternVL3-78B [75] | ✗ | 79.2 | – | – | – |
| Qwen2.5-72B [1] | ✗ | 71.3 | – | – | – |
| InternVL3-38B [75] | ✗ | 76.0 | – | – | – |
| Qwen2.5VL-7B [1] | ✗ | 67.2 | – | – | – |
| Qwen2.5VL-3B [1] | ✗ | 67.0 | – | – | – |
| InternVL [75] | ✗ | – | 69.1 | 68.9 | 60.6 |
| InternVideo2 [59] | ✗ | – | 73.1 | 72.8 | 64.9 |
| VideoPrism-g [74] | ✗ | – | 76.4 | – | – |
| SigLIP2-g-opt[49] | ✗ | – | 69.8 | 67.0 | 61.8 |
| PEcoreG [5] | ✗ | – | 76.9 | 76.1 | 69.1 |
| VILA-U [62] | ✓ | 81.21 | – | – | – |
| VideoVae+ [63] | ✓ | – | 63.32 | 61.27 | 55.55 |
| OmniTokenizer [57] | ✓ | 79.44 | 65.03 | 62.75 | 58.71 |
| SweetTok [46] | ✓ | – | 67.54 | 65.01 | 61.45 |
| LARP [55] | ✓ | 83.21 | 69.27 | 68.52 | 66.89 |
| PyraTok (Ours) | ✓ | 86.03 | 78.43 | 77.11 | 74.08 |
General Video Understanding and Classification. As shown in Table 5, PyraTok achieves SoTA performance on both the MVBench [25] and Kinetics benchmarks [22]. Specifically, our model attains an overall accuracy of 86.03% across diverse video understanding tasks on MVBench. Furthermore, it demonstrates substantial improvements of 13.22%, 12.54%, and 10.75% over LARP [55] on the Kinetics-400, -600, and -700 benchmarks, respectively. PyraTok surpass prior VAE-based and large-scale non-VAE foundation models, including InternVL3-78B [75], Qwen2.5-VL-7B [1], and VideoPrism-g [74]. This performance gain stems from PyraTok’s multi-scale text-guided quantization, which offers stronger semantic grounding and temporal coherence. By contrast, although SweetTok [46] and LARP [55] incorporate semantic cues, their limited text–video alignment constrains temporal reasoning. Within VAE-based methods, PyraTok further outperforms VILA-U [62], OmniTokenizer [57], and VideoVAE+ [63], demonstrating the effectiveness of language-conditioned quantized representations. The consistent gains across understanding and classification tasks highlight PyraTok’s capability as a unified, semantically grounded video representation model with robust zero-shot generalization.
4.3 Ablations
Fig. 9 and Table 6 present ablations on key PyraTok components, including codebook size, loss configuration, the presence of pyramidal and recurrent quantization modules, the number of quantization blocks, and variations in the multimodal encoder or pretrained video VAE.
Codebook Size. As shown in Fig. 9, increasing codebook size and dimensionality consistently improves reconstruction and perceptual quality. Larger and higher-dimensional codebooks provide a richer latent space, enabling finer feature representation and reducing quantization error. However, performance gains saturate beyond 80K vocab size, suggesting a trade-off between model capacity and efficiency.
Component Ablation. Removing LaPQ leads to the largest degradation across all metrics, highlighting the importance of hierarchical language-aligned quantization. Excluding text guidance noticeably weakens semantic grounding, reducing both fidelity and perceptual quality. Dropping the pyramidal-Q design similarly harms performance, confirming the effectiveness of multi-scale quantization.
Quantization-Blocks. Performance improves consistently as the number of blocks increases, with four blocks yielding the best results. This shows that deeper quantization hierarchies enhance semantic representation and reconstruction fidelity by capturing both coarse and fine visual details.
| COCO-Val | WebVid-10M | |
| PSNR / SSIM / LPIPS | PSNR / SSIM / LPIPS | |
| 1. Component Ablation | ||
| w/o LaPQ | 31.41 / 0.831 / 0.101 | 31.47 / 0.799 / 0.118 |
| w/o Text Guidance | 33.43 / 0.861 / 0.081 | 36.02 / 0.833 / 0.082 |
| w/o Pyramidal-Q | 34.02 / 0.859 / 0.082 | 34.02 / 0.839 / 0.094 |
| 2. Quantization()-Blocks Ablation | ||
| 2 Blocks | 33.21 / 0.821 / 0.092 | 33.98 / 0.844 / 0.101 |
| 3 Blocks | 34.78 / 0.862 / 0.089 | 35.14 / 0.867 / 0.085 |
| 4 Blocks (Default) | 35.72 / 0.879 / 0.066 | 36.05 / 0.885 / 0.071 |
| 3. Loss Function Ablation | ||
| w/o | 33.48 / 0.839 / 0.082 | 34.52 / 0.853 / 0.081 |
| w/o | 33.42 / 0.842 / 0.079 | 34.01 / 0.844 / 0.079 |
| w/o & | 32.17 / 0.832 / 0.093 | 32.32 / 0.831 / 0.092 |
| 4. Codebook Loss Ablation | ||
| w/o | 32.88 / 0.819 / 0.097 | 33.45 / 0.839 / 0.101 |
| w/o | 33.27 / 0.822 / 0.092 | 34.12 / 0.855 / 0.091 |
| w/o | 34.11 / 0.849 / 0.087 | 34.78 / 0.872 / 0.083 |
| 5. Multi-Modal Models | ||
| Qwen-2.5 VL [1] (Default) | 35.72 / 0.879 / 0.066 | 36.05 / 0.885 / 0.071 |
| LLaMA-3 8B [12] | 35.62 / 0.871 / 0.069 | 35.34 / 0.878 / 0.079 |
| Gemma-3 4B [47] | 35.29 / 0.865 / 0.069 | 35.92 / 0.882 / 0.078 |
| 6. Pretrained VAEs | ||
| 3D-MBQ-VAE [44] | 35.01 / 0.869 / 0.069 | 35.33 / 0.878 / 0.075 |
| CogVideoX-VAE [67] | 34.92 / 0.861 / 0.069 | 35.12 / 0.873 / 0.080 |
| SVD-VAE [4] | 34.18 / 0.859 / 0.074 | 34.78 / 0.865 / 0.083 |
| Mochi-VAE [48] | 34.95 / 0.864 / 0.071 | 35.06 / 0.873 / 0.076 |
| PyraTok | 36.05 / 0.885 / 0.071 | 35.72 / 0.879 / 0.066 |
Loss Functions. Excluding or weakens semantic coherence and structure preservation, while removing both leads to the largest performance drop. This confirms that feature-level alignment and variance regularization jointly stabilize semantic learning and reconstruction.
Codebook Loss. Without vision-commitment, assignments become unstable, whereas without text-conditioned alignment, semantic guidance weakens. Removing text–codebook alignment disrupts global semantic structure, producing the largest degradation. This demonstrates all three terms are crucial for stable and semantically coherent quantization.
Multimodal Models. Using different vision-language encoders demonstrates the generality of PyraTok. Qwen2.5-VL achieves the best overall performance, while LLaMA-3 and Gemma-3 variants maintain competitive results.
Pretrained VAEs. Substituting the pretrained backbone shows that PyraTok maintains consistent improvements across encoders. The Wan 2.2 VAE [53] (default) delivers the best results, but strong performance with 3DMBQ-VAE, CogVideoX, and Mochi-VAE confirms the robustness and transferability of the proposed semantic quantization design.
5 Conclusion
We introduce PyraTok, a language-aligned pyramidal video tokenizer that performs multi-scale vector quantization with a shared large binary codebook. Our dual semantic alignment couples text-conditioned, per-level quantization with a global autoregressive objective, producing semantically consistent discrete latents. PyraTok delivers state-of-the-art 4K/8K reconstruction and strong zero-shot transfer on video segmentation, temporal action localization, VideoQA, and video classification. Compatibility studies show consistent gains across vision–language encoders and diverse VAE backbones. Ablations confirm the necessity of the pyramidal path and RVQ, the benefit of four quantization blocks, and the contributions of the autoregressive and drift terms, as well as codebook alignment losses. These results establish PyraTok as a practical, general-purpose tokenizer for modern video–language systems.
References
- [1] (2025) Qwen2.5-VL technical report. arXiv:2502.13923. Cited by: §B.2, §B.4, Appendix D, §4.2, Table 5, Table 5, Table 5, Table 6.
- [2] (2021) Frozen in time: a joint video and image encoder for end-to-end retrieval. In International Conference on Computer Vision (ICCV), Cited by: §C.3, §E.2, §4.1, §4.
- [3] (2021) Is space-time attention all you need for video understanding?. In International Conference on Machine Learning (ICML), Cited by: §2.
- [4] (2023) Stable video diffusion: scaling latent video diffusion models to large datasets. arXiv preprint arXiv:2311.15127. Cited by: §1, Table 6.
- [5] (2025) Perception encoder: the best visual embeddings are not at the output of the network. arXiv preprint arXiv:2504.13181. Cited by: Table 5.
- [6] (2021) Overview of the versatile video coding (vvc) standard and its applications. IEEE Transactions on Circuits and Systems for Video Technology (TCSVT). Cited by: Table 7, §C.1.
- [7] (2015) ActivityNet: a large-scale video benchmark for human activity understanding. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: §C.5, §E.2.
- [8] (2023) VideoCrafter1: open diffusion models for high-quality video generation. arXiv preprint arXiv:2310.19512. Cited by: §1.
- [9] (2021) An image is worth 16x16 words: transformers for image recognition at scale. International Conference on Learning Representations (ICLR). Cited by: §2.
- [10] (2021) Taming transformers for high-resolution image synthesis. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: §1, §2, §3.2.1.
- [11] (2022) Long video generation with time-agnostic VQGAN and time-sensitive transformer. In European Conference on Computer Vision (ECCV), Cited by: Table 8.
- [12] (2024) The llama 3 herd of models. arXiv preprint arXiv:2407.21783. Cited by: Table 6.
- [13] (2024) LG-VQ: language-guided codebook learning. Advances in Neural Information Processing Systems (NeurIPS). Cited by: §1, §1, §2, Table 1.
- [14] (2022) Masked autoencoders are scalable vision learners. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: Appendix D.
- [15] (2022) LoRA: low-rank adaptation of large language models.. International Conference on Learning Representations (ICLR). Cited by: Appendix D, §3.2.3.
- [16] (2024) UVIS: unsupervised video instance segmentation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: §4.2, Table 3.
- [17] (2025) Text generation inference documentation. Note: https://huggingface.co/docs/text-generation-inference/en/indexAccessed: 2025-09-15 Cited by: §B.2.
- [18] (2025) Exploring scalability of self-training for open-vocabulary temporal action localization. In IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), Cited by: Table 4, Table 4.
- [19] (2017) The thumos challenge on action recognition for videos “in the wild”. Computer Vision and Image Understanding. Cited by: §C.5, §E.2.
- [20] (2017) Categorical reparametrization with gumble-softmax. In International Conference on Learning Representations (ICLR), Cited by: §C.3, Table 9.
- [21] (2024) Video-LaVIT: unified video-language pre-training with decoupled visual-motional tokenization. In International Conference on Machine Learning (ICML), Cited by: Table 8.
- [22] (2017) The kinetics human action video dataset. arXiv preprint arXiv:1705.06950. Cited by: §E.2, §4.2.
- [23] (2023) VideoPoet: a large language model for zero-shot video generation. International Conference on Machine Learning (ICML). Cited by: §1, §2.
- [24] (2022) Autoregressive image generation using residual quantization. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: §C.3, Table 9, Table 9.
- [25] (2024) MVBench: a comprehensive multi-modal video understanding benchmark. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: §E.2, §4.2, §4.
- [26] (2024) DeTAL: open-vocabulary temporal action localization with decoupled networks. IEEE Trans. Pattern Anal. Mach. Intell. (TPAMI). Cited by: §4.2, Table 4.
- [27] (2024) Open-Sora Plan: open-source large video generation model. arXiv:2412.00131. Cited by: §1, §2.
- [28] (2025) TokLIP: marry visual tokens to clip for multimodal comprehension and generation. arXiv:2505.05422. Cited by: §1, §1, §2, Table 1, §4.1, §4.2.
- [29] (2019) TSM: temporal shift module for efficient video understanding. In International Conference on Computer Vision (ICCV), Cited by: §2.
- [30] (2024) AWQ: activation-aware weight quantization for on-device llm compression and acceleration. Proceedings of Machine Learning and Systems. Cited by: Appendix D.
- [31] (2014) Microsoft COCO: common objects in context. In European Conference on Computer Vision (ECCV), Cited by: §C.3, §E.2, §4.1.
- [32] (2019) Decoupled weight decay regularization. International Conference on Learning Representations (ICLR). Cited by: Appendix D.
- [33] (2024) Open-MAGVIT2: an open-source project toward democratizing auto-regressive visual generation. arXiv preprint arXiv:2409.04410. Cited by: §B.6, §2, §4.1, Table 2.
- [34] (2022) Zero-shot temporal action detection via vision-language prompting. In European Conference on Computer Vision (ECCV), Cited by: Table 4.
- [35] (2025) OpenVid-1m: a large-scale high-quality dataset for text-to-video generation. In International Conference on Learning Representations (ICLR), Cited by: §B.6, §E.1, §E.2, §4.
- [36] (2022) Occluded video instance segmentation: a benchmark. International Journal on Computer Vision (IJCV). Cited by: §E.2, §4.2.
- [37] (2025) TokenFlow: unified image tokenizer for multimodal understanding and generation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: §B.5, §1, §2, Table 1.
- [38] (2021) Learning transferable visual models from natural language supervision. In International Conference on Machine Learning (ICML), Cited by: §4.1.
- [39] (2023) MM-Diffusion: learning multi-modal diffusion models for joint audio and video generation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: §1.
- [40] (2025) DINOv3. arXiv preprint arXiv:2508.10104. Cited by: Appendix D, Appendix D.
- [41] (2023) Make-A-Video: text-to-video generation without text-video data. arXiv:2209.14792. Cited by: §2.
- [42] (2012) UCF101: a dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402. Cited by: §C.2, §E.2.
- [43] (2012) Overview of the high efficiency video coding (HEVC) standard. IEEE Transactions on Circuits and Systems for Video Technology (TCSVT). Cited by: Table 7, §C.1.
- [44] (2025) MotionAura: generating high-quality and motion consistent videos using discrete diffusion. In International Conference on Learning Representations (ICLR), Cited by: Figure 27, Figure 27, §B.5, §B.6, Table 7, §2, Table 1, §4.1, §4.1, Table 2, Table 6.
- [45] (2024) HQ-VAE: hierarchical discrete representation learning with variational bayes. Transactions on Machine Learning Research (TMLR). Cited by: §1.
- [46] (2025) Sweettok: semantic-aware spatial-temporal tokenizer for compact video discretization. In International Conference on Computer Vision (ICCV), Cited by: §B.3, §B.5, Table 8, §1, §2, Table 1, §4.1, §4.2, §4.2, Table 4, Table 5.
- [47] (2025) Gemma 3 technical report. arXiv:2503.19786. Cited by: Table 6.
- [48] (2024) Mochi 1. Note: https://github.com/genmoai/modelsAccessed: 2025-09-15 Cited by: Table 6.
- [49] (2025) SigLIP 2: multilingual vision-language encoders with improved semantic understanding, localization, and dense features. arXiv:2502.14786. Cited by: Table 5.
- [50] (2021) Multimodal few-shot learning with frozen language models. Advances in Neural Information Processing Systems (NeurIPS). Cited by: §2.
- [51] (2020) NVAE: a deep hierarchical variational autoencoder. Advances in Neural Information Processing Systems (NeurIPS). Cited by: §1.
- [52] (2017) Neural discrete representation learning. In Advances in Neural Information Processing Systems (NeurIPS), Cited by: §C.3, Table 9, §1, §1, §2, §3.2.1.
- [53] (2025) Wan: open and advanced large-scale video generative models. arXiv:2503.20314. Cited by: Appendix D, Table 1, §4.3.
- [54] (2016) MCL-JCV: a jnd-based h. 264/avc video quality assessment dataset. In IEEE International Conference on Image Processing (ICIP), Cited by: §C.1, §E.2.
- [55] (2025) LARP: tokenizing videos with a learned autoregressive generative prior. In International Conference on Learning Representations (ICLR), Cited by: §B.1, §B.3, §B.5, Table 8, Table 8, §2, Table 1, §4.1, §4.2, §4.2, Table 3, Table 4, Table 5.
- [56] (2024) OmniViD: a generative framework for universal video understanding. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: §2.
- [57] (2024) OmniTokenizer: a joint image-video tokenizer for visual generation. Advances in Neural Information Processing Systems (NeurIPS). Cited by: §B.1, §B.5, Table 8, §2, Table 1, §4.2, Table 3, Table 4, Table 5.
- [58] (2024) VideoCutLER: surprisingly simple unsupervised video instance segmentation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: §4.2, Table 3.
- [59] (2024) InternVideo2: scaling foundation models for multimodal video understanding. In European Conference on Computer Vision (ECCV), Cited by: Table 5.
- [60] (2025) OmniGen2: exploration to advanced multimodal generation. arXiv:2506.18871. Cited by: Figure 26, Figure 26, §B.6, §1, §4.1, Table 2.
- [61] (2023) Tune-A-Video: one-shot tuning of image diffusion models for text-to-video generation. In International Conference on Computer Vision (ICCV), Cited by: §2.
- [62] (2025) VILA-U: a unified foundation model integrat-ing visual understanding and generation. In International Conference on Learning Representations (ICLR), Cited by: §4.2, Table 5.
- [63] (2024) Large motion video autoencoding with cross-modal video vae. arXiv:2412.17805. Cited by: §B.1, §B.3, §B.5, §2, Table 1, §4.2, Table 3, Table 4, Table 5.
- [64] (2025) UltraVideo: high-quality uhd video dataset with comprehensive captions. arXiv preprint arXiv:2506.13691. Cited by: §E.1, §4.
- [65] (2021) VideoGPT: video generation using vq-vae and transformers. arXiv:2104.10157. Cited by: §1, §2.
- [66] (2021) The 3rd large-scale video object segmentation challenge-video instance segmentation track. In IEEE Conf. on Computer Vision and Pattern Recognition Workshops (CVPRW), Cited by: §E.2, §4.2, §4.
- [67] (2025) CogVideoX: text-to-video diffusion models with an expert transformer. In International Conference on Learning Representations (ICLR), Cited by: Table 8, §1, §2, Table 1, §4.1, Table 6.
- [68] (2022) Vector-quantized image modeling with improved VQGAN. In International Conference on Machine Learning (ICML), Cited by: §2.
- [69] (2023) MAGVIT: masked generative video transformer. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: Table 7, Table 8, Table 8, §3.2.1.
- [70] (2024) Language model beats diffusion–tokenizer is key to visual generation. International Conference on Learning Representations (ICLR). Cited by: Figure 25, Figure 25, §B.6, Table 7, §C.3, Table 8, Table 8, Table 9, §1, §1, §2, §3.2.2, §4.1.
- [71] (2025) Language-guided image tokenization for generation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: §1, §1, Table 1.
- [72] (2025) Show-1: marrying pixel and latent diffusion models for text-to-video generation. International Journal on Computer Vision (IJCV). Cited by: §2.
- [73] (2025) DropletVideo: a dataset and approach to explore integral spatio-temporal consistent video generation. In International Conference on Computer Vision (ICCV), Cited by: §E.1, §4.
- [74] (2024) VideoPrism: a foundational visual encoder for video understanding. In International Conference on Machine Learning (ICML), Cited by: §4.2, Table 5.
- [75] (2025) InternVL3: exploring advanced training and test-time recipes for open-source multimodal models. arXiv preprint arXiv:2504.10479. Cited by: §4.2, Table 5, Table 5, Table 5.
- [76] (2024) CLIP-VIS: adapting clip for open-vocabulary video instance segmentation. IEEE Transactions on Circuits and Systems for Video Technology (TCSVT). Cited by: Table 3.
Appendix A Theoretical Analysis of Language-aligned Pyramidal Quantization
We analyze the behavior of the Language-aligned Pyramidal Quantization (LaPQ) objective and the conditions under which the model avoids posterior collapse. Let denote all trainable parameters. LaPQ is composed of smooth losses (reconstruction, codebook, autoregressive, and drift), each of which is an expectation over the training distribution of video–text pairs , i.e., All LaPQ modules (LoRA layers, AR head, LFQ quantizers, etc.) use differentiable operations, so is a smooth, lower-bounded deep-network objective.
Why LaPQ Mitigates Posterior Collapse. At LaPQ level , let be the (soft) assignment distribution, where are encoder features and is the text embedding extracted from the text . LaPQ at level is collapsed if there exists a fixed distribution s.t. A fully collapsed LaPQ posterior satisfies this for all levels . Assume the following conditions:
- 1.
Data non-degeneracy: The data distribution is non-degenerate, i.e., there exist and s.t. the corresponding optimal reconstruction outputs under reconstruction loss differ.
- 2.
Decoder injectivity: For any two distinct latent code sequences , the decoder produces distinct reconstructions .
- 3.
Model expressiveness: For any measurable mapping , realizable via encoder features and text embedding , there exists a parameter that realizes it to arbitrary precision.
Proposition 1 (Non-optimality of Collapsed LaPQ Posteriors).
Any fully collapsed LaPQ posterior cannot minimize the LaPQ objective.
Proof.
Consider any parameter vector that yields a fully collapsed posterior. Then, by definition, every quantizer output distribution is constant across inputs, hence the decoder input (the discrete code sequence ) is also constant. Hence, all reconstructions are equal to . Then, the reconstruction loss is the expected reconstruction loss under a constant prediction, i.e., . By the non-degeneracy of and standard properties of /SSIM/LPIPS reconstructions, there exists a non-constant mapping that achieves strictly lower expected reconstruction error than any constant prediction. Using the model expressiveness assumption, we can approximate such a mapping with some parameter vector that yields non-collapsed assignments and reconstructions . Therefore We now inspect the remaining terms in the objective.
(i) Hierarchical KL and entropy terms. For a fully collapsed posterior, the hierarchical KL terms vanish only if all levels share exactly the same constant distribution; otherwise, they incur a positive penalty. Moreover, the entropy term is minimized by near one-hot distributions. A fully collapsed solution that is both constant and sharply peaked is incompatible with representing the variability in and induces suboptimal hierarchical penalties.
(ii) Text-conditioned and AR terms. For a collapsed posterior, assignments are independent of the text embedding , i.e., if is constant, it cannot match varying text embeddings. Consequently, the text-conditioned KL terms for and the global text–codebook alignment terms cannot be minimized across distinct texts. Similarly, the autoregressive loss cannot exploit visual or textual information because the discrete tokens do not depend on . By contrast, a non-collapsed posterior can strictly reduce both.
Combining all pieces, since is strictly lower and the remaining terms can be made no worse, and typically strictly better, by making assignments depend on while respecting regularizers. Thus cannot be a global minimizer of .
∎
Proposition 1 states that any fully collapsed LaPQ posterior is suboptimal under the proposed objective, provided natural structural assumptions on the data and model capacity. Therefore, gradient-based training of LaPQ is driven toward stationary points that preserve dependent discrete representations, thereby mitigating posterior collapse and encouraging high-utilization codebooks.
Appendix B Additional Results
B.1 Zero-shot Video Segmentation
Given an input video and a natural language text , we leverage the language-aligned discrete representation produced by PyraTok to obtain zero-shot, text-guided spatio-temporal masks. Specifically, we first pass the video through the frozen PyraTok encoder and its Language-aligned Pyramidal Quantization (LaPQ) hierarchy and extract the quantized features from the last quantization block, denoted by , which capture high-level, text-aligned semantics at a compressed spatio-temporal resolution. We then decompose the input text into a set of semantic units (typically content words or short phrases), , and obtain a language embedding for each unit using the same vision–language model employed during PyraTok training. For every semantic unit , we compute a similarity score between and each token in (e.g., via cosine similarity in the shared embedding space), yielding a token-level relevance map . This relevance map is then upsampled to the original video resolution, following the encoder downsampling pattern (or via decoder-aligned projection), to produce a dense per-pixel score volume for each semantic unit. We treat these volumes as unary potentials in a fully connected 3D Conditional Random Field (CRF) defined over the spatio-temporal lattice , with pairwise terms encouraging spatial smoothness aligned to image edges and temporal consistency across adjacent frames. Running mean-field inference in this 3D-CRF refines the raw scores into a binary segmentation mask that assigns each pixel in each frame to semantic unit . Repeating this procedure iteratively over all semantic units in the prompt yields a set of word-level, zero-shot, text-guided segmentation masks that are both spatially precise and temporally coherent across the video.
We compare our language-guided tokenizer with OmniTokenizer [57], LARP [55], and VideoVAE+ [63], on diverse scenes in Fig. 10 and novel-category examples in Fig. 11. Existing tokenizers often yield coarse, blob-like masks with strong label confusion: OmniTokenizer and LARP tend to over-smooth object boundaries and merge adjacent instances (e.g., bus and road, trees and background), while VideoVAE+ frequently misses thin structures such as bike frames, surfboards, and traffic signs, or hallucinates spurious regions in uniform areas. These methods also struggle with rare or fine-grained concepts, leading to incomplete segmentation of small objects (e.g., cat ears, surfboard tips) and inconsistent labeling across the image. In contrast, PyraTok produces masks that are both sharper and more semantically aligned with the ground truth, accurately separating foreground from background and preserving thin structures. Fig. 11 further demonstrates strong zero-shot generalization: PyraTok cleanly segments unseen categories such as millennium falcon, tordelli, golden retriever, Pikachu, and axolotl, and simultaneously grounds multiple text queries (e.g., “golden retriever / puppy / grass field / vegetation”) in the correct regions, highlighting that our language-aligned tokens carry richer semantic information than prior VAE-based tokenizers.
B.2 Video Question Answering
For all question answering results, we adopt Qwen2.5-VL-3B [1] as the default vision–language (VLM) backbone to generate open-ended answers from our video representations. Given an input clip, we first encode the video with our proposed PyraTok VAE and extract the discrete representations from all quantization blocks. These multi-scale features are projected into the language embedding space and prepended to the question tokens, yielding a unified conditioning sequence for the autoregressive decoder. The Qwen2.5-VL-3B model then performs conditional text generation to produce the final answer. All VQA inferences are executed using the Text Generation Inference (TGI) pipeline from HuggingFace [17], which provides a stable and reproducible deployment for our qualitative analysis.
Furthermore, across Fig. 12 to Fig. 14, we compare PyraTok against Qwen2.5-3B, VideoVAE+, OmniTokenizer, and LARP on diverse video scenarios, including action sequences (helicopter crash, motorcycle chase, aircraft destruction), transformation events (monster emergence, firetruck-to-robot), and emotional interactions (a surprise proposal). The lower-capacity baselines (Qwen2.5-3B and VideoVAE+) often produce vague or partially incorrect explanations, while OmniTokenizer and LARP capture events more reliably but still miss finer details. PyraTok consistently provides the most accurate, complete, and context-aware interpretations across all scenarios, demonstrating stronger temporal reasoning, causal understanding, and fine-grained visual grounding compared to competing models.
B.3 Action Localization
We tackle temporal action localization in long, untrimmed videos by directly operating in the discrete latent space of PyraTok. Given a video of RGB frames and a textual description of the target action, we first encode every frame with our pyramidal tokenizer. Empirically, we observe that offers the best trade-off between semantic expressiveness and temporal resolution: it preserves subtle motion cues (e.g., arm swing before an arrow release, the instant of impact in a punch, see Fig. 15) that are strongly smoothed out in deeper levels. We therefore use as our frame-level features. For each frame , we spatially pool the tokens (mean-pooling over space) to obtain a compact frame descriptor . The textual query is encoded by the same language backbone used for PyraTok’s cross-modal training, producing a normalized embedding . We compute cosine similarity scores for all frames, which yield a dense text–video alignment signal over time.
To robustly localize an action interval, we evaluate similarities in a sliding-window fashion. The video is partitioned into overlapping chunks of length frames (with stride 1 in all experiments). For each chunk we aggregate the frame scores, , resulting in a 1D confidence trajectory that reflects how strongly the query is grounded in each temporal neighborhood. We then decode this trajectory into contiguous segments using a longest-connected-sequence algorithm: (i) we threshold at a fixed confidence to obtain a binary sequence; (ii) identify all maximally connected high-confidence segments; and (iii) select the segment with the highest average score as the predicted action interval. For multi-action queries, we iteratively remove the selected interval and repeat, merging overlapping segments when necessary. The resulting segments define our temporal action predictions.
Fig. 15 and Fig. 16 visualize localized action segments for different tokenizers on several challenging examples. For each text query, the ground-truth (GT) segment is shown in blue, and the predictions obtained from VideoVAE [63],+, SweetTok [46], LARP [55], and PyraTok are displayed as colored bars beneath. The baselines consistently exhibit temporally diffuse and fragmented activations: their similarity signals tend to fire on visually similar but semantically off-target frames, producing multiple short segments or systematically shifted intervals. For instance, in Fig. 15, in the clip “A girl shoots an arrow”, both VideoVAE + and SweetTok activate broadly over the whole sequence and fail to concentrate probability on the actual release moment, while LARP on several disjoint intervals before and after the shot. In contrast, PyraTok yields a single, compact segment that tightly aligns with the GT span around the arrow release. A similar pattern appears for text query “A person fires a shotgun”, where baseline tokenizers localize earlier or later segments, whereas PyraTok localizes correctly.
The advantages of our fine-grained features are even more evident for actions with multiple sub-events. In Fig. 15 example “An MMA fighter knocks down his opponent with a punch to the face” and “…with a kick to the face”, the motion unfolds rapidly and is preceded by visually similar feints. VideoVAE + and SweetTok tend to spread confidence over the entire exchange, leading to overly long or misaligned segments, while LARP often localizes only part of the motion (e.g., the wind-up but not the impact). PyraTok, by contrast, localizes a concise window centered around the decisive contact, closely matching the GT. In Fig. 16, for “A person performs two overhead presses”, PyraTok produces two high-confidence video segments that track both overhead press repetitions, whereas baselines either miss the second repetition or merge the two into one coarse interval. For complex, extended actions such as “A man and a woman engage in sword fighting” and “Three missiles are launched from a desert”, baseline tokenizers again show scattered activations, localizing short segments around high-motion frames or transient explosions, and resulting in under-coverage of the GT. In contrast, PyraTok yields more accurate localization.
B.4 Text-2-Video Generation
To assess the usefulness of our tokens for generative modeling, we couple PyraTok with a conditional video decoder built on Qwen-2.5VL [1]. Concretely, we treat the text encoder of Qwen-2.5VL as a frozen condition network and fine-tune its video decoder to autoregressively predict PyraTok codes. Given a textual prompt, we first encode the prompt into language features, which are injected into a transformer-based decoder that models the joint distribution over all spatio–temporal tokens from our four quantizers. The decoder predicts the next token conditioned on the text and all previously generated tokens, until a full sequence of discrete video codes is obtained. These codes are then passed through the PyraTok VAE decoder to synthesize the final video. Thanks to PyraTok’s compact yet expressive representation, this pipeline can generate videos at 20 FPS with resolutions up to 4K.
Fig. 17 and Fig. 18 show qualitative comparisons on text-to-video generation where we keep the Qwen-2.5VL decoder architecture fixed and only swap the underlying tokenizer. OmniTokenizer and LARP tend to under-utilize fine-grained textual cues, often missing localized attributes such as the “two egg halves” in the ramen bowl or the “motion blur on pedestrians” in the neon street scene, and producing over-smoothed or distorted structures in complex compositions like the tree city and Mars spaceport. SweetTok better preserves global layout but still struggles with high-frequency details and subtle style descriptors (e.g., HDR interior lighting, crisp spray around the polar bear), leading to muted textures and inconsistent object shapes.
In contrast, PyraTok yields samples that more faithfully reflect both global scene descriptions and fine-grained phrases in the prompts. The additional objects specified in the text appear at the correct locations, motion-related cues are rendered more plausibly, and material and lighting properties (glossy chocolate surface, bioluminescent foliage, cinematic city glow) are captured with higher fidelity. Fig. 19 further illustrates 4K text-to-video generation for a 3-second clip, where PyraTok renders fine-grained details and maintains sharp structures, demonstrating that our multi-scale quantization supports high-resolution, text-aligned video synthesis.
B.5 High-resolution Frame Reconstruction
We further evaluate PyraTok on 4K frame reconstruction in Fig. 20. At this resolution, prior tokenizers struggle to preserve fine structures and high-frequency textures. VideoVAE+ [63] produces strong over-smoothing: the coral branches, tree leaves, and fur on the buffalo become noticeably blurred, and small objects such as distant boats and fire lamps nearly vanish in the zoomed-in crops. OmniTokenizer [57] improves sharpness but introduces ringing and aliasing along high-contrast boundaries (e.g., the product watch edges and mountain silhouettes), and often exhibits color bleeding in specular regions. SweetTok [46] and LARP [55] retain more detail yet still suffer from blocky artifacts on repetitive textures (grass, foliage, brick walls) and inconsistent reconstruction of tiny highlights, such as reflections on the watch bezel and lights on the night harbor. In contrast, our PyraTok reconstructions remain consistently crisp and coherent. Objects across all scenes—from coral polyps and reef fish to product shots and distant architectural details—retain sharp contours and clean textures without haloing. Fine-grained elements such as fur strands, leaf veins, and small fruits are faithfully preserved, demonstrating that our pyramidal tokenization scales effectively to ultra-high resolutions while avoiding the blurring and aliasing present in prior methods.
In qualitative video reconstruction comparisons (Figs. 21–24), existing tokenizers show consistent limitations across diverse scenes. TokenFlow [37] and SweetTok often oversmooth high-frequency content, causing foliage, clothing textures, and facial details to blur, and small or thin structures to distort or disappear; they also introduce blocky artifacts under large motion. LARP better preserves local contrast but frequently produces ringing around boundaries and unstable illumination, leading to flickering highlights and shadows. MotionAura [44] improves temporal smoothness yet still suffers from identity drift in talking-head sequences and ghosting around fast movements, reducing perceptual realism. Moreover, as previous methods were trained on low-resolution data, their high-resolution reconstructions exhibit temporal artifacts such as frame stuttering. In contrast, our 4K-trained PyraTok preserves high-frequency detail and temporal coherence, producing smooth and stable video.
B.6 Adapting Pretrained T2V Priors with PyraTok
We further study whether PyraTok can serve as a drop-in tokenizer for existing text-to-video priors. To this end, we replace the original VAE/tokenizer in three pretrained models, i.e., Open source version of MAGVIT-V2 [33, 70] and OmniGenV2 [60] (autoregressive priors) and MotionAura [44] (discrete diffusion prior), and fine-tune only the prior on 10k clips from OpenVid-1M [35] so that it models PyraTok codes. Under identical prompts and sampling hyper-parameters, and across all architectures, using the native tokenizer leads to typical failure modes: colors and exposure drift over time, geometry “breathes” (e.g., wobbling backgrounds and object contours), high-frequency details such as dough surface texture or water droplets quickly collapse into smooth blobs, and object semantics are weakly preserved (e.g., inconsistent shape of the claw-machine robot or citrus slices). After swapping in PyraTok, the same priors produce videos that are both more semantically aligned with the prompts and markedly more temporally consistent.
In Figure 25, MAGVITv2+PyraTok maintains stable neon lighting in the arcade, preserves the dough’s volume and hand pose across frames, and keeps the boiling dumplings sharp with coherent bubble motion. In Figure 26, OmniGenV2+PyraTok yields crisp tree trunks and facial details with reduced frame-to-frame jitter, while the splashing juice exhibits smoother, physically plausible trajectories.
Similarly, MotionAura+PyraTok in Figure 27 suppresses diffusion-induced flicker in backgrounds. These improvements indicate that PyraTok’s multi-scale discrete representation reduces quantization artifacts and exposes a more structured latent space, making it easier for both autoregressive and diffusion priors to model long-range spatio-temporal dependencies and maintain object identity over time, even with minimal fine-tuning data.
Appendix C Ablations and Additional Analyses
C.1 Video Compression
As reported in Table 7, PyraTok attains the lowest LPIPS and competitive PSNR/SSIM on MCL-JCV [54] at a bitrate of 0.034, surpassing traditional codecs like HEVC [43] and VCC [6] in perceptual fidelity (LPIPS) by preserving fine texture and temporal coherence through semantically guided quantization.
| Tokenizer | Type | #Tokens | #Params (Gen.) | gFVD () |
| MAGVIT [69] | AR | 1024 | 306M | 265 |
| MAGVIT-V2 [70] | AR | 1280 | 307M | 109 |
| MAGVIT [69] | MLLM | 1024 | 306M | 76 |
| MAGVIT-V2 [70] | MLLM | 1280 | 307M | 58 |
| LARP-L [55] | AR | 1024 | 632M | 57 |
| CogVideoX [67] | AR | 6800 | 9.4B | 626 |
| TATS [11] | AR | 4096 | 321M | 332 |
| Video-LaVIT [21] | AR | 512 | 7B | 280 |
| OmniTok [57] | AR | 5120 | 650M | 191 |
| LARP-L [55] | AR | 1024 | 632M | 99 |
| SweetTok [46] | AR | 1280 | 1.9B | 65 |
| PyraTok (Ours) | AR | 1024 | 2.3B | 51 |
| Quantization | Vocab | Dim | COCO-Val | WebVid-10M | Inf. Time | ||||
| PSNR () | SSIM () | LPIPS () | PSNR () | SSIM () | LPIPS () | ||||
| VQ [52] | 4096 | 256 | 31.45 | 0.825 | 0.093 | 32.91 | 0.838 | 0.092 | 409 |
| GVQ [20] | 4096 | 256 | 32.25 | 0.836 | 0.089 | 33.34 | 0.842 | 0.089 | 438 |
| LFQ [70] | 32800 | 16 | 34.22 | 0.842 | 0.084 | 33.92 | 0.855 | 0.085 | 419 |
| RVQ [24] | 8000 | 512 | 33.92 | 0.849 | 0.078 | 34.22 | 0.865 | 0.079 | 489 |
| LaPQ | 8000 | 512 | 34.45 | 0.855 | 0.073 | 34.98 | 0.871 | 0.076 | 503 |
| RVQ [24] | 32800 | 16 | 34.78 | 0.869 | 0.076 | 35.27 | 0.879 | 0.074 | 488 |
| LaPQ (Ours) | 48000 | 16 | 35.72 | 0.879 | 0.066 | 36.05 | 0.885 | 0.071 | 492 |
C.2 Video Generation
We evaluate our tokenizer and generator on class-guided video generation using the UCF-101 [42] dataset. Given a target action class, the model is conditioned on the class label and asked to synthesize a short video clip from scratch. This setting measures not only low-level visual fidelity (appearance, motion smoothness) but also whether the generated sequence is semantically consistent with the requested action category.
We compare PyraTok against a broad set of video generative models that rely on different tokenizers and generator architectures, including MAGVIT/MAGVIT-V2, LARP-L, CogVideo, TATS, Video-LaVIT, OmniTok, and SweetTok. For all methods, we report the generative Fréchet Video Distance (gFVD), where lower values indicate better alignment with the distribution of real videos. As shown in Table 8, our method achieves the lowest gFVD on UCF-101, improving upon the strongest prior tokenizer by a substantial margin. These results indicate that our representation is better suited for high-quality, temporally coherent video synthesis, and that scaling the generator on top of our tokens directly translates into stronger video generation performance.
C.3 Ablation on VQ Techniques
Table 9 presents an ablation of the quantization module in PyraTok, where each row corresponds to a different way of discretizing the encoder features, specified by its quantization type, vocabulary size, and embedding dimensionality. The simple single-codebook baseline VQ [52] (4096 / 256), with vocal size of 4096 and a dimension of 256, yields the weakest reconstruction quality on both COCO [31] and WebVid [2], confirming that a single global codebook is insufficient to capture the variability of natural image–video data. Introducing a group structure in GVQ [20] (4096 / 256) slightly improves PSNR and SSIM, and reduces LPIPS; however, the gains are modest because each group still operates with a relatively small shared codebook. The lookup-free single-block variant, LFQ [70] (32800 / 16), increases the effective vocabulary while reducing the per-code dimension, resulting in a clear improvement in PSNR and SSIM, and a lower LPIPS, indicating that finer local code assignment is beneficial.
Residual quantization with a higher-dimensional code space, RVQ [24] (8000 / 512), further reduces distortion over vanilla VQ, and replacing the residual codebook with our latent product quantizer, LaPQ (8000 / 512), yields another consistent improvement, showing that decomposing the latent channels into product codebooks makes better use of the same vocabulary size. When we combine residual modeling with LFQ-style factorization, RVQ (32800 / 16) achieves even better performance, but our full LaPQ (Ours, 48000 / 16) achieves the best performance across all metrics on both validation sets, with the highest PSNR/SSIM and lowest LPIPS, while incurring only a small increase in inference time compared to simpler schemes. Overall, results demonstrate that LaPQ’s combination of lookup-free factorization and product–residual coding provides a significantly more expressive and distortion-resilient discrete representation than standard VQ, GVQ, LFQ, or RVQ under comparable computational budgets.
C.4 Codebook Utilization vs. Resolution
We further analyze how the effectiveness of our tokenizer scales with input resolution by measuring the percentage of active codewords at different spatial resolutions (see Fig. 28). As the resolution increases from p to p, codebook utilization rises monotonically from to , indicating that higher-resolution inputs naturally excite a richer subset of the learned vocabulary rather than collapsing to a small set of frequently used tokens. In particular, utilization already exceeds at p and surpasses in the K regime (p and p), suggesting that the proposed pyramidal design can effectively exploit the larger spatial support to express more diverse and fine-grained semantics. This trend confirms that our discrete latent space remains expressive and well-populated as we scale to high-resolution video, which is critical for both faithful reconstruction and downstream video-language understanding tasks.
C.5 Ablation on Losses for Video Understanding
We ablate each component of the training objective on three video understanding benchmarks: THUMOS14 [19] and ActivityNet v1.3 [7] for temporal action localization, and MVBench for video question answering (Table 10). With the full objective, PyraTok achieves Avg. mAP on THUMOS14/ActivityNet and mAP on MVBench. Removing the drift regularizer , which anchors the adapted encoder to the pretrained VAE manifold, degrades performance by mAP on THUMOS14/ActivityNet and by points on MVBench, indicating that maintaining a stable latent space is important for robust transfer across both localization and QA.
The autoregressive alignment loss has a different effect: dropping it leads to a relatively small drop on temporal localization ( mAP), but causes a pronounced -point decline on MVBench. This suggests that sequence-level token modeling is especially critical for high-level video reasoning, where the model must integrate information over longer temporal horizons. When we remove both the DINO-guided visual loss and the autoregressive loss (), performance drops most severely on TAL (by and mAP on THUMOS14 and ActivityNet, respectively) and by points on MVBench, highlighting the complementarity between discriminative visual supervision and global token prediction.
| THUMOS14 | ActivityNet | MVBench | |
| ✗ | 31.27 | 27.62 | 83.32 |
| ✗ | 32.45 | 27.98 | 79.45 |
| ✗ & | 29.29 | 26.78 | 81.57 |
| ✗ | 30.22 | 27.55 | 83.56 |
| ✗ | 32.67 | 28.21 | 84.23 |
| ✗ | 31.11 | 27.07 | 83.91 |
| ✓ All losses | 33.17 | 29.11 | 86.03 |
We further study the codebook-related objectives, as described in Equation 2. Ablating the text-conditioned alignment term reduces performance by mAP on THUMOS14/ActivityNet and by points on MVBench, while removing the text–codebook alignment yields a similar degradation ( mAP and points). These results confirm that both local token–text alignment and global codeword–text alignment are necessary to maintain semantically structured latents that generalize well across detection and QA tasks. In contrast, dropping the vision-comment loss produces the smallest degradation (at most mAP on THUMOS14/ActivityNet and points on MVBench), suggesting that, for downstream understanding, the semantic shaping of the codebook is more critical than the pure vision commitment penalty. Overall, the complete loss formulation is consistently superior, validating our multi-part objective for unified video understanding.
Appendix D Implementation Details
PyraTok is implemented using the pretrained Wan 2.2L [53] video VAE as the backbone to ensure high-fidelity visual reconstruction. We initialize the encoder with pretrained WAN-2.2 weights, while the LaPQ module and decoder are randomly initialized. Both the encoder and decoder of Wan 2.2L are kept frozen to preserve the pretrained visual quality. To encourage the model to capture long-range temporal dependencies and motion continuity, we temporally mask 30% of frames and apply cosine-based spatial masking on each frame following [14].
To enable efficient adaptation to our multi-scale semantic learning objective without full fine-tuning, we incorporate LoRA adapters [15] with rank 16 and alpha 32 into all encoder blocks. These adapters provide lightweight parameterization while preserving the representational capacity of the backbone. For text conditioning, we employ the Qwen2.5-VL (3B) [1], referred as pretrained VLM in main paper, to extract semantically rich textual embeddings that guide both the quantization and the multimodal semantic alignment. Loss weights are set to , , , and . To reduce memory footprint and accelerate training, we apply VAE tiling for latent-space tokenization and quantize the alignment VLM to AWQ INT-4 [30]. In PyraTok, En() refers to the frozen DINOv3 [40] encoder, which serves as a strong pretrained visual encoder. It is used to provide stable, high-quality visual features that anchor adaptation and prevent drift from the pretrained visual manifold.
All baselines are trained under identical dataset settings to ensure fair comparison. The average prompt length during training is 60 tokens. Training is conducted in three progressive stages, each designed to incrementally strengthen multimodal alignment and visual–temporal consistency.
Stage 1 — Self-Supervised Pretraining. In the first stage, we perform self-supervised pretraining focused on language alignment. Input spatial resolutions vary from up to , and we train across multiple aspect ratios, including , , , , and . For temporal modeling, the number of frames ranges from to , where the additional frame denotes the conditioning key frame. This stage establishes robust cross-modal grounding and spatial-temporal coherence.
Stage 2 — Text–Visual Token Alignment. The second stage incorporates text–visual token alignment through the pretrained Qwen-2.5-VL (3B) backbone. We maintain the same spatial and temporal configurations as Stage 1 for training stability. This stage refines the alignment between linguistic tokens and visual embeddings, enhancing the semantic consistency of multimodal representations.
Stage 3 — Full-Scale Fine-Tuning. In the final stage, the model is exposed to multi-resolution and multi–aspect-ratio inputs, ranging from to , covering the same aspect ratios (, , , , ). The number of frames is kept consistent with previous stages. Due to increased resolution and GPU memory demands, the batch size is reduced from 4 2 per GPU. This stage optimizes the model with both alignment loss and a frame-level retention loss computed using DINOv3 [40], ensuring long-range temporal retention and fine-grained visual correspondence.
All training stages are optimized using AdamW [32] with an initial learning rate of and a cosine annealing scheduler. Gradient accumulation steps are kept constant across stages. We train on a cluster of 128NVIDIA A100 (80 GB) GPUs. The total number of optimization steps is 30K for Stage 1, 60K for Stage 2, and 180K for Stage 3.
Appendix E Datasets
To comprehensively train, validate, and evaluate PyraTok, we employ a diverse collection of large-scale video–text datasets spanning various resolutions, domains, and task-specific settings.
E.1 Training Datasets
Droplet-10M [73] (Subset). We curate a subset of the Droplet-10M dataset, consisting of approximately 4–5 million HD videos (720p). This subset serves as the foundation for pretraining, providing broad coverage of human activities, natural scenes, and diverse motion patterns, and a dense caption distribution and consistent temporal dynamics, crucial for learning fine-grained video–text alignment. To ensure data quality and maintain high spatial fidelity, only videos at 720p or higher resolution are retained.
OpenVid-1M [35] (300K Subset). We supplement training with 300K high-quality video–caption pairs sampled from OpenVid-1M. Only HD videos are selected to maintain visual consistency. This subset contributes to expanding linguistic diversity and contextual variation, improving open-domain caption understanding and cross-modal reasoning.
UltraVideo [64] (40K with Reconstructed Captions). To enrich representation at extreme resolutions, we incorporate 40K ultra–high-definition videos (4K and 8K) from the UltraVideo dataset. Since many of these videos lack high-quality textual descriptions, we generate captions using a multimodal LLM pipeline. This enables the model to learn from high-fidelity visual data and supports scalability to higher-resolution downstream applications.
E.2 Testing and Validation Datasets
OpenVid-1M [35] (Test Split). We employ 100K samples from the OpenVid-1M test split for evaluating generalization to unseen open-domain video–text pairs. This ensures consistency with the distribution of the training data while validating model generalization under identical data conditions.
WebVid-10M [2] (Validation) and COCO [31] (Validation). For generative evaluation, we follow the WebVid-10M and COCO-Val validation protocols. For class-guided video generation, we further evaluate on the UCF-101 [42] dataset.
MCL-JCV [54] (Compression Validation). To assess the effectiveness of our video compression and reconstruction, we employ the MCL-JCV benchmark. This dataset provides a controlled setup for evaluating perceptual quality and rate–distortion tradeoffs under varying compression levels.
To evaluate generalization beyond supervised training, we test the model under zero-shot conditions across diverse downstream video understanding tasks. For zero-shot action localization, we evaluate on ActivityNet [7] and THUMOS14 [19], which contain diverse and complex activities. For zero-shot video segmentation, we benchmark on YouTube-VIS 2021 [66] and OVIS [36]. Both datasets present challenging dynamic scenes with multiple interacting objects and frequent occlusions. For video classification, we utilize Kinetics [22], while for VideoQA, we adopt MVBench [25], a comprehensive multi-task benchmark covering spatiotemporal reasoning, action understanding, and commonsense interpretation.