Building Vision Models upon Heat Conduction

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

TL;DR

vHeat is a novel vision backbone that replaces the computationally expensive self-attention mechanism with a physics-inspired Heat Conduction Operator (HCO). By modeling image patch correlations as thermal energy diffusion and implementing it via efficient Discrete Cosine Transforms (DCT), vHeat achieves global receptive fields with $O(N^{1.5})$ complexity, delivering up to 3× higher throughput and 80% lower memory usage than the Swin-Transformer while maintaining superior accuracy.

What Problem Does This Paper Address?

Modern computer vision is dominated by two paradigms: Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs). CNNs are efficient but struggle with long-range dependencies due to their local receptive fields. ViTs capture global context beautifully through self-attention, but they suffer from quadratic $O(N^2)$ computational complexity. This makes processing high-resolution images—critical for tasks like medical imaging or autonomous driving—prohibitively expensive in terms of FLOPs and GPU memory.

While newer alternatives like State Space Models (SSMs) offer linear complexity, they often lack the intuitive interpretability of physical processes and can be difficult to parallelize effectively. The authors of "Building Vision Models upon Heat Conduction" sought a middle ground: a model that is globally aware, computationally efficient, and grounded in interpretable physical laws.

Methods

The core innovation is the Heat Conduction Operator (HCO). The authors draw a direct analogy between the way heat spreads through a material and the way semantic information propagates across an image.

  1. Physical Foundation: They start with the classic 2D heat equation, which describes how temperature $u$ changes over time $t$. In the frequency domain, the solution to this equation is remarkably simple: it’s just the initial state multiplied by an exponential decay term: $e^{-k(\omega_x^2 + \omega_y^2)t}$.
  2. Frequency Domain Processing: Instead of calculating expensive patch-to-patch similarities, HCO transforms image features into the frequency domain using a 2D Discrete Cosine Transform (DCT).
  3. Adaptive Thermal Diffusivity: In physics, $k$ (diffusivity) is a constant. In vHeat, the authors make $k$ learnable and content-adaptive. They introduce Frequency Value Embeddings (FVEs) that predict a specific $k$ for different channels and frequencies. This allows the model to dynamically decide how much "information heat" should flow between regions, effectively acting as an adaptive global filter.
  4. Efficiency: Because DCTs are highly optimized and the frequency-domain operation is a simple element-wise multiplication, the complexity drops from $O(N^2)$ to $O(N^{1.5})$.
Comparison of information conduction mechanisms: self-attention vs. heat conduction.

The overall vHeat architecture (shown in Figure 3) follows a standard hierarchical design with four stages, making it a "plug-and-play" replacement for backbones like ResNet or Swin.

The network architecture of vHeat.

Datasets

The authors evaluated vHeat across a wide range of standard benchmarks:

  • Image Classification: ImageNet-1K.
  • Object Detection & Instance Segmentation: MS COCO 2017.
  • Semantic Segmentation: ADE20K.
  • Robustness: ObjectNet (rotated/unusual viewpoints) and ImageNet-A (natural adversarial examples).
  • Low-Level Vision: Set12, McMaster, and LIVE1 for tasks like image denoising and JPEG artifact reduction.

Key Insights and Ideas

  • Physics as a Powerful Prior: The heat equation naturally encodes spatial locality (heat moves to neighbors first) while its frequency-domain solution allows for instantaneous global interaction. This provides a more structured inductive bias than the "blank slate" approach of standard self-attention.
  • The Power of DCT: By using DCT instead of the Fourier Transform, the authors implicitly handle boundary conditions (Neumann boundaries) where information shouldn't "leak" outside the image frame. This makes it more suitable for rectangular visual data.
  • Adaptive Filtering: The heat conduction process acts as a low-pass filter. By learning the diffusivity $k$, the model can preserve sharp edges (high frequencies) where needed or smooth out noise in flat regions (low frequencies).
Illustration of how adaptive thermal diffusivity $k$ leads to non-uniform, content-aware information flow.

Key Results

vHeat consistently outperforms established baselines across scales (Tiny, Small, Base):

  • Efficiency at Scale: As image resolution increases, vHeat's advantages explode. At a $768 \times 768$ resolution, vHeat-Base achieves 3× the throughput of Swin-B with 80% less GPU memory.
  • Classification: vHeat-Base reached 84.0% top-1 accuracy on ImageNet-1K, surpassing Swin-B (83.5%) and Vim-B (83.2%) while using significantly fewer parameters (68M vs 88M/98M).
  • Downstream Tasks: In semantic segmentation on ADE20K, vHeat-B achieved 49.6 mIoU, outperforming ConvNeXt-B and Swin-B.
  • Robustness: vHeat showed superior performance on ObjectNet (26.7% vs Swin-B's 25.4%), suggesting that the physics-based prior helps the model generalize better to unusual viewpoints.
Throughput, GPU memory, and FLOPs comparisons showing vHeat's superior scaling.

Limitations and Future Work

While the paper demonstrates impressive results, a few areas remain for exploration:

  • Complexity Floor: Although $O(N^{1.5})$ is a massive improvement over quadratic complexity, it is still not strictly linear ($O(N)$). For extremely long sequences or massive video files, linear-time models might still hold an edge.
  • Hardware Optimization: The current implementation relies on standard DCT libraries. Custom CUDA kernels specifically optimized for the HCO could potentially unlock even higher speeds.
  • Broader Physics: The authors suggest that heat conduction is just one physical law that can be adapted. Future work could explore wave equations or fluid dynamics as bases for vision operators.

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