Introduction
The quest for a unified foundation model in computer vision, analogous to Large Language Models (LLMs) in natural language processing, has led to the development of various Large Vision Models (LVMs). While LLMs successfully unify tasks through next-token prediction, applying this autoregressive approach to high-dimensional visual data presents significant challenges. Specifically, sequential patch prediction is computationally expensive and often fails to maintain the complex spatial-temporal coherence inherent in images and videos.
LaVin-DiT addresses these hurdles by proposing a scalable, unified generative framework based on a Diffusion Transformer (DiT). By shifting from sequential autoregression to parallel diffusion in a compressed latent space, LaVin-DiT achieves state-of-the-art performance across more than 20 vision tasks while significantly improving inference efficiency.
Methodology
The architecture of LaVin-DiT is built upon three core components designed to preserve structural integrity and enhance scalability:
- Spatial-Temporal VAE (ST-VAE): To mitigate the high dimensionality of raw pixels, the model employs a VAE that compresses visual data into a continuous latent space. This component is optimized for both static images and temporal video sequences.
- Joint Diffusion Transformer (J-DiT): Unlike autoregressive models that predict tokens sequentially, J-DiT denoises all latent tokens in parallel. It utilizes full-sequence joint attention, enabling the model to process task context and query images simultaneously.
- 3D Rotary Position Encoding (3D RoPE): To maintain spatial and temporal relationships, 3D RoPE explicitly encodes $(x, y, t)$ coordinates. This ensures that the model retains structural awareness across frames and patches.
- In-Context Learning (ICL): LaVin-DiT leverages ICL by using "input-target" pairs as prompts. This allows the model to generalize to new tasks at inference time without requiring task-specific fine-tuning.
Experimental Setup and Datasets
The model was trained on a comprehensive multi-task dataset comprising approximately 3.2 million images and 0.6 million videos. Data sources include standard benchmarks such as COCO, ADE20K, Cityscapes, and ImageNet-1K, as well as video datasets like UCF101 and Kinetics-700. To enhance the training set for specialized tasks like surface normal estimation, the authors utilized "expert" models to generate high-quality pseudo-labels for the ImageNet-1K dataset.
Key Results and Insights
Experimental evaluations demonstrate that LaVin-DiT significantly outperforms existing baselines, such as the LVM.
- Performance Gains: On the NYU-v2 depth estimation benchmark, LaVin-DiT achieved a 24% reduction in Absolute Relative Error (AbsRel) compared to LVM. In foreground segmentation, it reached mIoU scores of up to 75.80%.
- Inference Efficiency: The parallel nature of the diffusion process allows for 1.7x to 2.3x faster inference speeds across various resolutions (256px to 512px) compared to sequential autoregressive models.
- Generative Quality: For image inpainting, the model achieved a Frechet Inception Distance (FID) of 1.65, a substantial improvement over the 4.05 recorded by LVM.
- Scalability: Scaling the model from 0.1B to 3.4B parameters revealed that larger models not only yield higher accuracy but also exhibit faster convergence during training. Furthermore, increasing the context length (the number of example pairs in the prompt) consistently improved performance across diverse tasks.
Discussion and Limitations
While LaVin-DiT represents a significant step toward a unified vision foundation model, certain limitations remain. The training data scale, though substantial, is still orders of magnitude smaller than the datasets used for top-tier LLMs. Additionally, the model's zero-shot generalization can falter when faced with tasks significantly outside its training distribution. Future research will focus on scaling to even larger datasets and exploring automated methods for optimal context selection to further enhance the model's versatile capabilities.
Summary updated