paper-with-me

홈 › Papers

Toward a Deeper Understanding: RetNet Viewed through Convolution

2023-09-11 · Chenghao Li, Chaoning Zhang

The success of Vision Transformer (ViT) has been widely reported on a wide range of image recognition tasks. ViT can learn global dependencies superior to CNN, yet CNN's inherent locality can substitute for expensive training resources. Recently, the outstanding performance of RetNet in the field of language modeling has garnered attention, surpassing that of the Transformer with explicit local modeling, shifting researchers' focus towards Transformers in the CV field. This paper investigates the effectiveness of RetNet from a CNN perspective and presents a variant of RetNet tailored to the visual domain. Similar to RetNet we improves ViT's local modeling by applying a weight mask on the original self-attention matrix. A straightforward way to locally adapt the self-attention matrix can be realized by an element-wise learnable weight mask (ELM), for which our preliminary results show promising results. However, the element-wise simple learnable weight mask not only induces a non-trivial additional parameter overhead but also increases the optimization complexity. To this end, this work proposes a novel Gaussian mixture mask (GMM) in which one mask only has two learnable parameters and it can be conveniently used in any ViT variants whose attention mechanism allows the use of masks. Experimental results on multiple small datasets demonstrate that the effectiveness of our proposed Gaussian mask for boosting ViTs for free (almost zero additional parameter or computation cost). Our code can be publicly available at https://github.com/CatworldLee/Gaussian-Mixture-Mask-Attention.

📄 PDF Abstract BibTeX arXiv:2309.05375

Code (1)

catworldlee/gaussian-mixture-mask-attention 공식 구현 pytorch

Tasks

Language ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Focus 설명 없음
Adam 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…

Similar Papers 제목 키워드 기반

ST-RetNet: A Long-term Spatial-Temporal Traffic Flow Prediction Method

2024-07-13 · Baichao Long, Wang Zhu, Jianli Xiao

Traffic flow forecasting is considered a critical task in the field of intelligent transportation systems. In this paper, to address the issue of low accuracy in long-term forecasting of spatial-temporal big data on traf…

DenseMamba: State Space Models with Dense Hidden Connection for Efficient Large Language Models

2024-02-26 · wei he, Kai Han, Yehui Tang, Chengcheng Wang 외

Large language models (LLMs) face a daunting challenge due to the excessive computational and memory requirements of the commonly used Transformer architecture. While state space model (SSM) is a new type of foundational…

MambaState Space Models

EEGDiR: Electroencephalogram denoising network for temporal information storage and global modeling through Retentive Network

2024-03-20 · Bin Wang, Fei Deng, Peifan Jiang

Electroencephalogram (EEG) signals play a pivotal role in clinical medicine, brain research, and neurological disease studies. However, susceptibility to various physiological and environmental artifacts introduces noise…

DenoisingEEGEEG DenoisingElectroencephalogram (EEG)

Retentive Neural Quantum States: Efficient Ansätze for Ab Initio Quantum Chemistry

2024-11-06 · Oliver Knitter, Dan Zhao, James Stokes, Martin Ganahl 외

Neural-network quantum states (NQS) has emerged as a powerful application of quantum-inspired deep learning for variational Monte Carlo methods, offering a competitive alternative to existing techniques for identifying g…

Variational Monte Carlo

Retentive Network: A Successor to Transformer for Large Language Models

2023-07-17 · Yutao Sun, Li Dong, Shaohan Huang, Shuming Ma 외

In this work, we propose Retentive Network (RetNet) as a foundation architecture for large language models, simultaneously achieving training parallelism, low-cost inference, and good performance. We theoretically derive…

GPULanguage ModelingLanguage Modelling