On Learning Latent Models with Multi-Instance Weak Supervision