Author: Denis Avetisyan
A new framework tackles the challenges of applying machine learning to fMRI data, enabling models to learn from diverse datasets without forgetting previous knowledge.

The FORGE framework combines generative replay, dual-level knowledge distillation, and functional connectivity matrix-based generative modeling to improve cross-site generalization and address privacy concerns in fMRI-based brain disorder diagnosis.
Despite advances in functional magnetic resonance imaging (fMRI) for brain disorder diagnosis, models often struggle to generalize across diverse clinical sites due to sequential data arrival and catastrophic forgetting. This paper introduces a novel continual learning framework, ‘Continual Learning for fMRI-Based Brain Disorder Diagnosis via Functional Connectivity Matrices Generative Replay’, which addresses this challenge by synthesizing realistic functional connectivity matrices and employing a multi-level knowledge distillation strategy. Our framework, termed FORGE, substantially mitigates forgetting and enhances performance on multi-site datasets for major depressive disorder, schizophrenia, and autism spectrum disorder. Could this approach pave the way for more robust and adaptable diagnostic tools in increasingly decentralized healthcare systems?
The Evolving Brain: Mapping Interconnectedness
Functional connectivity (FC) matrices represent a significant leap in understanding how the brain operates, moving beyond simply identifying where activity occurs to revealing how different regions interact. These matrices aren’t pictures of brain anatomy; instead, they are dynamic maps of statistical dependencies – correlations in activity patterns – between spatially distinct areas. By quantifying the synchronized or coordinated behavior of these regions, FC matrices provide a window into the ongoing neural processes that underpin cognition, emotion, and behavior. The strength of connections within the matrix reflects the degree to which activity in one area predicts activity in another, offering insights into information flow and integration across the brain. Ultimately, these matrices translate complex brain activity into a quantifiable format, enabling researchers to model and investigate the neural basis of various mental states and neurological conditions.
Conventional analyses of functional connectivity (FC) matrices frequently treat them as simple data tables, inadvertently disregarding the crucial organizational principles embedded within their structure. This approach limits the ability to fully decipher how the brain functions, as it fails to account for the non-random patterns of interconnectedness. These matrices aren’t merely collections of correlations; they reflect a complex network with inherent hierarchies, communities, and influential nodes. By overlooking these structural characteristics-such as small-worldness or modularity-researchers risk misinterpreting the underlying neural processes and drawing incomplete conclusions about brain activity. A more nuanced examination of these intrinsic properties is therefore essential to unlock the full potential of FC matrices in understanding both healthy brain function and neurological disorders.
Transforming functional connectivity (FC) matrices into graphs unlocks a sophisticated toolkit for dissecting the brain’s complex organization. By treating brain regions as nodes and the statistical dependencies between them as edges, researchers can apply established graph theory and network science methods. This approach moves beyond simply observing that regions correlate, to understanding how they interact within a larger, integrated system. Analyses like centrality measures – identifying crucial hubs – and community detection – revealing densely interconnected modules – expose the brain’s inherent structural architecture and its influence on cognitive processes. Furthermore, comparisons between individual graphs, or across different conditions, can highlight deviations indicative of neurological disorders or the effects of learning, offering a powerful new lens through which to view brain function and dysfunction.

FCM-VAE: A Model of Network Genesis
FCM-VAE is a generative model developed for the specific task of learning and reconstructing functional connectivity (FC) matrices, which represent the statistical dependencies between different brain regions. Unlike general-purpose generative models, FCM-VAE is tailored to the unique characteristics of FC data, allowing it to efficiently model the complex relationships within brain networks. The model operates by encoding an FC matrix into a latent representation and then decoding this representation to reconstruct the original matrix. This process enables both the generation of new, realistic FC matrices and the analysis of existing ones by identifying key features within the latent space. The model’s architecture is designed to capture the inherent structural properties of FC matrices, facilitating accurate reconstruction and meaningful generation of brain network data.
The Structure-Aware Graph Transformer Encoder forms the foundational component of the FCM-VAE model, designed to represent functional connectivity (FC) matrices as graph data. This encoder moves beyond traditional methods by simultaneously considering both local adjacency – the direct connections between brain regions – and global spectral properties derived from the FC matrix’s underlying graph Laplacian. This dual approach allows the model to capture nuanced relationships within the brain network; local adjacency defines immediate interactions, while spectral properties represent broader patterns of connectivity and integration across the entire network. By integrating these complementary features, the encoder generates a robust and informative embedding of the FC matrix, enabling effective reconstruction and generation of brain networks.
The FCM-VAE encoder represents functional connectivity (FC) matrix structure through Local Adjacency Encoding and Spectral Positional Encoding. Local Adjacency Encoding transforms each element of the FC matrix into a feature vector based on its immediate neighbors, capturing regional relationships. Simultaneously, Spectral Positional Encoding leverages the eigenvectors of the graph Laplacian – derived from the FC matrix – to encode global network properties and the relative position of each node within the broader network topology. This dual encoding strategy allows the model to effectively capture both fine-grained, localized interactions and large-scale organizational principles present in brain networks, providing a comprehensive structural representation for subsequent reconstruction.
The functional connectivity (FC) matrix, representing inter-regional relationships in the brain, often exhibits an inherent low-dimensional structure due to the limited number of underlying neural processes driving brain activity. The Low-Rank Decoder in FCM-VAE capitalizes on this property by projecting the encoded representation into a lower-dimensional latent space and subsequently reconstructing the original FC matrix. This approach significantly reduces the number of parameters required for reconstruction compared to a full-rank reconstruction, improving computational efficiency and mitigating the risk of overfitting, particularly when dealing with high-dimensional FC matrices. The decoder utilizes matrix factorization techniques to approximate the [latex]N \times N[/latex] FC matrix with the product of two smaller matrices, effectively capturing the most significant patterns of connectivity while discarding noise or redundant information.

