facebookresearch/tuna-2

Official implementation of Tuna-2: Pixel Embeddings Beat Vision Encoders for Unified Understanding and Generation

What it solves

Tuna-2 addresses the complexity of unified multimodal models (UMMs) that typically rely on heavy visual encoding components like Variational Autoencoders (VAEs) or representation encoders to process images. It aims to simplify the architecture while improving performance across both understanding and generation tasks.

How it works

The project evolves the architecture by progressively removing visual encoding layers. While the original Tuna used a VAE, and Tuna-R used a representation encoder, Tuna-2 removes both, utilizing direct patch embedding layers to handle raw image inputs as pixel embeddings. This streamlined approach allows the model to process visual data more directly, outperforming its predecessors in multimodal benchmarks.

Who it’s for

Researchers and developers working on unified multimodal models, specifically those interested in efficient image generation (text-to-image), image editing, and the development of native multimodal architectures that bypass traditional vision encoders.

Highlights

  • Unified Architecture: Handles both understanding and generation within a single framework.
  • Pixel-Space Processing: Replaces complex vision encoders with direct patch embeddings for raw images.
  • Versatile Tasks: Supports text-to-image generation and image editing.
  • Extensible to Video: Includes the complete codebase for training and inference of video generation models.

Related

  • Project
  • Project
  • Project
  • Project
  • Project