In many studies of attention-deficit hyperactivity disorder (ADHD), stimulus encoding and processing (perceptual function) and response selection (executive function) have been intertwined. To dissociate these functions, we introduced a task that parametrically varied low-level stimulus features (orientation and color) for fine-grained analysis of perceptual function, and that also required participants to switch their attention between feature dimensions on a trial-by-trial basis, thus taxing executive processes. Our response paradigm captured task-irrelevant motor output (TIMO), reflecting failures to use the correct stimulus-response rule. ADHD patients had substantially worse perceptual function than Controls, especially for orientation. ADHD participants had also higher TIMO; this measure was strongly affected by the switch manipulation. Across participants, the perceptual variability parameter was correlated with TIMO, suggesting that perceptual deficits could underlie executive function deficits. Based on perceptual variability alone, we were able to classify participants into ADHD and Controls with a mean accuracy of about 77%. Participants' self-reported General Executive Composite score correlated not only with TIMO but also with the perceptual variability parameter. Our results highlight the role of perceptual deficits in ADHD and the usefulness of computational modeling of behavior in dissociating perceptual from executive processes.In Attention Deficit Hyperactivity Disorder (ADHD), self-reported behavioral deficits have been attributed to differences in executive function, attention, and perceptual function. These brain functions can be objectively quantified with behavioral paradigms, but the individual components are often not well separated. ADHD patients tend to have worse executive function than Controls according to several metrics [1][2][3][4], predominantly in response execution and inhibition [5][6][7], but also in switching between stimulus-response rules [8][9][10][11]. It has been pointed out that non-executive processes, such as alertness, accumulation of evidence or drift rate, motivation, or reward processing, might interact with executive ones [12][13][14][15][16]. In the realm of visual attention, differences in accuracy or reaction time have been found in some visual search tasks but not in others [17,18], and no consistent deficits have been found in visuo-spatial orienting [19][20][21][22]. Despite evidence of impaired perceptual function in ADHD from psychiatric assessments [23,24], behavioral studies that examined the quality of perceptual encoding in ADHD in the absence of executive or attentional involvement found small and inconsistent differences (see [25] for a review). There have been attempts to dissociate executive from perceptual function in ADHD within a single task, but the results have been mixed [26][27][28][29]. One complicating factor could be that commonly used stimuli such as faces, letters, or numbers are high-dimensional and have content at many levels. Anot...