FORGE: Preserving the System While Allowing Growth
FORGE is a Continual Learning (CL) framework designed to mitigate data privacy concerns inherent in traditional CL systems. It is fundamentally built upon a Factorized Conditional Variational Autoencoder (FCM-VAE) architecture. This foundation allows FORGE to operate on synthetic data generated by the FCM-VAE, rather than directly accessing or storing sensitive, real-world data. The framework aims to learn and retain information from sequential data streams without compromising the privacy of the original training examples, enabling continual model updates without requiring access to previously seen data.
FORGE employs generative replay via a Factorized Convolutional Manifold Variational Autoencoder (FCM-VAE) to mitigate catastrophic forgetting in continual learning scenarios. This process involves generating synthetic Fully Connected (FC) matrices, which serve as replay buffers, rather than storing actual training data. The FCM-VAE is specifically designed to capture and replicate the essential characteristics of the original data’s feature space, focusing on preserving relevant information within the generated synthetic data. This allows FORGE to maintain performance on previously learned tasks by re-introducing information without compromising data privacy, as no original training samples are directly used in the replay process.
Dual-level knowledge distillation within FORGE addresses catastrophic forgetting by aligning both graph-level representations and classification logits between the current and previously learned tasks. This process facilitates improved knowledge transfer by minimizing the discrepancy in feature spaces at a global graph level, and ensuring the preservation of decision boundaries reflected in the classification logits. Specifically, the framework distills knowledge from the teacher network – encompassing previously learned tasks – to the student network handling the current task, thereby retaining prior knowledge while learning new information. This dual-level approach, focusing on both feature representation and output prediction, demonstrably reduces forgetting rates and enhances continual learning performance across benchmark datasets.
Extensive validation of the FORGE framework was conducted using three large-scale datasets: ABIDE, REST-meta-MDD, and BSNIP. Performance was measured using Average Anytime Accuracy (AAA), a metric relevant to continual learning scenarios. Results demonstrated that FORGE achieved an improvement of up to 4.7% in AAA compared to existing continual learning methods when evaluated across these datasets. This improvement indicates a significant enhancement in maintaining performance on previously learned tasks while learning new ones, highlighting FORGE’s effectiveness in mitigating catastrophic forgetting in complex, real-world datasets.
Evaluation of the FORGE framework demonstrated a substantial decrease in forgetting rate (FOR) across the ABIDE, REST-meta-MDD, and BSNIP datasets when compared to existing continual learning methodologies. Specifically, FORGE achieved up to a 24.5% reduction in FOR, indicating improved retention of previously learned information as new tasks were introduced. This reduction was consistently observed across varying network architectures and classification tasks, suggesting the efficacy of the generative replay mechanism in mitigating catastrophic forgetting and preserving model performance over time. The measured FOR represents the decline in accuracy on previously seen tasks after training on subsequent tasks, with lower values indicating better retention.
Functional Connectivity Matrix Variational Autoencoder (FCM-VAE) demonstrated consistent performance as a data augmentation technique across all evaluated datasets – ABIDE, REST-meta-MDD, and BSNIP – and with various classification algorithms. Specifically, FCM-VAE achieved either the highest or second-highest accuracy when generating synthetic data for augmentation purposes, indicating its effectiveness in expanding the training dataset without significant performance degradation. This consistent ranking suggests FCM-VAE’s generated data effectively preserves the key characteristics of the original functional connectivity matrices, facilitating improved model generalization and robustness.

