Evolution: A Unified Formula for Feature Operators from a High-level Perspective

Zhicheng CaiarXiv 2023 · DOI

Introduction

In the rapidly advancing field of computer vision, the architectural landscape is dominated by a variety of feature operators. Convolutional Neural Networks (CNNs) utilize spatial-agnostic convolutions, while Vision Transformers (ViTs) leverage content-dependent self-attention. More recently, operators like involution have emerged, further diversifying the toolkit available to researchers.

However, the mathematical formulations of these operators often appear disparate, hindering theoretical comparison and the principled design of hybrid architectures. This paper introduces Evolution, a unified mathematical framework that bridges these gaps by reframing feature extraction through a high-level "Evolution Function" that generates dynamic "Evolution Kernels."

The Evolution Framework

The core of the proposed theory is the decomposition of any feature operator into two fundamental components:

  1. The Evolution Function ($F$): A transformation that processes the input feature map to generate a specific weight tensor.
  2. The Evolution Kernel ($W$): The resulting tensor used to aggregate local features.

By defining operators in terms of how they generate and apply these kernels, the Evolution framework provides a singular language to describe the "atoms" of computer vision. This perspective reveals that the primary difference between architectures is not the aggregation method itself, but the mechanism of weight generation.

Unifying Disparate Operators

The paper provides rigorous mathematical proofs demonstrating how traditional operators "evolve" from this unified formula:

  • Convolution: Within this framework, convolution is viewed as a static evolution. The Evolution Function produces a kernel that is duplicated across all spatial positions, making it spatial-agnostic ($W_{i,j} = W_{conv}$).
  • Self-Attention: The query-key-value interactions in self-attention are reframed as a two-stage evolution process. The author proves that self-attention is essentially a method for generating a content-dependent Evolution Kernel, where the kernel weights are derived from the data itself.
  • Involution: This operator is shown to be a specific case where the kernel is spatial-specific but channel-agnostic. By adjusting the dimensions and grouping of the generated kernel, involution fits neatly into the Evolution taxonomy.

Theoretical Insights

The Meta Perspective

By moving to a higher-dimensional view—incorporating dimensions for spatial positions and channel groups—the author demonstrates that self-attention can be interpreted as a "depth-wise evolution" followed by a "point-wise convolution." This taxonomy allows researchers to categorize operators based on their preferences for spatial or channel specificity, viewing them as a spectrum rather than isolated choices.

Clarifying Relationships

The Evolution framework also serves to correct misconceptions in the literature. Specifically, the author challenges the claim that self-attention is a subclass of involution. By applying the Evolution formula, the paper highlights that previous comparisons ignored the "value" projection ($W_V$) inherent in self-attention, which renders the two operators fundamentally distinct yet still unifiable under the broader Evolution umbrella.

Conclusion and Future Directions

The Evolution formula offers a "Grand Unified Theory" for feature operators, providing a principled way to understand and design neural network components. While the current work focuses on one-order Evolution Functions—where kernels are generated directly from input—it sets the stage for exploring "multi-order" evolutions involving nested kernel generation.

Although the paper is primarily theoretical and does not benchmark computational efficiency, it provides the necessary mathematical foundation for future empirical studies and the development of novel hybrid operators that combine the strengths of convolutions and transformers in a unified manner.

Summary updated

BibTeX
@misc{cai2023evolution,
  author = {Zhicheng Cai},
  title = {{Evolution: A Unified Formula for Feature Operators from a High-level Perspective}},
  year = {2023},
  eprint = {2305.14409},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.14409},
}
Figure