当前位置:首页 >英文主页 >中英对照 > 中译版报告详情

Deepseek:2025原生稀疏注意力:硬件对齐且可原生训练的稀疏注意力机制技术报告(中译版)(24页).pdf

上传人: Kell****reet 编号:613863 2025-02-20 24页 1.37MB

下载:

1、Native Sparse Attention:Hardware-Aligned and NativelyTrainable Sparse AttentionJingyang Yuan1,2,Huazuo Gao1,Damai Dai1,Junyu Luo2,Liang Zhao1,Zhengyan Zhang1,Zhenda Xie1,Y.X.Wei1,Lean Wang1,Zhiping Xiao3,Yuqing Wang1,Chong Ruan1,Ming Zhang2,Wenfeng Liang1,Wangding Zeng11DeepSeek-AI2Key Laboratory fo

2、r Multimedia Information Processing,Peking University,PKU-Anker LLM Lab3University of Washingtonyuanjy,mzhang_,zengwangding,AbstractLong-context modeling is crucial for next-generation language models,yet the high compu-tational cost of standard attention mechanisms poses significant computational c

3、hallenges.Sparse attention offers a promising direction for improving efficiency while maintaining modelcapabilities.We present NSA,aNatively trainableSparseAttention mechanism that integratesalgorithmic innovations with hardware-aligned optimizations to achieve efficient long-contextmodeling.NSA em

4、ploys a dynamic hierarchical sparse strategy,combining coarse-grainedtoken compression with fine-grained token selection to preserve both global context awarenessand local precision.Our approach advances sparse attention design with two key innovations:(1)We achieve substantial speedups through arit

5、hmetic 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 Atten

6、tion modelsacross general benchmarks,long-context tasks,and instruction-based reasoning.Meanwhile,NSA achieves substantial speedups over Full Attention on 64k-length sequences across decod-ing,forward propagation,and backward propagation,validating its efficiency throughout themodel lifecycle.1.Intr

word格式文档无特别注明外均可编辑修改,预览文件经过压缩,下载原文更清晰!
三个皮匠报告文库所有资源均是客户上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作商用。
本文主要介绍了NSA(Natively Sparse Attention),一种新型的稀疏注意力机制。NSA通过结合算法创新和硬件优化的方式,实现了高效的长期上下文建模。NSA采用动态分层稀疏策略,结合粗粒度的标记压缩和细粒度的标记选择,以保持全局上下文意识和局部精度。实验结果表明,NSA在各种基准测试、长期上下文任务和基于指令的推理中,均能维持或超过全注意力模型的性能。同时,NSA在64k长度的序列上实现了全注意力的显著加速,验证了其在模型生命周期中的效率。
什么是NSA,它如何提高语言模型的效率? NSA如何通过硬件优化的稀疏注意力机制实现训练和推理加速? NSA在长文本处理和链式推理任务上表现如何,与全注意力模型相比有哪些优势?
客服
商务合作
小程序
服务号
折叠