atomic annotation to group terms in factor graph