arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.04460cs.CL
收藏

评估大语言模型文本生成中属性强度的平滑控制

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

University of California San Diego(加利福尼亚大学圣迭戈分校)

Shang Zhou, Feng Yao, Chengyu Dong, Zihan Wang, Jingbo Shang

AI总结:

本文提出评估大语言模型文本生成中属性强度平滑控制的指标与基于Elo和GPT4的评估框架,并比较了语义转换提示和修改内部表示两种免训练控制方法。

摘要:

控制文本生成的属性强度在多种场景中至关重要(例如写作简洁性、聊天情感和解释清晰度)。大语言模型(LLMs)的卓越能力已经彻底改变了文本生成,促使我们探索LLM生成的这种平滑控制。具体而言,我们提出了一些指标,用于评估生成文本的属性强度在响应不同控制值时的范围、校准和一致性,以及其与预期上下文的相关性。为了量化属性强度和上下文相关性,我们提出了一个有效的评估框架,该框架利用了Elo评级系统和GPT4,两者都以其与人类判断的稳健一致性而闻名。我们研究了两种可行的免训练方法来实现LLM的平滑控制:(1)使用语义转换器进行提示,以及(2)修改内部模型表示。对这两种方法的评估在5种不同的属性上使用各种模型进行。我们的代码和数据集可以从https://github.com/ShangDataLab/Smooth-Control获取。

英文摘要:

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}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