Block-local learning with probabilistic latent representations