Salvato in:
Dettagli Bibliografici
Autori principali: Yan, Wilson, Mnih, Volodymyr, Faust, Aleksandra, Zaharia, Matei, Abbeel, Pieter, Liu, Hao
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:https://arxiv.org/abs/2410.08368
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909472399556608
author Yan, Wilson
Mnih, Volodymyr
Faust, Aleksandra
Zaharia, Matei
Abbeel, Pieter
Liu, Hao
author_facet Yan, Wilson
Mnih, Volodymyr
Faust, Aleksandra
Zaharia, Matei
Abbeel, Pieter
Liu, Hao
contents Efficient video tokenization remains a key bottleneck in learning general purpose vision models that are capable of processing long video sequences. Prevailing approaches are restricted to encoding videos to a fixed number of tokens, where too few tokens will result in overly lossy encodings, and too many tokens will result in prohibitively long sequence lengths. In this work, we introduce ElasticTok, a method that conditions on prior frames to adaptively encode a frame into a variable number of tokens. To enable this in a computationally scalable way, we propose a masking technique that drops a random number of tokens at the end of each frames's token encoding. During inference, ElasticTok can dynamically allocate tokens when needed -- more complex data can leverage more tokens, while simpler data only needs a few tokens. Our empirical evaluations on images and video demonstrate the effectiveness of our approach in efficient token usage, paving the way for future development of more powerful multimodal models, world models, and agents.
format Preprint
id arxiv_https___arxiv_org_abs_2410_08368
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle ElasticTok: Adaptive Tokenization for Image and Video
Yan, Wilson
Mnih, Volodymyr
Faust, Aleksandra
Zaharia, Matei
Abbeel, Pieter
Liu, Hao
Machine Learning
Efficient video tokenization remains a key bottleneck in learning general purpose vision models that are capable of processing long video sequences. Prevailing approaches are restricted to encoding videos to a fixed number of tokens, where too few tokens will result in overly lossy encodings, and too many tokens will result in prohibitively long sequence lengths. In this work, we introduce ElasticTok, a method that conditions on prior frames to adaptively encode a frame into a variable number of tokens. To enable this in a computationally scalable way, we propose a masking technique that drops a random number of tokens at the end of each frames's token encoding. During inference, ElasticTok can dynamically allocate tokens when needed -- more complex data can leverage more tokens, while simpler data only needs a few tokens. Our empirical evaluations on images and video demonstrate the effectiveness of our approach in efficient token usage, paving the way for future development of more powerful multimodal models, world models, and agents.
title ElasticTok: Adaptive Tokenization for Image and Video
topic Machine Learning
url https://arxiv.org/abs/2410.08368