The learned ability to distinguish between a conditioned stimulus and stimuli that do not signal an unconditioned stimulus.