IMPORTANCE Cognitive deficits are core features of mental disorders and are important in predicting long-term prognosis. However, it is still unknown whether individual patterns of cognitive deficits predate specific mental disorders.OBJECTIVE To investigate the specificity of the associations of attention, working memory, and inhibition in childhood with borderline personality disorder (BPD), psychosis, depression, and hypomania in adolescence and young adulthood.