search
HomeTechnology peripheralsAIByteDouBao's new image Tokenizer: only 32 tokens are needed to generate an image, and the speed is increased by up to 410 times.

ByteDouBaos new image Tokenizer: only 32 tokens are needed to generate an image, and the speed is increased by up to 410 times.
The AIxiv column is a column where this site publishes academic and technical content. In the past few years, the AIxiv column of this site has received more than 2,000 reports, covering top laboratories from major universities and companies around the world, effectively promoting academic exchanges and dissemination. If you have excellent work that you want to share, please feel free to contribute or contact us for reporting. Submission email: liyazhou@jiqizhixin.com; zhaoyunfeng@jiqizhixin.com
In the rapid development of generative models, Image Tokenization plays a very important role, such as VAE that Diffusion relies on or VQGAN that Transformer relies on. . These Tokenizers encode the image into a more compact latent space, making it more efficient to generate high-resolution images.

However, existing Tokenizers usually map the input image to a downsampled 2D matrix in the latent space. This design implicitly limits the mapping relationship between tokens and images, making it difficult to Effectively utilize redundant information in the image (for example, adjacent areas often have similar features) to obtain a more effective image encoding.

In order to solve this problem, ByteDance Beanbao Big Model Team and Technical University of Munich proposed a new 1D image Tokenizer: TiTok. This Tokenizer breaks the design limitations of 2D Tokenizer and can compress the entire image to a more compact Token sequence.

ByteDouBaos new image Tokenizer: only 32 tokens are needed to generate an image, and the speed is increased by up to 410 times.

  • Paper link: https://arxiv.org/abs/2406.07550
  • Project link: https://yucornetto.github.io/projects/titok.html
  • Code link: https://github.com/bytedance/1d-tokenizer

For a 256 x 256 resolution image, TiTok only needs a minimum of 32 Tokens to express it, which is 256 or 1024 Tokens than the usual 2D Tokenizer significantly reduced. For a 512 x 512 resolution image, TiTok requires at least 64 Tokens, which is 64 times smaller than Stable Diffusion’s VAE Tokenizer. In addition, on the task of ImageNet image generation, using TiTok as the Tokenizer generator has significantly improved the generation quality and generation speed.

At 256 resolution, TiTok achieved an FID of 1.97, significantly exceeding MaskGIT’s 4.21 using the same generator. At 512 resolution TiTok can achieve an FID of 2.74, which not only exceeds DiT (3.04), but also accelerates image generation by an astonishing 410 times compared to DiT! The best variant of TiTok achieved an FID of 2.13, significantly exceeding DiT while still achieving a 74x acceleration.

ByteDouBaos new image Tokenizer: only 32 tokens are needed to generate an image, and the speed is increased by up to 410 times.

                                                                                                                                                        ​                                                                                                                                                                                                                                                                           with tokens required for images to result in significantly faster generation speeds , but while maintaining high-quality image generation.

ByteDouBaos new image Tokenizer: only 32 tokens are needed to generate an image, and the speed is increased by up to 410 times.

Model structure

The structure of TiTok is very simple. The encoder and decoder parts are each a ViT. During the encoding process, a set of latent tokens will be spliced ​​after the image patches. After passing through the encoder, only the latent tokens are retained and the quantization process is performed. The obtained quantized latent tokens will be spliced ​​together with a set of mask tokens and sent to the decoder to reconstruct the image from the mask token sequence.
Study on the properties of 1D Tokenization

The researchers conducted a series of experimental studies on different numbers of tokens used to represent images, different tokenizer sizes, reconstruction performance, generation performance, linear probing accuracy, and training and Comparison of reasoning speed. During this process, the researchers found that (1) only 32 Tokens can achieve good reconstruction and generation effects (2) By increasing the model size of Tokenizer, researchers can use fewer Tokens to represent images ( 3) When fewer Tokens are used to represent pictures, Tokenizer will learn stronger semantic information. (4) When fewer Tokens are used to represent pictures, training and inference speeds are significantly improved.

