Formally, we train the SPM with EncDec by minimizing the following objective function G 2 : Inference In the inference time, the goal is only to search for the best target sequence.
we do not need to compute SPM during the inference.