Equi-ViT: Rotational Equivariant Vision Transformer for Robust Histopathology Analysis
Fuyao Chen, Yuexi Du, Elèonore V. Lieffrig, Nicha C. Dvornek, John A. Onofrey
TL;DR
Equi-ViT addresses rotation variability in histopathology by embedding rotationally equivariant features at the patch level through Gaussian Mixture Ring convolution (GMR-Conv), yielding rotation-consistent token representations in a ViT backbone. On the NCT-CRC-HE-100KK dataset, it achieves superior rotation robustness (e.g., rotation accuracy around 86.8) and demonstrates data-efficient embedding with roughly $0.79$M parameters, though CNN-based equivariant models still outperform in overall accuracy. The approach trades some raw performance for improved angular stability and efficiency, suggesting Equi-ViT as a robust backbone for future digital pathology foundation models and broader histopathology analysis. Future work includes scaling to larger datasets and integrating with radial/relative positional embeddings and rotation-aware attention biases to move toward broader equivariance with better computational efficiency.
Abstract
Vision Transformers (ViTs) have gained rapid adoption in computational pathology for their ability to model long-range dependencies through self-attention, addressing the limitations of convolutional neural networks that excel at local pattern capture but struggle with global contextual reasoning. Recent pathology-specific foundation models have further advanced performance by leveraging large-scale pretraining. However, standard ViTs remain inherently non-equivariant to transformations such as rotations and reflections, which are ubiquitous variations in histopathology imaging. To address this limitation, we propose Equi-ViT, which integrates an equivariant convolution kernel into the patch embedding stage of a ViT architecture, imparting built-in rotational equivariance to learned representations. Equi-ViT achieves superior rotation-consistent patch embeddings and stable classification performance across image orientations. Our results on a public colorectal cancer dataset demonstrate that incorporating equivariant patch embedding enhances data efficiency and robustness, suggesting that equivariant transformers could potentially serve as more generalizable backbones for the application of ViT in histopathology, such as digital pathology foundation models.
