Compositional representation learning : from reasoning to synthesis