arXiv:2505.13448cs.CLcs.AI2025-05EMNLP被引 2

用连续信号精准控制AI生成文本长度,效果优于传统方法。

CIE: Controlling Language Model Text Generations Using Continuous Signals

  • 通过插值低/高嵌入向量实现对生成长度的连续控制。
  • 在精确控制响应长度上,比上下文学习和离散信号微调更可靠。
  • 适合需要精细调控生成内容长度的应用场景。

将语言模型(LM)与用户意图对齐正日益成为提升用户体验的关键。这需要设计能够控制语言模型生成属性的方法,例如生成长度或语言复杂度。现有方法多依赖自然语言提示或离散控制信号,往往脆弱且难以扩展。本文研究连续控制信号,即存在于连续谱上的信号,无法通过自然语言提示或现有条件生成技术捕捉。通过控制生成长度的案例研究,我们展示如何微调语言模型以接受介于‘低’和‘高’标记嵌入之间的控制向量。该方法在响应长度控制上比上下文学习或离散信号微调更可靠。

原文摘要 · Abstract (English)

Aligning language models (LMs) with user intent is becoming increasingly relevant to enhance user experience. This calls for designing methods that can allow users to control the properties of the language that LMs generate, for example, controlling the length of the generation or the complexity of the language that gets chosen. Most existing work attempts to integrate users' control by conditioning LM generations on natural language prompts or discrete control signals, which are often brittle and hard to scale. In this work, we are interested in continuous control signals, ones that exist along a spectrum that can't easily be captured in a natural language prompt or via existing techniques in conditional generation. Through a case study in controlling the precise response-length of generations, we demonstrate how an LM can be finetuned to expect a control vector that is interpolated between a "low" and a "high" token embedding. Our method more reliably exerts response-length control than in-context learning methods or fine-tuning methods that represent the control signal as a discrete signal.

文本生成连续控制语言模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。