Synthetic Data for any Differentiable Target