HexFormer: Hyperbolic Vision Transformer with Exponential Map Aggregation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Alyoussef, Haya, Bdeir, Ahmad, Mecke, Diego Coello de Portugal, Hanika, Tom, Landwehr, Niels, Schmidt-Thieme, Lars
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908792220811264
author Alyoussef, Haya
Bdeir, Ahmad
Mecke, Diego Coello de Portugal
Hanika, Tom
Landwehr, Niels
Schmidt-Thieme, Lars
author_facet Alyoussef, Haya
Bdeir, Ahmad
Mecke, Diego Coello de Portugal
Hanika, Tom
Landwehr, Niels
Schmidt-Thieme, Lars
contents Data across modalities such as images, text, and graphs often contains hierarchical and relational structures, which are challenging to model within Euclidean geometry. Hyperbolic geometry provides a natural framework for representing such structures. Building on this property, this work introduces HexFormer, a hyperbolic vision transformer for image classification that incorporates exponential map aggregation within its attention mechanism. Two designs are explored: a hyperbolic ViT (HexFormer) and a hybrid variant (HexFormer-Hybrid) that combines a hyperbolic encoder with an Euclidean linear classification head. HexFormer incorporates a novel attention mechanism based on exponential map aggregation, which yields more accurate and stable aggregated representations than standard centroid based averaging, showing that simpler approaches retain competitive merit. Experiments across multiple datasets demonstrate consistent performance improvements over Euclidean baselines and prior hyperbolic ViTs, with the hybrid variant achieving the strongest overall results. Additionally, this study provides an analysis of gradient stability in hyperbolic transformers. The results reveal that hyperbolic models exhibit more stable gradients and reduced sensitivity to warmup strategies compared to Euclidean architectures, highlighting their robustness and efficiency in training. Overall, these findings indicate that hyperbolic geometry can enhance vision transformer architectures by improving gradient stability and accuracy. In addition, relatively simple mechanisms such as exponential map aggregation can provide strong practical benefits.
format Preprint
id arxiv_https___arxiv_org_abs_2601_19849
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle HexFormer: Hyperbolic Vision Transformer with Exponential Map Aggregation
Alyoussef, Haya
Bdeir, Ahmad
Mecke, Diego Coello de Portugal
Hanika, Tom
Landwehr, Niels
Schmidt-Thieme, Lars
Computer Vision and Pattern Recognition
Data across modalities such as images, text, and graphs often contains hierarchical and relational structures, which are challenging to model within Euclidean geometry. Hyperbolic geometry provides a natural framework for representing such structures. Building on this property, this work introduces HexFormer, a hyperbolic vision transformer for image classification that incorporates exponential map aggregation within its attention mechanism. Two designs are explored: a hyperbolic ViT (HexFormer) and a hybrid variant (HexFormer-Hybrid) that combines a hyperbolic encoder with an Euclidean linear classification head. HexFormer incorporates a novel attention mechanism based on exponential map aggregation, which yields more accurate and stable aggregated representations than standard centroid based averaging, showing that simpler approaches retain competitive merit. Experiments across multiple datasets demonstrate consistent performance improvements over Euclidean baselines and prior hyperbolic ViTs, with the hybrid variant achieving the strongest overall results. Additionally, this study provides an analysis of gradient stability in hyperbolic transformers. The results reveal that hyperbolic models exhibit more stable gradients and reduced sensitivity to warmup strategies compared to Euclidean architectures, highlighting their robustness and efficiency in training. Overall, these findings indicate that hyperbolic geometry can enhance vision transformer architectures by improving gradient stability and accuracy. In addition, relatively simple mechanisms such as exponential map aggregation can provide strong practical benefits.
title HexFormer: Hyperbolic Vision Transformer with Exponential Map Aggregation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2601.19849