Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Controlled Text Generation for Large Language Model with Dynamic Attribute Graphs (2402.11218v2)

Published 17 Feb 2024 in cs.CL

Abstract: Controlled Text Generation (CTG) aims to produce texts that exhibit specific desired attributes. In this study, we introduce a pluggable CTG framework for LLMs named Dynamic Attribute Graphs-based controlled text generation (DATG). This framework utilizes an attribute scorer to evaluate the attributes of sentences generated by LLMs and constructs dynamic attribute graphs. DATG modulates the occurrence of key attribute words and key anti-attribute words, achieving effective attribute control without compromising the original capabilities of the model. We conduct experiments across four datasets in two tasks: toxicity mitigation and sentiment transformation, employing five LLMs as foundational models. Our findings highlight a remarkable enhancement in control accuracy, achieving a peak improvement of 19.29% over baseline methods in the most favorable task across four datasets. Additionally, we observe a significant decrease in perplexity, markedly improving text fluency.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (8)
  1. Xun Liang (12 papers)
  2. Hanyu Wang (42 papers)
  3. Shichao Song (19 papers)
  4. Mengting Hu (20 papers)
  5. Xunzhi Wang (6 papers)
  6. Zhiyu Li (69 papers)
  7. Feiyu Xiong (53 papers)
  8. Bo Tang (111 papers)
Citations (4)
X Twitter Logo Streamline Icon: https://streamlinehq.com

Tweets