Abstract
Multi-task learning (MTL) traditionally relies on shared backbones and static decoders, which often struggle with the diverse requirements of heterogeneous tasks. We present TaskExpert, a novel MTL framework that introduces the Memorial Mixture-of-Experts (MMoE) module. TaskExpert dynamically decomposes shared backbone features into multiple expert spaces and employs a cross-layer feature memory to refine task-specific representations. Our approach achieves state-of-the-art performance on PASCAL-Context and NYUD-v2 benchmarks while significantly reducing computational overhead and training time compared to existing top-performing models.
Introduction
In Multi-Task Learning (MTL), the objective is to train a single model capable of performing multiple distinct tasks simultaneously, such as semantic segmentation, depth estimation, and boundary detection. While modern approaches typically utilize a shared backbone for general feature extraction followed by task-specific decoders, several bottlenecks persist. Static decoders apply uniform parameters regardless of input variation, and decoding from a single task-generic feature map lacks the flexibility to capture task-specific nuances. Furthermore, maintaining task-specific information across deep networks remains a challenge. TaskExpert addresses these issues by replacing static decoders with a dynamic, memory-augmented assembly mechanism.
Methods
The core of TaskExpert is the Memorial Mixture-of-Experts (MMoE) module, designed as a plug-and-play component for deep backbones. The MMoE architecture consists of three primary innovations:
- Backbone Feature Decomposition: Instead of a single shared feature map, $K$ expert networks decompose the backbone feature into $K$ representative feature spaces, allowing each expert to specialize in different data patterns.
- Context-Aware Task-Specific Gating: A gating network determines the optimal combination of expert features. By utilizing 3x3 convolutional kernels instead of standard linear layers, the gate incorporates spatial context, which is critical for dense prediction tasks.
- Multi-Task Feature Memory: This persistent memory bank stores task-specific features across network layers. In each layer, the memory acts as an additional expert. The model "reads" from the memory to assist current decoding and "writes" to it to update long-range representations, ensuring continuous refinement of task-specific knowledge.
Results
TaskExpert was evaluated on the PASCAL-Context and NYUD-v2 benchmarks using various Vision Transformer (ViT) backbones. The model established new state-of-the-art (SOTA) performance, outperforming the previous leading model, InvPT, across all nine metrics.
- Accuracy and Efficiency: On PASCAL-Context, TaskExpert improved semantic segmentation mIoU by +1.61 and human parsing by +1.81. Remarkably, using a ViT-L backbone, TaskExpert required 3 million fewer parameters and 47 billion fewer FLOPs than InvPT.
- Training Speed: TaskExpert demonstrates significant practical advantages, training in under 5 hours on a single NVIDIA 3090 GPU, compared to the 18 hours on four A6000 GPUs required by competing SOTA models.
Conclusion
TaskExpert demonstrates that dynamic assembly of task-specific features via a memorial mixture-of-experts is a highly effective and efficient paradigm for MTL. While dense MoE currently provides the highest accuracy, future work will explore sparse MoE configurations to further reduce computational costs. Additionally, extending this dynamic assembly approach to video or 3D point cloud data presents a promising avenue for future research.
Summary updated