Evaluating the Smooth Control of Attribute Intensity in Text Generation with LLMs

Shang Zhou, Feng Yao, Chengyu Dong, Zihan Wang, Jingbo Shang
6/6/2024
cs.CL

Official code: shangdatalab/Smooth-Control (2 stars, last commit 2025-08-12).

Abstract

Controlling the attribute intensity of text generation is crucial across scenarios (e.g., writing conciseness, chatting emotion, and explanation clarity). The remarkable capabilities of large language models (LLMs) have revolutionized text generation, prompting us to explore such \emph{smooth control} of LLM generation. Specifically, we propose metrics to assess the range, calibration, and consistency of the generated text's attribute intensity in response to varying control values, as well as its relevance to the intended context. To quantify the attribute intensity and context relevance, we propose an effective evaluation framework leveraging the Elo rating system and GPT4, both renowned for their robust alignment with human judgment. We look into two viable training-free methods for achieving smooth control of LLMs: (1) Prompting with semantic shifters, and (2) Modifying internal model representations. The evaluations of these two methods are conducted on $5$ different attributes with various models. Our code and dataset can be obtained from \url{https://github.com/ShangDataLab/Smooth-Control}.

View on arXivView PDF

Code Implementations(1)

20Jupyter NotebookMay 23, 20241 years ago

Similar Papers

Cite this paper

@article{zhou2024evaluating,
  title  = {Evaluating the Smooth Control of Attribute Intensity in Text Generation with LLMs},
  author = {Shang Zhou and Feng Yao and Chengyu Dong and Zihan Wang and Jingbo Shang},
  year   = {2024},
  eprint = {2406.04460},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.04460v1}
}

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

Discussion