arXiv:2510.18554cs.AI2025-10被引 9

从后训练模型中提取对齐数据,可恢复原始性能并揭示潜在风险。

Extracting alignment data in open models

  • 用高质量嵌入模型检测语义相似性,提升数据提取精度。
  • 可成功提取数十倍于字符串匹配的对齐训练数据。
  • 适用于研究模型记忆、安全对齐及知识蒸馏的学者。

本文表明,可以从后训练模型中提取大量对齐训练数据,用于提升长上下文推理、安全性、指令遵循和数学能力等关键能力。现有工作多通过字符串匹配衡量数据提取效果,但本文认为嵌入模型更合适:其通过语义距离识别相似文本,避免了编辑距离在处理微小变体时的低估问题。实验显示,近似字符串匹配会严重低估提取量(保守估计低10倍以上)。有趣的是,模型会直接复现用于后训练(如SFT或RL)的数据。这些数据可用于训练基础模型,恢复部分原始性能。本工作揭示了对齐数据提取的潜在风险,并引发对知识蒸馏影响的思考——因模型复现训练集内容,蒸馏本质上可能间接使用原始数据集。

原文摘要 · Abstract (English)

In this work, we show that it is possible to extract significant amounts of alignment training data from a post-trained model -- useful to steer the model to improve certain capabilities such as long-context reasoning, safety, instruction following, and maths. While the majority of related work on memorisation has focused on measuring success of training data extraction through string matching, we argue that embedding models are better suited for our specific goals. Distances measured through a high quality embedding model can identify semantic similarities between strings that a different metric such as edit distance will struggle to capture. In fact, in our investigation, approximate string matching would have severely undercounted (by a conservative estimate of $10\times$) the amount of data that can be extracted due to trivial artifacts that deflate the metric. Interestingly, we find that models readily regurgitate training data that was used in post-training phases such as SFT or RL. We show that this data can be then used to train a base model, recovering a meaningful amount of the original performance. We believe our work exposes a possibly overlooked risk towards extracting alignment data. Finally, our work opens up an interesting discussion on the downstream effects of distillation practices: since models seem to be regurgitating aspects of their training set, distillation can therefore be thought of as indirectly training on the model's original dataset.

模型记忆对齐数据知识蒸馏嵌入模型

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