用扩散模型生成新样本,减少图像分类中对无关特征的错误依赖。
DDB: Diffusion Driven Balancing to Address Spurious Correlations
- 通过文本反演提取图像因果特征,再用扩散模型混合不同类别元素生成新样本。
- 在多个基准上实现更优的最差组准确率,优于当前最佳方法。
- 适合需要提升模型鲁棒性、应对分布外数据的视觉任务研究者。
基于经验风险最小化(ERM)训练的深度神经网络在同分布数据上表现良好,但在分布外样本上常失效。图像分类中,模型可能依赖标签与图像无关特征之间的虚假相关性,导致预测不可靠。本文提出扩散驱动平衡(DDB)技术,利用文生图扩散模型生成训练样本以解决虚假相关性问题。首先通过文本反演机制识别样本中与因果成分相关的最优描述词;随后结合语言分割方法和扩散模型,将因果成分与其它类别的元素混合生成新样本;并基于ERM模型的预测概率与重要性得分,精细剔除不合规生成样本,确保其符合目标。最后在增强数据集上重训ERM模型。该过程通过学习不存在虚假相关性的精心构造样本,降低模型对无关特征的依赖。实验表明,在多个基准上,该方法在最差组准确率方面优于现有最先进方法。代码已开源:https://github.com/ArianYp/DDB。
原文摘要 · Abstract (English)
Deep neural networks trained with Empirical Risk Minimization (ERM) perform well when both training and test data come from the same domain, but they often fail to generalize to out-of-distribution samples. In image classification, these models may rely on spurious correlations that often exist between labels and irrelevant features of images, making predictions unreliable when those features do not exist. We propose a Diffusion Driven Balancing (DDB) technique to generate training samples with text-to-image diffusion models for addressing the spurious correlation problem. First, we compute the best describing token for the visual features pertaining to the causal components of samples by a textual inversion mechanism. Then, leveraging a language segmentation method and a diffusion model, we generate new samples by combining the causal component with the elements from other classes. We also meticulously prune the generated samples based on the prediction probabilities and attribution scores of the ERM model to ensure their correct composition for our objective. Finally, we retrain the ERM model on our augmented dataset. This process reduces the model's reliance on spurious correlations by learning from carefully crafted samples in which this correlation does not exist. Our experiments show that across different benchmarks, our technique achieves better worst-group accuracy than the existing state-of-the-art methods. Our code is available at https://github.com/ArianYp/DDB.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。