NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DisCup: Discriminator Cooperative Unlikelihood Prompt-tuning for Controllable Text Generation

Hanqing Zhang, Dawei SongEMNLP 2022

Introduction

Large Language Models (LLMs) like GPT-2 and GPT-3 have revolutionized natural language generation with their fluency. However, "steering" these models to adhere to specific attributes—such as maintaining a positive sentiment or avoiding toxic language—remains a significant challenge. Researchers typically face a "trilemma" of trade-offs: expensive fine-tuning of massive models, slow decoding-time guidance that degrades inference speed, or vanilla prompt-tuning that often suffers from "domain leakage" (e.g., a model trained on movie reviews starts talking about movies regardless of the prompt).

To overcome these hurdles, researchers from the Beijing Institute of Technology introduced DisCup (Discriminator Cooperative Unlikelihood Prompt-tuning). This method combines the efficiency of prompt-tuning with a novel unlikelihood training objective to create a steering mechanism that is both highly effective and computationally efficient.

Methodology: The DisCup Framework

The core of DisCup is a three-step training process designed to distill the knowledge of an attribute discriminator into a small set of virtual "control-prompt" tokens. Crucially, the primary Causal Language Model (CLM) remains frozen throughout this process.

  1. Candidate Selection: To maintain the model's natural fluency and vocabulary, the frozen CLM generates the top-$k$ most likely next tokens for a given context.
  2. Discriminator Scoring: A smaller, external attribute discriminator ranks these candidates, identifying which tokens align with the desired attribute (e.g., "positive") and which align with the undesired one (e.g., "negative").
  3. Unlikelihood Training: This is the framework's primary innovation. Instead of only maximizing the likelihood of "good" tokens, DisCup employs an unlikelihood objective to explicitly penalize and suppress the probability of "bad" tokens.
The DisCup training process: candidate selection, discriminator scoring, and unlikelihood training.

By training only the control-prompts (approximately 10–12 virtual tokens), the discriminator’s guidance is baked directly into the prompt. At inference time, the discriminator is no longer needed, allowing the model to generate text at the same speed as an unguided LLM.

Experimental Results

The authors evaluated DisCup on two primary tasks: sentiment control (using the SST-5 dataset) and toxicity avoidance (using the Jigsaw toxicity dataset). Evaluation prompts were drawn from OpenWebText and RealToxicityPrompts, including "adversarial" scenarios where the model must steer a negative prompt toward a positive continuation.

Performance and Control

DisCup demonstrated superior control compared to existing baselines. In adversarial sentiment steering, it outperformed the previous state-of-the-art method, DEXPERT, by 28.54% in correctness. For toxicity avoidance, DisCup achieved an average toxicity probability of 0.064, significantly lower than DEXPERT's 0.086.

Efficiency and Speed

One of the most striking advantages of DisCup is its inference speed. Because the heavy lifting of the discriminator is moved to the training phase, generation remains lightning-fast.

Comparison of inference time cost across different controllable generation methods.

As shown in the timing data, DisCup generated 20 tokens in just 0.94 seconds, whereas the popular PPLM method required 37.39 seconds for the same task.

Discussion: Solving Domain Leakage

A common failure mode of vanilla prompt-tuning is domain leakage, where the model becomes "stuck" in the domain of its training data. For example, a model tuned for positive sentiment on movie reviews might mention "films" or "actors" even when prompted to talk about sports. DisCup solves this by selecting candidates from the CLM’s own distribution rather than just the training corpus. In tests, while vanilla prompt-tuning mentioned movies 60% of the time, DisCup reduced this rate to less than 4%, demonstrating much higher topical relevance.

Conclusion

DisCup represents a significant step forward in Attribute-Controllable Text Generation. By leveraging unlikelihood training to teach the model what not to say, it provides a robust "steering wheel" for LLMs without sacrificing fluency or speed. While the method currently depends on the inherent knowledge of the base CLM, future work aims to extend this cooperative framework to more complex, multi-attribute, and fine-grained control scenarios.

Summary updated

BibTeX
@inproceedings{zhang2022discup,
  author = {Hanqing Zhang and Dawei Song},
  title = {{DisCup: Discriminator Cooperative Unlikelihood Prompt-tuning for Controllable Text Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.223},
}
Figure