Expanding the Horizon: Impact and Future Trajectories
Neuroimaging research frequently encounters obstacles regarding data privacy, hindering collaborative efforts and broad-scale analysis. The FORGE framework addresses this challenge by offering a robust solution for preserving patient confidentiality while simultaneously enabling data sharing and collaborative research. This innovative approach utilizes techniques that allow researchers to work with reconstructed functional connectivity (FC) matrices – representations of brain activity – without directly accessing the original, identifying patient data. By effectively decoupling data utility from individual patient information, FORGE facilitates the creation of larger, more diverse datasets, ultimately accelerating discoveries in brain health and disease, and fostering a more open and collaborative scientific landscape within the neuroimaging community.
The efficacy of machine learning in diagnosing and predicting brain diseases is heavily reliant on the quality and reliability of the input data, specifically functional connectivity (FC) matrices which map the intricate relationships between different brain regions. This approach introduces a method for accurately reconstructing and generating these FC matrices, effectively mitigating the impact of data noise and individual variability. By providing machine learning models with more stable and representative FC data, the system demonstrably enhances their robustness and predictive power. This is particularly crucial in cases where data acquisition is challenging or patient populations are heterogeneous, allowing for more accurate diagnoses and potentially enabling earlier interventions in neurological disorders. The increased reliability of these models translates to fewer false positives and negatives, improving clinical outcomes and accelerating the development of personalized treatment strategies.
The convergence of functional connectivity matrix variational autoencoders (FCM-VAE) and FORGE-the framework for privacy-preserving neuroimaging-holds considerable promise for revolutionizing personalized medicine. Researchers anticipate leveraging these technologies to create individualized brain models, tailored to each patient’s unique neural architecture and functional patterns. By accurately representing and analyzing these complex datasets while maintaining patient confidentiality, clinicians could potentially predict individual treatment responses with greater precision. This capability extends beyond diagnosis, offering the possibility of optimizing therapeutic interventions-from pharmacological approaches to targeted neurostimulation-based on a patient’s predicted trajectory. Ultimately, the integration of FCM-VAE and FORGE aims to shift the paradigm from population-based treatment strategies to highly specific, data-driven plans, maximizing efficacy and minimizing adverse effects for each individual.
The successful application of functional connectivity matrix variational autoencoders (FCM-VAE) and the FORGE framework to diffusion tensor imaging (DTI) data suggests a promising path for broader neuroimaging research. Adapting these methodologies to modalities like functional magnetic resonance imaging (fMRI) and electroencephalography (EEG) holds the potential to unlock new insights into brain function and disease. fMRI, with its superior temporal resolution, could benefit from FORGE’s privacy-preserving capabilities, enabling large-scale studies while safeguarding patient data. Simultaneously, applying FCM-VAE to EEG data, characterized by high temporal resolution but limited spatial information, might reveal subtle connectivity patterns indicative of neurological disorders. This expansion beyond DTI represents a significant step towards a unified approach to neuroimaging analysis, fostering more comprehensive and robust investigations of the human brain and paving the way for improved diagnostic and therapeutic strategies.

The pursuit of continual learning, as demonstrated by FORGE, isn’t about halting the inevitable decay of models-catastrophic forgetting is, after all, a natural process-but rather about managing it. The framework’s generative replay component, allowing the model to revisit past experiences without retaining sensitive data, acknowledges that systems learn to age gracefully. As Richard Feynman once said, “The first principle is that you must not fool yourself – and you are the easiest person to fool.” This holds true in machine learning; a system rigidly fixated on new data, ignoring the lessons of the past, ultimately deceives itself. FORGE, by preserving functional connectivity patterns through generative replay, fosters a more honest and enduring understanding of brain disorder diagnosis, recognizing that the value often lies not in accelerating progress, but in observing the patterns of change over time.
What Remains to be Forged?
The introduction of FORGE represents a pragmatic step, though not necessarily a definitive one. Every commit is a record in the annals, and every version a chapter, yet the challenge of cross-site generalization in fMRI analysis isn’t merely a technical hurdle-it’s an acknowledgment of inherent systemic noise. The framework mitigates catastrophic forgetting and addresses privacy, but sidesteps the question of whether these are symptoms of a deeper fragility within the underlying data itself. The generative replay, while ingenious, is still a reconstruction-a phantom limb of information, useful, but not the original.
Future iterations should explore the limits of this generative modeling. Can the FCM-VAE, or similar architectures, move beyond symptom management toward true invariance? Delaying fixes is a tax on ambition; simply preserving knowledge isn’t enough. The field must address the fundamental disparity in data acquisition protocols, scanner drift, and the subtle, yet pervasive, effects of population heterogeneity.
Ultimately, the true test of FORGE – and frameworks like it – will not be its performance on benchmark datasets, but its longevity. Systems decay. The question is not if, but how gracefully. The pursuit of continual learning is, therefore, less about building perpetually adapting models and more about designing architectures that acknowledge, and perhaps even embrace, the inevitability of entropy.
Original article: https://arxiv.org/pdf/2604.14259.pdf
Contact the author: https://www.linkedin.com/in/avetisyan/
See also:
- Gear Defenders redeem codes and how to use them (April 2026)
- Annulus redeem codes and how to use them (April 2026)
- Genshin Impact Nicole Pre-Farm Guide: Details about Ascension and Talent Materials
- Robots Get a Finer Touch: Modeling Movement for Smarter Manipulation
- Last Furry: Survival redeem codes and how to use them (April 2026)
- CookieRun: Kingdom x KPop Demon Hunters collab brings new HUNTR/X Cookies, story, mini-game, rewards, and more
- 2 Episodes In, The Boys Season 5 Completes Butcher’s Transformation Into Homelander
- Total Football free codes and how to redeem them (March 2026)
- All Mobile Games (Android and iOS) releasing in April 2026
- Vans Reimagines the Classic Slip-On With the OTW 98 “Knot Vibram” Pack
2026-04-19 17:58