Archive of AI

Source Snapshot / 2025-07-31-deepseek-nsa-acl-2025-best-paper-2

Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention - ACL Anthology

Linked event: 2025-07-31 · DeepSeek Native Sparse Attention (NSA) Paper Wins Best Paper Award at ACL 2025

Publisher
ACL Anthology
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / 89361aac82411ef7
Original URL
Open source ↗
Wayback Backup
Wayback archive ↗
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

[来源关键摘录] Peer-reviewed proceedings record of NSA in the ACL 2025 main conference anthology.

[正文前段节选] Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention

Jingyang Yuan,

Zhengyan Zhang,

Zhiping Xiao,

Yuqing Wang,

Wenfeng Liang,

Wangding Zeng

Correct Metadata for

ALL author names match the snapshot above—including

middle initials, hyphens, and accents.

Create GitHub issue for staff review

AbstractLong-context modeling is crucial for next-generation language models, yet the high computational cost of standard attention mechanisms poses significant computational challenges. Sparse attention offers a promising direction for improving efficiency while maintaining model capabilities. We present NSA, a Natively trained Sparse Attention mechanism that integrates algorithmic innovations with hardware-aligned optimizations to achieve efficient long-context modeling. NSA employs a dynamic hierarchical sparse strategy, combining coarse-grained token compression with fine-grained token selection to preserve both global context awareness and local precision. Our approach advances sparse attention design with two key innovations: (1) We achieve substantial speedups through arithmetic intensity-balanced algorithm design, with implementation optimizations for modern hardware. (2) We enable end-to-end training, reducing pretraining computation without sacrificing model performance. As shown in Figure 1, experiments show the model pretrained with NSA maintains or exceeds Full Attention models across general benchmarks, long-context tasks, and instruction-based reasoning. Meanwhile, NSA achieves substantial speedups over Full Attention on 64k-length sequences across decoding, forward propagation, and backward propagation, validating its efficiency throughout the model lifecycle.

Anthology ID:2025.acl-long.1126Volume:Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)Month:JulyYear:2025Address:Vienna, AustriaEditors:Wanxiang Che,

Joyce Nabende,

Ekaterina Shutova,

Mohammad Taher PilehvarVenue:ACLSIG:Publisher:Association for Computational LinguisticsNote:Pages:23078–23097Language:URL:https://aclanthology.org/2025.acl-long.1126/DOI:10.18653/v1/2025.acl-long.1126Award:

Bibkey:yuan-etal-2025-nativeCite (ACL):Jingyang Yuan, Huazuo Gao, Damai Dai, Junyu Luo, Liang Zhao, Zhengyan Zhang, Zhenda Xie, Yuxing Wei, Lean Wang, Zhiping Xiao, Yuqing Wang, Chong Ruan, Ming Zhang, Wenfeng Liang, and Wangding Zeng. 2025. Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 23078–23097, Vienna, Austria. Association for Computational Linguistics.Cite (Informal):Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention (Yuan et al., ACL 2025)Copy Citation:BibTeX

options…PDF:https://aclanthology.org/2025.acl-long.1126.pdfVideo: https://aclanthology.org/2025.acl-long.1126.mp4

Export citation

Preformatted

