{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2605-17109","title":"DynMuon: A Dynamic Spectral Shaping View of Muon","arxiv_id":"2605.17109","date":"2026-05-16","proceeding":null,"authors":["Fangzhou Wu","Rikhav Shah","Sandeep Silwal","Qiuyi Zhang"],"abstract":"In recent years, Muon has emerged as the dominant method for training large language models, and transformers more broadly. The essential difference, when compared to standard gradient descent methods, is to replace the usual update matrix $M=UΣV^\\top$ with its polar factor $UV^\\top$. In this work, we consider a class of Muon-like updates, where we replace the update $M$ with $UΣ^p V^\\top$ for some parameter $p$. We call this a \"spectral-shaping\" operation, and develop a theory of how to pick $p$ which depends on (a) local curvature of the loss function, (b) noise stemming from stochastic gradients and label noise, and (c) training stage. Our theory and experimentation reveal a previously overlooked behavior: positive $p$ helps early by emphasizing high-curvature directions and accelerating signal contraction, while mildly negative $p$ helps later by reallocating update strength toward low-curvature directions that still contain useful training signals. Building on the insight, we propose DynMuon, an efficient dynamic spectral shaping method that schedules $p$ from positive to mildly negative over training. Extensive experiments across model sizes, architectures, and training settings show that DynMuon consistently achieves lower validation loss than Muon, while requiring 10.6-26.5% fewer steps to reach the same target loss. Our code is available at https://github.com/fzwark/DynMuon.","url_abs":"https://arxiv.org/abs/2605.17109","url_pdf":"https://arxiv.org/pdf/2605.17109","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2605.17109","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2605.17109"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/fzwark/DynMuon","reach":null}],"summary":{"ran":5,"unverified":8},"by_repo_kind":{"found_in_text":{"samples":13,"ran":5,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"108dabd52e56fd7a","entry":"adjust_lr_rms_norm","repo":"fzwark/DynMuon","repo_kind":"found_in_text","path":"dynmuon/muon.py","file_url":"https://github.com/fzwark/DynMuon/blob/HEAD/dynmuon/muon.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"108dabd52e56fd7a"}},{"code_sha256_prefix":"c3fd994cb3f31ec3","entry":"make_work_view","repo":"fzwark/DynMuon","repo_kind":"found_in_text","path":"dynmuon/dion2.py","file_url":"https://github.com/fzwark/DynMuon/blob/HEAD/dynmuon/dion2.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c3fd994cb3f31ec3"}},{"code_sha256_prefix":"55f3b260f2d8ad92","entry":"muon_update_newton_schulz","repo":"fzwark/DynMuon","repo_kind":"found_in_text","path":"dynmuon/dynmuon.py","file_url":"https://github.com/fzwark/DynMuon/blob/HEAD/dynmuon/dynmuon.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"55f3b260f2d8ad92"}},{"code_sha256_prefix":"c87588f218c6b548","entry":"pad_batch","repo":"fzwark/DynMuon","repo_kind":"found_in_text","path":"dynmuon/opt_utils.py","file_url":"https://github.com/fzwark/DynMuon/blob/HEAD/dynmuon/opt_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c87588f218c6b548"}},{"code_sha256_prefix":"d4a192aee47e233b","entry":"tensor_list_to_batch","repo":"fzwark/DynMuon","repo_kind":"found_in_text","path":"dynmuon/dion.py","file_url":"https://github.com/fzwark/DynMuon/blob/HEAD/dynmuon/dion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d4a192aee47e233b"}},{"code_sha256_prefix":"0f4f2333e89a6c8c","entry":"apply_rotary_emb","repo":"fzwark/DynMuon","repo_kind":"found_in_text","path":"models/gpt_model.py","file_url":"https://github.com/fzwark/DynMuon/blob/HEAD/models/gpt_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0f4f2333e89a6c8c"}},{"code_sha256_prefix":"236cf49c684e8b2b","entry":"dynmuon_spectral_transform","repo":"fzwark/DynMuon","repo_kind":"found_in_text","path":"dynmuon/dynmuon.py","file_url":"https://github.com/fzwark/DynMuon/blob/HEAD/dynmuon/dynmuon.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"236cf49c684e8b2b"}},{"code_sha256_prefix":"7389be48732fd21c","entry":"fractional_orthonormalize_update","repo":"fzwark/DynMuon","repo_kind":"found_in_text","path":"dynmuon/dion2.py","file_url":"https://github.com/fzwark/DynMuon/blob/HEAD/dynmuon/dion2.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7389be48732fd21c"}},{"code_sha256_prefix":"dd589cd9a5cfb32c","entry":"muon_update_pre_orthogonalize","repo":"fzwark/DynMuon","repo_kind":"found_in_text","path":"dynmuon/dynmuon.py","file_url":"https://github.com/fzwark/DynMuon/blob/HEAD/dynmuon/dynmuon.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dd589cd9a5cfb32c"}},{"code_sha256_prefix":"a3f2d02d0570518a","entry":"normuon_normalization","repo":"fzwark/DynMuon","repo_kind":"found_in_text","path":"dynmuon/normuon.py","file_url":"https://github.com/fzwark/DynMuon/blob/HEAD/dynmuon/normuon.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a3f2d02d0570518a"}},{"code_sha256_prefix":"c519983769c2088e","entry":"topk_and_orthonormalize","repo":"fzwark/DynMuon","repo_kind":"found_in_text","path":"dynmuon/dion2.py","file_url":"https://github.com/fzwark/DynMuon/blob/HEAD/dynmuon/dion2.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c519983769c2088e"}},{"code_sha256_prefix":"2c92c3e5770228d4","entry":"zeropower_via_newtonschulz5","repo":"fzwark/DynMuon","repo_kind":"found_in_text","path":"dynmuon/muon_reference.py","file_url":"https://github.com/fzwark/DynMuon/blob/HEAD/dynmuon/muon_reference.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2c92c3e5770228d4"}},{"code_sha256_prefix":"fbcadf5bf33cd8bd","entry":"zeropower_via_newtonschulz5","repo":"fzwark/DynMuon","repo_kind":"found_in_text","path":"dynmuon/newton_schulz_triton.py","file_url":"https://github.com/fzwark/DynMuon/blob/HEAD/dynmuon/newton_schulz_triton.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fbcadf5bf33cd8bd"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}