Learning pyramid Vectors