Papers › Bayesian Uncertainty for Gradient Aggregation in Multi-Task Learning

Bayesian Uncertainty for Gradient Aggregation in Multi-Task Learning

6 Feb 2024arXiv:2402.04005archive 2025-07-28

Idan Achituve, Idit Diamant, Arnon Netzer, Gal Chechik, Ethan Fetaya

As machine learning becomes more prominent there is a growing demand to perform several inference tasks in parallel. Running a dedicated model for each task is computationally expensive and therefore there is a great interest in multi-task learning (MTL). MTL aims at learning a single model that solves several tasks efficiently. Optimizing MTL models is often achieved by computing a single gradient per task and aggregating them for obtaining a combined update direction. However, these approaches do not consider an important aspect, the sensitivity in the gradient dimensions. Here, we introduce a novel gradient aggregation approach using Bayesian inference. We place a probability distribution over the task-specific parameters, which in turn induce a distribution over the gradients of the tasks. This additional valuable information allows us to quantify the uncertainty in each of the gradients dimensions, which can then be factored in when aggregating them. We empirically demonstrate the benefits of our approach in a variety of datasets, achieving state-of-the-art performance.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.04005")

Code

Syntology Ran 7 of 8 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · violated contract; 6 ran with no contract checked.

By repository: official repository: 8 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ssi-research/bayesagg_mtl officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

8 samples harvested; 7 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
6ran
1unverified

Licence: 0 of the 8 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ssi-research/bayesagg_mtl. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

delta_fn ssi-research/bayesagg_mtl/experiments/ChestX_ray14/calc_delta.py official repository ran Apache-2.0 (permissive) · 91108f5574eb04e9 · report
delta_fn ssi-research/bayesagg_mtl/experiments/utkface/calc_delta.py official repository ran Apache-2.0 (permissive) · b459d7ee22384921 · report
one_hot ssi-research/bayesagg_mtl/experiments/CIFAR_MTL/data.py official repository ran Apache-2.0 (permissive) · 2ded4a4604e0c9fa · report
psd_safe_cholesky ssi-research/bayesagg_mtl/BayesAgg_MTL/BayesAggMTL.py official repository ran Apache-2.0 (permissive) · 952afea58c65f3cd · report
str2bool ssi-research/bayesagg_mtl/experiments/utils.py official repository ran · violated contract Apache-2.0 (permissive) · 7c508037b40522af · report
str_or_float ssi-research/bayesagg_mtl/experiments/utils.py official repository ran fingerprinted Apache-2.0 (permissive) · eefc191f062ea49a · report
str_to_list ssi-research/bayesagg_mtl/experiments/utils.py official repository ran Apache-2.0 (permissive) · 267fdf7ca1571871 · report
delta_fn ssi-research/bayesagg_mtl/experiments/CIFAR_MTL/calc_delta.py official repository unverified Apache-2.0 (permissive) · 3dc5e431a2586388 · report

Tasks

Bayesian InferenceMulti-Task Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Multi-Task Learning ChestX-ray14 BayesAgg-MTL delta_m −14.96 #1 of 1 Archive leaderboard report
Multi-Task Learning QM9 BayesAgg-MTL ∆m% 53.7 #1 of 5 Archive leaderboard report
Multi-Task Learning UTKFace BayesAgg-MTL delta_m -2.23 #1 of 1 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections