Abstract
The privacy-sensitive nature of clinical data often limits the use of machine learning in medical imaging applications, particularly for modalities with high acquisition costs such as functional MRI (fMRI). Federated learning mitigates data-sharing barriers by training site-specific models locally and aggregating weights centrally into a server model. However, small and heterogeneous per-site samples in medical imaging heighten the need for robust model-aggregation strategies. In this work, we introduce a federated aggregation scheme based on hyperbolic geometry to provide a robust and flexible approach to federated model weight integration. The proposed scheme is plug-and-play for standard federated learning loops. Empirically, our method improves stability and accuracy across multi-site fMRI data from ABIDE I, yielding more consistent convergence versus methods based on Euclidean mean and median. Codes are publicly available at https://github.com/Jiyao96/FedHAvg.
Index Terms—: Federated learning, fMRI, Domain adaptation, Medical imaging
1. INTRODUCTION
Recent large public fMRI datasets, such as the Human Connectome Project (HCP) [1], have provided ample data to study brain function in healthy populations. However, collecting sizable homogeneous cohorts for specific neurological disorders within narrow age ranges remains challenging.
To address this, federated learning (FL) [2] enables knowledge aggregation from small multi-site datasets while preserving the privacy of raw data. In each standard FL communication round, clients train locally and transmit model parameters or gradients rather than raw subject-level data to a central server. The server aggregates these updates to form a global model, which is then broadcast back to all clients (Fig. 1). Without direct sharing of raw data, the global model learns robust and generalizable parameters applicable across all clients.
Fig. 1.

Federated Learning
Several studies have applied FL to multi-site fMRI data. Li et al. [3] utilized vectorized upper-triangular entries of the functional connectome (FC) as input features. Building on this, Wang et al. [4] and Zhang et al. [5] incorporated multimodal inputs, including FCs from multiple region of interest (ROI) parcellations, demographic variables, and cognitive test scores. Despite differences in inputs and architectures, all three studies employed FedAvg [2] to aggregate local weights for updating the global model. While FedAvg [2] is a widely used aggregation baseline, it is susceptible to a small number of corrupted or highly biased updates under non-IID client drift. Prior medianbased work [6] mitigates this by discarding outliers. However, when the number of participating clients is small, median-based estimators can be unstable and high-variance, reducing their practical reliability in medical imaging applications.
Hyperbolic geometry has been leveraged across multiple aspects of FL. HyperFed [7] projects features into a shared hyperbolic embedding space to facilitate clustering. FlatLand [8] assigns client-specific curvatures to capture site heterogeneity and enable per-client specialization. However, applying hyperbolic transformation directly to server-side weight aggregation remains unexplored to our knowledge. In this paper, we propose Federated Hyperbolic Averaging (FedHAvg), a geometry-aware robust aggregation method for FL. Through hyperbolic transform of local weights before averaging, extreme updates are compressed towards the boundary of the Poincaré ball. The curvature serves as a tunable robustness parameter to control the strength of compression to the target application.
2. DATA
For this study, we use the PCP-preprocessed resting-state fMRI from the multi-site ABIDE I [9] dataset consisting of autism spectrum disorder (ASD) and healthy control (HC) subjects. For the FL setup, we select data from the top 4 sites with the largest number of subjects (NYU, UM, UCLA, USM). Following common practice [10], we merge subsites acquired at the same institution under identical rs-fMRI protocols and treat each institution as a single federated client (UM1 merged with UM2 and UCLA1 merged with UCLA2). For quality control, we exclude scans with a mean frame distance larger than 0.15mm. The total and per-site number of subjects are summarized in Table 1. We employ the PCP-preprocessed fMRIs parcellated into 116 ROIs following the AAL atlas [11]. For each subject, we use the flattened upper triangle of the FC matrix as input, yielding 116×115/2 = 6,670 features. Subjects at each site are stratified by diagnosis and partitioned into five approximately equal folds. For simplicity in evaluation, we employ a synchronized 5-fold cross-validation across sites.
Table 1.
Total and per site number of subjects in ABIDE
| Site | Total | ASD | HC | ||
|---|---|---|---|---|---|
| NYU | 163 | 66 | (40.5%) | 97 | (59.5%) |
| UM | 104 | 41 | (39.4%) | 63 | (60.6%) |
| UCLA | 72 | 33 | (45.8%) | 39 | (54.2%) |
| USM | 50 | 31 | (62.0%) | 19 | (38.0%) |
| Total | 389 | 171 | (44.0%) | 218 | (56.0%) |
3. METHOD
3.1. Notation and Problem Definition
We consider clients indexed by . Each client holds a local dataset with samples. The server maintains a global model , where . In FL training, we initialize the global model weights and iteratively update the global model through local client training and global server aggregation (Algorithm 1). In the client update, returning the gradient or the updated weights is equivalent for strategies based on Euclidean mean or median.
For our ASD versus HC binary classification application, the global model is a binary classifier that maps the input to binary labels given the federated trained weights . In this paper, we investigate the server-side aggregation function while using a baseline MultiLayer Perceptron (MLP) classifier.

3.2. Federated Hyperbolic Averaging (FedHAvg)
We leverage the closed form expression of geometric operations in the Poincaré ball to enable stable and vectorized implementations of transformations. In hyperbolic geometry, the -dimensional Poincaré ball model with constant sectional curvature is defined as
At the origin, the exponential and logarithmic maps provide forward and backward transformations between the Euclidean space and the Poincaré ball . Using as a scalar to regularize the vector norm, the closed-form exponential map at the origin can be described as
Similarly, the closed-form logarithmic map can be described as
According to the above definition, we propose two aggregation strategies: one utilizing the extrinsic mean and the other based on the gyro-barycentric mean.
3.2.1. Extrinsic Mean
In the Poincaré ball, the extrinsic mean follows a project-average-retract construction that maps to the manifold with , takes the Euclidean weighted average, and maps back to the tangent space by . In our implementation, we use an unweighted Euclidean average for simplicity. With denoting the local updates, the resulting extrinsic mean is
3.2.2. Gyro-barycentric Mean
While the extrinsic mean is robust and computationally efficient, it is neither coordinate-invariant nor equivariant under hyperbolic isometries. As an intrinsic alternative, we can aggregate weights using the gyro-barycentric mean.
By definition, the closed-form unweighted gyro-barycentric mean of points in the Poincaré ball is computed via Möbius addition and Möbius scalar multiplication as
where the closed-form Möbius operations are
The gyro-barycentric mean not only yields a chart-free and geometric isometry-friendly averaging of client parameters, but also offers less attenuation of large-norm updates compared to the extrinsic mean.
In implementation, to prevent division-by-zero and instability of near the ball boundary, we add a small to all denominators and clamp argument of artanh by enforcing a minimum margin from the boundary .
4. EXPERIMENTS
4.1. Implementation Details
Our global model is a four-layer MLP with LayerNorm [12] and ReLU activation. BatchNorm is excluded to prevent mixing client-specific feature statistics following [13]. We train the global model for 100 federated rounds, with 1 local epoch per client in each round. Each local client is trained with a batch size 16 using SGD optimizer with a learning rate of 0.0001, momentum of 0.9, and weight decay of 0.001. All models are trained for the ASD/HC classification with cross-entropy loss.
4.2. Per-Site Training with Cross-Site Evaluation
To assess the ability of single-source models to be applied on other sites, we train a model on one site and evaluate it on all other sites (Table 2). Overall, cross-site adaptation is weak, with models trained on larger sites generalizing slightly better. Training on NYU and evaluating on UCLA yields the best cross-site accuracy (0.667), underscoring substantial cross-site heterogeneity in the ABIDE dataset.
Table 2.
Accuracy in ASD/HC classification task from single-site training and inference on other sites.
| Site | NYU | UM | UCLA | USM |
|---|---|---|---|---|
| NYU-trained | - | 0.606 | 0.667 | 0.520 |
| UM-trained | 0.663 | - | 0.597 | 0.480 |
| UCLA-trained | 0.650 | 0.529 | - | 0.400 |
| USM-trained | 0.491 | 0.452 | 0.486 | - |
4.3. Federated Learning
We evaluate the performance of the baselines and our geometry-aware federated model aggregation approaches (Fig. 2).
Fig. 2.

