Layer-Aware Influence for Online Data Valuation Estimation

Ziao Yang, Longbo Huang, Hongfu Liu · DOI

Abstract

Estimating the value of individual training samples is essential for data-centric AI but remains computationally challenging for deep learning models. Traditional influence functions are often too slow for online application or require significant memory for gradient storage. We introduce Layer-Aware Influence (LAI), a lightweight, Hessian-free estimator designed for real-time data valuation. By utilizing only output-layer gradients and aggregating embedding similarities across layers, LAI reduces computational overhead and filters out backpropagation noise. Our results demonstrate that LAI achieves higher correlation with ground-truth Shapley values than previous methods, leading to improved model performance and efficiency across various domains, including LLM pre-training and fine-tuning.

Introduction

In the paradigm of "Data-Centric AI," the quality of training data frequently outweighs model architecture complexity. Identifying and removing "detrimental" samples—noisy or confusing data points—can significantly enhance performance. However, calculating a sample’s influence (the change in model loss upon its removal) is notoriously difficult. Traditional "Leave-One-Out" retraining is infeasible for large models, and standard influence functions often require expensive Hessian matrix inversions or massive gradient storage.

Furthermore, data value is dynamic; a sample's utility changes throughout the training process. Existing "static" methods fail to capture this evolution. Online data valuation has historically been too expensive to scale, particularly for Large Language Models (LLMs).

Methodology: Layer-Aware Influence (LAI)

LAI builds upon "Ghost Influence," which evaluates sample similarity via embedding similarity ($\alpha$) and gradient similarity ($\beta$). While Ghost Influence calculates $\beta$ across all network layers—requiring a full backpropagation pass per sample—LAI introduces a critical optimization.

The authors observe that backpropagating through deep networks introduces stochastic noise and non-linear perturbations. LAI simplifies the process by:

  1. Aggregating embedding similarities ($\alpha$) across all layers to maintain feature-space context.
  2. Restricting gradient similarity ($\beta$) to the output layer only.

By reducing the backpropagation depth from $L$ layers to one, LAI avoids parameter-sized gradients, drastically cutting memory and time costs while serving as a "low-noise anchor" for influence estimation.

Experimental Evaluation

LAI was evaluated across three distinct domains:

  • LLM Pre-training: GPT-Neo (125M) on the Pile-uncopyrighted dataset.
  • LLM Fine-tuning: GLUE benchmarks (SST-2, MRPC, QNLI, RTE).
  • Noisy Classification: Image datasets (CIFAR-10/100N) and text datasets (20News-N, Emotion-N) with real and synthetic label noise.

Results and Analysis

LAI demonstrates superior fidelity and efficiency compared to existing methods. It achieved a Pearson correlation of 0.96 with ground-truth Shapley values, surpassing Ghost Influence's 0.90.

Correlation between LAI/Ghost scores and ground-truth Shapley values at training step 10,000.

The efficiency gains are substantial; on the 20News-N dataset, LAI was 2.5x faster and used 1.5x less memory than Ghost Influence. In LLM fine-tuning, LAI improved accuracy by 0.6–1.2% while training on 50% fewer samples per epoch by filtering detrimental data.

Distribution of correlation coefficients for LAI and Ghost Influence across training steps.

Key insights from the evaluation include:

  • Noise Reduction: Using only output-layer gradients provides a cleaner signal for data valuation, avoiding the stochastic perturbations that accumulate during deep backpropagation.
  • Dynamic Curation: LAI effectively identifies samples whose value fluctuates during training, allowing for real-time dataset pruning that maintains high performance with less data.
  • Robustness: LAI achieved the highest accuracy (44.06%) on the noisy CIFAR-100N dataset, outperforming state-of-the-art methods like TRAK and LiSSA.

Discussion and Limitations

While LAI offers significant improvements, it remains dependent on the quality of the validation set used for guidance. Biased validation data can lead to biased training curation. Additionally, there is a risk of excluding "long-tail" samples that are important for generalization but appear as noise to the estimator. Future work should address alignment with adaptive optimizers like Adam and explore privacy implications of caching gradients for valuation.

Summary updated

BibTeX
@misc{yang2025layer,
  author = {Ziao Yang and Longbo Huang and Hongfu Liu},
  title = {{Layer-Aware Influence for Online Data Valuation Estimation}},
  year = {2025},
  eprint = {2510.16007},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.16007},
}
Figure