ByteDouBaos new image Tokenizer: only 32 tokens are needed to generate an image, and the speed is increased by up to 410 times.

In addition, the video shows the reconstructed images using different Tokenizer sizes and the number of Tokens. It can be seen that a larger Tokenizer can reconstruct better quality images with limited Tokens. In addition, when there are only limited tokens, the model is more inclined to retain salient areas and achieve better reconstruction results.

ByteDouBaos new image Tokenizer: only 32 tokens are needed to generate an image, and the speed is increased by up to 410 times.

Experimental verification

The researchers mainly compared with other methods at the 256 x 256 resolution and 512 x 512 resolution of ImageNet-1k. It can be seen that although TiTok uses a limited number of Tokens, it can achieve comparable reconstruction results (rFID) with other methods that use more Tokens. Using a smaller number of Tokens allows TiTok to maintain a higher generated image quality (gFID) At the same time, it has a significantly faster generation speed than other methods.

For example, TiTok-L-32 achieved a gFID score of 2.77 and can generate images at a speed of 101.6 images per second, which is significantly faster than other Diffusion Models (169 times faster than DiT) or Transformer Models (339 times faster than ViT-VQGAN).

ByteDouBaos new image Tokenizer: only 32 tokens are needed to generate an image, and the speed is increased by up to 410 times.

TiTok’s advantage of using fewer tokens is more obvious in higher-resolution image generation, where TiTok-L-64 can be completed using only 64 tokens Reconstruction and generation of high-quality 512 resolution images. The quality of the generated images is not only higher than DiT (2.74 v.s. 3.04), but the generation speed is increased by nearly 410 times.

ByteDouBaos new image Tokenizer: only 32 tokens are needed to generate an image, and the speed is increased by up to 410 times.

Conclusion

In this article, the researcher focuses on a new 1D Image Tokenizer and proposes a new Tokenizer to break the limitations of the existing 2D Tokenizer and make it more advanced Good use of redundant information in images. TiTok only needs a small number of Tokens (such as 32) to represent images, while still being able to perform high-quality image reconstruction and generation. In ImageNet's 256 resolution and 512 resolution generation experiments, TiTok not only achieved generation quality that exceeded Diffusion Models, but also achieved a hundred times faster generation speed.

About the Doubao Large Model Team

ByteDance Doubao Large Model Team was established in 2023 and is committed to developing the industry's most advanced AI large model technology and becoming a world-class research team. Contribute to technological and social development.

The Doubao Big Model team has long-term vision and determination in the field of AI. Its research directions cover NLP, CV, speech, etc., and it has laboratories and research positions in China, Singapore, the United States and other places. Relying on the platform's sufficient data, computing and other resources, the team continues to invest in related fields. It has launched a self-developed general large model to provide multi-modal capabilities. It supports 50+ businesses such as Doubao, Buttons, and Jimeng downstream, and is open to the public through the Volcano Engine. Corporate customers. At present, Doubao APP has become the AIGC application with the largest number of users in the Chinese market.

Welcome to join the Bytedance Beanbao Big Model Team, click the link below to enter the Bytedance Top Seed plan:
https://mp.weixin.qq.com/s/ZjQ-v6reZXhBP6G27cbmlQ

The above is the detailed content of ByteDouBao's new image Tokenizer: only 32 tokens are needed to generate an image, and the speed is increased by up to 410 times.. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
The AI Skills Gap Is Slowing Down Supply ChainsThe AI Skills Gap Is Slowing Down Supply ChainsApr 26, 2025 am 11:13 AM

The term "AI-ready workforce" is frequently used, but what does it truly mean in the supply chain industry? According to Abe Eshkenazi, CEO of the Association for Supply Chain Management (ASCM), it signifies professionals capable of critic

