At the neuronal level, it involves secondary connections biasing receptive fields.
E.g., a high-level auditory neuron might primarily fire in response to high-pitched voices, but if you hear someone say your name in a high-pitched voice at a party, you can bias that neuron to try more selectively fire in response to just their voice, "tuning out" similarly-pitched voices.