In the quest for artificial general intelligence, computer vision has often been constrained by a "one model, one task" paradigm. While specialized models excel at individual tasks like face detection or depth estimation, combining them into a single "Swiss Army Knife" network typically leads to a "jack of all trades, master of none" scenario due to performance trade-offs.
A new framework proposed by Wei-Hong Li and colleagues, called Universal Representations (URL), offers a way out of this trap. By using a clever two-stage distillation process, they have developed a single neural network capable of handling multiple tasks and diverse domains without the usual performance degradation.
The Challenge: Unbalanced Optimization
The core difficulty in Multi-Task Learning (MTL) and Multi-Domain Learning (MDL) is unbalanced optimization. When training one network on multiple tasks (e.g., segmentation, depth estimation, and surface normals), the model must minimize a weighted sum of different loss functions.
These losses often have vastly different magnitudes and difficulties. One task might "bully" the others during gradient descent, leading the network to prioritize easier tasks and ignore harder or smaller-scale ones. While dynamic weighting has been explored, results often still fall short of training separate, dedicated models for each task.
The URL Framework
The authors address this by introducing a two-stage distillation procedure designed to stabilize training and harmonize diverse representations.
Stage 1: Expert Training
The process begins by training individual, high-performing "teacher" networks for each specific task or domain. These experts provide a specialized knowledge base for the subsequent stage.
Stage 2: Universal Distillation
A single "student" network (the Universal Network) is then trained to simultaneously mimic the internal representations and outputs of all the teachers.
The "Secret Sauce": Task-Specific Adapters
Standard distillation often fails when teachers are too diverse because their internal "feature languages" differ. To solve this, the authors introduce small-capacity adapters ($a_\theta$). During the second stage, the universal network's features are passed through these adapters to map them into the specific feature space of each teacher before calculating the distillation loss.
Crucially, these adapters are only used during training. At inference time, they are discarded, leaving a single compact, efficient universal network.
Advanced Alignment and Scaling
To handle diverse classification domains where features vary wildly, the authors employ Centered Kernel Alignment (CKA). CKA is a similarity index invariant to linear transformations, making it much better at capturing meaningful non-linear similarities between different neural representations than standard Euclidean distance.
To manage a massive number of tasks without exceeding memory limits, the framework supports Hierarchical Distillation, which involves grouping tasks and distilling them in stages.
Experimental Results
The URL framework was rigorously tested across three distinct problem types, consistently outperforming existing state-of-the-art methods:
- Multi-Task Dense Prediction (NYU-v2): Achieved a +10.95% improvement in the $\Delta$MTL metric (average per-task gain) compared to standard single-task baselines.
- Multi-Domain Classification (Visual Decathlon): Achieved a score of 3560 (and 4005 with residual adapters), significantly higher than the standard "Finetune" baseline of 2500 while maintaining the same parameter count at inference.
- Cross-Domain Few-Shot Learning (MetaDataset): The model ranked 1.3 on average across all test datasets, outperforming complex ensembles and showing particular strength in generalizing to unseen domains like "Traffic Signs."
Conclusion and Future Work
The URL framework demonstrates that a single set of weights can represent features for wildly different domains—from satellite imagery to hand-drawn sketches—if the training regime is designed correctly. By using distillation as a stabilizer and adapters for alignment, the authors provide a robust path toward general-purpose vision systems.
While the two-stage process requires significant initial compute to train experts, the resulting universal model is highly efficient. Future research may extend this method to simultaneous "multi-task and multi-domain" scenarios, creating models that can perform various dense predictions across diverse environmental conditions and geographic locations.
Summary updated