arXiv:2504.14452cs.CLcs.AI2025-04被引 9

用改写偏好优化让大模型少照搬训练数据,同时保留重要引用能力。

ParaPO: Aligning Language Models to Reduce Verbatim Reproduction of Pre-training Data

  • 通过偏好学习让模型更倾向生成改写内容而非原样复述。
  • 在创意写作中将复述率从17.3降至12.9,优于传统遗忘方法。
  • 支持通过系统提示控制是否保留经典语句引用,适合安全部署。

语言模型可能在非对抗场景下无意识地完整复现其预训练数据中的片段,引发版权、剽窃、隐私和创造力等问题。本文提出改写偏好优化(ParaPO),一种后训练方法,旨在减少语言模型无意复述预训练数据的同时保持其整体实用性。ParaPO 通过训练模型偏好记忆片段的改写版本而非原始内容来实现这一目标。为保留恰当情况下引用名言的能力,我们开发了结合系统提示的变体。在 Llama3.1-8B 上评估显示,ParaPO 在所有测试数据集上均有效降低复述率(如创意写作中从17.3降至12.9);而先前的遗忘方法仅在其目标领域有效(从17.3降至16.9)。应用于指令微调的 Tulu3-8B 模型时,使用系统提示的 ParaPO 在不鼓励复述的情况下将创意写作复述率从8.7降至6.3,而仅靠提示则效果甚微(8.7降至8.4)。

原文摘要 · Abstract (English)

Language models (LMs) can memorize and reproduce segments from their pretraining data verbatim even in non-adversarial settings, raising concerns about copyright, plagiarism, privacy, and creativity. We introduce Paraphrase Preference Optimization (ParaPO), a post-training method that fine-tunes LMs to reduce unintentional regurgitation while preserving their overall utility. ParaPO trains LMs to prefer paraphrased versions of memorized segments over the original verbatim content from the pretraining data. To maintain the ability to recall famous quotations when appropriate, we develop a variant of ParaPO that uses system prompts to control regurgitation behavior. In our evaluation on Llama3.1-8B, ParaPO consistently reduces regurgitation across all tested datasets (e.g., reducing the regurgitation metric from 17.3 to 12.9 in creative writing), whereas unlearning methods used in prior work to mitigate regurgitation are less effective outside their targeted unlearned domain (from 17.3 to 16.9). When applied to the instruction-tuned Tulu3-8B model, ParaPO with system prompting successfully preserves famous quotation recall while reducing unintentional regurgitation (from 8.7 to 6.3 in creative writing) when prompted not to regurgitate. In contrast, without ParaPO tuning, prompting the model not to regurgitate produces only a marginal reduction (8.7 to 8.4).

大模型安全去记忆化偏好优化文本生成

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