Shi, Shi et al. propose a transformer-based approach to construct learnable structural connectivity networks for the diagnosis and data-driven investigation of attention deficit hyperactivity disorder (ADHD). This method enhances diagnostic accuracy and uncovers connectivity alterations across multiple brain regions associated with ADHD.