English

Taming Repetition in Dialogue Generation

Computation and Language 2021-12-17 v1

Abstract

The wave of pre-training language models has been continuously improving the quality of the machine-generated conversations, however, some of the generated responses still suffer from excessive repetition, sometimes repeating words from utterance, sometimes repeating words within self-generated responses, or both. Inappropriate repetition of words can significantly degrade the quality of the generated texts. Penalized sampling is one popular solution, reducing the sampling probability of existing words during inference, however, it is highly vulnerable to the inappropriate setting of the static weight. Setting it too high can yield strange and unrealistic sentences while setting it too low makes the task of suppressing repetition trivial. To remedy the shortcomings of the above methods, we design a context-aware classifier to explicitly decide when to allow repetition and when to employ penalized sampling. Such a classifier can be easily integrated with existing decoding methods, reducing repetitions where appropriate while preserving the diversity of the text. Experimental results demonstrate that our method can generate higher quality and more authentic dialogues.

Keywords

Cite

@article{arxiv.2112.08657,
  title  = {Taming Repetition in Dialogue Generation},
  author = {Yadong Xi and Jiashu Pu and Xiaoxi Mao},
  journal= {arXiv preprint arXiv:2112.08657},
  year   = {2021}
}

Comments

accepted by AAAI-22 W16: Dialog System Technology Challenge (DSTC10)

R2 v1 2026-06-24T08:19:48.948Z