Balancing Knowledge Distillation for Imbalance Learning with Bilevel Optimization

Anh B. H. Nguyen, Ba Tho Phan, Viet Cuong Ta
5/18/2026
cs.LGcs.AI
distillation

No confident code implementation found for this paper.

Abstract

Knowledge distillation transfers knowledge from a high capacity teacher to a compact student using a mixture of hard and soft losses. On imbalanced data, a fixed weighting between hard and soft losses becomes brittle the learning process.

Show full abstract

Recent studies try to reweight these components in long-tailed settings. However, most of these methods do not adapt weights at the sample-wise level and do not take into account the students behavior during training. To address this, we propose BiKD -- a bilevel framework that dynamically balances hard and soft losses for each sample. We employ a weight generation network that produces adaptive per-sample weights, guided by a small balanced validation set. The student is now trained with an unconstrained combination of weighted hard and soft losses, allowing the student to relax both terms. We further propose a multi-step SGD strategy to optimize the weight model more accurately and efficiently. Experiments on long-tailed CIFAR-10/100 show that our approach surpasses recent balanced distillation methods across imbalance factors.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{nguyen2026balancing,
  title  = {Balancing Knowledge Distillation for Imbalance Learning with Bilevel Optimization},
  author = {Anh B. H. Nguyen and Ba Tho Phan and Viet Cuong Ta},
  year   = {2026},
  eprint = {2605.17839},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.17839v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.17839.svg)](https://codeofpaper.com/paper/2605.17839)

Discussion