Joint Repetition Suppression and Content Moderation of Large Language Models

Minghui Zhang, Alex Sokolov, Weixin Cai, Si-Qing Chen
4/20/2023
cs.CLcs.LG

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Natural language generation (NLG) is one of the most impactful fields in NLP, and recent years have witnessed its evolution brought about by large language models (LLMs). As the key instrument for writing assistance applications, they are generally prone to replicating or extending offensive content provided in the input. In low-resource data regime, they can also lead to repetitive outputs. Usually, offensive content and repetitions are mitigated with post-hoc methods, including n-gram level blocklists, top-k and nucleus sampling. In this paper, we apply non-exact repetition suppression using token and sequence level unlikelihood loss, and further explore the framework of unlikelihood training objective in order to jointly endow the model with abilities to avoid generating offensive words and phrases from the beginning. Finally, with comprehensive experiments, we demonstrate that our proposed methods work exceptionally in controlling the repetition and content quality of LLM outputs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2023joint,
  title  = {Joint Repetition Suppression and Content Moderation of Large Language Models},
  author = {Minghui Zhang and Alex Sokolov and Weixin Cai and Si-Qing Chen},
  year   = {2023},
  eprint = {2304.10611},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.10611v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.10611.svg)](https://codeofpaper.com/paper/2304.10611)

Discussion