1. Introduction
Intersubject representational similarity analysis (IS-RSA) has been widely adopted in neuroscience to quantify the correspondence of individual difference patterns across distinct modalities. Specifically, the “Anna Karenina” model, inspired by the passage that “happy families are all alike; every unhappy family is unhappy in its own way”, examines how intersubject (dis)similarity in a specific feature space scales as a function of a target variable (e.g., the positive correlation between “unhappiness” and “family pattern dissimilarity”; Finn et al., 2020).
Kim & Kim (2022) demonstrated the utility of the Anna Karenina model in elucidating brain-behavior relationships. Prior neuroimaging studies on the structural connectivity of the ventral prefrontal cortex (vPFC)-amygdala pathway which mainly engages in emotion regulation reported inconsistent associations with trait anxiety, showing mixed positive and negative correlations (e.g., Clewett et al., 2014; Modi et al., 2013; Montag et al., 2012). These inconsistencies may stem from the limitations of scalar proxy measures, such as fractional anisotropy, which fail to capture complex morphological characteristics like kissing cross fibers (Figley et al., 2022; Riffert et al., 2014). To address this, Kim & Kim (2022) hypothesized that high trait anxiety is associated with a global disruption in pathway morphology, leading to a positive association between anxiety levels and morphological dissimilarity. This hypothesis was successfully validated using the Anna Karenina model and replicated in an independent dataset with a distinct age demographic.
Despite its utility, current IS-RSA applications face two major theoretical and methodological limitations. First is the univariate problem. Models like Anna Karenina typically rely on a single predictor variable. While effective for specific hypothesis testing, this approach fails to determine if the selected variable is the unique or most robust construct explaining the target representation. For instance, Kim & Kim (2022) noted potential confounding by sex, and the literature suggests other constructs such as emotion regulation strategies (d’Arbeloff et al., 2018; Eden et al., 2015), trait neuroticism (Bjornebekk et al., 2013; Ueda et al., 2018), and trait impulsivity (Peper et al., 2013) also relate to vPFC-amygdala structure. Furthermore, univariate behavior-brain associations often yield small effect sizes and low statistical power, hindering replicability (Genon et al., 2022; Kharabian et al., 2019; Marek et al., 2022). Thus, a data-driven approach is required to identify a “psychological profile” that integrates various variables to maximize the correlation with neural structural variability.
Second is the equal-weight problem. Most IS-RSA studies assume that all constituent variables within a domain contribute equally to the pattern of individual differences. For example, Kim & Kim (2022) utilized the unweighted total score of STAI-G-X2, ignoring the possibility that distinct factors (e.g., cognitive vs. affective anxiety) might differentially relate to neural patterns - as the authors mentioned in the limitation section. Weighting signal and noise equally attenuates the true effect size and obscures interpretation, a limitation consistently discussed in RSA literature (Chen et al., 2020; Xie et al., 2025). Therefore, it is necessary to “learn” variable weights that maximize the association with the target domain.
To overcome these challenges, we introduce DIM (Differentiable Idiosyncrasy Modeling), a Python package facilitating flexible IS-RSA pipelines (Lee & Jolly, in prep). DIM supports traditional hypothesis testing (e.g., Anna Karenina, Nearest Neighbor) while enabling “hypothesis generation”: it accepts multivariate inputs and optimizes weights to maximize correlation with the target distance matrix. This framework allows for systematic comparisons between hypothesis-driven and data-driven models and provides a streamlined workflow for evaluating replicability on unseen data.
In this project, we aim to: (1) reproduce the findings of Kim & Kim (2022) using DIM’s hypothesis testing module, thereby simultaneously validating the software and evaluating the reproducibility of the original study; (2) employ DIM’s data-driven module to discover a weighted combination of trait anxiety and other literature-derived factors that best predicts vPFC-amygdala morphology; and (3) assess the generalizability of the identified model in an independent dataset with a completely different age demographic.
References
Babayan, A., Erbey, M., Kumral, D., Reinelt, J. D., Reiter, A. M., Röbbig, J., … & Villringer, A. (2019). A mind-brain-body dataset of MRI, EEG, cognition, emotion, and peripheral physiology in young and old adults. Scientific data, 6(1), 1-21.
Bjørnebekk, A., Fjell, A. M., Walhovd, K. B., Grydeland, H., Torgersen, S., & Westlye, L. T. (2013). Neuronal correlates of the five factor model (FFM) of human personality: Multimodal imaging in a large healthy sample. Neuroimage, 65, 194-208.
Chen, P. H. A., Jolly, E., Cheong, J. H., & Chang, L. J. (2020). Intersubject representational similarity analysis reveals individual variations in affective experience when watching erotic movies. NeuroImage, 216, 116851.
Clewett, S. Bachman, M. Mather, Age-related reduced prefrontal-amygdala structuralconnectivity is associated with lower trait anxiety. Neuropsychology 28, 631–642 (2014).28.
d’Arbeloff, T. C., Kim, M. J., Knodt, A. R., Radtke, S. R., Brigidi, B. D., & Hariri, A. R. (2018). Microstructural integrity of a pathway connecting the prefrontal cortex and amygdala moderates the association between cognitive reappraisal and negative emotions. Emotion, 18(6), 912.
Eden, A. S., Schreiber, J., Anwander, A., Keuper, K., Laeger, I., Zwanzger, P., … & Dobel, C. (2015). Emotion regulation and trait anxiety are predicted by the microstructure of fibers between amygdala and prefrontal cortex. Journal of Neuroscience, 35(15), 6020-6027.
Figley, C. R., Uddin, M. N., Wong, K., Kornelsen, J., Puig, J., & Figley, T. D. (2022). Potential pitfalls of using fractional anisotropy, axial diffusivity, and radial diffusivity as biomarkers of cerebral white matter microstructure. Frontiers in neuroscience, 15, 799576.
Finn, E. S., Glerean, E., Khojandi, A. Y., Nielson, D., Molfese, P. J., Handwerker, D. A., & Bandettini, P. A. (2020). Idiosynchrony: From shared responses to individual differences during naturalistic neuroimaging. NeuroImage, 215, 116828.
Genon, S., Eickhoff, S. B., & Kharabian, S. (2022). Linking interindividual variability in brain structure to behaviour. Nature Reviews Neuroscience, 23(5), 307-318.
Hastie, T., Tibshirani, R., & Friedman, J. (2008). Model assessment and selection. In The elements of statistical learning: data mining, inference, and prediction (pp. 219-259). New York, NY: Springer New York.
Kharabian Masouleh S, Eickhoff SB, Hoffstaedter F, Genon S, Initiative ADN. Empirical examination of the replicability of associations between brain structure and psychological variables. Elife. 2019;8:e43464.
Lee, J. & Jolly, E. DIM: Differentiable idiosyncrasy modeling for more flexble, selective, and comprehensive intersubject representational similarity analysis. in preparation.
Marek S, Tervo-Clemmens B, Calabro FJ, Montez DF, Kay BP, Hatoum AS, et al. Reproducible brain-wide association studies require thousands of individuals. Nature. 2022;603:654–60.
Modi et al., Individual differences in trait anxiety are associated with white matter tract integrityin fornix and uncinate fasciculus: Preliminary evidence from a DTI based tractography study.Behav. Brain Res. 238, 188–192 (2013).29.
Montag, M. Reuter, B. Weber, S. Markett, J. C. Schoene-Bake, Individual differences in traitanxiety are associated with white matter tract integrity in the left temporal lobe in healthy malesbut not females. Neuroscience 217, 77–83 (2012).
Peper, J. S., Mandl, R. C., Braams, B. R., De Water, E., Heijboer, A. C., Koolschijn, P. C. M., & Crone, E. A. (2013). Delay discounting and frontostriatal fiber tracts: a combined DTI and MTR study on impulsive choices in healthy young adults. Cerebral cortex, 23(7), 1695-1702.
Riffert, T. W., Schreiber, J., Anwander, A., & Knösche, T. R. (2014). Beyond fractional anisotropy: extraction of bundle-specific structural metrics from crossing fiber models. Neuroimage, 100, 176-191.
Taylor, M., Guiver, J., Robertson, S., & Minka, T. (2008, February). Softrank: optimizing non-smooth rank metrics. In Proceedings of the 2008 International Conference on Web Search and Data Mining (pp. 77-86).
Ueda, I., Kakeda, S., Watanabe, K., Sugimoto, K., Igata, N., Moriya, J., … & Korogi, Y. (2018). Brain structural connectivity and neuroticism in healthy adults. Scientific reports, 8(1), 16491.
Xie, S. Y., Zheng, R., Hehman, E., & Lin, C. (2025). A tutorial on representational similarity analysis for research in social cognition. Social Cognition, 43(3), 1
Zou, H., & Hastie, T. (2005). Regularization and variable selection via the elastic net. Journal of the Royal Statistical Society Series B: Statistical Methodology, 67(2), 301-320.