arXiv:2507.09482cs.CLcs.AI2025-07

用视觉和强化学习结合生成更真实的讽刺文本

ViSP: A PPO-Driven Framework for Sarcasm Generation with Contrastive Learning

  • 用PPO+对比学习让模型根据图像生成有讽刺意图的文本
  • 生成文本的讽刺得分(0.898)和事实矛盾度(0.768)高于原数据集
  • 适合研究多模态讽刺生成或想提升对话幽默感的开发者

人类情感复杂,讽刺是一种微妙且独特的表达形式。尽管讽刺研究取得进展,但讽刺生成仍被忽视,主要因过度依赖文本模态、忽略视觉线索,以及现有数据集中图像内容与讽刺意图不匹配。本文提出M2SaG,一个包含4,970个样本的多模态讽刺生成数据集,每个样本包含一张图像、一句讽刺文本及讽刺目标。为评估该数据集,我们提出ViSP框架,融合近端策略优化(PPO)与对比学习。PPO利用DIP模型提供的奖励分数引导讽刺文本生成,对比学习则鼓励模型偏好高奖励输出。该方法显著提升生成质量,使文本讽刺意图更强烈。我们在五个指标上评估ViSP,结果优于所有基线,包括大语言模型,凸显其在讽刺生成中的优势。进一步分析显示,生成文本的平均讽刺得分(0.898)和事实矛盾度(0.768)均高于原始数据集(0.770 和 0.739),证明生成内容质量更高。数据集与代码将公开。

原文摘要 · Abstract (English)

Human emotions are complex, with sarcasm being a subtle and distinctive form. Despite progress in sarcasm research, sarcasm generation remains underexplored, primarily due to the overreliance on textual modalities and the neglect of visual cues, as well as the mismatch between image content and sarcastic intent in existing datasets. In this paper, we introduce M2SaG, a multimodal sarcasm generation dataset with 4,970 samples, each containing an image, a sarcastic text, and a sarcasm target. To benchmark M2SaG, we propose ViSP, a generation framework that integrates Proximal Policy Optimization (PPO) and contrastive learning. PPO utilizes reward scores from DIP to steer the generation of sarcastic texts, while contrastive learning encourages the model to favor outputs with higher reward scores. These strategies improve overall generation quality and produce texts with more pronounced sarcastic intent. We evaluate ViSP across five metric sets and find it surpasses all baselines, including large language models, underscoring their limitations in sarcasm generation. Furthermore, we analyze the distributions of Sarcasm Scores and Factual Incongruity for both M2SaG and the texts generated by ViSP. The generated texts exhibit higher mean Sarcasm Scores (0.898 vs. 0.770) and Factual Incongruity (0.768 vs. 0.739), demonstrating that ViSP produces higher-quality sarcastic content than the original dataset. % The dataset and code will be publicly available. Our dataset and code will be released at \textit{https://github.com/wclapply/ViSP}.

讽刺生成多模态强化学习对比学习

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