Compensation Learning

Rujing Yao, Mengyang Li, Ou WuarXiv 2021

Abstract

This paper formalizes Compensation Learning, a machine learning paradigm characterized by the addition of trainable perturbation terms to model components such as features, logits, or losses. Unlike traditional sample weighting, which scales gradients through multiplication, compensation learning shifts the geometric space of the data to dynamically correct errors. We provide a comprehensive taxonomy of this paradigm and introduce two novel algorithms, LogComp and MixComp, which demonstrate superior robustness against noisy labels in both computer vision and natural language processing tasks.

Introduction

Supervised learning often struggles with imperfect datasets containing noisy or incorrectly labeled samples. While the standard mitigation strategy involves sample weighting—multiplying the loss of suspected noisy samples by a small fraction—another strategy has been used implicitly in various classical methods: compensation. By adding a trainable perturbation term rather than scaling a value, models can "fix" problematic data points during the forward pass.

Despite its prevalence, compensation learning has lacked a unified theoretical framework. This research aims to categorize these methods systematically, allowing for better comparison and the development of more robust learning algorithms.

The Compensation Learning Taxonomy

To unify disparate machine learning techniques, we propose a taxonomy based on four primary dimensions: Targets, Directions, Inference Manners, and Granularity.

The Taxonomy of Compensation Learning organizes the paradigm into four key dimensions: Targets, Directions, Inference Manners, and Granularity levels.
  1. Targets: Defines what is being compensated, such as raw features, network logits, labels, or the final loss.
  2. Directions: Compensation can be Positive (reducing loss to ignore noise) or Negative (increasing loss to force harder learning from easy samples).
  3. Inference Manners: Describes how the term is learned, ranging from L1 regularization and meta-learning to adversarial training.
  4. Granularity: Specifies if the compensation is applied at the sample, category, or corpus level.

Under this lens, many classical methods are revealed as forms of compensation. For instance, the "slack variables" in Support Vector Machines (SVMs) represent loss compensation, while standard Adversarial Training is a form of negative feature compensation.

Proposed Algorithms: LogComp and MixComp

Leveraging this framework, we introduce two algorithms designed for robust learning with noisy labels:

  • LogComp (L1-based Logit Compensation): This method adds a trainable vector to the output logits. Using L1 regularization, the vector remains sparse for clean samples but activates to "correct" logit values for noisy samples, preventing them from negatively impacting the loss.
  • MixComp (Mixed Positive and Negative Compensation): This hybrid approach applies positive compensation to high-loss (likely noisy) samples to reduce their impact, while applying negative compensation to low-loss (easy/medium) samples to force the model to extract more robust features, similar to adversarial training.

Empirical Evaluation

We evaluated these methods on standard benchmarks with synthetic noise (random and pair flipping):

  • Image Classification (CIFAR-10/100): On CIFAR-10 with 30% pair noise, MixComp achieved 90.01% accuracy, significantly outperforming the ResNet-20 baseline (87.06%) and standard PGD Adversarial Training (87.44%).
  • Text Sentiment Analysis (IMDB/SST-2): On IMDB with 20% symmetric noise, MixComp reached 82.60% accuracy, compared to 78.13% for the BiLSTM baseline.

Key Insights and Discussion

A significant advantage of LogComp is its ability to identify dataset errors. By analyzing samples that required the highest compensation values, we discovered genuinely mislabeled data within supposedly "clean" benchmark datasets like IMDB and CIFAR-10. Furthermore, we observed that compensation learning leads to slower, healthier convergence, preventing the model from prematurely memorizing noise and allowing it to prioritize generalizable features.

Conclusion and Future Work

Compensation learning provides a powerful new lens for understanding and improving model robustness. While current methods like MixComp require careful hyperparameter tuning, the framework opens new avenues for compensating other targets, such as graph structures or gradients. Future research will focus on a rigorous mathematical comparison between compensation and weighting to determine optimal use cases for each.

Summary updated

BibTeX
@misc{yao2021compensation,
  author = {Rujing Yao and Mengyang Li and Ou Wu},
  title = {{Compensation Learning}},
  year = {2021},
  eprint = {2107.11921},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.11921},
}
Figure