您现在的位置是:热点 >>正文
17篇注意力机制PyTorch实现,包含MLP、Re-Parameter系列热门论文
热点99731993人已围观
简介...
注意力(Attention)机制最早在计算机视觉中应用,后来又在 NLP 领域发扬光大,该机制将有限的注意力集中在重点信息上,从而节省资源,快速获得最有效的信息。
2014 年,Google DeepMind 发表《Recurrent Models of Visual Attention》,使注意力机制流行起来;2015 年,Bahdanau 等人在论文《Neural Machi17ne Translation by Jointly Learning to Align and Translate》中,将注意力机制首次应用在 NLP 领域;2017 年,Google 机器翻译团队发表的《Attention is All You Need》中,完全抛弃了 RNN 和 CNN 等网络结构,而仅仅采用注意力机制来进行机器翻译任务,并且取得了很好的效果,注意力机制也因此成了研究热点。
经过几年的篇注发展,领域内产生了众多的注意力机制论文研究,这些工作在 CV、NLP 领域取得了较好的效果。近日,在 GitHub 上,有研究者介绍了 17 篇关于注意力机制论文的 PyTorch 的代码实现以及使用方法。
项目地址:https://github.com/xmu-xiaoma666/External-Attention-pytorch
项目介绍
项目作者对注意力机制进行了分类,分为三个系列:Att意力ention 系列、MLP 系列、ReP(Re-Parameter)系列。其中 Attention 系列中包含有大名鼎鼎的《Attention is All You Need》等 11 篇论文;最近比较热门的 MLP 系列包括谷歌的 MLP-Mixer、gMLP ,Facebook 的 ResMLP,清华的 RepMLP ;此外,ReP(Re-Parameter)系列包括清华等提出的 RepVGG、 AC机制Net。
Attention 系列的 11 篇 Attention 论文 Pytorch 实现方式如下:
Pytorch 实现论文「Beyond Self-attention: External Attention using Two Linear Layers for Visual Tasks---arXiv 2020.05.05」 Pytorch 实现论文「Attention Is AllPy You Need---NIPS2017」 Pytorch 实现论文「Simplified Self Attention Usage」 Pytorch 实现论文 「Squeeze-and-Excitation Networks---CVPR2018」 Pytorch 实现论文「Selective Kernel Networks---CVPR2019」 Pytorch 实现论文「CBAM: ConvoluTotional Block Attention Module---ECCV2018」 Pytorch 实现论文「BAM: Bottleneck Attention Module---BMCV2018」 Pytorch 实现论文「ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks---CVPR2020」 Pyrctorch 实现论文「Dual Attention Network for Scene Segmentation---CVPR2019」 Pytorch 实现论文「EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network---arXiv 2020.05.30」 Pytorch 实现论文 「ResT: An Effih实cient Transformer for Visual Recognition---arXiv 2020.05.28」
MLP(多层感知机)系列中,包含 4 篇论文 Pytorch 实现方式,论文如下:
Pytorch 实现论文「RepMLP: Re-parameterizing Convolutions into Fully-connected Layers for Image Re现,cognition---arXiv 2020.05.05」 Pytorch 实现论文「MLP-Mixer: An all-MLP Architecture for Vision---arXiv 2020.05.17」 Pytorch 实现论文「ResMLP: Feedforward networks for image classification with data-efficient training---包含arXiv 2020.05.07」 Pytorch 实现论文「Pay Attention to MLPs---arXiv 2020.05.17」
ReP(Re-Parameter)系列中,包含 2 篇论文 Pytorch 实现方式,论文如下:
Pytorch 实现论文「RepVGG: Making VGG-style ConvNets Great Again---CVPR2021」 PyMLtorch 实现论文「ACNet: Strengthening the Kernel Skeletons for Powerful CNN via Asymmetric Convolution Blocks---ICCV2019」
总结来说,该项目共用 Pytorch 实现了 17 篇注意力机制论文。每篇论文包括题目(可直接链接到论文)、网络架构、代码。示例如下:
论文:「Beyond Self-atteP、ntion: External Attention using Two Linear Layers for Visual Tasks」。
网络框架:
代码:
from attention.ExternalAttention *import* ExternalAttention import torch inpuRet=torch.randn(50,49,512) ea = ExternalAttention(d_model=512,S=8) output=ea(input) print(output.shape)
Tags:
下一篇:c罗足球比赛
相关文章
英伟达豪投千亿美元!助力OpenAI打造超级AI数据中心
热点近日,英伟达与OpenAI联合宣布,将展开一项重磅合作,计划共同建设一个10GW的AI数据中心。这个投资承诺将达到惊人的 1000 亿美元,标志着英伟达迄今为止最大的一笔投资。根据双方的计划,首个阶段...
【热点】
阅读更多AI致16岁少年自杀 OpenAI深陷首例非正常死亡诉讼
热点周二,首例针对人工智能公司的非正常死亡诉讼在旧金山正式提起,引发了广泛关注。 据悉,一对来自马特·雷恩和玛丽亚·雷恩的夫妇就其16岁儿子亚当·雷恩的自杀身亡,向OpenAI公司提起了诉讼。诉状中指出,...
【热点】
阅读更多LiquidAI 推出 Liquid Nanos 系列轻量级 AI 模型,优化边缘设备应用
热点LiquidAI 正式发布了名为 “Liquid Nanos” 的系列轻量级 AI 模型。这一系列模型专为边缘计算设备设计,能够在树莓派等小型设备上高效运行。Liquid Nanos 涵盖了翻译、抽取...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.quarterjacksurgery.co.uk/?AT=3rBy&s=谷歌霸屏软件【tg:seogoogle987】,sGe
- https://www.shacknews.com/editorial-search?q=谷歌霸屏软件【tg:seogoogle987】,Shh
- https://www.dba.dk/soeg/?soeg=谷歌霸屏软件【tg:seogoogle987】ZQA
- https://m.shoppinghow.kakao.com/m/search/q/谷歌霸屏软件【tg:seogoogle987】vvd
- https://www.kelsa.co.uk/catalogsearch/result/index/?T=1686132119291&q=谷歌霸屏软件【tg:seogoogle987】,v9j
- https://www.remit.co.jp/vi/?s=谷歌霸屏软件【tg:seogoogle987】,047
- https://www.whiterock2008.com.tw/search?q=谷歌霸屏软件【tg:seogoogle987】,2DB
- https://www.udc.co.uk/index.php?route=product/search&sort=p.price&order=DESC&tag=谷歌霸屏软件【tg:seogoogle987】,ldd
- https://www.kingston.gov.uk/site-search/results/?q=谷歌霸屏软件【tg:seogoogle987】,rS4
- https://www.wuv.edu/?s=谷歌霸屏软件【tg:seogoogle987】,dXJ
- https://www.jusoen.com/addreng.asp?p1=谷歌霸屏软件【tg:seogoogle987】6uM
- https://www.msrenewal.com/search/谷歌霸屏软件【tg:seogoogle987】,CzL
- https://www.otakuninjahero.com/en/search/谷歌霸屏软件【tg:seogoogle987】,2wy
- https://www.tailoy.com.pe/catalogsearch/result/?q=谷歌霸屏软件【tg:seogoogle987】,paO
- https://www.ushmm.org/search/results.php?q=谷歌霸屏软件【tg:seogoogle987】,3L1
- https://www.pinkpanda.ro/magazin/ingrijirea-tenului?page=87&q=谷歌霸屏软件【tg:seogoogle987】,s2O
- https://www.zisha.com/shop/list.shtml?wap_keyword=谷歌霸屏软件【tg:seogoogle987】,OW3
- https://www.partilerdunyasi.com/index.php?route=product/search&tag=谷歌霸屏软件【tg:seogoogle987】,a4N
- https://www.niaogebiji.com/pc/article/search?keyword=谷歌霸屏软件【tg:seogoogle987】,BfW
- https://www.madebyoranges.com/nl/search/谷歌霸屏软件【tg:seogoogle987】,BV6
- https://www.simcoemuskokahealth.org/SearchResults.aspx?SearchQuery=谷歌霸屏软件【tg:seogoogle987】,jma
- https://www.lyrics.com/lyrics/kkk3谷歌霸屏软件【tg:seogoogle987】,8Sn
- https://hsmoa.com/search?query=谷歌霸屏软件【tg:seogoogle987】hF3
- https://www.tiktok.com/tag/谷歌霸屏软件【tg:seogoogle987】,AAT
- https://www.miamiopenmri.com/?action=CHECK&s=谷歌霸屏软件【tg:seogoogle987】,bMi
- https://www.tombow.com/en/search/谷歌霸屏软件【tg:seogoogle987】,NpT
- https://m.shoppinghow.kakao.com/m/search/q/谷歌霸屏软件【tg:seogoogle987】2Ic
- https://search.danawa.com/dsearch.php?query=谷歌霸屏软件【tg:seogoogle987】kIy
- https://www.teamlab.art/zh-hans/?submit=谷歌霸屏软件【tg:seogoogle987】,XxT
- https://www.selfsufficientish.com/main/?s=谷歌霸屏软件【tg:seogoogle987】,VWf
- https://www.reginatangoshoes.com/en/catalogsearch/result/index/?T=1686132113407&q=谷歌霸屏软件【tg:seogoogle987】,noe
- https://www.sic-info.org/?s=谷歌霸屏软件【tg:seogoogle987】,8nH
- https://www.vet-direct.com/search?cat=72&term=谷歌霸屏软件【tg:seogoogle987】,K3T
- https://www.wellbees.com/catalogsearch/result/?action=CHECK&q=谷歌霸屏软件【tg:seogoogle987】,fNG
- https://www.temu.com/search_result.html?search_key=谷歌霸屏软件【tg:seogoogle987】S5d
- https://www.roblox.com/discover/?cat=107&Keyword=谷歌霸屏软件【tg:seogoogle987】,jeY
- https://www.kissthekangaroo.com.au/index.php?route=product/search&tag=谷歌霸屏软件【tg:seogoogle987】,U1I
- https://www.uckfieldtc.gov.uk/?s=谷歌霸屏软件【tg:seogoogle987】,1bQ
- https://www.lechzuers.com/de/search?cat=163&q=谷歌霸屏软件【tg:seogoogle987】,VuK
- https://www.repetto.jp/item/search?action=QUERY&q=谷歌霸屏软件【tg:seogoogle987】,o5u
- https://www.sweat.com/collections/vendors?q=谷歌霸屏软件【tg:seogoogle987】,gXH
- https://www.pierreherme.com/catalogsearch/result/?q=谷歌霸屏软件【tg:seogoogle987】,5tJ
- https://www.roberthalf.com/us/en/jobs/all/谷歌霸屏软件【tg:seogoogle987】mJW
- https://www.varian.com/en-au/search?cat=113&search=谷歌霸屏软件【tg:seogoogle987】,Z1j
- https://www.stonerealestate.com.au/?cat=100&s=谷歌霸屏软件【tg:seogoogle987】,rM6
- https://www.vfw.org/search-results?q=谷歌霸屏软件【tg:seogoogle987】,Uk6
- https://www.qwant.com/?q=谷歌霸屏软件【tg:seogoogle987】,LfP
- https://www.rotherham.gov.uk/site-search/results/?q=谷歌霸屏软件【tg:seogoogle987】,xUY
- https://www.lezhin.com/ko/tags/谷歌霸屏软件【tg:seogoogle987】,jpD
- https://www.randjleather.co.uk/index.php?route=product/search&tag=谷歌霸屏软件【tg:seogoogle987】,BkH