RSA-Control: A Pragmatics-Grounded Lightweight Controllable Text Generation Framework

Yifan Wang, Vera Demberg
10/24/2024
cs.AIcs.CL

Official code: Ewanwong/RSA-Control (6 stars, MIT, last commit 2025-02-18).

Abstract

Despite significant advancements in natural language generation, controlling language models to produce texts with desired attributes remains a formidable challenge. In this work, we introduce RSA-Control, a training-free controllable text generation framework grounded in pragmatics. RSA-Control directs the generation process by recursively reasoning between imaginary speakers and listeners, enhancing the likelihood that target attributes are correctly interpreted by listeners amidst distractors. Additionally, we introduce a self-adjustable rationality parameter, which allows for automatic adjustment of control strength based on context. Our experiments, conducted with two task types and two types of language models, demonstrate that RSA-Control achieves strong attribute control while maintaining language fluency and content consistency. Our code is available at https://github.com/Ewanwong/RSA-Control.

View on arXivView PDF

Code Implementations(1)

MIT
60PythonJun 7, 20241 years agoMIT

Similar Papers

Cite this paper

@article{wang2024rsacontrol,
  title  = {RSA-Control: A Pragmatics-Grounded Lightweight Controllable Text Generation Framework},
  author = {Yifan Wang and Vera Demberg},
  year   = {2024},
  eprint = {2410.19109},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.19109v1}
}

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/2410.19109.svg)](https://codeofpaper.com/paper/2410.19109)

Discussion