Abstract
Multi-task and multi-domain learning methods seek to learn multiple tasks/domains, jointly or one after another, using a single unified network. The key challenge and opportunity is to exploit shared information across tasks and domains to improve the efficiency of the unified network. The efficiency can be in terms of accuracy, storage cost, computation, or sample complexity. In this paper, we propose a factorized tensor network (FTN) that can achieve accuracy comparable to independent single-task/domain networks with a small number of additional parameters. FTN uses a frozen backbone network from a source model and incrementally adds task/domain-specific low-rank tensor factors to the shared frozen network. This approach can adapt to a large number of target domains and tasks without catastrophic forgetting. Furthermore, FTN requires a significantly smaller number of task-specific parameters compared to existing methods. We performed experiments on widely used multi-domain and multi-task datasets. We show the experiments on convolutional-based architecture with different backbones and on transformer-based architecture. We observed that FTN achieves similar accuracy as single-task/domain methods while using only a fraction of additional parameters per task.
Introduction
In the era of massive pre-trained models, the standard approach to new tasks is "fine-tuning"—updating all model weights for a specific dataset. While effective, this is incredibly inefficient: if you have 50 tasks, you end up storing 50 copies of a giant model. Existing solutions like Multi-Task Learning (MTL) and Multi-Domain Learning (MDL) try to share a single backbone, but they often face a "capacity vs. efficiency" trade-off. Simple feature extraction (freezing the backbone) lacks the flexibility to perform well on diverse tasks, while popular Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA primarily focus on 2D matrix decompositions. These 2D approaches don't fully exploit the multi-dimensional structure of neural network weights, especially in convolutional layers, leading to sub-optimal parameter usage.
Factorized Tensor Networks (FTN)
The core innovation is the Factorized Tensor Network (FTN). Instead of updating the entire weight matrix $W$, the authors represent the update as a task-specific additive term: $W_t = W_{shared} + \Delta W_t$. Rather than a standard matrix, FTN treats the weights as a multi-dimensional tensor. It decomposes the update into a summation of $R$ rank-1 tensors:
$$\Delta W_{l,t} = \sum_{r=1}^{R} w_{1,t}^r \otimes w_{2,t}^r \otimes w_{3,t}^r$$
Where $\otimes$ denotes the Kronecker product. This allows a massive weight update to be represented by a few small vectors.
Key Technical Details
- Architecture Agnostic: FTN is applied to both Convolutional layers (3D tensors) and Transformer attention weights (by reshaping them into 3D tensors).
- Task-Specific Batch Normalization: Keeping Batch Normalization (BN) layers task-specific is crucial for handling domain shifts.
- Initialization: Xavier initialization ensures the initial $\Delta W$ is near zero, allowing the model to start from the exact state of the pre-trained "source" model.
Experimental Evaluation
The authors evaluated FTN across a diverse set of benchmarks, including ImageNet-to-Sketch, DomainNet, and NYUD (a multi-task dense prediction dataset).
Key Results
- Efficiency: On the ImageNet-to-Sketch benchmark, FTN (with Rank=50) achieved 85.76% mean accuracy, nearly matching full Fine-Tuning (85.98%) but using only 1.53x the base parameters compared to the 6x required for independent fine-tuning.
- Outperforming PEFT: FTN consistently outperformed other popular methods like LoRA, SVFT, and TAPS in terms of accuracy per additional parameter.
- Dense Prediction: On the NYUD dataset, FTN with Rank=30 outperformed the "Single Task" baseline in Semantic Segmentation and Surface Normal estimation while using significantly fewer parameters.
- Generative Modeling: The authors successfully adapted a BigGAN model to generate images for different seasons, proving the method works beyond simple classification.
Discussion and Insights
By treating weights as tensors rather than flattening them into matrices, FTN captures complex multi-dimensional interactions more efficiently. The rank $R$ acts as a complexity knob: harder tasks benefit from a higher rank, while simpler tasks reach peak accuracy with very low ranks. Because the backbone is frozen and updates are additive/task-specific, adding a new task never degrades the performance of previously learned tasks, effectively solving catastrophic forgetting.
Limitations and Future Work
Currently, FTN uses a fixed rank per layer. Future work could explore adaptive rank selection to automatically choose higher ranks for more "important" layers. Additionally, while parameter-efficient, FTN still requires a separate forward pass for each task; future research could explore branching architectures for simultaneous multi-task inference.
Summary updated