G2D: Generative-to-Discriminative Collaborative Inference for Zero-Shot Image Classification
Organizations: Xidian University Xi’an, Shaanxi, China
Abstract
Zero-shot classification needs efficient label retrieval and fine-grained visual reasoning, yet discriminative and generative vision-language models fail in complementary ways.When CLIP's top-1 prediction is wrong, the correct label often remains in its top- shortlist, making disambiguation rather than recall the key challenge.Standalone generative models, however, are hindered by large label spaces and unconstrained outputs.This complementarity motivates separating broad candidate retrieval from fine-grained, image-grounded verification.We propose G2D, a training-free framework that uses a generative VLM to verify CLIP-retrieved candidates against the image.Candidate names and CLIP probabilities provide a structured prior for resolving visually similar classes.Fixed confidence routing, entropy-adaptive candidate sizing, and trie-constrained decoding focus generative reasoning on uncertain samples and ensure one valid output for each input at test time.Across eight benchmarks, G2D achieves 68.85% average accuracy, versus 59.35% for CLIP and 63.11% for the standalone VLM.Across seven generator configurations, candidate-set verification improves average accuracy by 1.08--27.42 percentage points.G2D also transfers to DCLIP, WaffleCLIP, and CuPL, supporting a practical interface between discriminative proposal and generative visual reasoning. Code: https://github.com/Harzva/G2D
Figures & tables
| Method | DTD | CUB200 | Oxford-Pets | EuroSAT | Food101 | Places365 | ImageNetV2 | ImageNet | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| CLIP ViT-B/16-only | 44.27 | 54.97 | 87.27 | 42.30 | 83.69 | 34.53 | 60.93 | 66.84 | 59.35 |
| Qwen3-VL-8B (Gene-only) | 67.97 | 44.70 | 85.75 | 48.93 | 84.82 | 36.38 | 65.32 | 71.01 | 63.11 |
| Verifier-only (no routing) | 52.19 | 59.54 | 90.00 | 47.81 | 87.31 | 37.11 | 66.52 | 73.00 | 64.19 |
| G2D (strict/no-label) | 67.97 | 63.39 | 90.41 | 58.09 | 88.51 | 38.52 | 68.41 | 75.52 | 68.85 |
| G2D (label-calibrated analysis) | 67.67 | 59.68 | 91.66 | 51.00 | 87.90 | 38.03 | 69.03 | 75.29 | 67.53 |
| Method | VLM route | Model stack |
|---|---|---|
| CLIP-only | 0% | 150M; no VLM |
| Qwen-only | 100% | Qwen3-VL-8B |
| Verifier-only | 100% | CLIP + Qwen3-VL-8B |
| G2D | 22.9–85.8% | CLIP + Qwen3-VL-8B |
| Var. | Cfg. | DTD | CUB200 | Oxford-Pets | EuroSAT | Avg. |
|---|---|---|---|---|---|---|
| Qwen-only | 67.97 | 44.70 | 85.75 | 48.93 | 61.84 | |
| CLIP | Base | 44.27 | 54.97 | 87.27 | 42.30 | 57.20 |
| R | 63.24 | 58.68 | 91.66 | 56.14 | 67.43 | |
| ( +18.97 , -4.73 ) | ( +3.71 , +13.98 ) | ( +4.39 , +5.91 ) | ( +13.84 , +7.21 ) | ( +10.23 , +5.59 ) | ||
| NR | 64.18 | 58.61 | 92.07 | 56.26 | 67.78 | |
| ( +19.91 , -3.79 ) | ( +3.64 , +13.91 ) | ( +4.80 , +6.32 ) | ( +13.96 , +7.33 ) | ( +10.58 , +5.94 ) | ||
Zero-Shot Image Classification
Zero-shot image classification uses semantic descriptions and pretrained visual representations to recognize image classes without labeled examples.
See all 49 papers