Counterfactual Zero-Shot and Open-Set Visual Recognition
Zhongqi Yue, Tan Wang, Qianru Sun, Xian-Sheng Hua, Hanwang Zhang
Abstract
We present a novel counterfactual framework for both Zero-Shot Learning (ZSL) and Open-Set Recognition (OSR), whose common challenge is generalizing to the unseen-classes by only training on the seen-classes. Our idea stems from the observation that the generated samples for unseen-classes are often out of the true distribution, which causes severe recognition rate imbalance between the seen-class (high) and unseen-class (low). We show that the key reason is that the generation is not Counterfactual Faithful, and thus we propose a faithful one, whose generation is from the sample-specific counterfactual question: What would the sample look like, if we set its class attribute to a certain class, while keeping its sample attribute unchanged? Thanks to the faithfulness, we can apply the Consistency Rule to perform unseen/seen binary classification, by asking: Would its counterfactual still look like itself? If "yes", the sample is from a certain class, and "no" otherwise. Through extensive experiments on ZSL and OSR, we demonstrate that our framework effectively mitigates the seen/unseen imbalance and hence significantly improves the overall performance. Note that this framework is orthogonal to existing methods, thus, it can serve as a new baseline to evaluate how ZSL/OSR models generalize. Codes are available at https://github.com/yue-zhongqi/gcm-cf.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 1e0b4a2f-9a32-4b0b-af96-5cf1a12ccf6fCited by top-tier papers53
- TransZero: Attribute-Guided Transformer for Zero-Shot LearningShiming Chen, Ziming Hong, Yang Liu, Guo-Sen Xie et al.AAAI 2022 · 185 citations
- Catching Both Gray and Black Swans: Open-set Supervised Anomaly DetectionChoubo Ding, Guansong Pang, Chunhua ShenCVPR 2022 · 163 citations
- Causal Attention for Unbiased Visual RecognitionTan Wang, Chang Zhou, Qianru Sun, Hanwang ZhangICCV 2021 · 162 citations
- MSDN: Mutually Semantic Distillation Network for Zero-Shot LearningShiming Chen, Ziming Hong, Guo-Sen Xie, Wenhan Yang et al.CVPR 2022 · 141 citations
- DUET: Cross-Modal Semantic Grounding for Contrastive Zero-Shot LearningZhuo Chen, Yufeng Huang, Jiaoyan Chen, Yuxia Geng et al.AAAI 2023 · 97 citations
Builds on11
- Your classifier is secretly an energy based model and you should treat it like oneWill Grathwohl, Kuan-Chieh Wang, Jörn-Henrik Jacobsen, David Duvenaud et al.ICLR 2020 · 643 citations
- Long-Tailed Classification by Keeping the Good and Removing the Bad Momentum Causal EffectKaihua Tang, Jianqiang Huang, Hanwang ZhangNeurIPS 2020 · 533 citations
- Transferable Contrastive Network for Generalized Zero-Shot LearningHuajie Jiang, Ruiping Wang, Shiguang Shan, Xilin ChenICCV 2019 · 200 citations
- Counterfactuals uncover the modular structure of deep generative modelsMichel Besserve, Arash Mehrjou, Rémy Sun, Bernhard SchölkopfICLR 2020 · 109 citations
- A Theory of Independent Mechanisms for Extrapolation in Generative ModelsMichel Besserve, Rémy Sun, Dominik Janzing, Bernhard SchölkopfAAAI 2021 · 27 citations
Related papers
- Contrastive Embedding for Generalized Zero-Shot LearningZongyan Han, Zhenyong Fu, Shuo Chen, Jian YangCVPR 2021
- Few-Shot Open-Set Recognition by Transformation ConsistencyMinki Jeong, Seokeon Choi, Changick KimCVPR 2021
- The Devil is in the Wrongly-classified Samples: Towards Unified Open-set RecognitionJun Cen, Di Luan, Shiwei Zhang, Yixuan Pei et al.ICLR 2023 · 13 citations
- Deconstructed Generation-Based Zero-Shot ModelDubing Chen, Yuming Shen, Haofeng Zhang, Philip H. S. TorrAAAI 2023 · 8 citations
- Counterfactual-Driven Zero-Shot Classifier ExpansionXiangyu Wang, Yanze Gao, Changxin Rong, Lyuzhou Chen et al.AAAI 2026 · 1 citation
