Generalized Collective Inference with Symmetric Clique Potentials