Balancing Model Efficiency and Performance: Adaptive Pruner for Long-tailed Data

Zhe Zhao, HaiBin Wen, Pengkun Wang, ShuangWang, Zhenkun Wang, Qingfu Zhang, Yang Wang

TL;DR

LTAP (Long-Tailed Adaptive Pruner) is a novel pruning strategy designed specifically for imbalanced datasets where rare "tail" classes are often neglected. By using a dynamic "voting" mechanism to protect parameters critical for these scarce categories, LTAP achieves high model compression while significantly outperforming traditional pruning methods in classification accuracy for tail classes.

The Challenge of Long-Tailed Data in Model Pruning

In real-world applications, data is rarely perfectly balanced. Most datasets follow a "long-tailed" distribution: a few "head" classes contain thousands of samples, while hundreds of "tail" classes have only a handful. While deep learning models excel at learning the head classes, they often struggle to generalize to the tail.

Model pruning—the process of removing redundant parameters to make models faster and smaller—frequently exacerbates this issue. Conventional pruning methods are generally "class-blind." They remove parameters based on global importance metrics (like weight magnitude), which inadvertently deletes the specialized features the model relies on to recognize rare tail classes. The authors identify three main hurdles in existing approaches:

  1. Pruning Bias: Conventional methods ignore class-specific contributions, disproportionately harming tail classes.
  2. Static Nature: Traditional pruning does not adapt to the evolving relationship between parameters and data during the training process.
  3. Simplistic Criteria: Relying on a single metric, such as weight size, fails to capture the nuanced importance of neurons in complex, imbalanced landscapes.

The LTAP Methodology

To address these limitations, the authors propose the LTAP framework, which shifts away from "one-size-fits-all" pruning toward a class-aware, multi-criteria approach.

1. Multi-criteria Importance Evaluation

Instead of solely evaluating weight magnitudes, LTAP assesses parameter importance through five complementary lenses:

  • Magnitude-based: Absolute and normalized weight sizes.
  • Gradient-based: Update alignment (cosine similarity with the optimization path), first-order impact (Taylor expansion), and second-order stability.

2. The LT-Vote Mechanism

The core innovation of LTAP is its dynamic weight adjustment mechanism, which "votes" on which criteria are most important at any given time. It utilizes a learnable weight matrix that interacts with the class distribution. Crucially, it employs a performance-driven update rule: if the model's performance on a specific class improves, the criteria that led to that improvement are strengthened. This ensures that parameters vital for tail-class accuracy are shielded from being pruned.

Overview of the LTAP methodology, showing the iterative cycle of evaluation, processing, and pruning guided by class-specific accuracy.

3. Progressive Multi-stage Pruning

Rather than executing pruning as a one-off event, LTAP distributes the target sparsity ratio across multiple stages, alternating between training and pruning. This progressive approach allows the model to gradually adapt its structure without suffering catastrophic performance drops.

Key Insights: Flexibility and Capacity

One of the most striking theoretical contributions of the paper is the demonstration that tail classes benefit more from overparameterization. While head classes can be learned effectively with fewer parameters due to abundant data, tail classes require a higher degree of model capacity to achieve similar generalization. This justifies LTAP's "tail-biased" protection strategy.

Furthermore, traditional pruning often results in rigid patterns that limit adaptability. LTAP’s adaptive approach results in a much more flexible and distributed masking pattern, allowing the model to retain critical "pockets" of knowledge across different layers.

Visualization of neuron masking across different configurations. Compared to the rigid patterns of the baseline (bs) and the method without voting (ours w.o. vote), the full LTAP method (ours) shows much greater flexibility in preserving critical neurons.

Experimental Results

The authors evaluated LTAP on three standard long-tailed benchmarks: CIFAR-100-LT, ImageNet-LT, and the large-scale iNaturalist 2018 dataset. LTAP consistently achieved a superior balance between efficiency (FLOPs) and accuracy, particularly for tail classes.

  • Superior Efficiency: Using a $C/F$ ratio (Ratio of Accuracy to FLOPs) to measure efficiency, LTAP consistently outscored state-of-the-art methods like ATO and RReg.
  • Tail Accuracy Boost: On CIFAR-100-LT (Imbalance Ratio = 50), LTAP achieved a tail accuracy of 34.1%, compared to just 23.8% for the RReg pruning method, while simultaneously reducing FLOPs by over 77% compared to the baseline.
  • Robustness on Large Scale: On the challenging iNaturalist 2018 dataset (featuring 8,142 naturally imbalanced classes), LTAP maintained high accuracy across all class types (head, medium, and tail) while significantly reducing computational overhead, proving its readiness for real-world deployment.

Limitations and Future Work

While LTAP shows impressive results on standard convolutional architectures like ResNet, the paper does not extensively discuss its application to Transformer-based models or Large Language Models (LLMs). Long-tailed distributions in training data (e.g., rare languages, niche technical jargon) are a major concern in these domains as well.

Future work could explore:

  • Integrating LTAP with other long-tailed techniques, such as logit adjustment or specialized loss functions.
  • Scaling the dynamic voting mechanism to handle the massive parameter counts of modern foundation models.
  • Investigating the hardware-specific speedups of the resulting sparse structures beyond theoretical FLOP reductions.

Summary updated

BibTeX
@inproceedings{zhao2025balancing,
  author = {Zhe Zhao and HaiBin Wen and Pengkun Wang and ShuangWang and Zhenkun Wang and Qingfu Zhang and Yang Wang},
  title = {{Balancing Model Efficiency and Performance: Adaptive Pruner for Long-tailed Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=1d1ssNedLv},
}
Figure