△ Mechanism confirmed, baseline not beaten 2026

Residual-Redundancy Adapter Clustering

Implementation & benchmark of arXiv:2607.16554 — Capacity and Redundancy Trade-offs in Multi-Task Learning

Usefulness7/10
Difficulty5/10
Novelty6/10

Source paper: Capacity and Redundancy Trade-offs in Multi-Task Learning arXiv:2607.16554 ⓘ · analyzed Aug 30, 2026

AI-generated research hypothesis, automatically tested. Not peer-reviewed.

Idea description

Replace one globally shared LoRA adapter with a small set of adapters whose task membership is chosen by residual redundancy. Tasks with strongly correlated validation residuals share an adapter, while tasks with weak or antagonistic residual dependence receive separate adapters. Recompute the partition periodically so the architecture follows the coupling that remains after training rather than correlations in the raw labels or initial gradients.

Formulas

$$TC(Y^{(1:T)})=\sum_{t=1}^{T}H\!\left(Y^{(t)}\right)-H\!\left(Y^{(1:T)}\right)\geq 0$$
$$I\!\left(Z;Y^{(1:T)}\right)\leq\sum_{t=1}^{T}I\!\left(Z;Y^{(t)}\right)\leq I\!\left(Z;Y^{(1:T)}\right)+TC(Y^{(1:T)})$$
$$\widehat{TC}_{G}(E)=\frac{1}{2}\log\frac{\prod_{t\in G}\widehat{\Sigma}_{tt}}{\det\!\left(\widehat{\Sigma}_{G}+\epsilon I\right)}$$
$$\widehat{\Sigma}=\frac{1}{n-1}\sum_{i=1}^{n}(e_i-\bar e)(e_i-\bar e)^{\top},\qquad e_i^{(t)}=y_i^{(t)}-\hat y_i^{(t)}$$

Mathematical statement

The paper defines total correlation as $TC(Y^{(1:T)})=\sum_{t=1}^{T}H(Y^{(t)})-H(Y^{(1:T)})\geq 0$, where $Y^{(t)}$ is task $t$'s label and $H$ is Shannon entropy. For a representation $Z$, Lemma 3.1 gives the chain-rule sandwich $I(Z;Y^{(1:T)})\leq\sum_t I(Z;Y^{(t)})\leq I(Z;Y^{(1:T)})+TC(Y^{(1:T)})$, where $I$ is mutual information. Dependence that remains in prediction errors after conditioning on the representation is an operational proxy for unresolved coupling. For continuous Gaussian residuals $E=(e^{(1)},\ldots,e^{(T)})$ with covariance $\Sigma$, estimate this dependence using $\widehat{TC}_{G}(E)=\frac{1}{2}\log\frac{\prod_t\Sigma_{tt}}{\det(\Sigma+\epsilon I)}$, where $\epsilon>0$ stabilizes the determinant. For a candidate cluster $G$, use the principal covariance submatrix $\Sigma_G$; the resulting score measures multivariate residual dependence among tasks in that cluster. The covariance is estimated from held-out residual vectors $e_i^{(t)}=y_i^{(t)}-\hat y_i^{(t)}$, with shrinkage needed when the validation buffer is small.

Implementation notes

1. Integration point: in a multi-task Transformer or encoder, replace a single shared LoRA update $W\leftarrow W+B A$ with $K$ cluster-specific updates $W\leftarrow W+B_kA_k$. The task ID selects cluster $k$, so routing is performed once per example and adds no token-level routing overhead. Keep the base model frozen initially and train the adapters and task heads. 2. Pseudocode: train a shared rank-$r$ adapter for a warm-up period; on a held-out validation buffer, collect residual vectors $e_i=[e_i^{(1)},\ldots,e_i^{(T)}]$ with $e_i^{(t)}=y_i^{(t)}-\hat y_i^{(t)}$; compute the sample covariance; apply shrinkage $\widehat\Sigma\leftarrow(1-\alpha)\widehat\Sigma+\alpha\operatorname{diag}(\widehat\Sigma)$; for each candidate task group $G$, calculate $TC_G=0.5[\sum_{t\in G}\log(\widehat\Sigma_{tt}+\epsilon)-\log\det(\widehat\Sigma_G+\epsilon I)]$; use agglomerative clustering with merge cost $TC_{A\cup B}-TC_A-TC_B$, stopping at a parameter-budget-selected $K$; instantiate one LoRA adapter per group and continue training. Re-estimate every 1--3 epochs, but only change assignments when the score improvement exceeds a hysteresis threshold. 3. The Gaussian total-correlation estimator, covariance shrinkage, and merge score are computed from the paper's mathematics; $K$, rank allocation, shrinkage $\alpha$, reassignment interval, and threshold are empirical hyperparameters. 4. First cheap experiment: use T5-small or a small shared encoder on six mixed classification and regression tasks. Compare one shared rank-8 LoRA, independent task-specific rank-8 LoRAs, random equal-size partitions, gradient-cosine clustering, and residual-TC clustering at equal total adapter parameters. Track mean score, worst-task score, validation residual TC, parameter count, and training memory. The expected signal is lower residual TC and better mean or worst-task validation performance than random and globally shared adapters at the same adapter budget.

