# CoCon: A Self-Supervised Approach for Controlled Text Generation

Source: [CoCon: A Self-Supervised Approach for Controlled Text Generation](<https://www.sota2.com/research/paper/68fa6cb71e209131cea3580f>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-26T00:16:46.056Z

Authors: Alvin Chan, Yew-Soon Ong, Bill Pung, Aston Zhang, Jie Fu

Published: 2020-06-05T16:15:46.000Z

## Abstract

Pretrained Transformer-based language models (LMs) display remarkable natural language generation capabilities. With their immense potential, controlling text generation of such LMs is getting attention. While there are studies that seek to control high-level attributes (such as sentiment and topic) of generated text, there is still a lack of more precise control over its content at the word- and phrase-level. Here, we propose Content-Conditioner (CoCon) to control an LM's output text with a content input, at a fine-grained level. In our self-supervised approach, the CoCon block learns to help the LM complete a partially-observed text sequence by conditioning with content inputs that are withheld from the LM. Through experiments, we show that CoCon can naturally incorporate target content into generated texts and control high-level text attributes in a zero-shot manner.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Attribute-Controlled Dialogue Generation on DailyDialog-CG (test)](<https://www.sota2.com/research/sota/attribute-controlled-dialogue-generation-on-dailydialog-cg-test.md>): Attribute-Controlled Dialogue Generation; DailyDialog-CG (test); Emotion Accuracy (E-ACC): 52.79.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2006.03535>)

[PDF](<https://arxiv.org/pdf/2006.03535.pdf>)
