Abstract
LaVin-DiT is a scalable foundation model for computer vision that replaces the traditional autoregressive approach with a Joint Diffusion Transformer (J-DiT). By treating vision tasks as a parallel denoising process rather than a sequence prediction problem, LaVin-DiT handles over 20 diverse tasks—ranging from object detection to video frame prediction—with superior spatial coherence. Experimental results demonstrate that LaVin-DiT achieves up to a 2.3x inference speedup over state-of-the-art autoregressive models while significantly improving accuracy on benchmarks such as NYU-v2 depth estimation.
Introduction: Moving Beyond Autoregressive Vision
Most recent Large Vision Models (LVMs) attempt to replicate the success of Large Language Models (LLMs) by treating images as one-dimensional sequences of patches. This autoregressive approach predicts tokens one-by-one, which is computationally expensive and disrupts the inherent spatial relationships of high-dimensional visual data.
LaVin-DiT addresses these efficiency and coherence gaps by employing a diffusion-based framework. Unlike the sequential nature of autoregression, diffusion modeling allows for the parallel processing of all visual tokens, preserving the natural structure of images and videos and ensuring global consistency across the generated output.
Methodology: The Joint Diffusion Transformer
The architecture of LaVin-DiT is built upon three primary innovations designed to handle multi-task visual learning at scale.
1. Spatial-Temporal VAE (ST-VAE)
To manage the high dimensionality of raw pixels, LaVin-DiT utilizes a Spatial-Temporal VAE to compress images and videos into a continuous latent space. This compression retains essential spatial and temporal features while allowing the core transformer to operate on a more efficient representation.
2. Joint Diffusion Transformer (J-DiT)
The J-DiT serves as the model's central processing unit. It is "joint" because it simultaneously processes a task context (input-target pairs) alongside the query. Through Full-sequence Joint Attention, the model aligns task requirements with visual outputs, enabling it to perform diverse tasks without specialized heads.
3. In-Context Learning and 3D RoPE
Following the prompting paradigm of GPT, LaVin-DiT performs tasks via in-context learning. By providing a few examples of "image + target" pairs, the model generalizes to new test images. To maintain spatial awareness, 3D Rotary Position Encoding (3D RoPE) explicitly models height, width, and time dimensions, ensuring the transformer understands the precise location of each patch.
Datasets and Training
The model was trained on a massive multi-task dataset comprising:
- Images: ~3.2 million unique images covering 20+ tasks (e.g., detection, segmentation, pose estimation).
- Videos: ~0.6 million unique videos for temporal tasks like frame prediction.
- Synthetic Labels: Teacher models like Depth-Anything V2 were used to generate high-quality pseudo-labels for depth and surface normals on ImageNet-1K to supplement existing annotations.
Key Results and Insights
- Superior Accuracy: On the NYU-v2 depth estimation benchmark, LaVin-DiT achieved a 24% lower error (AbsRel) compared to the strongest autoregressive baseline (LVM).
- Inference Efficiency: LaVin-DiT is significantly faster than sequential models. At 512x512 resolution, it completes inference in ~20 seconds, compared to ~47 seconds for LVM—a 2.3x speedup.
- Scaling and Context: The researchers observed that scaling the model (up to 3.4B parameters) leads to faster convergence. Furthermore, increasing the number of context examples consistently improves downstream task performance.
Limitations and Future Directions
While LaVin-DiT represents a significant step forward, it faces challenges in generalizing to tasks with contexts vastly different from its training data. Future work will focus on scaling dataset diversity beyond the current 3.2M images and developing automated algorithms for optimal context example selection.
Summary updated