Stochastic Digital Backpropagation with Residual Memory Compensation