As sensory stimuli and behavioral demands change, the attentive brain quickly identifies task-relevant stimuli and associates them with appropriate motor responses. The effects of attention on sensory processing vary across task paradigms, suggesting that the brain may use multiple strategies and mechanisms to highlight attended stimuli and link them to motor action. To better understand factors that contribute to these variable effects, we studied sensory representations in primary auditory cortex (A1) during two instrumental tasks that shared the same auditory discrimination but required different behavioral responses, either approach or avoidance. In the approach task, ferrets were rewarded for licking a spout when they heard a target tone amid a sequence of reference noise sounds. In the avoidance task, they were punished unless they inhibited licking to the target. To explore how these changes in task reward structure influenced attentiondriven rapid plasticity in A1, we measured changes in sensory neural responses during behavior. Responses to the target changed selectively during both tasks but did so with opposite sign. Despite the differences in sign, both effects were consistent with a general neural coding strategy that maximizes discriminability between sound classes. The dependence of the direction of plasticity on task suggests that representations in A1 change not only to sharpen representations of task-relevant stimuli but also to amplify responses to stimuli that signal aversive outcomes and lead to behavioral inhibition. Thus, top-down control of sensory processing can be shaped by task reward structure in addition to the required sensory discrimination.spectrotemporal receptive field | perception | grouping A s we interact with a world in flux, our brains adjust their responses to sensory stimuli, allowing us to meet changing behavioral demands (1, 2). Numerous studies have shown that attention contributes to this process by selectively modulating neural activity in brain areas that process sensory information, improving stimulus discriminability for grouping into task-relevant categories (3-13). However, the effects observed across behavioral paradigms are diverse, including changes in gain (4,5,7,14), selectivity (8,11,15,16), and functional connectivity (12), suggesting that the brain may use many possible strategies and mechanisms to highlight relevant stimuli and produce appropriate sensorimotor transformations. The specific effects of attention and other learned behaviors on representations, therefore, may depend not only on the required sensory grouping but also on a host of control signals reflecting task structure (17), motor responses (18, 19), associated reward (20), difficulty (21,22), and timing of decisions (23).To directly explore the influence of task structure on sensory representations, we recorded the activity of single neurons in primary auditory cortex (A1) during two different instrumental behaviors that required discrimination between the same two acoustic categories, pu...