Grounding Functional Similarity by Invariance-Aware Model Stitching
This paper addresses the limitation of standard model stitching in accurately evaluating functional similarity by introducing an invariance-aware framework based on forward-backward compatibility, which reveals functional discrepancies caused by models relying on different information cues.
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 have two different chefs, Chef A and Chef B. Both are famous for making the exact same dish: a perfect chocolate cake. You want to know if they are truly "similar" in how they cook. Do they use the same ingredients? Do they follow the same steps? Or did they just happen to get the same result by accident?
For a long time, scientists tried to answer this by looking at the final cake. If Chef A and Chef B both produced a delicious cake, they assumed the chefs were similar. In the world of AI, this is called "Model Stitching." It's like taking the first half of Chef A's recipe (the mixing bowl phase) and trying to plug it into the second half of Chef B's recipe (the baking phase). If the cake still tastes good, we say the two chefs are "functionally similar."
However, this paper argues that checking only the final cake is a trap. It's like judging a chef only by the taste of the dessert, ignoring whether they used fresh fruit or a hidden bag of sugar to cheat.
The Problem: The "Magic Shortcut" Trap
The authors discovered that standard AI testing is too easily fooled. Two AI models can look identical at the end because they both found a "cheat code" or a shortcut.
- The Analogy: Imagine a student taking a test.
- Student A studies the textbook and learns the math.
- Student B notices that every time the question has a red dot in the corner, the answer is "42." They ignore the math and just look for the red dot.
- If you only check their final answers, both students get 100%. You might think they learned the same thing. But they didn't. Student B is relying on a "shortcut" (the red dot) that Student A doesn't use.
In the paper, the authors show that standard AI stitching often lets these "red dot" models pass as similar, even though they are fundamentally different. They call this Forward Compatibility: "Does the first half work with the second half to make a good cake?" The answer is often "Yes," even if the first half is cheating.
The Solution: The "Backwards" Check
To fix this, the authors propose a new method called Invariance-Aware Model Stitching. They add a second rule: Backward Compatibility.
- The Analogy: Now, instead of just checking the final cake, we ask: "If I give you a cake that looks exactly the same but was made with slightly different ingredients, would you still bake it the same way?"
- How it works: The researchers create a special test where they feed the AI "look-alike" inputs. These are inputs that the first half of the model sees as identical (like two photos that look different to us but look the same to the AI's early layers).
- If the AI is truly similar to the other model, it should handle these look-alikes consistently.
- If the AI is relying on a "shortcut" (like the red dot), it will get confused when the shortcut is removed or changed, even if the final result looks okay.
By checking both directions (Forward and Backward), the researchers can tell if two models are actually using the same logic or if they just got lucky with a shortcut.
What They Found
The paper ran experiments with different types of AI models (some trained to be "robust" against tricks, others not) and found:
- The Old Way is Misleading: Standard testing often says two models are similar when they are actually using completely different tricks to solve the problem.
- The New Way is Honest: The "Invariance-Aware" method correctly identified that models using shortcuts are not similar to models that learned the real task. It revealed the "functional discrepancies" that were previously hidden.
- Robust Models are Truly Alike: When they tested models that were trained to be tough against tricks (robust models), the new method showed they actually do share a similar internal structure. The old method missed this nuance because it was too focused on the final score.
The Takeaway
Think of this paper as a new, stricter quality control inspector for AI.
- Old Inspector: "Does the final product work? Yes? Great, they are the same."
- New Inspector: "Does the final product work? Yes. But did they get there by cheating? Let's check their process with some tricky, look-alike inputs. Ah, you were cheating! You aren't actually similar to the honest model."
The authors conclude that to truly understand how AI works, we can't just look at the output. We have to check if the model's internal logic is consistent and robust, not just if it can produce the right answer by luck.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.