Where Tasks Should Differ: Task Cores Inside High-Order Tensor-Train Adapters for Multi-Task Learning

Multi-task learning trains one network to do several jobs at once, such as segmenting an image, estimating depth, and predicting surface orientation. It works when the tasks help each other and fails when their updates pull the shared weights in opposite directions. Current parameter-efficient methods fine-tune a frozen pretrained backbone with small add-on weight updates, and they decide what to share at a coarse level: a whole adapter is either shared or task-specific, and grouping happens layer by layer. We propose a finer knob. The weight update of each layer is reshaped into a high-order tensor. Its modes are ordered from coarse to fine scale, in the way image-completion work lifts a picture into a nested hierarchy of blocks. The tensor is then factorized as a tensor train, a chain of small three-way "cores" multiplied together. We insert a single task-specific core at a chosen position in this chain. Every core before and after it is shared by all tasks. The task core's position sets which scales of the weight update are allowed to differ across tasks, and its width (the "bond rank", the size of the matrices that link neighbouring cores) sets how much they may differ.

In two sentences: tensorizing an adapter into a coarse-to-fine chain and splicing in one small per-task core turns "how much and where should tasks share" into a continuous, inspectable architectural choice inside each layer, at a few thousand parameters per task. We test whether this beats the strongest grouped-adapter methods on dense multi-task vision. We also test, with a flat-matrix control at the same parameter count, whether the high-order lifting is doing the work or whether a simpler shared-plus-per-task low-rank adapter would do just as well.

Core Claim

Consider an adapted layer with input size $D_{in}=\prod_{k=1}^{K} m_k$ and output size $D_{out}=\prod_{k=1}^{K} n_k$. We write the update for task $t$ in the tensor-train matrix format, where core $k$ handles the $k$-th scale of both input and output. A task core $C_t$ is spliced in after position $p$:

$$\Delta W_t[(i_1,\dots,i_K),(j_1,\dots,j_K)] = G_1[i_1,j_1]\cdots G_p[i_p,j_p]\; C_t \; G_{p+1}[i_{p+1},j_{p+1}]\cdots G_K[i_K,j_K].$$

Here $i_k$ and $j_k$ index the $k$-th input and output factor. Each shared core $G_k[i,j]$ is an $R_{k-1}\times R_k$ matrix, with $R_0=R_K=1$, and $C_t$ is an $R_p\times R_p$ matrix owned by task $t$. The layer computes $W_{shared}+\Delta W_t$ with the backbone frozen.

The claim has three parts. First, at matched trainable-parameter budgets, this parameterization gives higher average per-task improvement on dense multi-task benchmarks than grouped matrix adapters. Second, the gain disappears when the same shared and task-specific budget is spent on a flat factorization with the same structure. That result would show the high-order, scale-ordered lifting is the active ingredient. Third, the best position $p$ is systematic. Dissimilar task pairs should prefer task cores nearer the coarse end, where more of the update is task-specific, and similar pairs should prefer the fine end. This would make the position an interpretable readout of task relatedness, rather than a combinatorial search like task grouping.

Relation to Prior Work

Two papers each supply half of the method, and neither contains the combination.

Deep Multi-task Representation Learning: A Tensor Factorisation Approach (DMTRL) stacks every task's layer weights into a $D_1\times D_2\times T$ tensor and factorizes it with Tucker or tensor-train formats so that sharing is learned. However, it keeps the feature modes flat, so the tensor is only third order. It also trains full weights, and it needed single-task pretrained initialization to be stable.

LoRETTA does the opposite. It reshapes adapter matrices into high-order tensor trains and reports up to 100× fewer trainable parameters than LoRA on LLaMA-2-7B. But its task index is not part of the chain, and it was validated only on language benchmarks.

