Papers › Approaching Deep Learning through the Spectral Dynamics of Weights

Approaching Deep Learning through the Spectral Dynamics of Weights

21 Aug 2024arXiv:2408.11804archive 2025-07-28

David Yunis, Kumar Kshitij Patel, Samuel Wheeler, Pedro Savarese, Gal Vardi, Karen Livescu, Michael Maire, Matthew R. Walter

We propose an empirical approach centered on the spectral dynamics of weights -- the behavior of singular values and vectors during optimization -- to unify and clarify several phenomena in deep learning. We identify a consistent bias in optimization across various experiments, from small-scale ``grokking'' to large-scale tasks like image classification with ConvNets, image generation with UNets, speech recognition with LSTMs, and language modeling with Transformers. We also demonstrate that weight decay enhances this bias beyond its role as a norm regularizer, even in practical systems. Moreover, we show that these spectral dynamics distinguish memorizing networks from generalizing ones, offering a novel perspective on this longstanding conundrum. Additionally, we leverage spectral dynamics to explore the emergence of well-performing sparse subnetworks (lottery tickets) and the structure of the loss surface through linear mode connectivity. Our findings suggest that spectral dynamics provide a coherent framework to better understand the behavior of neural networks across diverse settings.

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

Code

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

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

dyunis/spectral_dynamics officialmentioned in paperpytorchMIT 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

14 samples harvested; 9 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.

9ran
5unverified

Licence: 0 of the 14 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 dyunis/spectral_dynamics. “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.

conv2d_input_shapes dyunis/spectral_dynamics/image_classification/model.py official repository ran MIT (permissive) · 49bb1128d25e4dc4 · report
evaluate dyunis/spectral_dynamics/language_modeling/evaluate_run.py official repository ran MIT (permissive) · 1aad283571ee906a · report
get_and_trim_cp_paths dyunis/spectral_dynamics/language_modeling/make_branches_yaml.py official repository ran MIT (permissive) · c2e0451207d436cd · report
get_svd_dict dyunis/spectral_dynamics/language_modeling/evaluate_lmc.py official repository ran MIT (permissive) · d6f1b61e8dca7621 · report
pl_ckpt_path_to_step dyunis/spectral_dynamics/language_modeling/make_branches_yaml.py official repository ran MIT (permissive) · f284942528713b0e · report
preprocess_datasets dyunis/spectral_dynamics/language_modeling/dataset.py official repository ran MIT (permissive) · 562e12a2970b7659 · report
resnet_from_name dyunis/spectral_dynamics/image_classification/model.py official repository ran MIT (permissive) · 3cf65ac55ede7d31 · report
sv_prune_model_ dyunis/spectral_dynamics/language_modeling/evaluate_run.py official repository ran MIT (permissive) · 421c25a8e350f9cb · report
valid_model_name dyunis/spectral_dynamics/image_classification/model.py official repository ran MIT (permissive) · 5b1648aecd7770b5 · report
evaluate dyunis/spectral_dynamics/language_modeling/evaluate_lmc.py official repository unverified MIT (permissive) · 73f3caf50cec419a · report
evaluate_lmc dyunis/spectral_dynamics/language_modeling/evaluate_lmc.py official repository unverified MIT (permissive) · 2751b3274de1defd · report
evaluate_run dyunis/spectral_dynamics/language_modeling/evaluate_run.py official repository unverified MIT (permissive) · e9c261f899d592a9 · report
get_dataset dyunis/spectral_dynamics/language_modeling/dataset.py official repository unverified MIT (permissive) · 7c9887b6cb835a29 · report
setup_wandb dyunis/spectral_dynamics/language_modeling/config.py official repository unverified MIT (permissive) · 2c00218b3148eba4 · report

Tasks

Deep LearningImage ClassificationImage GenerationLanguage ModelingLanguage ModellingLinear Mode ConnectivitySpeech Recognitionimage-classificationspeech-recognition

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Weight Decay

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