Octic Vision Transformers: Quicker ViTs Through Equivariance

David Nordström, Johan Edstedt, Fredrik Kahl, Georg BökmanOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

Octic Vision Transformers (Octic ViTs) leverage the geometric symmetries of the square—90-degree rotations and reflections—to significantly reduce the computational cost of deep learning. By implementing linear layers in the Fourier domain of the "octic group" ($D_8$), the authors achieve a 5.33x reduction in FLOPs for linear layers and a ~40% overall FLOP saving for large models like ViT-H, all while matching or exceeding the accuracy of standard, non-equivariant baselines.

What Problem Does This Paper Address?

Standard Vision Transformers (ViTs) are remarkably scalable, but they are computationally "blind" to natural geometric symmetries. While they treat image patches as a sequence of tokens (making them permutation equivariant), they don't inherently understand that an image of a cat is still a cat if it’s flipped horizontally or rotated 90 degrees.

In the past, researchers tried to build "equivariant" models to bake these symmetries into the architecture. However, these models usually came with a "symmetry tax": they were often slower, more complex, and required more memory than standard models. The authors of this paper argue that the problem isn't a lack of utility in equivariance, but rather a lack of efficient implementation. They set out to prove that you can have the inductive bias of symmetry without the performance penalty.

Methods

The core innovation is the Octic Linear Layer. Instead of using standard dense matrix multiplications, the authors represent the features in the Fourier domain of the dihedral group $D_8$ (the group of symmetries of a square).

  • Fourier Sparsity: In this domain, the weight matrices become block-diagonal. This mathematical "shortcut" means that instead of one massive multiplication, the model performs several much smaller ones. This results in exactly 5.33x fewer FLOPs and 8x fewer parameters per feature dimension.
  • Architectural Families: The paper introduces three variants:
  • $D_8(ViT)$: Fully equivariant throughout.
  • $I_8(ViT)$: Invariant models that map to "rotation-neutral" features at the very end.
  • $H_8(ViT)$: Hybrid models that use octic blocks for the first half of the network and standard blocks for the second half, allowing the model to "break" symmetry and learn orientation-specific features (like the fact that sky is usually at the top).
  • Custom Kernels: To ensure these theoretical savings translate to real-world speed, they developed a custom Triton kernel that fuses the GELU activation function with the Fourier transforms, minimizing memory overhead.

Datasets

The models were rigorously tested on several standard benchmarks:

  • ImageNet-1K: Used for primary supervised (DeiT-III) and self-supervised (DINOv2) training.
  • Downstream Tasks: Evaluation on ADE20K and VOC2012 (segmentation), and iNaturalist2021 and Places365 (classification).
  • Specialized Benchmarks: The authors also tested on a Bone Marrow Cytomorphology (BMC) dataset for medical imaging, where cell orientation is naturally random.

Key Insights and Ideas

  • Equivariance as Compression: Traditionally, equivariance is seen as a way to improve "robustness." This paper reframes it as a powerful tool for model compression and efficiency. It allows a model to "re-use" its learned filters across different orientations.
  • Symmetry Breaking is a Feature, Not a Bug: The hybrid ($H_8$) models often performed best. This is because many real-world datasets (like ImageNet) have a "canonical" upright orientation. By using octic layers early on to extract general features and standard layers later to understand orientation, the model gets the best of both worlds.
  • Scaling Efficiency: The efficiency gains of Octic ViTs actually improve as the model scales. As the embedding dimension ($C$) grows, the linear layers dominate the computation, and the 5.33x savings become more pronounced.
  • Zero-Shot Rotation Robustness: The invariant ($I_8$) models showed zero drop in accuracy when tested on randomly rotated images, whereas standard ViTs saw their performance plummet by over 13%.

Key Results

  • Efficiency: For a ViT-Huge (ViT-H) model, Octic ViTs achieved a 40% reduction in total FLOPs and nearly a 3x reduction in peak memory usage.
  • Accuracy: On ImageNet-1K, the $H_8(ViT-H)$ model reached 85.0% accuracy, slightly outperforming the standard ViT-H baseline (84.6%) while being significantly faster.
  • Throughput: While FLOP savings are 5.33x, real-world throughput (images per second) increased by 1.3x to 3.5x depending on the model size, proving that the method is hardware-friendly.
  • Self-Supervised Success: When used with the DINOv2 recipe, Octic ViTs matched baseline performance on downstream segmentation tasks while using only ~60% of the FLOPs.

Limitations and Future Work

  • Discrete Symmetries: The model is limited to 90-degree rotations. It does not handle "continuous" rotations (e.g., a 33-degree tilt), though the authors suggest this could be extended.
  • Hardware Gap: There is still a gap between theoretical FLOP savings (5.33x) and actual throughput gains (up to 3.5x). This is due to the overhead of Fourier transforms and the fact that modern GPUs are highly optimized for standard dense matrix operations.
  • Hyperparameter Tuning: The authors used standard training recipes without re-tuning for octic layers; they suspect even better results are possible with dedicated tuning.
  • Future Directions: The authors aim to explore larger symmetry groups and apply these efficient equivariant layers to other architectures beyond Transformers.

Summary updated

Abstract

Why are state-of-the-art Vision Transformers (ViTs) not designed to exploit natural geometric symmetries such as 90-degree rotations and reflections? In this paper, we argue that there is no fundamental reason, and what has been missing is an efficient implementation. To this end, we introduce Octic Vision Transformers (octic ViTs) which rely on octic group equivariance to capture these symmetries. In contrast to prior equivariant models that increase computational cost, our octic linear layers achieve 5.33x reductions in FLOPs and up to 8x reductions in memory compared to ordinary linear layers. In full octic ViT blocks the computational reductions approach the reductions in the linear layers with increased embedding dimension. We study two new families of ViTs, built from octic blocks, that are either fully octic equivariant or break equivariance in the last part of the network. Training octic ViTs supervised (DeiT-III) and unsupervised (DINOv2) on ImageNet-1K, we find that they match baseline accuracy while at the same time providing substantial efficiency gains.
BibTeX
@misc{nordstrom2026octic,
  author = {David Nordström and Johan Edstedt and Fredrik Kahl and Georg Bökman},
  title = {{Octic Vision Transformers: Quicker ViTs Through Equivariance}},
  year = {2026},
  url = {https://openreview.net/forum?id=9zVPsVWUY1},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure