New Method Reduces "Harm" to Individual Samples in AI Training

Apostolos Avranas· July 21, 2026 View original

Summary

Researchers propose a new method to reduce "harm" – the increase in loss for individual samples – during stochastic optimization by explicitly minimizing the conflicting impact of batch averaging and historical optimization state. This efficient proxy focuses on the last linear layer, improving generalization in image classification.

Modern stochastic optimizers, such as SGD and AdamW, combine gradients from the current mini-batch with historical information like momentum. While highly effective for overall model training, this aggregation process can inadvertently lead to parameter updates that increase the loss for specific individual samples within the dataset, an effect termed "harm." This research formalizes this problem, framing the parameter update as an optimization challenge that explicitly aims to minimize the negative impact of both batch averaging and past optimization states on current data points. Since an exact solution to this problem is computationally intractable, the researchers introduce a highly efficient proxy. This proxy significantly reduces dimensionality by focusing the optimization on the batch size and, crucially, restricts the optimization to only the last linear layer of the neural network. This simplification is based on the unexpected finding that the last linear layer reliably captures the second-order statistics of per-sample gradients. The resulting surrogate problem can be readily integrated into standard optimizers and solved with a few GPU-friendly iterations. The method scales favorably, with computational overhead decreasing as model size or input grows. Experiments on image classification benchmarks confirm that this approach effectively reduces per-sample interference and leads to improved generalization performance.

Why it matters

AI engineers and researchers can use this technique to train more robust and fair models by mitigating the negative impact on individual data points, potentially leading to better generalization and reduced bias in real-world applications.

How to implement this in your domain

  1. 1Investigate the concept of "per-sample harm" in current deep learning training pipelines.
  2. 2Explore integrating the proposed proxy method, focusing on the last linear layer, into custom optimizers or existing frameworks.
  3. 3Conduct experiments on image classification or other relevant tasks to quantify improvements in generalization and reduction of individual sample loss.
  4. 4Analyze the computational overhead and scaling properties of the method for specific model architectures and dataset sizes.
  5. 5Consider the implications of reduced per-sample harm for fairness and robustness in AI applications.

Who benefits

AI/ML DevelopmentComputer VisionHealthcare (for fairness)Autonomous VehiclesSoftware Development

Key takeaways

  • Stochastic optimizers can inadvertently increase loss for individual samples ("harm").
  • A new method reduces this harm by optimizing updates for individual samples.
  • The efficient proxy focuses on the last linear layer, capturing key gradient statistics.
  • It improves generalization in image classification benchmarks with favorable scaling.

Original post by Apostolos Avranas

"arXiv:2607.16261v1 Announce Type: new Abstract: Modern optimizers combine gradients from the current mini-batch with historical optimization state, such as momentum or adaptive moments. While highly effective, aggregating across the batch and incorporating this history can produc…"

View on X

Originally posted by Apostolos Avranas on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses