[Paper Review] Flexible Multi-task Networks by Learning Parameter Allocation
This paper proposes a flexible multi-task learning framework that learns fine-grained parameter sharing patterns via differentiable binary allocation variables using Gumbel-Softmax reparameterization. By jointly optimizing task-specific component allocation and model parameters, the method achieves a 17% relative error reduction on Omniglot compared to state-of-the-art, adapting sharing dynamically to task relatedness.
This paper proposes a novel learning method for multi-task applications. Multi-task neural networks can learn to transfer knowledge across different tasks by using parameter sharing. However, sharing parameters between unrelated tasks can hurt performance. To address this issue, we propose a framework to learn fine-grained patterns of parameter sharing. Assuming that the network is composed of several components across layers, our framework uses learned binary variables to allocate components to tasks in order to encourage more parameter sharing between related tasks, and discourage parameter sharing otherwise. The binary allocation variables are learned jointly with the model parameters by standard back-propagation thanks to the Gumbel-Softmax reparametrization method. When applied to the Omniglot benchmark, the proposed method achieves a 17% relative reduction of the error rate compared to state-of-the-art.
Motivation & Objective
- To address negative transfer in multi-task learning when tasks are unrelated, which occurs when shared parameters degrade individual task performance.
- To enable automatic, adaptive parameter sharing that reflects task relatedness rather than relying on fixed or manually designed sharing patterns.
- To learn sparse, interpretable task embeddings by aggregating binary allocation patterns across network components.
- To jointly optimize both model parameters and allocation decisions using standard back-propagation, avoiding expensive search or heuristic tuning.
Proposed method
- The framework models each network layer as a set of reusable components (e.g., convolutional filters), with each component assigned to tasks via learnable binary allocation variables.
- Binary allocation variables are differentiable via the Gumbel-Softmax reparameterization trick, enabling end-to-end training with standard back-propagation.
- The method uses a budget constraint (via a temperature-controlled Gumbel-Softmax) to promote sparsity in component allocation, encouraging efficient and interpretable sharing.
- Task-specific heads are attached to the outputs of allocated components, allowing each task to use a unique subset of the network’s components.
- The allocation logits are trained jointly with model weights using an objective that balances task-specific losses and a sparsity regularization.
- After training, binary allocation vectors are extracted per task, forming sparse embeddings that reflect task relatedness.
Experimental results
Research questions
- RQ1Can a neural network learn to dynamically allocate components to tasks based on their relatedness, improving performance over fixed sharing patterns?
- RQ2Does the proposed method mitigate negative transfer in multi-task learning when tasks are unrelated?
- RQ3Can the learned binary allocation patterns form meaningful, interpretable task embeddings that reflect underlying task similarity?
- RQ4How does the method compare to strong baselines and state-of-the-art approaches on benchmarks with varying degrees of task relatedness?
- RQ5Can the framework be used to discover hidden structure in multi-task datasets, such as clustering of related tasks?
Key findings
- On the Omniglot benchmark, the proposed method achieves a 17% relative reduction in error rate compared to the state-of-the-art, demonstrating superior generalization.
- In synthetic experiments, the method successfully avoids negative transfer on unrelated tasks (ρ=0), outperforming both 'shared bottom' and 'no sharing' patterns.
- The learned binary allocation vectors form sparse, interpretable embeddings that reflect known task clusters: all MNIST tasks receive identical embeddings, and Fashion-MNIST tasks are similarly grouped.
- Pairwise cosine similarity of task embeddings clearly separates the three clusters (CIFAR, MNIST, Fashion-MNIST), with MNIST and Fashion-MNIST being more similar than either is to CIFAR.
- The method learns diverse allocation patterns within the CIFAR-100 cluster, indicating it captures intra-cluster diversity, while maintaining clear separation from other clusters.
- The framework enables the discovery of task structure without access to task composition, relying only on task IDs during training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.