Generative Regularization with Latent Topics for Discriminative Object Recognition