search
HomeTechnology peripheralsAIThe visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.

The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.
The AIxiv column is a column where this site publishes academic and technical content. In the past few years, the AIxiv column of this site has received more than 2,000 reports, covering top laboratories from major universities and companies around the world, effectively promoting academic exchanges and dissemination. If you have excellent work that you want to share, please feel free to contribute or contact us for reporting. Submission email: liyazhou@jiqizhixin.com; zhaoyunfeng@jiqizhixin.com

##The author of this article is the original team of VMamba, among whom the first The author Wang Zhaozhi is a 2022 doctoral student jointly trained by the University of Chinese Academy of Sciences and Pengcheng Laboratory, and the co-author Liu Yue is a 2021 direct doctoral student of the University of Chinese Academy of Sciences. Their main research directions are visual model design and self-supervised learning.
How to break through the Attention mechanism of Transformer? The University of Chinese Academy of Sciences and Pengcheng National Laboratory proposed a visual representation model vHeat

based on heat conduction. Treat image feature blocks as heat sources, and extract image features by predicting thermal conductivity and using physical heat conductionprinciples. Compared with visual models based on the Attention mechanism, vHeat takes into account: computational complexity (1.5th power), global receptive field, and physical interpretability. When using vHeat-base+%E6%A8%A1%E5%9E%8B for high-resolution image input, the put, GPU memory usage, and flops are Swin-base+%E6%A8%A1 respectively. 3 times, 1/4, 3/4 of %E5%9E%8B. It has achieved advanced performance on basic downstream tasks such as image classification, target detection, and semantic/instance segmentation.

The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.

    Paper address: https://arxiv.org/pdf/2405.16555
  • Code address: https://github.com/MzeroMiko/vHeat
  • Paper title: vHeat: Building Vision Models upon Heat Conduction
Overview

The two most mainstream basic visual models currently are CNN and Visual Transformer (ViT). However, the performance of CNN is limited by local receptive fields and fixed convolution kernel operators. ViT has the ability to represent global dependencies, but at the cost of high quadratic norm computational complexity. We believe that the convolution operators and self-attention operators of CNN and ViT are both pixel transfer processes within features, which are respectively a form of information transfer, which also reminds us of heat conduction in the physical field. So based on the heat conduction equation, we connected the spatial propagation of visual semantics with physical heat conduction, proposed a visual conduction operator (Heat Conduction Operator, HCO) with 1.5 power computational complexity, and then designed a heat conduction operator with low Visual representation model vHeat for complexity, global receptive field, and physical interpretability. The calculation form and complexity comparison between HCO and self-attention are shown in the figure below. Experiments have proven that vHeat performs well in various visual tasks. For example, vHeat-T achieves 82.2% classification accuracy on ImageNet-1K, which is 0.9% higher than Swin-T and 1.7% higher than ViM-S. In addition to performance, vHeat also has the advantages of high inference speed, low GPU memory usage and low FLOPs. When the input image resolution is high, the base-scale vHeat model only has 1/3 more throughput, 1/4 GPU memory usage, and 3/4 FLOPs compared to Swin.

The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.

Method introduction

Use

to represent the temperature of point

at time t, and the physical heat conduction equation is The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field., where k>0, represents thermal diffusivity. Given the initial conditionsThe visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field. at time t=0, the heat conduction equation can be solved by using Fourier transform, which is expressed as follows:The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.

The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.

where The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field. and The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field. represent Fourier transform and inverse Fourier transform respectively, The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field. represents frequency domain spatial coordinates.

We use HCO to implement heat conduction in visual semantics. First, we extend the The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field. in the physical heat conduction equation to a multi-channel feature The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field., and treat The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field. as input and The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field. as output. , HCO simulates the general solution of heat conduction in the discretized form, as shown in the following formula:

The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.

where The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field. and The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field. represent the two-dimensional discrete cosine transform and the inverse transform respectively, The structure of HCO is shown in Figure (a) below.

The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.

In addition, we believe that different image contents should correspond to different thermal diffusivities. Considering that the output of The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field. is in the frequency domain, we determine the thermal diffusion based on the frequency value Rate,The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.. Since different positions in the frequency domain represent different frequency values, we propose Frequency Value Embeddings (FVEs) to represent frequency value information, which is similar to the implementation and function of absolute position encoding in ViT, and use FVEs to control heat diffusion. The rate k is predicted so that HCO can perform non-uniform and adaptive conduction, as shown in the figure below.

The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.

vHeat is implemented using a multi-level structure, as shown in the figure below. The overall framework is similar to the mainstream visual model, and the HCO layer is shown in Figure 2 (b).

The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.

Experimental results

ImageNet classification

The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.