How One Company Is Quietly Working To Transform AI ForeverHow One Company Is Quietly Working To Transform AI ForeverApr 26, 2025 am 11:12 AM

The decentralized AI revolution is quietly gaining momentum. This Friday in Austin, Texas, the Bittensor Endgame Summit marks a pivotal moment, transitioning decentralized AI (DeAI) from theory to practical application. Unlike the glitzy commercial

Nvidia Releases NeMo Microservices To Streamline AI Agent DevelopmentNvidia Releases NeMo Microservices To Streamline AI Agent DevelopmentApr 26, 2025 am 11:11 AM

Enterprise AI faces data integration challenges The application of enterprise AI faces a major challenge: building systems that can maintain accuracy and practicality by continuously learning business data. NeMo microservices solve this problem by creating what Nvidia describes as "data flywheel", allowing AI systems to remain relevant through continuous exposure to enterprise information and user interaction. This newly launched toolkit contains five key microservices: NeMo Customizer handles fine-tuning of large language models with higher training throughput. NeMo Evaluator provides simplified evaluation of AI models for custom benchmarks. NeMo Guardrails implements security controls to maintain compliance and appropriateness

AI Paints A New Picture For The Future Of Art And DesignAI Paints A New Picture For The Future Of Art And DesignApr 26, 2025 am 11:10 AM

AI: The Future of Art and Design Artificial intelligence (AI) is changing the field of art and design in unprecedented ways, and its impact is no longer limited to amateurs, but more profoundly affecting professionals. Artwork and design schemes generated by AI are rapidly replacing traditional material images and designers in many transactional design activities such as advertising, social media image generation and web design. However, professional artists and designers also find the practical value of AI. They use AI as an auxiliary tool to explore new aesthetic possibilities, blend different styles, and create novel visual effects. AI helps artists and designers automate repetitive tasks, propose different design elements and provide creative input. AI supports style transfer, which is to apply a style of image

How Zoom Is Revolutionizing Work With Agentic AI: From Meetings To MilestonesHow Zoom Is Revolutionizing Work With Agentic AI: From Meetings To MilestonesApr 26, 2025 am 11:09 AM

Zoom, initially known for its video conferencing platform, is leading a workplace revolution with its innovative use of agentic AI. A recent conversation with Zoom's CTO, XD Huang, revealed the company's ambitious vision. Defining Agentic AI Huang d

The Existential Threat To UniversitiesThe Existential Threat To UniversitiesApr 26, 2025 am 11:08 AM

Will AI revolutionize education? This question is prompting serious reflection among educators and stakeholders. The integration of AI into education presents both opportunities and challenges. As Matthew Lynch of The Tech Edvocate notes, universit

The Prototype: American Scientists Are Looking For Jobs AbroadThe Prototype: American Scientists Are Looking For Jobs AbroadApr 26, 2025 am 11:07 AM

The development of scientific research and technology in the United States may face challenges, perhaps due to budget cuts. According to Nature, the number of American scientists applying for overseas jobs increased by 32% from January to March 2025 compared with the same period in 2024. A previous poll showed that 75% of the researchers surveyed were considering searching for jobs in Europe and Canada. Hundreds of NIH and NSF grants have been terminated in the past few months, with NIH’s new grants down by about $2.3 billion this year, a drop of nearly one-third. The leaked budget proposal shows that the Trump administration is considering sharply cutting budgets for scientific institutions, with a possible reduction of up to 50%. The turmoil in the field of basic research has also affected one of the major advantages of the United States: attracting overseas talents. 35

All About Open AI's Latest GPT 4.1 Family - Analytics VidhyaAll About Open AI's Latest GPT 4.1 Family - Analytics VidhyaApr 26, 2025 am 10:19 AM

OpenAI unveils the powerful GPT-4.1 series: a family of three advanced language models designed for real-world applications. This significant leap forward offers faster response times, enhanced comprehension, and drastically reduced costs compared t

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools