Lattice Representation Learning