Explaining Domain Shifts in Language: Concept erasing for Interpretable Image Classification

Zequn Zeng, Yudi Su, Jianqiao Sun, Tiansheng Wen, Hao Zhang +4 more
3/1/2025
5 citations

Official code: joeyz0z/LanCE (11 stars, Python, last commit 2025-04-21).

Abstract

Concept-based models can map black-box representations to human-understandable concepts, which makes the decision-making process more transparent and then allows users to understand the reason behind predictions. However, domain-specific concepts often impact the final predictions, which subsequently undermine the model generalization capabilities, and prevent the model from being used in high-stake applications.

Show full abstract

In this paper, we propose a novel Language-guided Concept-Erasing (LanCE) framework. In particular, we empirically demonstrate that pre-trained vision-language models (VLMs) can approximate distinct visual domain shifts via domain descriptors while prompting large Language Models (LLMs) can easily simulate a wide range of descriptors of unseen visual domains. Then, we introduce a novel plug-in domain descriptor orthogonality (DDO) regularizer to mitigate the impact of these domain-specific concepts on the final predictions. Notably, the DDO regularizer is agnostic to the design of concept-based models and we integrate it into several prevailing models. Through evaluation of domain generalization on four standard benchmarks and three newly introduced benchmarks, we demonstrate that DDO can significantly improve the out-of-distribution (OOD) generalization over the previous state-of-the-art concept-based models. Our code is available at https://github.com/joeyz0z/LanCE.

View on arXivView PDF

Code Implementations(1)

joeyz0z/LanCEOfficial100%

(CVPR2025) Explaining Domain Shifts in Language: Concept erasing for Interpretable Image Classification

110PythonMar 10, 20251 years ago

Similar Papers

Cite this paper

@article{zeng2025explaining,
  title  = {Explaining Domain Shifts in Language: Concept erasing for Interpretable Image Classification},
  author = {Zequn Zeng and Yudi Su and Jianqiao Sun and Tiansheng Wen and Hao Zhang and Zhengjue Wang and Bo Chen and Hongwei Liu and Jiawei Ma},
  year   = {2025},
  eprint = {2503.18483},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2503.18483},
  journal = {CVPR 2025 2025}
}

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/2503.18483.svg)](https://codeofpaper.com/paper/2503.18483)

Discussion