A Debiased Nearest Neighbors Framework for Multi-Label Text Classification
Zifeng Cheng, Zhiwei Jiang, Yafeng Yin, Zhaoling Chen, Cong Wang, Shiping Ge, Qiguo Huang, Qing Gu
TL;DR
This work tackles MLTC with a kNN retrieval backbone by identifying embedding alignment and confidence estimation biases that hinder performance. It introduces DENN, a debiased framework combining Debiased Contrastive Learning to align embeddings with label co-occurrence and Debiased Confidence Estimation to adaptively fuse kNN and inductive predictions without adding parameters. Across four benchmarks (AAPD, RCV1-V2, Amazon-531, EUR-LEX57K), DENN achieves state-of-the-art results, driven by improved neighbor consistency and per-sample confidence. The approach yields robust gains across label frequencies and maintains practical efficiency, underscoring the value of debiasing in retrieval-augmented MLTC.
Abstract
Multi-Label Text Classification (MLTC) is a practical yet challenging task that involves assigning multiple non-exclusive labels to each document. Previous studies primarily focus on capturing label correlations to assist label prediction by introducing special labeling schemes, designing specific model structures, or adding auxiliary tasks. Recently, the $k$ Nearest Neighbor ($k$NN) framework has shown promise by retrieving labeled samples as references to mine label co-occurrence information in the embedding space. However, two critical biases, namely embedding alignment bias and confidence estimation bias, are often overlooked, adversely affecting prediction performance. In this paper, we introduce a DEbiased Nearest Neighbors (DENN) framework for MLTC, specifically designed to mitigate these biases. To address embedding alignment bias, we propose a debiased contrastive learning strategy, enhancing neighbor consistency on label co-occurrence. For confidence estimation bias, we present a debiased confidence estimation strategy, improving the adaptive combination of predictions from $k$NN and inductive binary classifications. Extensive experiments conducted on four public benchmark datasets (i.e., AAPD, RCV1-V2, Amazon-531, and EUR-LEX57K) showcase the effectiveness of our proposed method. Besides, our method does not introduce any extra parameters.
