TL;DR
Cross-stitch networks introduce a simple, learnable "cross-stitch" unit that automatically determines the optimal balance between shared and task-specific representations in multi-task ConvNets. By replacing manual architecture search with end-to-end learning, this approach outperforms both single-task baselines and hand-tuned multi-task architectures, providing particularly strong gains for "data-starved" tasks.
What Problem Does This Paper Address?
Multi-task learning (MTL) is a powerful paradigm where a single model learns to perform multiple related tasks (e.g., semantic segmentation and surface normal estimation) simultaneously. The core benefit is representation sharing: features learned for one task can help another.
However, a major bottleneck in MTL is deciding how much to share. Researchers typically use "Split architectures," where some early layers are shared and later layers are task-specific. The problem is that the optimal "split point" is highly dependent on the specific tasks and datasets. Finding this point currently requires an exhaustive, manual brute-force search through different network configurations—a process that is computationally expensive and does not generalize.
Methods
The authors propose the cross-stitch unit, a principled way to let the data decide the sharing strategy.
Instead of choosing a single split point, the authors maintain two parallel network streams (one for each task). At specific layers, they insert a cross-stitch unit that takes activation maps from both streams and produces a new, "stitched" set of activations for the next layer.
Mathematically, for two tasks A and B, the unit computes: $$ \begin{bmatrix} \tilde{x}_A \\ \tilde{x}_B \end{bmatrix} = \begin{bmatrix} \alpha_{AA} & \alpha_{AB} \\ \alpha_{BA} & \alpha_{BB} \end{bmatrix} \begin{bmatrix} x_A \\ x_B \end{bmatrix} $$
Where:
- $x_A, x_B$ are input activations from the two task streams.
- $\alpha_{AA}, \alpha_{BB}$ are "same-task" weights.
- $\alpha_{AB}, \alpha_{BA}$ are "different-task" weights (the "cross-talk").
These $\alpha$ values are learned via backpropagation. If the network learns that $\alpha_{AB}$ should be zero, the tasks remain independent; if it learns high values for cross-weights, it enforces heavy sharing.
Datasets
The authors evaluated their approach on two distinct pairs of tasks:
- NYU-v2: Semantic Segmentation (SemSeg) and Surface Normal Prediction (SN). These are dense, pixel-level tasks.
- PASCAL VOC 2008: Object Detection (Det) and Attribute Prediction (Attr). These are region-based tasks.
Key Insights and Ideas
- Automatic Architecture Discovery: The cross-stitch unit effectively explores the entire spectrum of split architectures (from fully shared to fully independent) during a single training run.
- Task-Specific Sharing Appetites: The experiments revealed that different task pairs prefer different sharing strategies. For instance, detection tasks often benefit from shared high-level features, while attribute prediction might prefer more task-specific representations early on.
- Regularization for the "Data-Starved": One of the most significant findings is that MTL via cross-stitching acts as a powerful regularizer. Tasks with very few training examples (like rare object attributes) see the biggest performance boosts because they can "borrow" robust features learned by the data-rich task.
- Initialization Strategy: The authors found that initializing the cross-stitch network with pre-trained task-specific models, rather than training from scratch, leads to better convergence and performance.
Key Results
The cross-stitch networks consistently outperformed several strong baselines:
- NYU-v2: The method achieved 19.3 mIU for segmentation and 18.2 median error for surface normals. This beat the best manually-found "Split" architecture (19.2 mIU / 19.1 error) and significantly outperformed single-task networks.
- PASCAL VOC: For attribute prediction, cross-stitching reached 63.0 mAP, a substantial jump from the 60.9 mAP of the single-task baseline.
- Data-Starved Categories: As shown in the figures below, the performance gain is inversely proportional to the amount of training data available for a category. Rare classes like "whiteboard" or rare attributes like "leather" saw dramatic improvements.
Limitations and Future Work
- Input Constraints: The current study only considers tasks that share the same single input image. Extending this to heterogeneous inputs (e.g., RGB + Depth) remains an open question.
- Architecture Placement: While the authors experimented with placing units after pooling and fully-connected layers, a more exhaustive study on the optimal placement and density of these units in deeper architectures (like ResNets) would be valuable.
- Weight Constraints: The authors noted that exploring different constraints on the $\alpha$ weights (e.g., sparsity or orthogonality) is a promising direction for future research.
Summary updated