Learning Group Actions on Latent Representations