Multi-task learning (MTL) is the "holy grail" of efficient computer vision. Instead of running five different models for segmentation, depth, and object detection, why not run one? While the idea is intuitive, the execution is hard: different tasks often "compete" for features, and standard architectures (like CNNs) struggle to model the global relationships between these tasks across an entire image.
In this paper, Hanrong Ye and Dan Xu present InvPT++, an evolution of their Inverted Pyramid Multi-Task Transformer. It provides a unified framework that allows different tasks to "talk" to each other globally while maintaining the high-resolution features necessary for dense prediction.
TL;DR
InvPT++ introduces an "Inverted Pyramid" decoder that models global interactions between multiple vision tasks (e.g., depth, semantics) at progressively higher resolutions. By using a novel Selective Attention mechanism, it achieves state-of-the-art performance while reducing decoder computational costs (FLOPs) by over 22% compared to standard fusion approaches.
What Problem Does This Paper Address?
Most multi-task models rely on Convolutional Neural Networks (CNNs). While effective, CNNs are inherently local—a pixel's representation is mostly influenced by its immediate neighbors. However, scene understanding is global: knowing there is a "car" in the distance (object detection) should inform the "depth" estimation of that area and the "semantic" label of the pixels below it.
While Transformers can model these global dependencies, they face a "resolution wall." The computational cost of self-attention grows quadratically with the number of pixels. To keep things tractable, most Transformer models stick to low-resolution features, which results in blurry, imprecise predictions for dense tasks like edge detection or semantic segmentation.
Methods
The authors propose a three-part architecture:
- Task-Generic Encoder: A standard Transformer (like ViT or Swin) extracts general visual features.
- Preliminary Decoders: Small, task-specific heads generate initial, coarse predictions for each task.
- InvPT++ Decoder (The Core Innovation): This is the "Inverted Pyramid." Unlike an encoder that shrinks resolution, this decoder starts at a low resolution and progressively upsamples features through UP-Transformer blocks.
Key Technical Innovations:
- UP-Transformer Block: Each block increases spatial resolution while facilitating "cross-task interaction." It allows the model to learn how the spatial features of Task A (e.g., Depth) relate to Task B (e.g., Segmentation) across the whole image.
- Selective Attention: To solve the "resolution wall," the authors realized that attention maps at lower resolutions are excellent guides for higher resolutions. Instead of calculating attention for every possible pair of pixels (tokens), Selective Attention uses the previous stage's results to identify and compute attention only for the most "important" tokens.
- Encoder Feature Aggregation (EFA): This strategy re-introduces multi-scale features from the encoder back into the decoder stages, ensuring that fine-grained details lost during encoding are recovered.
Datasets
The model was evaluated on four major benchmarks:
- PASCAL-Context: 5 tasks (Semantic Segmentation, Human Parsing, Boundary Detection, Surface Normals, Saliency).
- NYUD-v2: 4 tasks (Segmentation, Depth, Normals, Boundary).
- Cityscapes: Focused on high-resolution urban scene understanding (Segmentation and Depth).
- Cityscapes-3D: A complex benchmark requiring joint 2D and 3D reasoning (3D Object Detection, Segmentation, and Depth).
Key Insights and Ideas
- Tasks are Better Together: The "Inverted Pyramid" structure proves that tasks can mutually enhance each other if they are allowed to interact globally. The model doesn't just learn tasks in parallel; it learns the consistency between them.
- Attention is Redundant: One of the "aha" moments is the efficiency of Selective Attention. By keeping only the top 50% of "important" tokens based on the previous layer's guidance, the model maintains (or even improves) accuracy while significantly cutting math overhead.
- Global > Local: The qualitative results (t-SNE visualizations) show that InvPT++ produces much more discriminative features than baseline models, particularly in complex scenes where local context isn't enough to distinguish between similar-looking objects.
Key Results
- State-of-the-Art (SOTA): InvPT++ established new SOTA performances on PASCAL-Context and NYUD-v2, outperforming previous heavyweights like MTI-Net and ATRC.
- Efficiency Gain: Compared to the authors' previous conference version (InvPT), the "++" version uses 22.51% fewer FLOPs in the decoder thanks to Selective Attention.
- 3D Capabilities: On Cityscapes-3D, the model significantly outperformed the baseline, showing that global cross-task modeling is particularly potent when bridging the gap between 2D pixels and 3D geometry.
Limitations and Future Work
- Task Competition: While the model handles task interaction well, the authors note that "task competition" (where one task's gradient might interfere with another's during training) remains a challenge, especially for lower-level tasks like boundary detection.
- Computational Weight: Even with Selective Attention, this is a large Transformer-based model. Deploying this on edge devices (like a drone or a simple car camera) would still require significant optimization or quantization.
- Future Directions: The authors suggest exploring even more diverse task sets and potentially moving toward "foundation models" for multi-task scene understanding.
Summary updated