Reinforcement learning improves rare class recognition in visual models
TARS: Extending Reinforcement Learning Gains to the Long Tail under Limited Data for Domain-Specific Visual Recognition
Computer Vision and Pattern RecognitionArtificial Intelligence
Summary
Machine learning models that identify plants or animals often struggle with classes that have very few examples in their training data. The authors show that simply fine-tuning large models can make them too focused on common classes and perform poorly on rare ones. They propose a new method called TARS that uses reinforcement learning to pay extra attention to these rare, hard-to-recognize classes. Their experiments show that TARS helps the model get better at recognizing rare classes without losing overall accuracy.
What this means in practice
- •For biodiversity monitoring teams: Improve identification of rare species in camera trap or drone images where training data is limited and unbalanced.
- •For precision agriculture teams: Enhance detection of unusual plant conditions or pest species from limited domain-specific visual data using tailored reinforcement learning.
Authors
Beomchan Park, Seongho Kim, Yong Man Ro
Abstract
Visual recognition in domain-specific applications, such as biodiversity research and agriculture, often suffers from limited and imbalanced training data. Large Vision-Language Models (LVLMs) offer a promising starting point with rich visual and semantic knowledge acquired through web-scale pretraining, but naive supervised fine-tuning (SFT) on such data can cause them to overfit to head classes. Although reinforcement learning (RL) is reported to generalize better than SFT, our analysis shows that its gains under Group Relative Policy Optimization (GRPO) do not consistently extend to tail classes. To address this limitation, we propose Tailness-aware Advantage ReScaling (TARS), a novel RL-based method that amplifies GRPO advantages for classes that are under-represented and poorly recognized. This amplification is guided by tailness, defined as the product of class rarity in the training data and the per-class error rate of the SFT model. Experiments on four domain-specific classification and detection benchmarks show that TARS consistently improves tail-class performance over SFT and vanilla GRPO, while achieving competitive results on tail classes and the highest overall performance among the compared GRPO methods. TARS also provides further gains when applied on top of imbalance-aware SFT methods, demonstrating that the two approaches are complementary.