Select or Project? Evaluating Lower-dimensional Vectors for LLM Training Data Explanations
Lukas Hinterleitner, Loris Schoenegger, Benjamin Roth
TL;DR
This work tackles the impracticality of gradient-based instance explanations for large language models by comparing two dimensionality-reduction strategies: architecture-aware greedy selection of gradient components and geometry-preserving random projection. Using a novel retrieval-based benchmark, the authors demonstrate that a small, carefully chosen subset of layer components can outperform the full gradient and random projections in identifying training examples that influenced a given output, while also dramatically reducing computational cost. Key findings show that certain components (notably MLP gates/up projections) carry strong, task-relevant signals, whereas others (e.g., some attention keys/values) contribute little or even harm retrieval performance. The results argue for selecting informative architectural components over projecting the entire gradient, offering a practical path to scalable instance-based explanations with significant efficiency gains and broad applicability to data debugging and pruning tasks.
Abstract
Gradient-based methods for instance-based explanation for large language models (LLMs) are hindered by the immense dimensionality of model gradients. In practice, influence estimation is restricted to a subset of model parameters to make computation tractable, but this subset is often chosen ad hoc and rarely justified by systematic evaluation. This paper investigates if it is better to create low-dimensional representations by selecting a small, architecturally informed subset of model components or by projecting the full gradients into a lower-dimensional space. Using a novel benchmark, we show that a greedily selected subset of components captures the information about training data influence needed for a retrieval task more effectively than either the full gradient or random projection. We further find that this approach is more computationally efficient than random projection, demonstrating that targeted component selection is a practical strategy for making instance-based explanations of large models more computationally feasible.
