Adapting HFMCA to Graph Data: Self-Supervised Learning for Generalizable fMRI Representations

Jakub Frac, Alexander Schmatz, Qiang Li, Guido van Wingen, Shujian Yu · DOI

Introduction

Deep learning for functional MRI (fMRI) faces significant challenges, including small clinical datasets, domain shifts between scanning centers, and the difficulty of defining "negative" samples for contrastive learning. To address these, researchers have adapted the Hierarchical Functional Maximal Correlation Algorithm (HFMCA) into a self-supervised learning framework for graph-structured fMRI data. This approach learns robust brain representations without requiring the explicit positive/negative pairs typical of methods like SimCLR.

Methodology: HFMCA for Graphs

The framework transforms raw 4D fMRI signals into functional connectivity graphs using the AAL116 atlas, where nodes represent brain regions and edges represent the top 400 correlations.

The HFMCA architecture for graph data, showing the transformation of input graph X into multiple augmented views Y, followed by hierarchical feature extraction and information maximization.

The architecture employs a Graph Transformer (GPS) backbone to capture both local message-passing and global attention-based relationships. Unlike standard contrastive methods, HFMCA maximizes the statistical dependence between different augmented "views" of the data by decomposing the density ratio in a reproducing kernel Hilbert space (RKHS). The "hierarchical" aspect ensures consistency between low-level local projections and high-level global aggregations, fostering multi-scale robustness.

Experimental Results

The model was pretrained on approximately 2,500 subjects from the REST and ABIDE datasets and evaluated across five diverse datasets (REST, ABIDE, BSNIP, AOMIC, and HCP) covering tasks like Major Depressive Disorder (MDD) and sex classification.

HFMCA demonstrated competitive and often superior performance. For sex classification on the REST dataset, it achieved 70.3% accuracy, surpassing SimCLR (68.4%) and Barlow Twins (65.2%). Notably, HFMCA showed high stability and superior transferability to completely unseen datasets like BSNIP (Schizophrenia/Bipolar), suggesting it captures more "universal" features of brain organization.

The Scaling Paradox and Negative Transfer

A surprising finding of this study is that simply increasing the amount of pretraining data does not guarantee better performance—a departure from the scaling laws observed in Natural Language Processing.

Mean accuracy across different datasets as a function of the number of pretraining samples, illustrating the non-monotonic performance and the phenomenon of negative transfer.

As shown in the figure, performance often peaked at a specific sample size and declined when more diverse data (such as HCP and BSNIP) were added to the pretraining mix. This "negative transfer" suggests that the noise and domain variance introduced by diverse neuroimaging sources can outweigh the benefits of additional data, highlighting a major hurdle for developing large-scale foundation models for the brain.

Conclusion

By adapting HFMCA to graph-structured fMRI, this work provides a theoretically grounded alternative to contrastive learning that excels in generalizability. While the discovery of negative transfer presents a challenge for future scaling, the framework's success on diverse clinical tasks marks a significant step toward robust, automated brain representation learning. Future research will focus on intelligent data integration and extending the method to task-based or multi-modal neuroimaging data.

Summary updated

BibTeX
@misc{frac2025adapting,
  author = {Jakub Frac and Alexander Schmatz and Qiang Li and Guido van Wingen and Shujian Yu},
  title = {{Adapting HFMCA to Graph Data: Self-Supervised Learning for Generalizable fMRI Representations}},
  year = {2025},
  eprint = {2510.05177},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.05177},
}
Figure