{"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-05838","title":"MDN: Parallelizing Stepwise Momentum for Delta Linear Attention","arxiv_id":"2605.05838","date":"2026-05-07","proceeding":"ICML","authors":["Yulong Huang","Xiang Liu","Hongxiang Huang","Xiaopeng Lin","Zunchang Liu","Xiaowen Chu","Zeke Xie","Bojun Cheng"],"abstract":"Linear Attention (LA) offers a promising paradigm for scaling large language models (LLMs) to long sequences by avoiding the quadratic complexity of self-attention. Recent LA models such as Mamba2 and GDN interpret linear recurrences as closed-form online stochastic gradient descent (SGD), but naive SGD updates suffer from rapid information decay and suboptimal convergence in optimization. While momentum-based optimizers provide a natural remedy, they pose challenges in simultaneously achieving training efficiency and effectiveness. To address this, we develop a chunkwise parallel algorithm for LA with a stepwise momentum rule by geometrically reordering the update coefficients. Further, from a dynamical systems perspective, we analyze the momentum-based recurrence as a second-order system that introduces complex conjugate eigenvalues. This analysis guides the design of stable gating constraints. The resulting model, Momentum DeltaNet (MDN), leverages Triton kernels to achieve comparable training throughput with competitive linear models such as Mamba2 and KDA. Extensive experiments on the 400M and 1.3B parameter models demonstrate consistent performance improvements over strong baselines, including Transformers, Mamba2 and GDN, across diverse downstream evaluation benchmarks. Code: https://github.com/HuuYuLong/MomentumDeltaNet .","url_abs":"https://arxiv.org/abs/2605.05838","url_pdf":"https://arxiv.org/pdf/2605.05838","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":{"syntology_url":"https://syntology.ai/paper/2605.05838","atlas_url":"https://app.syntology.ai/?focus=2605.05838","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2605.05838"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/HuuYuLong/MomentumDeltaNet","reach":null}],"summary":{"ran":6,"unverified":1},"by_repo_kind":{"found_in_text":{"samples":7,"ran":6,"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":7,"samples":[{"code_sha256_prefix":"0845298160feaa9f","entry":"get_checkpoint_filename","repo":"HuuYuLong/MomentumDeltaNet","repo_kind":"found_in_text","path":"flash-linear-attention/evals/pre_token_loss.py","file_url":"https://github.com/HuuYuLong/MomentumDeltaNet/blob/HEAD/flash-linear-attention/evals/pre_token_loss.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0845298160feaa9f"}},{"code_sha256_prefix":"436ce5c834612dd2","entry":"get_model","repo":"HuuYuLong/MomentumDeltaNet","repo_kind":"found_in_text","path":"flame/flame/models/parallelize_fla.py","file_url":"https://github.com/HuuYuLong/MomentumDeltaNet/blob/HEAD/flame/flame/models/parallelize_fla.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"436ce5c834612dd2"}},{"code_sha256_prefix":"a0c03868385003bf","entry":"get_step_from_filename","repo":"HuuYuLong/MomentumDeltaNet","repo_kind":"found_in_text","path":"flash-linear-attention/evals/pre_token_loss.py","file_url":"https://github.com/HuuYuLong/MomentumDeltaNet/blob/HEAD/flash-linear-attention/evals/pre_token_loss.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a0c03868385003bf"}},{"code_sha256_prefix":"b61c7ce61156f874","entry":"load_checkpoint","repo":"HuuYuLong/MomentumDeltaNet","repo_kind":"found_in_text","path":"flash-linear-attention/evals/pre_token_loss.py","file_url":"https://github.com/HuuYuLong/MomentumDeltaNet/blob/HEAD/flash-linear-attention/evals/pre_token_loss.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b61c7ce61156f874"}},{"code_sha256_prefix":"8f1d706c161e16ba","entry":"rescale_accumulated_loss","repo":"HuuYuLong/MomentumDeltaNet","repo_kind":"found_in_text","path":"flame/torchtitan/components/loss.py","file_url":"https://github.com/HuuYuLong/MomentumDeltaNet/blob/HEAD/flame/torchtitan/components/loss.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8f1d706c161e16ba"}},{"code_sha256_prefix":"228f14f717999326","entry":"string_list","repo":"HuuYuLong/MomentumDeltaNet","repo_kind":"found_in_text","path":"flame/flame/config_manager.py","file_url":"https://github.com/HuuYuLong/MomentumDeltaNet/blob/HEAD/flame/flame/config_manager.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"228f14f717999326"}},{"code_sha256_prefix":"e0b6e383f758e9a0","entry":"cross_entropy_loss","repo":"HuuYuLong/MomentumDeltaNet","repo_kind":"found_in_text","path":"flame/torchtitan/components/loss.py","file_url":"https://github.com/HuuYuLong/MomentumDeltaNet/blob/HEAD/flame/torchtitan/components/loss.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e0b6e383f758e9a0"}}]},"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}