# Group & Reweight: A Novel Cost-Sensitive Approach to Mitigating Class Imbalance in Network Traffic Classification

arXiv: https://arxiv.org/abs/2409.19214 · HTML: https://mlsanity.com/paper/2409.19214/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 16 of its 88 references that are in the map.
- First posted on arXiv 28 Sep 2024.

## Builds on (most cited first, 16 of 16)

- [Class-Balanced Loss Based on Effective Number of Samples](https://mlsanity.com/paper/1901.05555/) (2019)
- [Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss](https://mlsanity.com/paper/1906.07413/) (2019)
- [Remix: Rebalanced Mixup](https://mlsanity.com/paper/2007.03943/) (2020)
- [Distributionally Robust Optimization: A Review](https://mlsanity.com/paper/1908.05659/) (2019)
- [Deep Packet: A Novel Approach For Encrypted Traffic Classification Using Deep Learning](https://mlsanity.com/paper/1709.02656/) (2017)
- [A review of ensemble learning and data augmentation models for class imbalanced problems: combination, implementation and evaluation](https://mlsanity.com/paper/2304.02858/) (2023)
- [Hyperbolic Geometric Graph Representation Learning for Hierarchy-imbalance Node Classification](https://mlsanity.com/paper/2304.05059/) (2023)
- [Internet of Things: An Overview](https://mlsanity.com/paper/1703.06409/) (2017)
- [Cost-Sensitive BERT for Generalisable Sentence Classification with Imbalanced Data](https://mlsanity.com/paper/2003.11563/) (2020)
- [PacketCGAN: Exploratory Study of Class Imbalance for Encrypted Traffic Classification Using CGAN](https://mlsanity.com/paper/1911.12046/) (2019)
- [Label Distributionally Robust Losses for Multi-class Classification: Consistency, Robustness and Adaptivity](https://mlsanity.com/paper/2112.14869/) (2021)
- [Assessing "Implicit" Retrieval Robustness of Large Language Models](https://mlsanity.com/paper/2406.18134/) (2024)
- [Uncertainty-guided Boundary Learning for Imbalanced Social Event Detection](https://mlsanity.com/paper/2310.19247/) (2023)
- [Large-scale Generative Simulation Artificial Intelligence: the Next Hotspot in Generative AI](https://mlsanity.com/paper/2308.02561/) (2023)
- [Deep learning for understanding multilabel imbalanced Chest X-ray datasets](https://mlsanity.com/paper/2207.14408/) (2022)
- [DoS and DDoS Mitigation Using Variational Autoencoders](https://mlsanity.com/paper/2105.06899/) (2021)

## Abstract (arXiv)

Internet services have led to the eruption of network traffic, and machine learning on these Internet data has become an indispensable tool, especially when the application is risk-sensitive. This paper focuses on network traffic classification in the presence of severe class imbalance. Such a distributional trait mostly drifts the optimal decision boundary and results in an unsatisfactory solution. This raises safety concerns in the network traffic field when previous class imbalance methods hardly deal with numerous minority malicious classes. To alleviate these effects, we design a group & reweight strategy for alleviating class imbalance. Inspired by the group distributionally optimization framework, our approach heuristically clusters classes into groups, iteratively updates the non-parametric weights for separate classes, and optimizes the learning model by minimizing reweighted losses. We theoretically interpret the optimization process from a Stackelberg game and perform extensive experiments on typical benchmarks. Results show that our approach can not only suppress the negative effect of class imbalance but also improve the comprehensive performance in prediction.
