Surface Vision Transformers: Attention-Based Modelling applied to Cortical Analysis

Simon Dahan, Abdulah Fawaz, Logan Zane John Williams, Chunhui Yang, Timothy S. Coalson, Matthew Glasser, A David Edwards, Daniel Rueckert, Emma Claire Robinson

Abstract

The extension of convolutional neural networks (CNNs) to non-Euclidean geometries has led to multiple frameworks for studying manifolds. Many of those methods have shown design limitations resulting in poor modelling of long-range associations, as the generalisation of convolutions to irregular surfaces is non-trivial. Motivated by the success of attention-modelling in computer vision, we translate convolution-free vision transformer approaches to surface data, to introduce a domain-agnostic architecture to study any surface data projected onto a spherical manifold. Here, surface patching is achieved by representing spherical data as a sequence of triangular patches, extracted from a subdivided icosphere. A transformer model encodes the sequence of patches via successive multi-head self-attention layers while preserving the sequence resolution. We validate the performance of the proposed Surface Vision Transformer (SiT) on the task of phenotype regression from cortical surface metrics derived from the Developing Human Connectome Project (dHCP). Experiments show that the SiT generally outperforms surface CNNs, while performing comparably on registered and unregistered data. Analysis of transformer attention maps offers strong potential to characterise subtle cognitive developmental patterns.

Introduction: The Challenge of Cortical Analysis

Analyzing the human cerebral cortex presents a significant challenge in neuroimaging due to its highly folded, irregular manifold structure. Traditionally, Geometric Deep Learning (gDL) frameworks, such as surface-based Convolutional Neural Networks (CNNs), have been the standard for processing this data. However, these models suffer from two primary drawbacks: a local bias that limits their ability to model long-range associations across the brain, and a high sensitivity to registration, often requiring computationally expensive alignment to standard templates.

The Surface Vision Transformer (SiT) Architecture

To address these limitations, the Surface Vision Transformer (SiT) adapts the Vision Transformer (ViT) architecture to spherical manifolds. The core innovation is the use of icospheric tessellation for surface patching. Instead of square pixels, the spherical brain data is represented as a sequence of triangular patches extracted from a subdivided icosphere.

Overview of the Surface Vision Transformer (SiT) architecture, showing the transition from cortical surface to icosphere patches and the subsequent transformer layers.

The model utilizes successive multi-head self-attention (MSA) layers, allowing every region of the brain surface to attend to every other region, regardless of spatial distance. This domain-agnostic approach makes the architecture robust to the underlying irregular geometry of the original cortical mesh.

Experimental Results and Performance

The SiT was validated using the Developing Human Connectome Project (dHCP) dataset, comprising 588 neonatal MRI scans. The model was tasked with phenotype regression to predict Postmenstrual Age (PMA) and Gestational Age (GA) using cortical metrics such as sulcal depth, curvature, thickness, and myelination.

The researchers explored various training strategies, including training from scratch, initializing with ImageNet weights, and a self-supervised Masked Patch Prediction (MPP) task. The results demonstrate that SiT variants consistently outperform established surface CNNs like Spherical UNet and MoNet, particularly when utilizing self-supervision.

Performance comparison of SiT variants against baseline methods across different training strategies and data spaces (Template vs. Native).

Key Insights

  • Robustness to Native Space: Unlike traditional models that see a performance drop when moving from template-aligned to "native" (unregistered) data, SiT maintains stable performance. This suggests that the attention mechanism is better at learning features invariant to orientation or warping.
  • Impact of Self-Supervision: The MPP pre-training significantly improved performance, allowing the model to learn a robust internal representation of cortical anatomy before clinical labels were introduced. Small models like SiT-small achieved a Mean Absolute Error (MAE) of 0.55 weeks for PMA prediction.
  • Interpretability: Attention maps generated by the SiT provide insights into the model's decision-making process, highlighting regions like the somatosensory and visual cortices that are critical for neonatal development.

Conclusion

The Surface Vision Transformer represents a significant step forward in cortical analysis, offering a flexible, robust, and interpretable alternative to traditional surface CNNs. While larger models currently face data-scarcity challenges in medical imaging, the success of smaller SiT variants and self-supervised pre-training points toward a promising future for attention-based modeling on complex manifolds.

Summary updated

BibTeX
@inproceedings{dahan2022surface,
  author = {Simon Dahan and Abdulah Fawaz and Logan Zane John Williams and Chunhui Yang and Timothy S. Coalson and Matthew Glasser and A David Edwards and Daniel Rueckert and Emma Claire Robinson},
  title = {{Surface Vision Transformers: Attention-Based Modelling applied to Cortical Analysis}},
  booktitle = {MIDL},
  year = {2022},
  url = {https://openreview.net/forum?id=mpp843Bsf-},
}
Figure