CounterCurate: Enhancing Physical and Semantic Visio-Linguistic Compositional Reasoning via Counterfactual Examples
About
We propose CounterCurate, a framework to comprehensively improve the visio-linguistic compositional reasoning capability for both contrastive and generative multimodal models. In particular, we identify two critical under-explored problems: the neglect of the physically grounded reasoning (counting and position understanding) and the potential of using highly capable text and image generation models for semantic counterfactual fine-tuning. Our work pioneers an approach that addresses these gaps. We first spotlight the near-chance performance of multimodal models like CLIP and LLaVA in physically grounded compositional reasoning. We then apply simple data augmentation using grounded image generation model GLIGEN to generate fine-tuning data, resulting in significant performance improvements: +33% and +37% for CLIP and LLaVA, respectively, on our newly curated Flickr30k-Positions benchmark. Moreover, we exploit the capabilities of high-performing text generation and image generation models, specifically GPT-4V and DALLE-3, to curate challenging semantic counterfactuals, thereby further enhancing compositional reasoning capabilities on benchmarks such as SugarCrepe, where CounterCurate outperforms GPT-4V. To facilitate future research, we release our code, dataset, benchmark, and checkpoints at https://countercurate.github.io.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Text-to-Image Retrieval | Flickr30K | R@123.94 | 531 | |
| Image-to-Text Retrieval | Flickr30K | R@126.4 | 429 | |
| Object Detection | COCO | mAP25.53 | 137 | |
| Compositional Reasoning | SugarCrepe | Overall Accuracy82.8 | 50 | |
| Compositional Scene Understanding | Winoground | Text Alignment Score24 | 44 | |
| Visual Task Adaptation | VTAB | VTAB Mean Accuracy38.19 | 31 | |
| Vision-Language Compositional Reasoning | SugarCrepe++ | Accuracy55.3 | 20 | |
| Image Classification | ImageNet-1K | Top-1 Accuracy43.98 | 15 | |
| Compositional Understanding | SugarCrepe | Accuracy79.07 | 15 | |
| Text-to-Image Compositional Understanding | SugarCrepe++ T2I | Accuracy50.05 | 15 |