Discovering Abstract Symbolic Relations by Learning Unitary Group Representations