Introduction
In Multi-Task Learning (MTL), the primary objective is to find an architectural balance that maximizes information sharing for better generalization while minimizing task interference. Traditionally, this has required researchers to manually design architectures, deciding which layers should be shared and where the network should branch into task-specific heads. This manual process is often suboptimal because the space of possible sharing patterns is combinatorial, growing exponentially with the number of layers and tasks.
This paper introduces Stochastic Filter Groups (SFGs), a probabilistic mechanism that automates this process. By learning the connectivity structure directly from data, SFGs allow a convolutional neural network (CNN) to dynamically assign individual kernels as either "specialists" (task-specific) or "generalists" (shared).
Methodology
The core of the proposed approach is the SFG module, which frames architecture search as a variational inference problem. Instead of a fixed architecture, the model maintains a probability distribution over kernel assignments for every convolutional layer.
1. Filter Assignment and Routing
For each kernel, the model determines whether it belongs to Task A, Task B, or a "Shared" group. To make this discrete selection process differentiable, the authors utilize the Gumbel-Softmax trick. This provides a continuous relaxation that allows gradients to flow through the discrete choices during backpropagation.
2. Sparse Feature Routing
The architecture implements a specific routing logic: shared features from a preceding layer are fed into all groups in the subsequent layer, whereas task-specific features are routed only to their respective specialists. This creates a structured, sparse connectivity pattern that enforces a "hard" partitioning of features.
3. Variational Optimization
The training objective combines standard task-specific losses (e.g., cross-entropy or mean squared error) with a KL-divergence term. This regularizes the grouping probabilities, encouraging the model to find an efficient, sparse distribution of filters.
Experimental Evaluation
The researchers evaluated SFGs across two distinct domains to test versatility and robustness:
- UTKFace (Computer Vision): A dataset of 23,703 images used for simultaneous Age Regression and Gender Classification. The model was tested on both the full dataset and a "data-starved" variant using only 10% of the training samples.
- Medical Imaging (Prostate Cancer): A high-stakes, small-scale dataset requiring CT Synthesis (regression) and Organ Segmentation (classification) from MRI scans.
Key Insights
Natural Specialization
One of the most significant findings is that SFGs naturally learn a "trunk-to-branch" structure. In the early layers of the network, the model assigns nearly all kernels to the "Shared" group to extract low-level features like edges and textures. As the network depth increases, the kernels progressively specialize into task-specific groups to handle high-level semantic differences.
Hard Partitioning vs. Soft Sharing
Unlike "soft sharing" methods (such as Cross-Stitch networks) that blend features using learned weights, SFGs create clear architectural boundaries. This hard inductive bias proved more effective at preventing "task pollution," where a difficult task negatively impacts the performance of an easier one.
Data Efficiency
The performance advantage of SFGs was most pronounced in the small-data regime. By learning the optimal sharing structure, the model acts as a powerful regularizer, outperforming hand-crafted baselines and soft-sharing alternatives when training data is scarce.
Results
- UTKFace: SFGs achieved a Mean Absolute Error (MAE) of 6.00 for age prediction, significantly outperforming the single-task baseline (7.32) and Cross-Stitch networks (6.78).
- Medical Imaging: The model was particularly effective at synthesizing complex regions like bone, achieving a DICE score of 0.852 for segmentation, compared to 0.829 for standard hard-sharing baselines.
- Interpretability: Activation maps confirmed that shared kernels focus on general anatomy, while specialist kernels isolate task-specific details such as organ boundaries or specific voxel intensities.
Conclusion and Future Work
Stochastic Filter Groups provide a robust framework for learning task-specific and shared features without manual architectural tuning. While the current implementation focuses on local connectivity between neighboring layers, it demonstrates superior performance in both data-rich and data-poor environments.
Future research directions include extending SFGs to support skip-connections and long-range "highway" connections, as well as applying the framework to continual learning, where the model could reserve specific specialist filters for new tasks to prevent catastrophic forgetting.
Summary updated