Surface Analysis with Vision Transformers

Simon Dahan, Logan Z. J. Williams, Abdulah Fawaz, Daniel Rueckert, Emma C. RobinsonarXiv 2022 · DOI

Introduction

The Surface Vision Transformer (SiT) represents a significant shift in geometric deep learning, being the first framework to adapt the Vision Transformer (ViT) architecture for the analysis of 3D surface meshes. By reformulating surface learning as a sequence-to-sequence problem through a novel spherical patching mechanism, SiT outperforms traditional geometric CNNs in predicting neonatal brain development markers while demonstrating superior robustness to misaligned data.

The Challenge of Non-Euclidean Surface Learning

Deep learning on non-Euclidean surfaces—such as the folded human cortex or protein structures—is critical for medical imaging and computer graphics. Historically, this has been the domain of Geometric Deep Learning (gDL) and Surface CNNs.

However, CNNs possess an inherent "locality bias": they excel at detecting local patterns but struggle to model long-range dependencies between distant surface regions. On the brain's surface, biological processes are often diffuse; a change in one area may be functionally related to a distant region. Furthermore, generalizing convolutions to irregular, deformable meshes is mathematically complex and often involves trade-offs in computational efficiency or rotational invariance. SiT addresses these limitations by introducing the global self-attention mechanism of Transformers to 3D manifolds.

The SiT Architecture

The core innovation of SiT is its approach to the "tokenization" problem: converting a 3D mesh into a sequence of patches suitable for a Transformer.

The Surface Vision Transformer (SiT) pipeline, from spherical patching to phenotype prediction.
  1. Surface Patching: Cortical surface data is projected onto a sphere. The model uses a regularly tessellated icosphere (a sphere composed of triangles) to define patches. Specifically, a sixth-order icosphere (40,962 vertices) is divided into 320 non-overlapping triangular patches based on a lower-order icosphere.
  2. Sequence-to-Sequence Learning: Each triangular patch is flattened into a feature vector. These vectors, combined with positional embeddings to preserve spatial context, are processed by a standard Transformer encoder based on the DeiT architecture.
  3. Optimization Strategies: To mitigate the data-hungry nature of Transformers, the authors explored three training strategies: training from scratch, initializing with ImageNet weights, and Masked Patch Prediction (MPP)—a self-supervised approach where the model reconstructs masked surface segments.
  4. Deconfounding: For tasks like predicting birth age, "scan age" was incorporated as an additional embedding to ensure the model captures neurodevelopmental markers rather than just the age at the time of the MRI.

Experimental Setup

The study utilizes the developing Human Connectome Project (dHCP) dataset, containing high-resolution structural MRI scans of 588 neonatal subjects.

  • Input Features: Four cortical metrics were analyzed: sulcal depth, curvature, cortical thickness, and the T1w/T2w ratio (myelination).
  • Tasks: The model was evaluated on two regression tasks: predicting Postmenstrual Age (PMA) at scan and Gestational Age (GA) at birth.
  • Benchmarks: SiT was compared against five state-of-the-art geometric CNNs: S2CNN, ChebNet, GConvNet, Spherical UNet, and MoNet.

Performance Evaluation

SiT demonstrated superior accuracy and consistency across all evaluated tasks. The "SiT-small" model with MPP pre-training achieved the best overall performance, reaching a Mean Absolute Error (MAE) of 0.55 weeks for PMA prediction and 1.12 weeks for GA prediction.

Performance comparison of SiT variants against geometric CNN benchmarks across PMA and GA tasks.

On average, SiT models achieved prediction errors below 0.98 MAE, outperforming the best CNN (MoNet at 1.05 MAE) and significantly beating others like S2CNN (1.44 MAE for GA). Furthermore, SiT showed lower variability across training runs compared to surface CNNs, indicating a more stable learning process.

Key Insights

  • Attention is Effective for Surfaces: The global receptive field of self-attention is better suited for modeling the complex, diffuse patterns of brain development than the local filters of CNNs.
  • Robustness to Registration: A striking finding was SiT's performance on "native" (unregistered) data. While many gDL methods suffer significant accuracy drops when data isn't perfectly aligned to a template, SiT remained remarkably consistent, suggesting it learns more general geometric features.
  • The Power of Pre-training: Despite the domain gap, starting with ImageNet weights or using self-supervised MPP significantly improved performance, particularly on the challenging Gestational Age prediction task.

Conclusion

While SiT sets a new benchmark for surface analysis, future work may involve more sophisticated architectures like Swin Transformers or multi-scale feature learning. Additionally, while the current patching method relies on spherical projection (ideal for genus-zero surfaces like the brain), modifications may be needed for surfaces with more complex topologies. Nonetheless, SiT proves that the Transformer architecture is a powerful and robust alternative to traditional geometric CNNs for 3D manifold analysis.

Summary updated

BibTeX
@misc{dahan2022surface,
  author = {Simon Dahan and Logan Z. J. Williams and Abdulah Fawaz and Daniel Rueckert and Emma C. Robinson},
  title = {{Surface Analysis with Vision Transformers}},
  year = {2022},
  eprint = {2205.15836},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.15836},
}
Figure