Cross-connected Networks for Multi-task Learning of Detection and Segmentation

Seiichiro Fukuda, Ryota Yoshihashi, Rei Kawakami, Shaodi You, Makoto Iida, Takeshi NaemuraarXiv 2018

TL;DR

Researchers have developed a new "cross-connected" CNN architecture that allows multi-task learning (MTL) even when tasks are trained on entirely different datasets. By linking two single-task networks through $1 \times 1$ convolutional layers, the model learns to share rich, cross-channel features, significantly boosting performance in object detection by leveraging knowledge from semantic segmentation.

What Problem Does This Paper Address?

Multi-task learning is a powerful paradigm where a single model learns multiple related tasks (like detecting objects and segmenting their boundaries) simultaneously. The idea is that knowledge from one task can act as a regularizer or provide useful context for another.

However, traditional MTL faces two major hurdles:

  1. Rigidity: Most models use "hard parameter sharing," where the first few layers are identical for all tasks. This is often too restrictive, especially in deeper layers where features need to be specialized.
  2. Dataset Constraints: Standard MTL usually requires "jointly annotated" datasets—meaning every image must have labels for every task. In the real world, we often have a massive detection dataset for one category (like pedestrians) and a separate, high-quality segmentation dataset for another.

The authors tackle these challenges by asking: How can we effectively combine two successful, pre-trained single-task networks and allow them to "talk" to each other, even if they were trained on different data?

Methods

The core innovation is the Cross-connected Layer. Instead of forcing two networks to share the exact same weights, the authors maintain two separate streams (one for Task A, one for Task B). They then bridge these streams using $1 \times 1$ convolutional layers.

Fig. 1: Comparison of basic units that constitute multi-task CNNs. (a) Param- eter sharing: Two layers learn the same representations suitable for both tasks. (b) Cross-stitching: Two scaling layers model channel-wise weighted sum of acti- vation maps from conv layers. (c) Cross connection (ours): Two cross-connecting layers model linear combination of activation maps utilizing all channels.

As shown in Figure 1(c) above, the output of a layer in Task B is passed through a $1 \times 1$ convolution and then added to the corresponding layer in Task A. Mathematically, the update for Task A looks like this: $$x_{n+1}^A = f_n^A(x_n^A) + g_n^A(f_n^B(x_n^B))$$ Where $f$ represents the standard task-specific convolution and $g$ represents the new cross-connecting convolution.

Why $1 \times 1$ convolutions? Previous methods like "cross-stitching" only allowed corresponding channels to interact (e.g., channel 5 of Task A only talks to channel 5 of Task B). The $1 \times 1$ kernels in this paper allow for cross-channel interaction, meaning the network can learn that a specific feature in the segmentation stream is highly relevant to a completely different feature in the detection stream.

Fig. 2: Overview of cross-connected CNN: We integrate two single-task CNNs for Task A (blue) and Task B (red) by using cross connections. Cross-connected layers are common to both tasks. 1 × 1 convolutional layers on cross connections (green and yellow) model linear transformation and mutually transmit useful information between tasks. Task-specific layers generate outputs for each task separately on the basis of feature maps extracted in cross-connected layers. All conv blocks are composed of a convolutional layer and an activation function ReLU.

The training happens in two steps:

  1. Single-task Pre-training: Train two independent CNNs for each task.
  2. Multi-task Fine-tuning: Insert the cross-connections and train the combined network. To handle different datasets, the authors simply switch the training dataset at constant intervals (e.g., every 100 iterations), setting the loss for the "inactive" task to zero.

Datasets

The authors evaluated their method on two distinct domains:

  • Pedestrians: They used the Caltech Pedestrian dataset for detection and the Cityscapes dataset for semantic segmentation. This is a key test of their ability to learn across different datasets.
  • Wild Birds: They used two datasets for wide-area surveillance. Dataset A (fine weather) was used for training both tasks. Dataset B (bad weather, complex backgrounds) was used strictly for testing to see how well the multi-task features generalized to new, difficult environments.

Key Insights and Ideas

  • Generalization via Diversity: By training on different datasets, the model is exposed to a wider variety of scenes and biases, which helps it learn more robust, "general" representations rather than overfitting to a single camera setup.
  • Segmentation as Context: The results suggest that pixel-level segmentation labels provide a "holistic understanding" of the scene. This helps the detection stream distinguish between actual objects and complex backgrounds that might otherwise cause false positives.
  • Flexibility over Sharing: Unlike hard parameter sharing, cross-connections allow each task to maintain its own specialized features while still benefiting from the "hints" provided by the other stream.

Key Results

  • Pedestrian Detection: The cross-connected model achieved a log-average Miss Rate of 19.38% on the Caltech dataset. This outperformed the single-task baseline (21.47%) and all other MTL baselines, including hard sharing and cross-stitching.
  • Bird Detection Generalization: On the challenging "bad weather" Dataset B, the cross-connected model showed a massive improvement. It achieved a 30.36% miss rate, compared to 41.35% for the single-task model and 39.56% for the best standard MTL baseline.
  • Segmentation Quality: While detection saw the biggest gains, segmentation performance remained high, with the model showing a better "Detection Rate" (the ability to correctly label at least some pixels of an instance) than single-task models.

Limitations and Future Work

The primary drawback noted is memory consumption. Because the architecture essentially runs two parallel networks, it requires significantly more GPU memory and parameters than a standard shared-weight model.

For future work, the authors suggest exploring "dense" cross-connections (linking more layers) and applying the architecture to other task combinations beyond just detection and segmentation. They also aim to find ways to make feature re-usage even more flexible.

Summary updated

BibTeX
@misc{fukuda2018cross,
  author = {Seiichiro Fukuda and Ryota Yoshihashi and Rei Kawakami and Shaodi You and Makoto Iida and Takeshi Naemura},
  title = {{Cross-connected Networks for Multi-task Learning of Detection and Segmentation}},
  year = {2018},
  eprint = {1805.05569},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.05569},
}
Figure