arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.06386cs.CL
收藏

可控风格文本生成:训练时属性正则化的扩散模型

Controllable Stylistic Text Generation with Train-Time Attribute-Regularized Diffusion

KU Leuven(卢森堡大学)

Fan Zhou, Chang Tian, Tim Van de Cruys

AI总结:

提出RegDiff,一种训练时注入属性信息的正则化扩散框架,无需采样分类器即可高效生成风格化文本,在五个数据集上优于强基线。

摘要:

生成具有特定属性的风格化文本是可控文本生成中的一个关键问题。近年来,扩散模型已成为视觉和文本生成中的强大范式。现有方法大致可分为无分类器引导(CFG)和分类器引导(CG)两类。CFG虽然能有效保留语义内容,但往往无法提供有效的属性控制。相比之下,CG利用分类器梯度修改去噪轨迹,实现了更好的属性对齐,但在采样过程中计算成本高,且存在分类器泛化问题。在本工作中,我们提出了RegDiff,一种正则化扩散框架,它在采样时无需预训练分类器即可利用属性特征,从而以更低的计算成本实现可控生成。具体而言,RegDiff采用基于VAE的编码器-解码器架构以确保重建保真度,并使用属性监督训练的潜在扩散模型来实现可控文本生成。属性信息仅在训练期间注入。在涵盖多种风格属性的五个数据集上的实验表明,RegDiff在生成风格化文本方面优于强基线。这些结果验证了RegDiff作为属性可控文本扩散的高效解决方案的有效性。我们的代码、数据集和资源将在发表后于https://github.com/xxxx发布。

英文摘要:

Generating stylistic text with specific attributes is a key problem in controllable text generation. Recently, diffusion models have emerged as a powerful paradigm for both visual and textual generation. Existing approaches can be broadly categorized into classifier-free guidance (CFG) and classifier guidance (CG) methods. While CFG effectively preserves semantic content, it often fails to provide effective attribute control. In contrast, CG modifies the denoising trajectory using classifier gradients, enabling better attribute alignment but incurring high computational costs during sampling and suffering from classifier generalization issues. In this work, we propose RegDiff, a regularized diffusion framework that leverages attribute features without requiring a pretrained classifier during sampling, thereby achieving controllable generation with reduced computational costs. Specifically, RegDiff employs a VAE-based encoder--decoder architecture to ensure reconstruction fidelity and a latent diffusion model trained with attribute supervision to enable controllable text generation. Attribute information is injected only during training. Experiments on five datasets spanning multiple stylistic attributes demonstrate that RegDiff outperforms strong baselines in generating stylistic texts. These results validate the effectiveness of RegDiff as an efficient solution for attribute-controllable text diffusion. Our code, datasets, and resources will be released upon publication at https://github.com/xxxx.

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

↑