Can NUTS work with stochastic gradient / mini-batch?

Hi. I have just started to learn how to use pymc3.

Can NUTS of pymc3 work with stochastic gradient?

I am thinking about creating a new theano operation that provides a noisy estimation of the gradient and value of the potential energy function. That means when NUTS ask my operation for the gradient for the same point twice, NUTS can get two different values.

Can NUTS work in this case ?

Thanks a lot.

Probably not… unless the mini-batches are sufficiently large.

Might need an extra friction term to damp the noise introduced by mini-batch.