The lifting idea itself comes from tensor completion. Ket augmentation in Efficient tensor completion for color image and video recovery: Low-rank tensor train and visual data tensorization in High-order tensor completion via gradient-based optimization under tensor train format show that coarse-to-fine reshaping gives balanced unfoldings and far better recovery. For example, TMac-TT reports RSE 0.072 against 0.185 for matrix TMac on the NYC video at 95% missing entries. We borrow the ordering principle, not the completion algorithm. These papers motivate the design; they do not validate it for adapters.

Two further papers constrain the design. Factorized Tensor Networks for Multi-Task and Multi-Domain Learning (FTN) adds low-order CP-style updates to a frozen backbone, with a separate set of factors per task. This keeps training stable but removes cross-task transfer. We adopt its frozen backbone and near-zero initialization, zeroing the last shared core so that $\Delta W_t=0$ at the start. This sidesteps DMTRL's instability while keeping shared cores that receive gradients from every task.

On the multi-task side, TGLORA shares LoRA adapters early in the network and branches them into gradient-similarity groups deeper in the network. It notes that exact grouping search does not scale with the number of tasks. InterroGate learns sparse gates between shared and task-specific branches, but cannot guarantee exact compute budgets. Our knob is continuous and has a fixed budget by construction. Both methods decide sharing across layers or channels; we decide it across scales within a layer, and the two could be combined.

Research Program

We will build the adapter as a drop-in module for the attention and MLP projections of a pretrained vision transformer encoder, with lightweight task-specific decoders. Dimension factorizations follow LoRETTA's practice of small factors (for example, 768 factored as 4·4·4·4·3).

Order matters in this design. Scale-ordered lifting means that factor $k$ indexes a contiguous block at level $k$ of the channel hierarchy. We will compare this against a random permutation of modes, which keeps the parameter count and changes only the ordering.

Computation is organized so that shared cores left of $p$ are contracted with the input once for all tasks. Each task then applies its own $R_p\times R_p$ core, and the right-hand cores follow. The added cost over a single shared adapter is therefore $T$ small matrix products per adapted layer, and we will report wall-clock training time and memory for this overhead.

The analysis program has three strands. We sweep $p$ over all positions for every task pair and triple on the benchmarks, recording per-task improvement. We measure gradient conflict as the cosine between per-task gradients on the shared cores, compared with the same quantity on a shared flat LoRA. This tests Gap 3 of the file directly: whether splitting a chain at a task core actually reduces measured conflict, or merely coincides with better scores. Finally, we test a learned-position variant. It places a cheap task-specific diagonal matrix on every bond, applies a group-sparsity penalty, and keeps the strongest positions. Its purpose is to check whether training recovers the positions found by the sweep, which would remove the need to hand-pick $p$. We treat it as secondary because gating-style sparsity is the part of InterroGate we criticize for weak budget control.

Baselines

The naive reference points are two. One is single-task fine-tuning of the same backbone with one LoRA per task, which is the zero point of the average per-task improvement metric $A_m$. The other is a single LoRA shared by all tasks, which is the "just share everything" point. Both use the same backbone, decoders, schedule, and a hyperparameter search of the same size as our method.

The strongest existing competitor is TGLORA, because it attacks exactly our question (which parts of an adapter tasks should share) on the same dense benchmarks at similar budgets. The file reports TGLORA at $A_m$ = +4.50% with 6.89M parameters on PASCAL-Context, against +2.55% with 8.34M for MTLoRA, both from TGLORA. The file does not state the backbone or training schedule, and it gives no NYUD-v2 numbers for TGLORA. We will therefore rerun TGLORA and MTLoRA under our shared protocol rather than rely only on the reported figures. Beating TGLORA means a higher $A_m$ on PASCAL-Context at a trainable budget no larger than 6.89M, over three seeds, with the gap exceeding seed variance. The file quotes no reported number for the lower-budget regime (≤1M), so that comparison will rest on our own reruns.