@inproceedings{yuan-etal-2025-native,

title = "Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention",

author = "Yuan, Jingyang and

Gao, Huazuo and

Dai, Damai and

Luo, Junyu and

Zhao, Liang and

Zhang, Zhengyan and

Xie, Zhenda and

Wei, Yuxing and

Wang, Lean and

Xiao, Zhiping and

Wang, Yuqing and

Ruan, Chong and

Zhang, Ming and

Liang, Wenfeng and

Zeng, Wangding",

editor = "Che, Wanxiang and

Nabende, Joyce and

Shutova, Ekaterina and

Pilehvar, Mohammad Taher",

booktitle = "Proceedings of the 63rd Annual Meeting of the {A}ssociation for {C}omputational {L}inguistics (Volume 1: Long Papers)",

month = jul,

year = "2025",

address = "Vienna, Austria",

publisher = "Association for Computational Linguistics",

url = "https://aclanthology.org/2025.acl-long.1126/",

doi = "10.18653/v1/2025.acl-long.1126",

pages = "23078--23097",

ISBN = "979-8-89176-251-0",

abstract = "Long-context modeling is crucial for next-generation language models, yet the high computational cost of standard attention mechanisms poses significant computational challenges. Sparse attention offers a promising direction for improving efficiency while maintaining model capabilities. We present NSA, a Natively trained Sparse Attention mechanism that integrates algorithmic innovations with hardware-aligned optimizations to achieve efficient long-context modeling. NSA employs a dynamic hierarchical sparse strategy, combining coarse-grained token compression with fine-grained token selection to preserve both global context awareness and local precision. Our approach advances sparse attention design with two key innovations: (1) We achieve substantial speedups through arithmetic intensity-balanced algorithm design, with implementation optimizations for modern hardware. (2) We enable end-to-end training, reducing pretraining computation without sacrificing model performance. As shown in Figure 1, experiments show the model pretrained with NSA maintains or exceeds Full Attention models across general benchmarks, long-context tasks, and instruction-based reasoning. Meanwhile, NSA achieves substantial speedups over Full Attention on 64k-length sequences across decoding, forward propagation, and backward propagation, validating its efficiency throughout the model lifecycle."

Copy to Clipboard

<?xml version="1.0" encoding="UTF-8"?>

<modsCollection xmlns="http://www.loc.gov/mods/v3">

<mods ID="yuan-etal-2025-native">

<title>Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention</title>

</titleInfo>

<name type="personal">

<namePart type="given">Jingyang</namePart>

<namePart type="family">Yuan</namePart>

<roleTerm authority="marcrelator" type="text">author</roleTerm>

<namePart type="given">Huazuo</namePart>

<namePart type="family">Gao</namePart>

<namePart type="given">Damai</namePart>

<namePart type="family">Dai</namePart>

<namePart type="given">Junyu</namePart>

<namePart type="family">Luo</namePart>

<namePart type="given">Liang</namePart>

<namePart type="family">Zhao</namePart>

<namePart type="given">Zhengyan</namePart>

<namePart type="family">Zhang</namePart>

<namePart type="given">Zhenda</namePart>

<namePart type="family">Xie</namePart>

<namePart type="given">Yuxing</namePart>

<namePart type="family">Wei</namePart>

<namePart type="given">Lean</namePart>

<namePart type="family">Wang</namePart>

<namePart type="given">Zhiping</namePart>

<namePart type="family">Xiao</namePart>

<namePart type="given">Yuqing</namePart>

<namePart type="given">Chong</namePart>

<namePart type="family">Ruan</namePart>

<namePart type="given">Ming</namePart>

<namePart type="given">Wenfeng</namePart>

<namePart type="family">Liang</namePart>

<namePart type="given">Wangding</namePart>

<namePart type="family">Zeng</namePart>

<originInfo>

<dateIssued>2025-07</dateIssued>

</originInfo>

<typeOfResource>text</typeOfResource>

<relatedItem type="host">

<title>Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)</title>

<namePart type="given">Wanxiang</namePart>

<namePart type="family">Che</namePart>

<roleTerm authority="marcrelator" type="text">editor</roleTerm>

<namePart type="given">Joyce</namePart>

<namePart type="family">Nabende</namePart>

<namePart type="given">Ekaterina</namePart>

<namePart type="family">Shutova</namePart>

<namePart type="given">Mohammad</namePart>

<namePart type="given">Taher</namePart>

<namePart type="family">Pilehvar</namePart>

<publisher>Association for Computational Linguistics</publisher>

<placeTerm type="text">Vienna, Austria</placeTerm>

<genre authority="marcgt">conference publication</genre>

<identifier type="isbn">979-8-89176-251-0</identifier>

</relatedItem>

[...内容已截断,完整版请查看原文或 Wayback 快照]