PerceptionCLIP: Visual Classification by Inferring and Conditioning on Contexts

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: An, Bang, Zhu, Sicheng, Panaitescu-Liess, Michael-Andrei, Mummadi, Chaithanya Kumar, Huang, Furong
Format: Preprint
Publié: 2023
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911799914266624
author An, Bang
Zhu, Sicheng
Panaitescu-Liess, Michael-Andrei
Mummadi, Chaithanya Kumar
Huang, Furong
author_facet An, Bang
Zhu, Sicheng
Panaitescu-Liess, Michael-Andrei
Mummadi, Chaithanya Kumar
Huang, Furong
contents Vision-language models like CLIP are widely used in zero-shot image classification due to their ability to understand various visual concepts and natural language descriptions. However, how to fully leverage CLIP's unprecedented human-like understanding capabilities to achieve better performance is still an open question. This paper draws inspiration from the human visual perception process: when classifying an object, humans first infer contextual attributes (e.g., background and orientation) which help separate the foreground object from the background, and then classify the object based on this information. Inspired by it, we observe that providing CLIP with contextual attributes improves zero-shot image classification and mitigates reliance on spurious features. We also observe that CLIP itself can reasonably infer the attributes from an image. With these observations, we propose a training-free, two-step zero-shot classification method PerceptionCLIP. Given an image, it first infers contextual attributes (e.g., background) and then performs object classification conditioning on them. Our experiments show that PerceptionCLIP achieves better generalization, group robustness, and interoperability. Our code is available at https://github.com/umd-huang-lab/perceptionCLIP
format Preprint
id arxiv_https___arxiv_org_abs_2308_01313
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle PerceptionCLIP: Visual Classification by Inferring and Conditioning on Contexts
An, Bang
Zhu, Sicheng
Panaitescu-Liess, Michael-Andrei
Mummadi, Chaithanya Kumar
Huang, Furong
Computer Vision and Pattern Recognition
Artificial Intelligence
Computation and Language
Machine Learning
Vision-language models like CLIP are widely used in zero-shot image classification due to their ability to understand various visual concepts and natural language descriptions. However, how to fully leverage CLIP's unprecedented human-like understanding capabilities to achieve better performance is still an open question. This paper draws inspiration from the human visual perception process: when classifying an object, humans first infer contextual attributes (e.g., background and orientation) which help separate the foreground object from the background, and then classify the object based on this information. Inspired by it, we observe that providing CLIP with contextual attributes improves zero-shot image classification and mitigates reliance on spurious features. We also observe that CLIP itself can reasonably infer the attributes from an image. With these observations, we propose a training-free, two-step zero-shot classification method PerceptionCLIP. Given an image, it first infers contextual attributes (e.g., background) and then performs object classification conditioning on them. Our experiments show that PerceptionCLIP achieves better generalization, group robustness, and interoperability. Our code is available at https://github.com/umd-huang-lab/perceptionCLIP
title PerceptionCLIP: Visual Classification by Inferring and Conditioning on Contexts
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Computation and Language
Machine Learning
url https://arxiv.org/abs/2308.01313