Hao Niu, Fengming Luo, Bo Yuan, Yi Zhang, Jianyong Wang
{"title":"Efficient visual transformer transferring from neural ODE perspective","authors":"Hao Niu, Fengming Luo, Bo Yuan, Yi Zhang, Jianyong Wang","doi":"10.1049/ell2.70015","DOIUrl":null,"url":null,"abstract":"<p>Recently, the Visual Image Transformer (ViT) has revolutionized various domains in computer vision. The transfer of pre-trained ViT models on large-scale datasets has proven to be a promising method for downstream tasks. However, traditional transfer methods introduce numerous additional parameters in transformer blocks, posing new challenges in learning downstream tasks. This article proposes an efficient transfer method from the perspective of neural Ordinary Differential Equations (ODEs) to address this issue. On the one hand, the residual connections in the transformer layers can be interpreted as the numerical integration of differential equations. Therefore, the transformer block can be described as two explicit Euler method equations. By dynamically learning the step size in the explicit Euler equation, a highly lightweight method for transferring the transformer block is obtained. On the other hand, a new learnable neural memory ODE block is proposed by taking inspiration from the self-inhibition mechanism in neural systems. It increases the diversity of dynamical behaviours of the neurons to transfer the head block efficiently and enhances non-linearity simultaneously. Experimental results in image classification demonstrate that the proposed approach can effectively transfer ViT models and outperform state-of-the-art methods.</p>","PeriodicalId":11556,"journal":{"name":"Electronics Letters","volume":"60 17","pages":""},"PeriodicalIF":0.7000,"publicationDate":"2024-09-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://onlinelibrary.wiley.com/doi/epdf/10.1049/ell2.70015","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Electronics Letters","FirstCategoryId":"5","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1049/ell2.70015","RegionNum":4,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"ENGINEERING, ELECTRICAL & ELECTRONIC","Score":null,"Total":0}
引用次数: 0
Abstract
Recently, the Visual Image Transformer (ViT) has revolutionized various domains in computer vision. The transfer of pre-trained ViT models on large-scale datasets has proven to be a promising method for downstream tasks. However, traditional transfer methods introduce numerous additional parameters in transformer blocks, posing new challenges in learning downstream tasks. This article proposes an efficient transfer method from the perspective of neural Ordinary Differential Equations (ODEs) to address this issue. On the one hand, the residual connections in the transformer layers can be interpreted as the numerical integration of differential equations. Therefore, the transformer block can be described as two explicit Euler method equations. By dynamically learning the step size in the explicit Euler equation, a highly lightweight method for transferring the transformer block is obtained. On the other hand, a new learnable neural memory ODE block is proposed by taking inspiration from the self-inhibition mechanism in neural systems. It increases the diversity of dynamical behaviours of the neurons to transfer the head block efficiently and enhances non-linearity simultaneously. Experimental results in image classification demonstrate that the proposed approach can effectively transfer ViT models and outperform state-of-the-art methods.
最近,视觉图像转换器(ViT)给计算机视觉的各个领域带来了革命性的变化。在大规模数据集上转移预训练的 ViT 模型已被证明是一种很有前途的下游任务方法。然而,传统的转移方法在转换器块中引入了大量额外参数,给下游任务的学习带来了新的挑战。本文从神经常微分方程(ODE)的角度提出了一种高效的转移方法来解决这一问题。一方面,变压器层中的残差连接可以解释为微分方程的数值积分。因此,变压器块可以描述为两个显式欧拉法方程。通过动态学习显式欧拉方程中的步长,可以获得一种高度轻量级的转换变压器块的方法。另一方面,从神经系统的自我抑制机制中获得灵感,提出了一种新的可学习神经记忆 ODE 模块。它增加了神经元动态行为的多样性,从而有效地转移了头块,并同时增强了非线性。在图像分类方面的实验结果表明,所提出的方法可以有效地转移 ViT 模型,并优于最先进的方法。
期刊介绍:
Electronics Letters is an internationally renowned peer-reviewed rapid-communication journal that publishes short original research papers every two weeks. Its broad and interdisciplinary scope covers the latest developments in all electronic engineering related fields including communication, biomedical, optical and device technologies. Electronics Letters also provides further insight into some of the latest developments through special features and interviews.
Scope
As a journal at the forefront of its field, Electronics Letters publishes papers covering all themes of electronic and electrical engineering. The major themes of the journal are listed below.
Antennas and Propagation
Biomedical and Bioinspired Technologies, Signal Processing and Applications
Control Engineering
Electromagnetism: Theory, Materials and Devices
Electronic Circuits and Systems
Image, Video and Vision Processing and Applications
Information, Computing and Communications
Instrumentation and Measurement
Microwave Technology
Optical Communications
Photonics and Opto-Electronics
Power Electronics, Energy and Sustainability
Radar, Sonar and Navigation
Semiconductor Technology
Signal Processing
MIMO