Logit Perturbation

Mengyang Li, Fengguang Su, Ou Wu, Ji Zhang

Abstract

Logit Perturbation Learning (LPL) is a novel framework that explicitly optimizes logit scores during training to perform virtual data augmentation. By strategically maximizing or minimizing loss through learned perturbations, LPL addresses both standard classification and long-tail imbalance challenges without adding parameter overhead. This method provides a unified approach to logit manipulation, bridging the gap between fixed statistical adjustments and learned data augmentation.

Introduction

In deep learning, data augmentation typically occurs at the feature level (e.g., image flipping) or the label level (e.g., label smoothing). However, the intermediate stage—the logits (raw, unnormalized scores from the final layer)—remains largely untapped for explicit, learned perturbation. While existing methods like Implicit Semantic Data Augmentation (ISDA) or Logit Adjustment (LA) utilize logits to improve generalization or handle class imbalance, they often rely on fixed formulas or statistical assumptions.

Relative loss variation across different existing methods (ISDA, LA, LDAM) under various conditions, highlighting the patterns LPL aims to optimize.

As illustrated in the figure above, existing methods exhibit distinct patterns of relative loss variation across categories. The authors identify a critical gap: the lack of a unified framework to learn optimal logit perturbations. LPL addresses this by treating perturbation as an optimization problem, enabling both "positive" augmentation (increasing difficulty for robustness) and "negative" augmentation (reducing dominance for fairness).

The Logit Perturbation Learning (LPL) Framework

The core of LPL is the Loss-Augmentation Conjecture, which posits that positive augmentation should increase loss to challenge the model, while negative augmentation should decrease loss to simplify learning for over-represented classes.

The Logit Perturbation Learning (LPL) framework, illustrating category splitting and the dual optimization of perturbations.

The framework operates through three primary steps:

  1. Category Splitting: Classes are divided into two sets: $P_a$ (Positive) for underperforming or "tail" classes, and $N_a$ (Negative) for well-learned or "head" classes.
  2. Dual Optimization: For $P_a$, LPL uses a Projected Gradient Descent (PGD)-like approach to find perturbations $\tilde{\delta}_c$ that maximize loss, creating virtual samples near the decision boundary. For $N_a$, it finds perturbations that minimize loss, pushing samples away from the boundary.
  3. Learned Bounds: The perturbation magnitude ($\epsilon$) is dynamically adjusted based on class performance, ensuring that the most difficult classes receive the most significant virtual boost.

Experimental Evaluation

LPL was evaluated on standard (CIFAR-10/100) and long-tail (CIFAR-10/100-LT) datasets using ResNet and Wide-ResNet architectures. The results demonstrate LPL's effectiveness across diverse scenarios:

  • Standard Classification: LPL achieved a 3.37% error rate on CIFAR-10, outperforming ISDA (3.58%) and standard cross-entropy training (3.82%).
  • Long-tail Performance: On CIFAR-100-LT (100:1 imbalance), LPL reached a 55.75% error rate, surpassing Logit Adjustment (56.11%).
  • Synergistic Effects: Combining LPL with Logit Adjustment (LA+LPL) further reduced the error to 53.89%, demonstrating that learned perturbations complement existing statistical methods.
  • Efficiency: Crucially, LPL introduces zero parameter overhead in the final model, as the perturbations are only applied during the training phase.

Analysis and Insights

LPL provides a theoretical bridge between data augmentation and loss variation, showing that many existing techniques are special, non-optimized cases of logit perturbation. A key insight is the importance of negative augmentation: virtually simplifying the influence of dominant classes is as crucial as adding data for the rare ones to solve the long-tail problem.

Despite its success, LPL introduces sensitivity to hyperparameters such as the splitting threshold ($\tau$) and perturbation bounds ($\epsilon$). Additionally, the inner optimization step increases training time compared to standard cross-entropy loss. Future work may explore LPL's applicability in other domains, such as Natural Language Processing or Reinforcement Learning.

Summary updated

BibTeX
@inproceedings{li2022logit,
  author = {Mengyang Li and Fengguang Su and Ou Wu and Ji Zhang},
  title = {{Logit Perturbation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i2.20024},
}
Figure