arXiv:2604.08423cs.CLcs.AI2026-04被引 1

用合成数据精准控制语言模型,让其学会嵌入二维码等特定模式。

Synthetic Data for any Differentiable Target

论文配图:Synthetic Data for any Differentiable Target
图 1 · 摘自论文原文
  • 通过高阶梯度追踪数据贡献,用强化学习优化生成器。
  • 仅用合成数据微调,使模型权重嵌入二维码、数字67或降低范数。
  • 无需提示词描述,可让模型重写文本或生成指定UUID,灵活强大。

控制语言模型的合成训练数据有何极限?我们提出一种强化学习原语——数据集策略梯度(Dataset Policy Gradient, DPG),能精确优化合成数据生成器,生成针对特定目标的训练样本。当用于目标模型的监督微调(SFT)时,这些样本可使目标模型在任意可微指标上表现优异。该方法通过高阶梯度实现精确的数据归因,并将得分作为策略梯度奖励。我们证明该过程近似于不可计算的真实梯度。实验表明,仅通过SFT生成样本,即可使目标模型的LM头权重:(1) 嵌入二维码,(2) 表现为数字模式‘67’,(3) 降低ℓ²范数。此外,还可使生成器:(4) 将输入重写为新语言,(5) 生成特定UUID,即使这些目标未出现在生成器输入提示中。结果表明,DPG是一种强大且灵活的仅通过合成数据塑造模型特性的方法。

原文摘要 · Abstract (English)

What are the limits of controlling language models via synthetic training data? We develop a reinforcement learning (RL) primitive, the Dataset Policy Gradient (DPG), which can precisely optimize synthetic data generators to produce a dataset of targeted examples. When used for supervised fine-tuning (SFT) of a target model, these examples cause the target model to do well on a differentiable metric of our choice. Our approach achieves this by taking exact data attribution via higher-order gradients and using those scores as policy gradient rewards. We prove that this procedure closely approximates the true, intractable gradient for the synthetic data generator. To illustrate the potential of DPG, we show that, using only SFT on generated examples, we can cause the target model's LM head weights to (1) embed a QR code, (2) embed the pattern $\texttt{67}$, and (3) have lower $\ell^2$ norm. We additionally show that we can cause the generator to (4) rephrase inputs in a new language and (5) produce a specific UUID, even though neither of these objectives is conveyed in the generator's input prompts. These findings suggest that DPG is a powerful and flexible technique for shaping model properties using only synthetic training examples.

合成数据强化学习模型控制微调

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