← Latest papers
🤖 machine learning

WARP: Weight-Space Analysis for Recovering Training Data Portfolios

The paper introduces WARP, a framework that recovers the specific domain mixture weights used to train foundation models by analyzing geometric features in their weight space, thereby overcoming the limitations of prior methods that can only detect individual data samples.

Original authors: Tzu-Heng Huang, Aditya Goyal, John Cooper, Frederic Sala

Published 2026-07-03
📖 5 min read🧠 Deep dive

Original authors: Tzu-Heng Huang, Aditya Goyal, John Cooper, Frederic Sala

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you buy a delicious, complex cake from a famous bakery. The bakery gives you the finished cake, but they refuse to tell you the recipe: how much flour, sugar, or vanilla they used, or in what proportions. They just say, "Here is the cake; enjoy it."

In the world of AI, these "cakes" are Foundation Models (like the chatbots or text generators you see online). The "recipe" is the data mixture—the specific blend of different types of information (like news, code, scientific papers, or social media posts) used to train the model. Usually, this recipe is a secret.

This creates a problem: researchers can study the cake (the model), but they can't see the ingredients (the data) that made it. This makes it hard to know if the model learned from good sources or if it accidentally "ate" something it shouldn't have.

The Problem: The Missing Path

Usually, to figure out a recipe, you'd need to watch the baker mix the ingredients step-by-step. In AI terms, this means seeing the training trajectory—the record of the model's "brain" changing as it learns. But for most released models, we only get two snapshots:

  1. The Base Model: The raw, untrained dough.
  2. The Fine-Tuned Model: The finished cake.

The path between them is lost. Previous methods tried to guess the recipe by looking at individual "crumbs" (specific data points) to see if they were in the mix, but this is like trying to guess the whole cake recipe by tasting one single sprinkle. It doesn't give you the big picture.

The Solution: WARP (The "Time-Travel" Cake)

The authors introduce a new tool called WARP (Weight-Space Analysis for Recovering Training Data Portfolios). Here is how it works, using simple analogies:

1. Rebuilding the Missing Path (Simulating the Trajectory)
Since we can't see the real path the baker took, WARP creates a fake path using a technique called "model merging." Imagine you have the raw dough and the finished cake. WARP creates a series of "pseudo-cakes" in between by mathematically blending the dough and the cake together in small steps.

  • Step 1: 90% dough, 10% cake.
  • Step 2: 80% dough, 20% cake.
  • ...and so on, until you reach 100% cake.

These fake steps act as a stand-in for the real training process, giving the researchers a "roadmap" to study.

2. Taking a Geometric "Footprint" (The Mimic Score)
Now, WARP takes a small, known set of test ingredients (a "probing dataset") and asks: "If we added this specific ingredient to our fake path, how much would it push the cake in the direction of the final result?"

It measures the alignment. If the final cake was made mostly of "News" data, then "News" ingredients will push the fake path strongly toward the final cake. "Science" ingredients might push it weakly or in the wrong direction. This creates a geometric footprint—a unique shape in the model's "brain" that reveals which ingredients were dominant.

3. Reading the Recipe (The Decoder)
Finally, WARP looks at this footprint and translates it back into a recipe. It has two ways to do this:

  • The Quick Guess (Unsupervised): It uses a simple math formula (softmax) to look at the shape and say, "This looks like 40% news, 30% code, 30% science."
  • The Trained Expert (Supervised): It uses a small AI (an MLP) that was previously trained on fake cakes with known recipes. This AI looks at the footprint and says, "Based on what I've learned, this is definitely 40% news, 30% code, 30% science."

The Results: How Well Did It Work?

The researchers tested this on two different "bakeries" (BERT and GPT-2) using various types of data (news, reviews, etc.).

  • It's much better than guessing: Random guessing or looking at single crumbs (previous methods) was often wrong.
  • It's surprisingly accurate: WARP guessed the recipe with very high precision. For the BERT model, the average error was only 0.046 (meaning it was almost spot-on). For GPT-2, the error was 0.104.
  • It works even if the baker stopped early or baked too long: Whether the model was trained just enough, perfectly, or over-trained, WARP could still figure out the recipe.
  • The fake path was better than the real one: Surprisingly, using the fake path (the merged models) actually worked better than using the real training steps (if they had them). This is because the real training path can be "noisy" and messy, while the fake path is smooth and clean, making the recipe easier to read.

The Bottom Line

WARP proves that even if you only have the finished AI model and the original base model, you can reverse-engineer the "recipe" of data used to train it. By creating a fake journey between the two and measuring the geometric shape of that journey, you can uncover the hidden proportions of the data that built the model, bringing much-needed transparency to how these powerful tools are made.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →