Stochastic regularization: Smoothness or similarity?