Alleviating Chinese repetitive generation via intra and intersentence penalty
摘要
Natural language generation has achieved remarkable performance on various tasks, including dialogue generation, summarization, translation, etc. Nevertheless, the repetition problem exists in nearly all the generated tasks mentioned above. Several methods based on the token-level probabilities have been proposed to solve the repetition problem. However, for the task of dialogue generation, as the continuation, i.e., the next utterance has strong coherence with the dialogue history, directly applying a repetition penalty may violate the coherence. Additionally, the response generated by the generative model has a high chance of repeating the dialogue history. To address these problems, we propose a novel repetition penalty approach with intraresponse n-gram repetition penalty (IRNRP) and interconversation repetition penalty (ICRP) for Chinese dialogue generation. The experiments on large-scale Chinese dialogue datasets have shown the effectiveness of our proposed approach.(Our code will be released at https://git.openi.org.cn/PCL-Platform.Intelligence/PanGu-Dialog)