Abstract
People perceive the world with multiple senses (e.g., through hearing sounds, reading words and seeing objects). However, most existing AI systems only process an individual modality. This paper presents an approach that excels at handling multiple modalities of information with a single model. In our SkillNet model, different parts of the parameters are specialized for processing different modalities. Unlike traditional dense models that always activate all the model parameters, our model sparsely activates parts of the parameters whose skills are relevant to the task. Such model design enables SkillNet to learn skills in a more interpretable way. We develop our model for five modalities including text, image, sound, video and code. Results show that, SkillNet performs comparably to five modality-specific fine-tuned models. Moreover, our model supports self-supervised pretraining with the same sparsely activated way, resulting in better initialized parameters for different modalities. We find that pretraining significantly improves the performance of SkillNet on five modalities, on par with or even better than baselines with modality-specific pretraining. On the task of Chinese text-to-image retrieval, our final system achieves higher accuracy than existing leading systems including Wukong-ViT-B and Wenlan 2.0 while using less number of activated parameters.
Introduction
In the current AI landscape, we typically see a "one modality, one model" paradigm. If you want to process images, you use a Vision Transformer; for text, you use BERT or GPT. While humans naturally integrate multiple senses—associating the word "dog" with its bark and its image—most AI systems struggle to handle this variety within a single architecture.
Furthermore, standard "dense" models activate every single parameter for every task, which is computationally expensive and unlike the human brain, which calls upon specialized regions for different skills. SkillNet aims to bridge this gap by creating a multitask, multimodal system that is both efficient and interpretable.
Methods: The SkillNet Architecture
The core innovation is SkillNet, a sparsely activated model built on the Transformer architecture.
- Modality-Specific "Skills": Instead of having one set of Query/Key/Value ($Q/K/V$) projection matrices in the attention layers, SkillNet maintains five sets—one for each modality (text, image, sound, video, and code).
- Sparse Activation: When the model performs a task, it only "calls upon" the relevant parameters. For example, in an Automatic Speech Recognition (ASR) task, only the "sound" parameters are activated. For a text-to-image retrieval task, the model uses a Siamese network approach where the text branch activates "text" parameters and the image branch activates "image" parameters—all within the same model file.
- Embeddings: The model uses specialized front-end encoders (like convolutional layers for sound or patch-based embeddings for images) to convert raw signals into a shared hidden dimension (768) before passing them through the SkillNet layers.
- Pretraining: The authors implemented a sparsely activated pretraining regimen, using tasks like Masked Language Modeling (text) and contrastive learning (image/video) to initialize the "skill" parameters effectively.
Datasets and Evaluation
The researchers evaluated SkillNet across a diverse array of benchmarks:
- Text: TNEWS (Chinese text classification).
- Sound: AISHELL-1 (Mandarin speech recognition).
- Image: AIC-ICC (Text-to-image retrieval).
- Video: VATEX (Text-to-video retrieval).
- Code: A custom-built dataset derived from PyTorrent, translated into Chinese.
Pretraining utilized massive scale data including 300GB of Chinese text, 1,200 hours of audio, 84 million image-text pairs (Wukong dataset), and 2 million video-text pairs (WebVid-2M).
Key Insights
- Efficiency via Specialization: By routing information to specialized "experts" (skills) within the model, SkillNet avoids the "interference" that often happens when a single dense model tries to learn too many disparate tasks at once.
- Interpretability: Unlike standard Mixture-of-Experts (MoE) models where the "gating" logic is often a black box, SkillNet’s activation is intuitive. We know exactly why the "sound" parameters are firing during an audio task.
- The Power of Sparse Pretraining: Pretraining the model in this sparse fashion led to better initialization. SkillNet with pretraining outperformed versions without it and even beat modality-specific baselines on three out of five tasks.
Key Results
SkillNet performed comparably to five separate, fine-tuned modality-specific models, proving that a single model can achieve high quality across domains.
On the Chinese text-to-image retrieval task, SkillNet achieved an R@1 of 37.0, outperforming established leaders like Wenlan 2.0 (34.1) and Wukong (36.7). Notably, while outperforming Wenlan 2.0, SkillNet used only 124M activated parameters, compared to Wenlan’s 445M. This represents a massive leap in computational efficiency. Furthermore, SkillNet’s sparse architecture handles low-resource tasks (like text-to-video) more gracefully than dense multimodal models.
Conclusion and Future Work
While SkillNet currently supports five modalities, future work aims to scale this to even more types of data and explore automated routing that maintains the model's current interpretability. Scaling SkillNet to "foundation model" sizes with hundreds of billions of parameters remains an open challenge for future research.
Summary updated