Toward a microscopic model of bidirectional synaptic plasticity