Symmetric Divergence and Normalized Similarity: A Unified Topological Framework for Representation Analysis
This paper introduces a unified topological framework comprising Symmetric Representation Topology Divergence (SRTD) for precise structural diagnosis and Normalized Topological Similarity (NTS) for scale-invariant benchmarking, thereby overcoming the asymmetry and unboundedness limitations of existing methods to provide a robust tool for analyzing neural representations.
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
The Big Picture: Measuring How AI "Thinks"
Imagine you have two different chefs (neural networks) making a soup. You want to know: Are they making the same soup?
For a long time, scientists have tried to answer this by looking at the ingredients (the data) and measuring how similar the bowls look (geometric analysis). A popular tool for this is called CKA. It's like checking if the bowls are the same shape and size.
However, this paper argues that looking at the shape of the bowl isn't enough. Sometimes, two bowls look identical from the outside, but the ingredients inside are arranged in completely different ways. To fix this, the authors introduce a new toolkit based on Topology (the study of shapes and connections). They call their toolkit a "Topological Lens."
This toolkit has two main tools, designed to solve two specific problems with the previous methods.
Problem 1: The "One-Way Street" and The "Unbounded Score"
Before this paper, there was a tool called RTD (Representation Topology Divergence). It was good at spotting differences, but it had two major flaws:
- It was unfair (Asymmetric): If you compared Chef A to Chef B, you got one score. If you compared Chef B to Chef A, you got a different score. It was like a ruler that gave different lengths depending on which way you held it.
- It was unbounded (Hard to compare): The score could be any huge number. If you compared two small bowls, the score was small. If you compared two giant bowls, the score was huge. This made it impossible to say, "These two soups are 50% different" because the numbers kept changing based on how much soup you had.
The Solution: A Unified Toolkit
The authors built two new tools to fix these issues.
Tool 1: SRTD (Symmetric Representation Topology Divergence)
The Goal: To get a perfect, fair, and detailed diagnosis of where the two soups differ.
- The Analogy: Imagine you have two maps of a city. One map shows the roads, and the other shows the rivers.
- Old tools tried to compare them by looking at the roads first, then the rivers, and averaging the results. This was messy and gave different answers depending on the order.
- SRTD is like creating a super-map that combines both the roads and the rivers into one single view. It looks at the "Union" (everything that exists in either map) and the "Intersection" (only what exists in both).
- By comparing these two views directly, SRTD gives a single, fair score. It doesn't matter which way you look; the answer is the same.
- Why it's useful: It tells you exactly where the structures differ. If one chef put salt in the soup and the other put sugar, SRTD points right to that spot. It also works as a "loss function," meaning you can use it to teach a computer to make better soups by minimizing this score.
Tool 2: NTS (Normalized Topological Similarity)
The Goal: To get a simple, standard score between -1 and 1 that you can use to compare any two models, regardless of their size.
- The Analogy: Imagine you are ranking the "connectivity" of two different social networks.
- Old tools counted the total number of handshakes. If Network A has 1,000 people and Network B has 1,000,000, the numbers are totally different and impossible to compare fairly.
- NTS ignores the total count. Instead, it looks at the order in which people join groups.
- Example: In both networks, Person A joins first, then Person B joins, then they meet Person C. Even if Network B is a million times bigger, if the order of joining is the same, NTS says they are very similar (Score: 1). If the order is completely scrambled, they are different (Score: -1).
- Why it's useful: It creates a "universal ruler." You can compare a tiny model to a massive Large Language Model (LLM) and get a meaningful score. It is robust against "distance saturation," a problem where geometric tools (like CKA) get confused and say everything looks the same when models get very complex.
What Did They Find? (The Experiments)
The authors tested these tools on several scenarios:
Synthetic Clusters: They created fake data with clear shapes (like circles of dots).
- Result: The old tools (CKA) couldn't tell the difference when the shapes changed slightly. The new tools (SRTD and NTS) saw the changes immediately.
Deep Learning Layers: They looked at the "brain" of a small image-recognition AI (TinyCNN) layer by layer.
- Result: The new tools showed a clear pattern: layers close together in the network are similar, and layers far apart are different. The old tools got confused and gave weird, inconsistent results.
- Bonus: The new tools spotted a specific "break" in the network (where the AI switches from looking at local details to global patterns) that the old tools missed entirely.
Large Language Models (LLMs): They compared famous AI models (like Llama, Qwen, and Mistral).
- Result: Geometric tools (CKA) got "saturated"—they said almost all models looked identical because the numbers were too high.
- NTS cut through the noise. It successfully identified that models from the same "family" (e.g., Qwen and its upgraded versions) share a deep structural DNA, even if they look different on the surface. It even correctly identified that a "distilled" model (a smaller version of a big model) was structurally similar to its parent, a connection the old tools missed.
Summary
- Old Way: Measured how much the "shape" of the data differed, but the numbers were messy, unfair, and hard to compare.
- New Way (SRTD): A fair, detailed map that shows exactly where two models differ.
- New Way (NTS): A standardized "similarity score" (from -1 to 1) that works like a ranking system, allowing you to compare tiny models with giant ones fairly.
The paper concludes that while these tools are currently great for analyzing and diagnosing AI, they are not yet ready to be used directly to train AI (because NTS is not "differentiable," meaning it can't be easily used as a step-by-step guide for optimization). However, they offer a much clearer, more reliable way to understand how neural networks actually work.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.