Tensor-based competitors are run at matched budgets. These are FTN with per-task factors, and LoRETTA-style tensor-train adapters trained independently per task. The file gives no reported FTN number on NYUD-v2 or PASCAL-Context, so our reruns are the reference. Together these isolate the value of shared cores with a spliced task core versus independent tensor factors. We will also run DMTRL-TT in adapter form, with the task mode appended to a flat $D_{in}\times D_{out}$ tensor, to test the value of lifting the feature modes.

The key ablation is a flat control with the same structure. It uses a shared down-projection $A$, a shared up-projection $B$, and a per-task $r\times r$ matrix between them, sized to match both our shared and task-specific budgets exactly. A second ablation uses our chain with randomly permuted modes. If the flat control ties us, the lifting is not needed. If the permuted chain ties us, the coarse-to-fine ordering is not needed.

Why not just…?

Why not just use a shared LoRA with a small per-task matrix in the middle? This is the most serious threat. If our task core sat between all input and all output modes, the method would collapse to exactly this adapter. The distinguishing bet is that the tensor-train matrix format pairs input and output at each scale, so a task core at intermediate $p$ modulates the update between coarse and fine scales. A flat factorization cannot express that. We do not assume this helps; the matched flat control is the headline ablation. If it wins, we will report that the high-order lifting adds nothing to multi-task adaptation beyond compression.

Why not just use TGLORA-style grouping or gating? Grouping chooses sharing per layer through a search that TGLORA itself notes does not scale with the number of tasks. Gating in InterroGate cannot fix compute budgets exactly. Our position and bond-rank choices have a fixed cost and can be swept in time linear in the number of positions. Grouping and within-layer scale sharing are complementary, so we also run TGLORA's grouping with our adapter inside each group. If that combination is best, the contribution is the within-layer knob, not a replacement for grouping.

Why not just train independent LoRETTA adapters per task? LoRETTA's anti-forgetting results come from low parameter counts, not from transfer between tasks. Independent adapters cannot benefit when one task has little data. We test this directly by subsampling one task, for example depth on NYUD-v2 at 10% of its labels. DMTRL reported its tensor-train gains mainly in low-data regimes, such as 1% of MNIST, so this is where shared cores should matter most.

Why not just balance the losses, as in MT-CP? Loss prioritization in Optimizing Dense Visual Predictions Through Multi-Task Coherence and Prioritization rescales gradients but leaves every parameter shared. That paper reports 56.25 mIoU segmentation and 0.4316 RMSE depth on NYUD-v2, with a full architecture that is not budget-matched. Loss balancing is orthogonal to our method, so we apply the same log-loss weighting to all adapter methods. Any gain we claim is then on top of it.

Proposed Experiments

The primary benchmark is PASCAL-Context with four tasks: semantic segmentation, human parts, saliency, and surface normals. The secondary benchmark is NYUD-v2 with segmentation, depth, and normals. Metrics are per-task mIoU, RMSE, and mean angular error, plus $A_m$ relative to single-task LoRA. We evaluate at budgets of 0.5M, 2M, and 6.89M trainable parameters, three seeds each. We report training time and memory, since forward-pass overhead is a known cost of tensor-factorized layers per DMTRL.

The decisive checks are three. First, we must beat rerun TGLORA on PASCAL-Context $A_m$ at ≤6.89M parameters. Second, we must beat the matched flat control and the permuted-mode chain, with the largest margins expected at the lowest budget. Third, the optimal task-core position from the sweep should correlate with measured task affinity, meaning the gradient cosine under a shared adapter, across all task pairs. It should also be recovered by the learned-position variant.

As an out-of-domain check that the effect is not specific to vision, we repeat the flat-versus-lifted comparison on multi-task GLUE with DeBERTa-Base, following LoRETTA's setting.

If the first check passes but the second fails, the paper becomes a negative result about lifting, and that is still worth reporting. If the third fails, position is a hyperparameter rather than a diagnostic, and we will say so.