By comparing the experimental results, it is easy to see that under similar parameter amounts and FLOPs:

  1. vHeat-T achieved 82.2 The performance of % exceeds DeiT-S by 2.4%, Vim-S by 1.7%, and Swin-T by 0.9%.
  2. vHeat-S achieved 83.6% performance, exceeding Swin-S by 0.6% and ConvNeXt-S by 0.5%.
  3. vHeat-B achieved 83.9% performance, exceeding DeiT-B by 2.1% and Swin-B by 0.4%.

At the same time, due to vHeat's O (N^1.5) low complexity and parallel computation, the inference throughput is compared to ViTs and SSM The model has obvious advantages. For example, the inference throughput of vHeat-T is 1514 img/s, which is 22% higher than Swin-T and 87% higher than Vim-S. , it is also 26% higher than ConvNeXt-T, and has better performance.

Downstream tasks

The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.

On the COCO data set, vHeat also has a performance advantage: in the case of fine-tune 12 epochs , vHeat-T/S/B reaches 45.1/46.8/47.7 mAP respectively, exceeding Swin-T/S/B by 2.4/2.0/0.8 mAP, and exceeding ConvNeXt-T/S/B by 0.9/1.4/0.7 mAP. On the ADE20K data set, vHeat-T/S/B reached 46.9/49.0/49.6 mIoU respectively, which still has better performance than Swin and ConvNeXt. These results verify that vHeat fully works in visual downstream experiments, demonstrating the potential to replace mainstream basic visual models.

Analysis Experiment

Effective Feeling Field

The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.

vHeat has the global effective feeling However, among the mainstream models for visual comparison, only DeiT and HiViT also have this feature. However, it is worth noting that the cost of DeiT and HiViT is square level complexity, while vHeat is 1.5 power level complexity.

Calculate the cost

The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.

The above picture from left to right is vHeat-B and Comparison of inference throughput/GPU memory usage/computation FLOPs of ViT-based models at other base scales. It can be clearly seen that due to the computational complexity of O (N^1.5), vHeat has faster inference speed, lower memory usage and fewer FLOPs than the contrasting models, and when the image resolution is larger, , the advantages will be more obvious. When the input image is 768*768 resolution, the inference throughput of vHeat-B is about 3 times that of Swin-B, and the GPU memory usage is 74% lower than that of Swin-B. FLOPs are 28% lower than Swin-B. Comparison of the computational cost of vHeat and ViT-based models demonstrates its excellent potential in processing high-resolution images.

The above is the detailed content of The visual representation model vHeat inspired by physical heat transfer is here. It attempts to break through the attention mechanism and has both low complexity and global receptive field.. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
DSA如何弯道超车NVIDIA GPU?DSA如何弯道超车NVIDIA GPU?Sep 20, 2023 pm 06:09 PM

你可能听过以下犀利的观点:1.跟着NVIDIA的技术路线,可能永远也追不上NVIDIA的脚步。2.DSA或许有机会追赶上NVIDIA,但目前的状况是DSA濒临消亡,看不到任何希望另一方面,我们都知道现在大模型正处于风口位置,业界很多人想做大模型芯片,也有很多人想投大模型芯片。但是,大模型芯片的设计关键在哪,大带宽大内存的重要性好像大家都知道,但做出来的芯片跟NVIDIA相比,又有何不同?带着问题,本文尝试给大家一点启发。纯粹以观点为主的文章往往显得形式主义,我们可以通过一个架构的例子来说明Sam

阿里云通义千问14B模型开源!性能超越Llama2等同等尺寸模型阿里云通义千问14B模型开源!性能超越Llama2等同等尺寸模型Sep 25, 2023 pm 10:25 PM

2021年9月25日,阿里云发布了开源项目通义千问140亿参数模型Qwen-14B以及其对话模型Qwen-14B-Chat,并且可以免费商用。Qwen-14B在多个权威评测中表现出色,超过了同等规模的模型,甚至有些指标接近Llama2-70B。此前,阿里云还开源了70亿参数模型Qwen-7B,仅一个多月的时间下载量就突破了100万,成为开源社区的热门项目Qwen-14B是一款支持多种语言的高性能开源模型,相比同类模型使用了更多的高质量数据,整体训练数据超过3万亿Token,使得模型具备更强大的推

ICCV 2023揭晓:ControlNet、SAM等热门论文斩获奖项ICCV 2023揭晓:ControlNet、SAM等热门论文斩获奖项Oct 04, 2023 pm 09:37 PM