Baseline and geometry-aware federated model aggregation methods. In a), FedAvg and FedAvg-weighted correspond to mean-based aggregation [2]. In b), Trimmed-mean and Coordinate-wise Median are median-based aggregation [6]. c) describes two variants of the proposed FedHAvg approaches (FedHAvg-ext and FedHAvg-gbar).
4.3.1. Baselines
We assess FL performance with the following four baseline model aggregation methods:
Federated Averaging (FedAvg) [2]: Compute the global parameters as the unweighted Euclidean average of all the client parameters.
FedAvg-weighted [2]: Sample-size–weighted Euclidean average of client parameters. Each client’s contribution is proportional to its local training set size. In our experiments this provided only marginal improvement over the unweighted mean. Hence, for simplicity and clearer comparisons, we default to unweighted variants for other eligible methods.
Coordinate-wise Median [6]: For each parameter channel, set the global value to the median of the client parameter values at that coordinate.
Trimmed-mean [6]: Sort the client values for each parameter channel, discard the lowest and highest values with , and average the remaining values. This yields robustness to a bounded fraction of corrupted or extreme updates, a softer version of the medianonly aggregation.
4.3.2. Federated Hyperbolic Averaging (FedHAvg)
As described in Section 3.2, we experiment with two geometry-aware federated model aggregation variants: FedHAvg-ext and FedHAvg-gbar, one using the extrinsic mean and the other using gyro–barycentric mean, respectively.
For aggregation methods involving a nonlinear hyperbolic projection, averaging client weights () is not equivalent to averaging their updates (). Therefore, we evaluate both weight-based and update-based aggregation, denoting the latter as “on ”.
We empirically fix the curvature at for all variants. To harmonize scales of norms between weight-based and update-based inputs, we empirically set for weight-based aggregation and for update-based aggregation.
5. RESULTS AND DISCUSSION
Results are summarized in Table 3. The proposed geometry-aware aggregators secure the majority of top-2 performances. Exceptions occur only for the second-best Acc and F1 on NYU, and the best AUC on UCLA and USM. This shows our methods to outperform mean and median based model aggregation methods on the 4-site federated learning experiment on the ABIDE dataset. Through hyperbolic projection, client updates are implicitly reweighted according to geometric statistics of the update vectors. The resulting aggregator is more robust than FedAvg yet does not incur the higher variance associated with median-based schemes that rely on fewer effective clients.
Table 3.
Accuracy in ASD/HC classification task under federated learning approaches. Results are reported as mean of 5-fold cross-validation experiments measured by Accuracy (Acc) and Area-Under-the-ROC-Curve (AUC). Best performance in each column are bolded, second best underlined.
| Method | NYU | UM | UCLA | USM | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Acc | F1 | AUC | Acc | F1 | AUC | Acc | F1 | AUC | Acc | F1 | AUC | |
| FedAvg | 0.708 | 0.631 | 0.731 | 0.652 | 0.603 | 0.733 | 0.657 | 0.539 | 0.670 | 0.635 | 0.651 | 0.749 |
| FedAvg-weighted | 0.695 | 0.597 | 0.744 | 0.661 | 0.604 | 0.730 | 0.643 | 0.499 | 0.708 | 0.635 | 0.651 | 0.717 |
| Median | 0.708 | 0.636 | 0.722 | 0.654 | 0.597 | 0.713 | 0.656 | 0.553 | 0.627 | 0.635 | 0.651 | 0.696 |
| Trimmed-mean | 0.720 | 0.653 | 0.733 | 0.652 | 0.599 | 0.726 | 0.656 | 0.552 | 0.649 | 0.635 | 0.651 | 0.722 |
| FedHAvg-ext on Δ | 0.726 | 0.669 | 0.726 | 0.661 | 0.615 | 0.721 | 0.629 | 0.522 | 0.633 | 0.675 | 0.702 | 0.733 |
| FedHAvg-gbar on Δ | 0.695 | 0.609 | 0.744 | 0.652 | 0.596 | 0.726 | 0.643 | 0.533 | 0.701 | 0.655 | 0.677 | 0.744 |
| FedHAvg-ext | 0.682 | 0.591 | 0.753 | 0.682 | 0.614 | 0.753 | 0.724 | 0.606 | 0.696 | 0.655 | 0.677 | 0.710 |
| FedHAvg-gbar | 0.695 | 0.602 | 0.757 | 0.662 | 0.626 | 0.736 | 0.705 | 0.604 | 0.692 | 0.672 | 0.712 | 0.675 |
Across all experimented FedHAvg variants, weight-based aggregation consistently surpasses the update-based alternatives (“on ”). A plausible cause is the high variance in norms of the updates when it is computed as the difference between the locally trained weights and the global weights.
We observe no significant difference between extrinsic-mean and gyro-barycentric mean aggregation. In theory, the extrinsic mean should impose stronger shrinkage on outlying client weights than the gyro-barycenter, but this effect did not translate into a measurable performance gap in our setting.
6. CONCLUSION
We introduce federated hyperbolic averaging (FedHAvg), a family of geometry-aware aggregation schemes. By exploiting the expansion and compression properties of hyperbolic geometry, FedHAvg attenuates large-magnitude or outlier updates while preserving the directions of all client updates.
While our experiments demonstrate successful federated learning in a 4-site setting, scaling to all 17 ABIDE sites remains challenging, particularly for sites with small sample sizes or severe label imbalance. To incorporate more sites, our future work will pursue robustness improvements for federated learning from both the server-side aggregation and client-side specification perspectives.
Supplementary Material
ACKNOWLEDGEMENT
This paper is supported under NIH grant R01NS035193.
Footnotes
COMPLIANCE WITH ETHICAL STANDARDS
This study analyzed de-identified, publicly available data from the Autism Brain Imaging Data Exchange (ABIDE) [9]. All contributing sites obtained local Institutional Review Board (IRB) approval and written informed consent from participants or their legal guardians prior to data sharing. Ethical approval was not required as confirmed by the license attached with the open access data.
REFERENCES
- [1].Van Essen DC, Ugurbil K, Auerbach E, Barch D, Behrens TEJ, Bucholz R, Chang A, Chen L, Corbetta M, Curtiss SW, Della Penna S, Feinberg D, Glasser MF, Harel N, Heath AC, Larson-Prior L, Marcus D, Michalareas G, Moeller S, Oostenveld R, Petersen SE, Prior F, Schlaggar BL, Smith SM, Snyder AZ, Xu J, and Yacoub E, “The human connectome project: A data acquisition perspective,” NeuroImage, vol. 62, no. 4, pp. 2222–2231, 2012, Connectivity. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [2].Brendan McMahan H, Moore Eider, Ramage Daniel, and Agüera y Arcas Blaise, “Federated learning of deep networks using model averaging,” CoRR, vol. abs/1602.05629, 2016. [Google Scholar]
- [3].Li Xiaoxiao, Gu Yufeng, Dvornek Nicha, Staib Lawrence H., Ventola Pamela, and Duncan James S., “Multi-site fmri analysis using privacy-preserving federated learning and domain adaptation: Abide results,” Medical Image Analysis, vol. 65, pp. 101765, 2020. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [4].Wang Haishuai, Jing Hezi, Yang Jianjun, Liu Chao, Hu Liwei, Tao Guangyu, Zhao Ziping, and Shen Ning, “Identifying autism spectrum disorder from multi-modal data with privacy-preserving,” npj Mental Health Research, vol. 3, no. 1, pp. 15, May 2024, Publisher: Nature Publishing Group. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [5].Zhang Junhao, Wang Qianqian, Wang Xiaochuan, Qiao Lishan, and Liu Mingxia, “Preserving specificity in federated graph learning for fmri-based neurological disorder identification,” 2023.
- [6].Yin Dong, Chen Yudong, Ramchandran Kannan, and Bartlett Peter, “Byzantine-robust distributed learning: Towards optimal statistical rates,” 2021.
- [7].Liao Xinting, Liu Weiming, Chen Chaochao, Zhou Pengyang, Zhu Huabin, Tan Yanchao, Wang Jun, and Qi Yue, “Hyperfed: Hyperbolic prototypes exploration with consistent aggregation for non-iid data in federated learning,” 2023.
- [8].Liu Jiahong, Fu Xinyu, Yang Menglin, Zhang Weixi, Ying Rex, and King Irwin, “Flatland: Personalized federated learning via tailored lorentz space,” in FedKDD: International Joint Workshop on Federated Learning for Data Mining and Graph Analytics, 2024. [Google Scholar]
- [9].Di Martino A, Yan C-G, Li Q, Denio E, Castellanos FX, Alaerts K, Anderson JS, Assaf M, Bookheimer SY, Dapretto M, Deen B, Delmonte S, Dinstein I, Ertl-Wagner B, Fair DA, Gallagher L, Kennedy DP, Keown CL, Keysers C, Lainhart JE, Lord C, Luna B, Menon V, Minshew NJ, Monk CS, Mueller S, Müller R-A, Nebel MB, Nigg JT, O’Hearn K, Pelphrey KA, Peltier SJ, Rudie JD, Sunaert S, Thioux M, Tyszka JM, Uddin LQ, Verhoeven JS, Wenderoth N, Wiggins JL, Mostofsky SH, and Milham MP, “The autism brain imaging data exchange: towards a large-scale evaluation of the intrinsic brain architecture in autism,” Molecular Psychiatry, vol. 19, no. 6, pp. 659–667, June 2014, Publisher: Nature Publishing Group. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [10].Heinsfeld Anibal Sólon, Franco Alexandre Rosa, Craddock R. Cameron, Buchweitz Augusto, and Meneguzzi Felipe, “Identification of autism spectrum disorder using deep learning and the abide dataset,” NeuroImage: Clinical, vol. 17, pp. 16–23, 2018. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [11].Tzourio-Mazoyer N, Landeau B, Papathanassiou D, Crivello F, Etard O, Delcroix N, Mazoyer B, and Joliot M, “Automated anatomical labeling of activations in spm using a macroscopic anatomical parcellation of the mni mri single-subject brain,” NeuroImage, vol. 15, no. 1, pp. 273–289, 2002. [DOI] [PubMed] [Google Scholar]
- [12].Vaswani Ashish, Shazeer Noam, Parmar Niki, Uszkoreit Jakob, Jones Llion, Gomez Aidan N., Kaiser Lukasz, and Polosukhin Illia, “Attention is all you need,” 2023.
- [13].Li Xiaoxiao, Jiang Meirui, Zhang Xiaofei, Kamp Michael, and Dou Qi, “Fedbn: Federated learning on non-iid features via local batch normalization,” 2021.
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
