TL;DR
Designing multi-task CNNs usually involves manual guesswork about which layers to share and which to keep task-specific. This paper introduces Stochastic Filter Groups (SFG), a probabilistic framework that automatically learns to partition convolution kernels into "specialist" (task-specific) or "generalist" (shared) groups, optimizing the architecture directly from data.
What Problem Does This Paper Address?
Multi-task learning (MTL) aims to solve several related problems at once, like predicting both the age and gender of a person from a single photo. The secret sauce of MTL is "feature sharing"—using the same learned patterns to help solve different tasks.
However, deciding what to share is a nightmare. Should you share the first three layers? The whole network? Just the edges? The number of possible ways to connect layers across tasks is combinatorially huge. Most researchers fall back on a "shared trunk" with "task-specific branches," but this is often suboptimal and ignores the unique relationships between different tasks.
Methods
The authors propose Stochastic Filter Groups (SFG). Instead of hard-coding the architecture, they treat the assignment of every single convolution kernel as a random variable.
- Filter Assignment: In each layer, every kernel $w_k$ is assigned to one of three groups: Task 1, Task 2, or Shared. This is modeled using a categorical distribution.
- Feature Routing: To ensure the groups actually behave as intended, the authors implement a sparse connectivity pattern. Task-specific kernels only receive information from their own previous task-specific features and the shared features. Crucially, during backpropagation, task-specific kernels only receive gradients from their respective task's loss, while shared kernels receive gradients from both.
- Variational Inference: To make this trainable, they use variational inference. Since choosing a group is a discrete (non-differentiable) step, they employ the Gumbel-Softmax trick. This allows them to "relax" the discrete choice into a continuous one, letting them use standard gradient descent to learn both the network weights and the best architecture simultaneously.
Datasets
The method was evaluated on two distinct multi-task problems:
- UTKFace: A dataset of over 23,000 face images. The tasks were age regression (predicting age) and gender classification. The authors tested this on both the full dataset and a "data-starved" 10% subset.
- Medical Imaging: A challenging real-world scenario involving 3D prostate cancer scans. The tasks were CT synthesis (generating a synthetic CT from an MRI) and organ segmentation (identifying the prostate, bladder, etc.).
Key Insights and Ideas
- Natural Specialization: The models naturally learned to be "generalists" in early layers (focusing on low-level features like edges) and "specialists" in deeper layers (focusing on task-specific high-level features). This validates common deep learning intuitions but arrives there automatically.
- Robustness to Initialization: Whether the model started by assuming everything was shared or everything was task-specific, it converged to a similar, effective architecture.
- Disentanglement: In the medical imaging task, the SFG model was able to disentangle features specific to bone intensity mapping—the hardest part of CT synthesis—without explicit supervision, leading to better results in those difficult regions.
Key Results
- UTKFace: On the full dataset, SFG achieved a Mean Absolute Error (MAE) of 6.00 for age (vs. 7.32 for a single-task baseline) and 92.46% accuracy for gender (vs. 90.70% for the baseline). It also outperformed the popular "Cross-Stitch" MTL architecture.
- Medical Imaging: SFG performed comparably to Cross-Stitch overall but showed superior performance in synthesizing bone regions, which are notoriously difficult to map from MRI to CT.
- Efficiency: Because SFG uses sparse connectivity (routing features only where needed), it can potentially reduce computational costs compared to "soft" sharing methods that compute weighted sums of all features.
Limitations and Future Work
The current SFG module only learns connectivity between neighboring layers. In many modern architectures, "non-parallel" ordering—where a task might skip a layer or connect to a much earlier one—is important. The authors note that investigating connections across non-neighboring layers is a key direction for future work. Additionally, while the method handles two tasks easily, scaling to a very large number of tasks would increase the complexity of the categorical distributions at each kernel.
Summary updated