Select or Project? Evaluating Lower-dimensional Vectors for LLM Training Data Explanations
This paper demonstrates that greedily selecting a small, architecturally informed subset of model components is both more effective and computationally efficient than using full gradients or random projections for generating instance-based explanations of large language models.
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 are trying to understand why a giant, super-smart robot made a specific decision. You know the robot was trained on a massive library of books, but which specific book taught it that particular fact? This is the world of "instance-based explanations" in artificial intelligence. Scientists want to trace a robot's answer back to the exact training example that influenced it, almost like a detective looking for a fingerprint. To do this, they usually look at the robot's "gradients." Think of a gradient as a giant, multi-dimensional map showing exactly how the robot's brain would change if it saw a specific sentence. The problem is, for modern robots (called Large Language Models), these maps are so huge they are impossible to carry around. A single map for a standard model takes up over 4 gigabytes of memory—more than a whole movie file! Because of this, researchers have to shrink these maps to make them manageable. They've been trying two main tricks: either throwing away most of the map and keeping only a few random pieces, or squashing the whole map down into a tiny, blurry summary. But nobody really knew which trick was actually better at helping the detective find the right book.
This paper, titled "Select or Project?", sets out to solve that mystery. The authors, Lukas Hinterleitner and his team from the University of Vienna, built a new testing ground to see if it's better to carefully pick a few important parts of the robot's brain (Selection) or to mathematically squish the whole brain into a smaller space (Projection). They used a clever game to test this: they took a sentence, rephrased it in a different way, and asked the robot's "gradients" to find the original sentence among a crowd of look-alikes. If the gradients are good, they should point straight to the original.
The results were surprising. The team found that the "squishing" method (Random Projection), which tries to keep the shape of the whole map, wasn't the best detective. Instead, a method they called "Greedy Selection" won the game. This approach is like a smart librarian who doesn't read the whole library but knows exactly which three shelves hold the most important clues. By carefully picking a small, specific set of the robot's internal parts (specifically, certain layers that handle logic and word connections), they created a tiny, super-sharp map. In their tests, this targeted selection was not only more accurate at finding the right training example but also much faster and cheaper to compute.
Here is the kicker: the full, giant map of the robot's brain actually performed worse than this tiny, carefully chosen subset. In one difficult test where the robot had to generate a new story based on a rephrased prompt, the full map only got the answer right about 22% of the time—barely better than guessing. However, the small, selected group of parts got it right about 36% of the time. The authors suggest that the full map is actually "noisy," filled with so much extra information that it drowns out the real clues. By selecting only the most informative pieces, they cut out the noise and got a clearer signal.
The paper also looked at which parts of the robot's brain were the best detectives. They found that it wasn't about the size of the part; a tiny piece of the brain could be more useful than a huge one. Instead, it was about what the part did. The parts responsible for the robot's internal logic (called MLP layers) were much better at finding the right training data than the parts responsible for paying attention to specific words (like the "Key" and "Value" parts of the attention mechanism). Interestingly, the parts at the very beginning and very end of the robot's processing chain were the most helpful, while the middle parts seemed to get confused and less useful.
In the end, the authors conclude that for explaining how these giant AI models work, we don't need the whole picture. We just need the right few pieces. Their "Greedy Selection" strategy is a practical, efficient way to make these explanations possible without needing supercomputers that run for hundreds of hours. While they tested this on a specific model with about 1.2 billion parameters, their findings suggest that for the future of AI transparency, being picky and selective is far better than trying to keep everything.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.