Specificity-aware reinforcement learning for fine-grained open-world classification
Organizations: University of Trento · Fondazione Bruno Kessler
Abstract
Classifying fine-grained visual concepts under open-world settings, i.e., without a predefined label set, demands models to be both accurate and specific. Recent reasoning Large Multimodal Models (LMMs) exhibit strong visual understanding capability but tend to produce overly generic predictions when performing fine-grained image classification. Our preliminary analysis reveals that models do possess the intrinsic fine-grained domain knowledge. However, promoting more specific predictions (specificity) without compromising correct ones (correctness) remains a non-trivial and understudied challenge. In this work, we investigate how to steer reasoning LMMs toward predictions that are both correct and specific. We propose a novel specificity-aware reinforcement learning framework, SpeciaRL, to fine-tune reasoning LMMs on fine-grained image classification under the open-world setting. SpeciaRL introduces a dynamic, verifier-based reward signal anchored to the best predictions within online rollouts, promoting specificity while respecting the model's capabilities to prevent incorrect predictions. Our out-of-domain experiments show that SpeciaRL delivers the best trade-off between correctness and specificity across extensive fine-grained benchmarks, surpassing existing methods and advancing open-world fine-grained image classification. Code and model are publicly available at https://github.com/s-angheben/SpeciaRL.
Figures & tables
| Fine-grained | Very fine-grained | |||||||||||||||||
| Prediction categorization | Metrics | Prediction categorization | Metrics | |||||||||||||||
| Model | spec. | corr. | HM | spec. | corr. | HM | ||||||||||||
| CaSED [ 8 ] | 0.0% | 43.7% | 10.6% | 24.2% | 0.0% | 21.5% | 0.812 | 0.785 | 0.797 | 0.0% | 0.9% | 13.8% | 56.0% | 0.0% | 29.3% | 0.56 | 0.707 | 0.612 |
| InternVL2.5-4B [ 6 ] | 0.0% | 11.4% | 1.5% | 54.4% | 8.4% | 24.1% | 0.554 | 0.759 | 0.639 | 0.0% | 0.1% | 1.2% | 62.7% | 5.5% | 30.5% | 0.486 | 0.695 | 0.571 |
| InternVL2.5-8B [ 6 ] | 0.7% | 16.7% | 3.3% | 30.6% | 20.7% | 27.9% | 0.575 | 0.721 | 0.624 | 0.0% | 1.2% | 5.7% | 54.5% | 15.6% | 22.9% | 0.476 | 0.771 | 0.589 |
| Qwen2.5VL-3B [ 3 ] | 0.8% | 17.3% | 2.7% | 53.4% | 4.2% | 21.5% | 0.608 | 0.785 | 0.685 | 0.1% | 1.1% | 3.9% | 75.1% | 2.4% | 17.4% | 0.511 | 0.826 | 0.631 |
| Fine-grained | Very fine-grained | |||||||
| Model | TI | LI | SS | CS | TI | LI | SS | CS |
| Retrieval-based baselines | ||||||||
| CASED | 27.4 | 46.6 | 60.7 | 61.7 | 0.7 | 47.1 | 38.5 | 38.5 |
| CLIP retrieval | 32.4 | 45.4 | 42.9 | 65.4 | 7.0 | 18.1 | 39.7 | 56.1 |
| Non-reasoning LMMs | ||||||||
| IDEFICS2 8B | 3.0 | 49.9 | 38.0 | 41.7 | 0.0 | 67.0 | 29.6 | 33.6 |
| Prediction categorization | Metrics | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Model | spec. | corr. | HM | ||||||
| (1) | 4.6% | 52.2% | 5.0% | 16.2% | 0.0% | 21.5% | 0.875 | 0.785 | 0.825 |
| (1) (0.75) | 4.9% | 62.6% | 5.6% | 10.4% | 0.0% | 16.4% | 0.919 | 0.836 | 0.875 |
| (1) (0.75) (0.5) | 3.6% | 61.1% | 5.1% | 17.7% | 0.0% | 12.6% | 0.884 | 0.874 | 0.878 |
| (1) (0.75) (0.5) (0.25) | 1.4% | 63.9% | 6.7% | 11.5% | 0.0% | 16.5% | 0.911 | 0.835 | 0.871 |
| SpeciaRL-7B (dynamic reward) | 5.6% | 63.4% | 5.1% | 10.7% | 0.0% | 15.2% | 0.920 | 0.848 | 0.883 |
| Prediction categorization | Metrics | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| N rollouts | spec. | corr. | HM | ||||||
| 5 | 5.5% | 63.6% | 5.8% | 9.5% | 0.0% | 15.6% | 0.925 | 0.844 | 0.883 |
| 10 | 5.6% | 63.4% | 5.1% | 10.7% | 0.0% | 15.2% | 0.920 | 0.848 | 0.883 |
| 15 | 4.6% | 50.4% | 3.7% | 22.2% | 0.0% | 19.0% | 0.848 | 0.810 | 0.824 |
Appendix figures & tables25 assets
Supplementary material from the paper’s appendix.
Appendix
| Fine-grained | ||||||||||
| Prediction categorization | Metrics | |||||||||
| Dataset | Model | spec. | corr. | HM | ||||||
| Flowers102 [ 35 ] | CaSED [ 8 ] | 0.0% | 57.4% | 8.4% | 14.7% | 0.0% | 19.4% | 0.883 | 0.806 | 0.842 |
| InternVL2.5-4B [ 6 ] | 0.2% | 15.8% | 1.8% | 29.8% | 20.0% | 32.4% | 0.551 | 0.676 | 0.607 | |
| InternVL2.5-8B [ 6 ] | 0.4% | 26.4% | 3.3% | 15.1% | 13.2% | 41.6% | 0.688 | 0.584 | 0.632 | |
| Qwen2.5VL-3B [ 3 ] | 0.1% | 26.6% | 2.7% | 49.6% | 1.9% | 19.2% | 0.668 | 0.808 | 0.731 | |
| Very fine-grained | ||||||||||
| Prediction categorization | Metrics | |||||||||
| Dataset | Model | spec. | corr. | HM | ||||||
| FGVCAircraft [ 34 ] | CaSED [ 8 ] | 0.0% | 1.6% | 13.9% | 37.7% | 0.0% | 46.8% | 0.580 | 0.532 | 0.555 |
| InternVL2.5-4B [ 6 ] | 0.0% | 0.0% | 0.2% | 66.0% | 8.5% | 25.3% | 0.472 | 0.747 | 0.579 | |
| InternVL2.5-8B [ 6 ] | 0.1% | 2.2% | 1.3% | 59.1% | 13.0% | 24.4% | 0.476 | 0.756 | 0.584 | |
| Qwen2.5VL-3B [ 3 ] | 0.2% | 1.6% | 1.4% | 82.4% | 0.3% | 14.1% | 0.514 | 0.859 | 0.643 | |
| In-domain | ||||||||||
| Prediction categorization | Metrics | |||||||||
| Dataset | Model | spec. | corr. | HM | ||||||
| CUB [ 50 ] | Qwen2.5VL-7B [ 3 ] | 0.2% | 23.0% | 15.9% | 48.1% | 2.0% | 11.0% | 0.669 | 0.890 | 0.764 |
| Qwen2.5VL-7B (“Be specific”) | 0.2% | 32.2% | 13.7% | 35.3% | 2.6% | 16.1% | 0.726 | 0.839 | 0.779 | |
| Qwen2.5VL-7B ( sft ) | 0.1% | 80.4% | 0.7% | 0.3% | 0.0% | 18.5% | 0.996 | 0.815 | 0.896 | |
| Qwen2.5VL-7B ( rft ) | 1.0% | 92.7% | 0.0% | 0.0% | 0.0% | 6.3% | 1.000 | 0.937 | 0.968 | |
| Fine-grained | Very fine-grained | |||||
|---|---|---|---|---|---|---|
| spec. | corr. | HM | spec. | corr. | HM | |
| (“Be specific”) | 0.816 | 0.832 | 0.822 | 0.652 | 0.89 | 0.751 |
| (v1) | 0.840 | 0.830 | 0.834 | 0.688 | 0.885 | 0.772 |
| (v2) | 0.814 | 0.849 | 0.830 | 0.637 | 0.902 | 0.746 |
| (v3) | 0.884 | 0.764 | 0.819 | 0.777 | 0.832 | 0.799 |
| Fine-grained | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Prediction categorization | Metrics | |||||||||
| Test set | Training set | spec. | corr. | HM | ||||||
| Flowers102 [ 35 ] | Flowers102 | 0.0% | 82.5% | 2.7% | 1.8% | 0.0% | 12.9% | 0.982 | 0.871 | 0.923 |
| Food101 | 0.1% | 66.5% | 4.3% | 10.4% | 0.0% | 18.7% | 0.923 | 0.813 | 0.864 | |
| OxfordPets | 0.2% | 72.8% | 6.5% | 4.7% | 0.0% | 15.8% | 0.953 | 0.842 | 0.894 | |
| CUB | 13.6% | 69.2% | 5.0% | 1.7% | 0.0% | 10.5% | 0.976 | 0.895 | 0.934 | |
| Prediction categorization | Metrics | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Sample size | spec. | corr. | HM | ||||||
| 100 | 0.1% | 53.1% | 4.6% | 8.7% | 0.0% | 33.5% | 0.917 | 0.665 | 0.771 |
| 1000 | 0.2% | 69.7% | 5.4% | 7.7% | 0.0% | 17.1% | 0.938 | 0.829 | 0.880 |
| 2000 | 0.9% | 91.6% | 0.0% | 0.0% | 0.0% | 7.5% | 1.000 | 0.925 | 0.961 |
| 3000 | 0.6% | 92.7% | 0.0% | 0.0% | 0.0% | 6.7% | 1.000 | 0.933 | 0.965 |
| Prediction categorization | Metrics | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Sample size | spec. | corr. | HM | ||||||
| 100 | 2.5% | 64.9% | 6.8% | 7.6% | 0.2% | 18.0% | 0.930 | 0.820 | 0.872 |
| 1000 | 3.2% | 66.5% | 6.2% | 7.9% | 0.0% | 16.2% | 0.933 | 0.838 | 0.883 |
| 2000 | 6.0% | 64.8% | 6.2% | 6.4% | 0.1% | 16.6% | 0.941 | 0.834 | 0.884 |
| 3000 | 5.6% | 63.4% | 5.1% | 10.7% | 0.0% | 15.2% | 0.920 | 0.848 | 0.883 |
| CUB | Fine-grained | Very fine-grained | |||||||
|---|---|---|---|---|---|---|---|---|---|
| spec. | corr. | HM | spec. | corr. | HM | spec. | corr. | HM | |
| CUB | 1.000 | 0.933 | 0.965 | 0.920 | 0.848 | 0.833 | 0.818 | 0.855 | 0.830 |
| Mixed | 0.995 | 0.889 | 0.939 | 0.963 | 0.878 | 0.918 | 0.863 | 0.860 | 0.852 |
| Prediction categorization | Metrics | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| RL method | spec. | corr. | HM | ||||||
| GRPO [ 40 ] | 4.6% | 52.2% | 5.0% | 16.2% | 0.0% | 21.5% | 0.875 | 0.785 | 0.825 |
| SpeciaRL (GRPO) | 5.6% | 63.4% | 5.1% | 10.7% | 0.0% | 15.2% | 0.920 | 0.848 | 0.883 |
| Dr.GRPO [ 32 ] | 8.6% | 59.3% | 6.5% | 5.3% | 0.2% | 20.1% | 0.942 | 0.799 | 0.864 |
| SpeciaRL (Dr.GRPO) | 6.6% | 64.4% | 6.0% | 4.9% | 0.0% | 18.2% | 0.951 | 0.818 | 0.879 |
| DAPO [ 55 ] | 7.3% | 61.0% | 7.1% | 3.2% | 0.4% | 21.0% | 0.951 | 0.790 | 0.862 |
| Fine-grained | Very fine-grained | |||
| AR | AR | |||
| Qwen3-30B | 0.90 | 0.84 | 0.92 | 0.82 |
| Llama3-7B | 0.75 | 0.64 | 0.69 | 0.48 |
| ( ) | 0.94 | 0.91 | 0.95 | 0.89 |
| ( ) | 0.91 | 0.87 | 0.91 | 0.80 |
| ( ) | 0.90 | 0.85 | 0.90 | 0.76 |
| Prediction categorization | Metrics | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| spec. | corr. | HM | |||||||
| 0% | 3.2% | 66.5% | 6.2% | 7.9% | 0.0% | 16.2% | 0.933 | 0.838 | 0.883 |
| 5% | 5.6% | 65.3% | 6.4% | 5.4% | 0.0% | 17.3% | 0.946 | 0.827 | 0.882 |
| 10% | 3.3% | 64.7% | 6.6% | 8.4% | 0.0% | 16.9% | 0.928 | 0.831 | 0.877 |
| 25% | 2.0% | 64.5% | 6.6% | 10.5% | 0.0% | 16.4% | 0.916 | 0.836 | 0.874 |
Image Classification
Image classification assigns semantic labels to images, enabling recognition of objects, scenes, conditions, and fine-grained categories.
See all 391 papers