arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.14762cs.CVcs.AIcs.LG
收藏

基于坐标的 Patch 重建的高效长视频 Tokenization

Efficient Long Video Tokenization via Coordinate-based Patch Reconstruction

KAIST(韩国科学技术院);UC Berkeley(加州大学伯克利分校)

Huiwon Jang, Sihyun Yu, Jinwoo Shin, Pieter Abbeel, Younggyo Seo

AI总结:

本文提出了一种名为 CoordTok 的视频 tokenizer,通过学习基于坐标的表示到视频 patch 的映射,在长视频上实现高效 tokenization,大幅减少编码所需 token 数量,并支持内存高效的扩散 Transformer 训练以一次性生成 128 帧。

摘要:

视频的高效 tokenization 仍然是训练能够处理长视频的视觉模型的一大挑战。一个有前景的方向是开发能够编码长视频片段的 tokenizer,因为这将使 tokenizer 能够更好地利用视频的时间连贯性进行 tokenization。然而,在长视频上训练现有的 tokenizer 通常会产生巨大的训练成本,因为它们被训练为一次性重建所有帧。在本文中,受 3D 生成模型最新进展的启发,我们引入了 CoordTok,这是一种视频 tokenizer,它学习从基于坐标的表示到输入视频相应 patch 的映射。具体而言,CoordTok 将视频编码为分解的三平面表示,并重建与随机采样的 $(x,y,t)$ 坐标对应的 patch。这使得可以直接在长视频上训练大型 tokenizer 模型,而无需过多的训练资源。我们的实验表明,CoordTok 可以大幅减少编码长视频片段所需的 token 数量。例如,CoordTok 可以将 128 帧的视频以 128×128 分辨率编码为 1280 个 token,而基线模型需要 6144 或 8192 个 token 才能达到相似的重建质量。我们进一步表明,这种高效的视频 tokenization 使得能够以内存高效的方式训练扩散 Transformer,从而一次性生成 128 帧。

英文摘要:

Efficient tokenization of videos remains a challenge in training vision models that can process long videos. One promising direction is to develop a tokenizer that can encode long video clips, as it would enable the tokenizer to leverage the temporal coherence of videos better for tokenization. However, training existing tokenizers on long videos often incurs a huge training cost as they are trained to reconstruct all the frames at once. In this paper, we introduce CoordTok, a video tokenizer that learns a mapping from coordinate-based representations to the corresponding patches of input videos, inspired by recent advances in 3D generative models. In particular, CoordTok encodes a video into factorized triplane representations and reconstructs patches that correspond to randomly sampled $(x,y,t)$ coordinates. This allows for training large tokenizer models directly on long videos without requiring excessive training resources. Our experiments show that CoordTok can drastically reduce the number of tokens for encoding long video clips. For instance, CoordTok can encode a 128-frame video with 128$\times$128 resolution into 1280 tokens, while baselines need 6144 or 8192 tokens to achieve similar reconstruction quality. We further show that this efficient video tokenization enables memory-efficient training of a diffusion transformer that can generate 128 frames at once.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