Provable benefits of score matching