Inference of Low-Dimensional Latent Structure in High-Dimensional Data