Exploring knowledge in generative models