Sobolev acceleration for neural networks