Extracting alignment data in open models
Abstract
Lay Summary
Modern AI assistants learn their advanced reasoning and safe behaviour through highly guarded, custom datasets. This "alignment data" is a developer's secret recipe and a massive competitive advantage. But what if the AI inadvertently leaks this secret recipe to the public or competitors? We discovered that by starting a prompt with specific, hidden formatting tags—the exact same tags developers use behind the scenes to structure AI conversations—we can trick openly available AI models into reciting their original training examples. To measure the true scale of this leakage, we moved away from traditional tests that only look for exact word-for-word matches. Instead, we used an AI tool that evaluates the meaning and structure of the text, allowing us to catch instances of "semantic memorisation" where the model changes a few trivial words but leaks the core data. Our method revealed that models leak at least ten times more training data than previously believed. In fact, the leaked data is of such high quality that we successfully used it to train a brand-new AI model. This proves that releasing an open AI model risks giving away the expensive, proprietary data used to build it, threatening intellectual property and exposing a major blind spot in how the industry measures data leakage.