Particularly in each iteration, the first term in Equation 9 is approximated with a single sample from q(R|x (i) ) (Kingma and Welling, 2014).
sampling from a Bernoulli distribution (like from any other discrete distributions) causes difficulty in backpropagation.