Verification

Mechanism confirmed, baseline not beaten

Stage 1 · Toy mechanism gate: Passed ✓

Stage 2 · Mechanism transferred to benchmark: Confirmed ✓

Stage 2 · Practical benchmark result: No measurable effect

Methodology: 8 paired seeds, permutation test (p<0.05) against a learning-rate-tuned baseline. How verification works

Stage 1 — Mechanism check agent confidence 9/10

Built a readable NumPy MVP implementing shrinkage covariance, Gaussian residual total correlation, merge-cost agglomerative clustering, and an equal-budget multitask regression comparison. The mechanism manifested: empirical TC matched the exact Gaussian formula across rho=0..0.8, small-rho behavior was approximately quadratic, and clustering recovered all three true residual pairs for rho>=0.2. At equal nominal adapter parameters (36), residual-TC routing achieved MSE 0.426 versus 5.375 for random routing and 8.808 for a shared low-rank adapter; this is a strong toy signal, not evidence of general Transformer/LoRA superiority.

Agent confidence
9/10
Baseline
Shared low-rank adapter: MSE 8.8078, 36 nominal parameters. Random 3-way partition: MSE 5.3748, 36 parameters.
Idea
Residual-TC partition: MSE 0.4261, 36 parameters; recovered [[0,1],[2,3],[4,5]]. Gaussian TC prediction errors were <=0.0104 over rho=0..0.8; pairwise TC matched -0.5 log(1-rho^2) with observed versus predicted values .0216/.0204, .0858/.0872, .2259/.2231, and .5145/.5108 for rho=.2/.4/.6/.8. Exact block recovery was 4/5 sweep points, failing only at rho=0 as expected from no signal.

Limitations: Only a synthetic six-task linear regression was tested; no Transformer, LoRA implementation, GPU, periodic reassignment, hysteresis, mixed classification/regression, gradient-clustering baseline, or memory/speed measurement was evaluated. The equal parameter counts are nominal adapter counts and omit shared-head/base-model accounting.

How to run: python3 experiment.py

Stage 2 — Benchmark vs. tuned baseline (arXiv:2607.16554)

No significant difference vs. the tuned baseline (+0.3%, p=0.2276, wins 2 / 8 paired seeds).

Benchmark
Custom_correlated_multitask_regression
Model
mlp_tiny
Paired seeds
8
Baseline mean
0.391
Idea mean
0.3923
Effect (Δ)
0.0014 (+0.3%; negative = idea better)
Wins
2 / 8 paired seeds
p-value
0.2276 (permutation test, 20 000 shuffles)
Smallest detectable effect
±0.6%
Mechanism
Confirmed ✓
Practical effect
No effect
Baseline tuning
swept over 3 configs
Limitations:

Only the custom six-task regression track was tested; no built-in vision, sequence, or dynamics track was structurally matched. The implementation uses one-time post-warmup partitioning rather than periodic reassignment or hysteresis, and does not measure memory, throughput, or a Transformer/LoRA implementation.

How to run: python3 bench_run.py

Verdict computed by deterministic test code from paired-seed statistics — not by the language model.

Stage 2 — Benchmark latest Failed ✗

Agent confidence: 9/10

Implemented Residual-Redundancy Adapter Clustering as a local custom multi-task regression benchmark because no built-in track contains multi-task residual coupling. The trained models recovered the true task pairs on all 8 seeds and reduced within-cluster residual TC, but MSE was marginally worse than the equal-budget shared-adapter baseline (0.39232 vs 0.39095; paired delta +0.00137; permutation p=0.22765), so there was no significant win.

Baseline
Shared rank-9 adapter, lr=0.006: test MSE 0.39095 ± 0.02006 over 8 seeds.
Idea
Residual-TC routed three rank-3 adapters, lr=0.006: test MSE 0.39232 ± 0.02027 over 8 seeds; paired delta +0.00137, p=0.22765. Pair recovery=1.0; mean all-task residual TC=1.30896; mean within-cluster TC=0.40378; mechanism confirmed=true.

Benchmark result

No significant difference vs. the tuned baseline (+0.3%, p=0.2276, wins 2 / 8 paired seeds).

Benchmark
Custom_correlated_multitask_regression
Model
mlp_tiny
Paired seeds
8
Baseline mean
0.391
Idea mean
0.3923
Effect (Δ)
0.0014 (+0.3%; negative = idea better)
Wins
2 / 8 paired seeds
p-value
0.2276 (permutation test, 20 000 shuffles)
Smallest detectable effect
±0.6%
Mechanism
Confirmed ✓
Practical effect
No effect
Baseline tuning
swept over 3 configs
Limitations:

Only the custom six-task regression track was tested; no built-in vision, sequence, or dynamics track was structurally matched. The implementation uses one-time post-warmup partitioning rather than periodic reassignment or hysteresis, and does not measure memory, throughput, or a Transformer/LoRA implementation.

How to run: python3 bench_run.py

Artifacts

Implementation overview ⬇ Download all as ZIP 7 files · code, reports and structured results