[论文解读] Deep Reinforcement Learning for Imbalanced Classification
该论文提出 DQNimb,一种深度强化学习框架,通过深度 Q 学习将类别不平衡分类问题建模为序列决策过程。通过为少数类样本分配更高的奖励并使用定制的奖励函数,智能体学习到一种最优分类策略,显著提升了对罕见实例的检测能力,优于传统方法——尤其在文本数据集等极端类别不平衡场景下表现更优。
Data in real-world application often exhibit skewed class distribution which poses an intense challenge for machine learning. Conventional classification algorithms are not effective in the case of imbalanced data distribution, and may fail when the data distribution is highly imbalanced. To address this issue, we propose a general imbalanced classification model based on deep reinforcement learning. We formulate the classification problem as a sequential decision-making process and solve it by deep Q-learning network. The agent performs a classification action on one sample at each time step, and the environment evaluates the classification action and returns a reward to the agent. The reward from minority class sample is larger so the agent is more sensitive to the minority class. The agent finally finds an optimal classification policy in imbalanced data under the guidance of specific reward function and beneficial learning environment. Experiments show that our proposed model outperforms the other imbalanced classification algorithms, and it can identify more minority samples and has great classification performance.
研究动机与目标
- 解决真实世界数据集中高度类别不平衡(如疾病诊断和异常检测)导致的少数类检测性能差的问题。
- 克服传统机器学习模型因数据分布偏斜而偏向多数类性能的局限性。
- 开发一种新颖的深度强化学习框架,通过奖励函数设计,动态调整学习重点以关注少数样本。
- 通过结合经验回放(数据层面)和基于奖励的学习(算法层面),提升在极端类别不平衡数据集上的分类性能。
提出的方法
- 将类别不平衡分类问题建模为可解释分类马尔可夫决策过程(ICMDP),将每个样本视为一个序列决策步骤。
- 使用深度 Q 网络(DQN)通过与环境交互学习最优分类策略,环境根据预测正确性提供奖励。
- 设计奖励函数,使少数类样本获得 1 的奖励,多数类样本获得 λ 的奖励,其中 λ 设为不平衡比率 ρ 以平衡学习影响。
- 实现经验回放以存储并重放过去交互,减少记忆中的数据偏斜,提升泛化能力。
- 在错误分类少数类样本时终止训练 episode,强化对罕见实例的学习关注。
- Q 网络通过调整奖励缩放的损失函数进行训练,以平衡多数类和少数类样本的贡献。
实验结果
研究问题
- RQ1深度强化学习能否通过学习优先关注少数类样本的策略,有效解决类别不平衡问题?
- RQ2奖励函数的选择——特别是多数类样本的 λ 值——如何影响模型的泛化能力和对罕见实例的检测能力?
- RQ3在 DQN 框架中结合数据层面(经验回放)和算法层面(奖励函数设计)策略,是否能提升在极端类别不平衡数据集上的性能?
- RQ4在不同不平衡比率下,DQNimb 模型相较于深度神经网络(DNN)和传统类别不平衡学习方法,在 G-mean 和 F-measure 指标上的表现如何?
- RQ5奖励函数中 λ 的最优值是多少,才能在训练过程中平衡多数类和少数类样本的影响?
主要发现
- 在 IMDB 文本数据集上,DQNimb 的 G-mean 得分比第二好的方法(CSM)高出 7.7%,当不平衡比率为 2% 时,高出 12.3%。
- 随着不平衡程度增加,DQNimb 的 F-measure 下降幅度小于其他模型,显示出对极端类别偏斜更强的鲁棒性。
- 在高不平衡条件下,DNN 模型的 F-measure 性能下降最为严重,而 DQNimb 由于对少数类样本的针对性学习,保持了强劲的性能。
- 少数类样本的最优奖励值为 λ = ρ,其中 ρ 为不平衡比率;偏离此值会降低性能。
- DQNimb 中的经验回放有助于缓解记忆中数据分布的偏斜,从而提升泛化能力并减少过拟合。
- 理论分析证实,调整 λ 可平衡两类样本对损失函数的贡献,实现稳定训练并提升少数类检测性能。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。