The teacher forcing part minimizes the average of the maximum-likelihood loss at each decoding step.
let y * = {y * 1 , y * 2 , ..., y * n } be the ground-truth response for a given source (conversation history) utterance sequence x.