Introduction
State-of-the-art (SOTA) performance in computer vision and audio processing is typically achieved through highly specialized models tailored to specific tasks and datasets. However, this paradigm leads to significant parameter redundancy and high deployment overhead, especially for resource-constrained edge devices. PolyViT addresses these challenges by proposing a single Vision Transformer (ViT) architecture capable of processing images, videos, and audio simultaneously. By sharing a massive transformer backbone across all tasks, PolyViT demonstrates that multi-modal co-training can act as a powerful regularizer, achieving competitive performance with up to 8.3x fewer parameters than a collection of specialized models.
Architecture and Methodology
PolyViT extends the standard Vision Transformer (ViT) framework into a modular design that accommodates diverse data modalities through three primary components:
- Modality-Specific Tokenizers: To handle the varying dimensionalities of input data—2D images, 3D spatio-temporal videos, and 2D audio spectrograms—PolyViT employs specialized "front-ends." These tokenizers convert raw data into a uniform sequence of tokens. For instance, 3D "tubelets" are used for video, while 2D patches are utilized for images and audio.
- Shared Transformer Encoder: This core component contains the vast majority of the model's parameters. Regardless of the input modality, all tokens pass through the same sequence of transformer layers, allowing the model to learn shared features across different types of data.
- Task-Specific Heads: At the output stage, simple linear layers map the encoder's representations to the specific classes required by each dataset (e.g., classifying an object in ImageNet versus an event in AudioSet).
A critical aspect of the training process is Weighted Task Sampling. Rather than simple round-robin training across datasets, tasks are sampled proportional to the number of steps required for a single-task baseline to reach convergence. This strategy prevents the model from overfitting on smaller datasets or being dominated by larger ones, mitigating the risk of catastrophic forgetting.
Experimental Setup and Key Insights
The researchers evaluated PolyViT across nine diverse datasets spanning three modalities, including ImageNet-1K, Kinetics 400, and AudioSet. Several key insights emerged from this large-scale co-training:
- Co-training as a Regularizer: Multi-task co-training often improves performance on individual datasets compared to single-task training. This effect is particularly pronounced for smaller datasets, where the diverse multi-modal data provides a regularizing influence that helps the large transformer backbone generalize better without overfitting.
- Cross-Modal Synergy: Experiments involving linear probing revealed that models trained on video data learn spatial representations that are highly effective for image-based tasks. This suggests that the temporal dimension in video provides additional cues that help the model learn more robust and transferable features.
Results and Performance
PolyViT demonstrates exceptional parameter efficiency. A single multi-modal model trained on all nine datasets utilizes 8.3 times fewer parameters than nine separate specialized models. Despite this consolidation, PolyViT maintains competitive accuracy, outperforming single-task SOTA baselines on several video and audio benchmarks and remaining within 1.2% accuracy on others. Furthermore, co-training within a single modality (e.g., across multiple video datasets) consistently yielded accuracy gains over standard baselines, proving that multi-tasking is often a "free lunch" for performance.
Limitations and Future Directions
While PolyViT represents a significant step toward universal perception models, it currently focuses solely on classification tasks and does not incorporate text data—a key component of many modern multi-modal systems like CLIP. Future research could explore extending the shared backbone to more complex tasks such as object detection, segmentation, or video captioning, and investigate the integration of natural language processing. Additionally, managing the hyperparameter sensitivity inherent in co-training a large number of heterogeneous datasets remains an ongoing challenge.
Summary updated