Measures of visuocortical activity during aversive generalization learning revealed sharpened representations of facial identity, reflecting inhibitory interactions between neuronal populations that represent facial features associated with threat versus safety.