We follow (Ghazvininejad et al., 2019) and introduce an additional prediction process to estimate the length by the source sentence.
we add a special token to the encoder and predict the target length with the output hidden vector of this token.