You're either thinking of speculative encoding more generally, or Medusa: https://arxiv.org/abs/2401.10774