Memory instability as a gateway to generalization