Building Vision Models upon Heat Conduction

Zhaozhi Wang, Yue Liu, Yunjie Tian, Yunfan Liu, Yaowei Wang, Qixiang Ye

Abstract

This paper introduces vHeat, a novel vision backbone that addresses the fundamental trade-off between a model's receptive field and its computational complexity. By drawing inspiration from thermodynamics, the authors propose the Heat Conduction Operator (HCO), which models information flow across an image as the diffusion of thermal energy. Implemented via Discrete Cosine Transforms (DCT), vHeat achieves a global receptive field with $O(N^{1.5})$ complexity. On ImageNet-1K, vHeat-Base achieves 84.0% top-1 accuracy, outperforming Swin-Transformers while utilizing up to 80% less memory at high resolutions.

Introduction

A persistent challenge in computer vision is balancing the "field of vision" with computational cost. Convolutional Neural Networks (CNNs) are efficient due to their local receptive fields but struggle with long-range dependencies. Conversely, Vision Transformers (ViTs) provide global attention but suffer from $O(N^2)$ complexity relative to image resolution, making high-resolution processing prohibitively expensive. This paper proposes vHeat to bridge this gap, offering global modeling with sub-quadratic scaling.

The Heat Conduction Operator (HCO)

The core of vHeat is the HCO, which treats image patches as heat sources. Information propagates according to the 2D heat equation: $$\frac{\partial u}{\partial t} = k \left( \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} \right)$$

To ensure efficiency, the authors solve this in the frequency domain using the 2D Discrete Cosine Transform (DCT). This approach offers several advantages:

  1. Adaptive Diffusion: Learnable Frequency Value Embeddings (FVEs) allow the model to predict content-aware thermal diffusivity ($k$), determining how information spreads based on image features.
  2. Frequency Filtering: In the frequency domain, heat conduction acts as an adaptive low-pass filter.
  3. Computational Efficiency: DCT/IDCT operations are highly optimized with $O(N^{1.5})$ complexity, significantly better than the $O(N^2)$ complexity of standard self-attention.

The choice of Neumann boundary conditions (assuming no heat escape at edges) justifies the use of DCT over the standard Fourier Transform, further enhancing efficiency.

Experimental Validation

The vHeat architecture was evaluated across multiple benchmarks:

  • Image Classification: ImageNet-1K.
  • Downstream Tasks: Object detection and instance segmentation on MS COCO 2017, and semantic segmentation on ADE20K.
  • Low-Level Vision: Image denoising and compression on Set12, McMaster, and LIVE1.

Key Results and Efficiency

vHeat demonstrates superior performance and scaling compared to established backbones. vHeat-Base reached 84.0% top-1 accuracy on ImageNet-1K, surpassing both Swin-B (83.5%) and ConvNeXt-B (83.8%).

The most significant gains are observed at high resolutions. As shown in the performance analysis below, vHeat maintains high throughput and low memory consumption where Transformers begin to struggle.

Comparison of throughput, GPU memory usage, and FLOPs between vHeat and Swin-B/DeiT-B across various input resolutions.

At a $768 \times 768$ resolution, vHeat-Base achieves 3x the throughput of Swin-B while using 80% less GPU memory and 35% fewer FLOPs. This efficiency makes vHeat an ideal candidate for high-resolution vision tasks.

Discussion and Future Work

By using physics as a structural prior, vHeat introduces a more "natural" inductive bias than raw token-matching. The diffusion process provides an interpretable mechanism for information propagation.

Future research may address the current architectural rigidity of grid-based DCT to extend vHeat to non-grid data like point clouds. Additionally, further optimization of custom CUDA kernels for the HCO could further enhance the speed advantages over standard matrix-multiplication-based attention mechanisms.

Summary updated

BibTeX
@inproceedings{wang2025building,
  author = {Zhaozhi Wang and Yue Liu and Yunjie Tian and Yunfan Liu and Yaowei Wang and Qixiang Ye},
  title = {{Building Vision Models upon Heat Conduction}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00907},
}
Figure