Molecular mechanisms and circuit principles for a ubiquitous form of learning