Papers › Layer-wise Linear Mode Connectivity

Layer-wise Linear Mode Connectivity

13 Jul 2023arXiv:2307.06966archive 2025-07-28

Linara Adilova, Maksym Andriushchenko, Michael Kamp, Asja Fischer, Martin Jaggi

Averaging neural network parameters is an intuitive method for fusing the knowledge of two independent models. It is most prominently used in federated learning. If models are averaged at the end of training, this can only lead to a good performing model if the loss surface of interest is very particular, i.e., the loss in the midpoint between the two models needs to be sufficiently low. This is impossible to guarantee for the non-convex losses of state-of-the-art networks. For averaging models trained on vastly different datasets, it was proposed to average only the parameters of particular layers or combinations of layers, resulting in better performing models. To get a better understanding of the effect of layer-wise averaging, we analyse the performance of the models that result from averaging single layers, or groups of layers. Based on our empirical and theoretical investigation, we introduce a novel notion of the layer-wise linear connectivity, and show that deep networks do not have layer-wise barriers between them.

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="2307.06966")

Code

Syntology Ran 13 of 18 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 13 ran with no contract checked.

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

link-er/layer-wise-lmc officialmentioned in paperpytorch 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

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

13ran
5unverified

Licence: 18 of the 18 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 link-er/layer-wise-lmc. “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.

extract_column link-er/layer-wise-lmc/LLMC/layer_cumulative_heatmap.py official repository ran no licence file found · pointer only · 44f01653b8cf1975 · report
flatten_weights link-er/layer-wise-lmc/LLMC/nets_function_similarity.py official repository ran no licence file found · pointer only · 40cc1995de8f761a · report
function_similarity link-er/layer-wise-lmc/LLMC/nets_function_similarity.py official repository ran no licence file found · pointer only · b592d76b4f6b4201 · report
get_barrier link-er/layer-wise-lmc/LLMC/barrier.py official repository ran no licence file found · pointer only · 9eb1fab42625b164 · report
get_fed_cifar10_loaders link-er/layer-wise-lmc/LLMC/datasets.py official repository ran no licence file found · pointer only · 3f4f5555d18d1bba · report
get_full_fed_cifar10_loaders link-er/layer-wise-lmc/LLMC/datasets.py official repository ran no licence file found · pointer only · 49957b7ee1419059 · report
get_layer_barrier link-er/layer-wise-lmc/LLMC/barrier.py official repository ran no licence file found · pointer only · 192d974fb6f9cd09 · report
get_layer_blocks link-er/layer-wise-lmc/LLMC/pythia_models.py official repository ran no licence file found · pointer only · a970412946104eb4 · report
get_layer_random_barrier link-er/layer-wise-lmc/LLMC/barrier.py official repository ran no licence file found · pointer only · bf025bbca4033969 · report
get_states link-er/layer-wise-lmc/LLMC/layer_cumulative_compute.py official repository ran no licence file found · pointer only · 728827a3563e0670 · report
get_states link-er/layer-wise-lmc/LLMC/layerwise_nonconvex_compute.py official repository ran no licence file found · pointer only · b5348d1b58a5796c · report
interpolate_state_dicts link-er/layer-wise-lmc/LLMC/pythia_models.py official repository ran no licence file found · pointer only · e66ee958fa003cab · report
model_predictions link-er/layer-wise-lmc/LLMC/nets_function_similarity.py official repository ran no licence file found · pointer only · ead38901ea916085 · report
create_data_for_heatmap link-er/layer-wise-lmc/LLMC/layer_cumulative_heatmap.py official repository unverified no licence file found · pointer only · 7e43290c7da2aebf · report
create_data_for_heatmap link-er/layer-wise-lmc/LLMC/layerwise_nonconvex_heatmap.py official repository unverified no licence file found · pointer only · bb2dace4d2cf2be6 · report
create_data_for_heatmap link-er/layer-wise-lmc/LLMC/layerwise_robustness_plot.py official repository unverified no licence file found · pointer only · 34569af015a2523b · report
get_cifar10_loaders link-er/layer-wise-lmc/LLMC/datasets.py official repository unverified no licence file found · pointer only · 2d5f7b5584850a83 · report
get_wikitext_data link-er/layer-wise-lmc/LLMC/pythia_models.py official repository unverified no licence file found · pointer only · eb9415ddd7c070b8 · report

Tasks

Federated LearningLinear Mode Connectivity

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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