在法国巴黎举行了国际计算机视觉大会ICCV(InternationalConferenceonComputerVision)本周开幕作为全球计算机视觉领域顶级的学术会议,ICCV每两年召开一次。ICCV的热度一直以来都与CVPR不相上下,屡创新高在今天的开幕式上,ICCV官方公布了今年的论文数据:本届ICCV共有8068篇投稿,其中有2160篇被接收,录用率为26.8%,略高于上一届ICCV2021的录用率25.9%在论文主题方面,官方也公布了相关数据:多视角和传感器的3D技术热度最高在今天的开

百度文心一言全面向全社会开放,率先迈出重要一步百度文心一言全面向全社会开放,率先迈出重要一步Aug 31, 2023 pm 01:33 PM

8月31日,文心一言首次向全社会全面开放。用户可以在应用商店下载“文心一言APP”或登录“文心一言官网”(https://yiyan.baidu.com)进行体验据报道,百度计划推出一系列经过全新重构的AI原生应用,以便让用户充分体验生成式AI的理解、生成、逻辑和记忆等四大核心能力今年3月16日,文心一言开启邀测。作为全球大厂中首个发布的生成式AI产品,文心一言的基础模型文心大模型早在2019年就在国内率先发布,近期升级的文心大模型3.5也持续在十余个国内外权威测评中位居第一。李彦宏表示,当文心

复旦大学团队发布中文智慧法律系统DISC-LawLLM,构建司法评测基准,开源30万微调数据复旦大学团队发布中文智慧法律系统DISC-LawLLM,构建司法评测基准,开源30万微调数据Sep 29, 2023 pm 01:17 PM

随着智慧司法的兴起,智能化方法驱动的智能法律系统有望惠及不同群体。例如,为法律专业人员减轻文书工作,为普通民众提供法律咨询服务,为法学学生提供学习和考试辅导。由于法律知识的独特性和司法任务的多样性,此前的智慧司法研究方面主要着眼于为特定任务设计自动化算法,难以满足对司法领域提供支撑性服务的需求,离应用落地有不小的距离。而大型语言模型(LLMs)在不同的传统任务上展示出强大的能力,为智能法律系统的进一步发展带来希望。近日,复旦大学数据智能与社会计算实验室(FudanDISC)发布大语言模型驱动的中

AI技术在蚂蚁集团保险业务中的应用:革新保险服务,带来全新体验AI技术在蚂蚁集团保险业务中的应用:革新保险服务,带来全新体验Sep 20, 2023 pm 10:45 PM

保险行业对于社会民生和国民经济的重要性不言而喻。作为风险管理工具,保险为人民群众提供保障和福利,推动经济的稳定和可持续发展。在新的时代背景下,保险行业面临着新的机遇和挑战,需要不断创新和转型,以适应社会需求的变化和经济结构的调整近年来,中国的保险科技蓬勃发展。通过创新的商业模式和先进的技术手段,积极推动保险行业实现数字化和智能化转型。保险科技的目标是提升保险服务的便利性、个性化和智能化水平,以前所未有的速度改变传统保险业的面貌。这一发展趋势为保险行业注入了新的活力,使保险产品更贴近人民群众的实际

致敬TempleOS,有开发者创建了启动Llama 2的操作系统,网友:8G内存老电脑就能跑致敬TempleOS,有开发者创建了启动Llama 2的操作系统,网友:8G内存老电脑就能跑Oct 07, 2023 pm 10:09 PM

不得不说,Llama2的「二创」项目越来越硬核、有趣了。自Meta发布开源大模型Llama2以来,围绕着该模型的「二创」项目便多了起来。此前7月,特斯拉前AI总监、重回OpenAI的AndrejKarpathy利用周末时间,做了一个关于Llama2的有趣项目llama2.c,让用户在PyTorch中训练一个babyLlama2模型,然后使用近500行纯C、无任何依赖性的文件进行推理。今天,在Karpathyllama2.c项目的基础上,又有开发者创建了一个启动Llama2的演示操作系统,以及一个

快手黑科技“子弹时间”赋能亚运转播,打造智慧观赛新体验快手黑科技“子弹时间”赋能亚运转播,打造智慧观赛新体验Oct 11, 2023 am 11:21 AM

杭州第19届亚运会不仅是国际顶级体育盛会,更是一场精彩绝伦的中国科技盛宴。本届亚运会中,快手StreamLake与杭州电信深度合作,联合打造智慧观赛新体验,在击剑赛事的转播中,全面应用了快手StreamLake六自由度技术,其中“子弹时间”也是首次应用于击剑项目国际顶级赛事。中国电信杭州分公司智能亚运专班组长芮杰表示,依托快手StreamLake自研的4K3D虚拟运镜视频技术和中国电信5G/全光网,通过赛场内部署的4K专业摄像机阵列实时采集的高清竞赛视频,

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment