[KongchangAI]
· 2 min read· 1,167 words

TARS: A New Method That Makes Reinforcement Learning Truly Benefit Long-Tail Categories in Visual Recognition

TARS: A New Method That Makes Reinforcement Learning Truly Benefit Long-Tail Categories in Visual Recognition

TARS amplifies tail-class advantage values in GRPO to make RL fine-tuning improve long-tail recognition more fairly.

Aiming at limited training data and severely imbalanced class distributions in vertical-domain visual recognition, this study notes that SFT easily overfits head classes and GRPO's generalization gains cannot reliably extend to tail classes. It proposes TARS, which defines "Tailness" as the product of class rarity and SFT error rate and uses it to amplify GRPO advantage values for tail classes, directing policy gradient signals more precisely to classes that need improvement. On four vertical-domain benchmarks, TARS consistently improves tail-class performance without degrading overall performance and can be stacked with imbalance-aware SFT methods, offering an RL-stage supplement for long-tail visual recognition.

In vertical domains such as biodiversity research and agriculture, visual recognition models often face the dilemma of limited training data and severely imbalanced class distributions. Large vision-language models (LVLMs), with the rich visual and semantic knowledge gained from web-scale pre-training, provide a solid starting point for such tasks. However, directly performing supervised fine-tuning (SFT) on this kind of data causes the model to quickly overfit to head classes, resulting in poor recognition of long-tail categories.

A recent study from rss proposes TARS (Tailness-aware Advantage ReScaling), attempting to solve the problem of uneven gains from reinforcement learning in long-tail scenarios. The work points out that although reinforcement learning (RL) is generally considered to generalize better than SFT, under the Group Relative Policy Optimization (GRPO) framework its benefits do not reliably extend to tail classes. TARS amplifies the GRPO advantage values of underrepresented and poorly recognized classes, allowing RL improvements to cover the long tail more fairly.

TARS method overview

Why Do Neither SFT nor GRPO Take Care of the Long Tail?

SFT optimizes the overall loss on class-imbalanced data, and the model tends to preferentially fit head classes with large sample sizes. Even if overall accuracy improves, the error rate on tail classes remains high. The authors' analysis finds that although GRPO shows better generalization than SFT, its advantage estimation mechanism does not treat tail classes specially. When a tail class has very few samples and the SFT model has a high error rate on that class, the advantage signal produced by GRPO remains weak, making it difficult to drive the model to focus on correcting these errors.

In other words, RL's "better generalization" is a conclusion in the average sense, and it does not automatically hold under long-tail distributions. The starting point of TARS is precisely to inject the prior knowledge of "which classes need more attention" into the advantage computation of RL.

GRPO (Group Relative Policy Optimization) is a reinforcement learning algorithm proposed by DeepSeekAd in 2024, commonly used for large model alignment and reasoning capability improvement. Unlike PPO, GRPO does not require training a separate value network (critic); instead, it samples a group of outputs for the same input and uses the mean reward within the group as the baseline to compute the advantage value of each output. This "intra-group relative" design greatly reduces memory and computation overhead while maintaining the stability of policy gradients. In vision-language model fine-tuning, GRPO typically drives model optimization with task rewards (such as classification correctness). However, GRPO's advantage computation is a relative value in the intra-group average sense and does not explicitly consider class frequency; therefore, under long-tail distributions, the advantage signals of rare classes are naturally weak, and this is exactly the link that TARS intervenes in.

The Core of TARS: Reweighting Advantages with Tailness

The key design of TARS is to define a metric called "Tailness", which is obtained by multiplying two factors: the rarity of the class in the training data and the error rate of the SFT model on that class. Classes with high rarity and high error rates have larger Tailness values, meaning they are both long-tail at the data level and where the model currently performs poorly.

During GRPO updates, TARS amplifies advantage values according to Tailness, making the policy gradient signals of tail classes stronger. This amplification is not a blind increase in the weights of all rare classes; rather, it incorporates the model's actual error situation—if a rare class is already well recognized by the model, its Tailness decreases due to the low error rate, avoiding overcompensation. This design directs limited data and computational resources more precisely to the classes that truly need improvement.

In policy gradient methods, the advantage function measures how good an action is relative to the baseline, and it directly determines the direction and strength of policy updates. The larger the advantage value, the higher the probability that the action is reinforced. GRPO obtains advantages through intra-group reward standardization, allowing samples within the same group to be compared with each other. TARS's reweighting is essentially multiplying the advantage value by a class-related coefficient, thereby changing the proportion of each class's contribution to gradient updates. This approach is a variant of "importance weighting", but the weights do not come from sampling probabilities; instead, they come from a joint prior of the data distribution and the model error rate, making them more targeted.

Experimental Performance: Tail Classes Improve Without Overall Degradation

The authors evaluate TARS on classification and detection benchmarks in four vertical domains. The results show that compared with SFT and original GRPO, TARS achieves consistent improvements in tail-class performance, reaches a competitive level on tail classes, and obtains the highest overall performance among the compared GRPO methods. This shows that focusing on the long tail does not require sacrificing head or overall performance.

Another noteworthy conclusion is that TARS can be stacked with existing imbalance-aware SFT methods and bring additional gains. This means TARS is not intended to replace data-level resampling or loss reweighting, but serves as a supplementary means at the RL stage, complementing them. For teams actually deploying visual systems in vertical domains, this composability lowers the barrier to adoption.

Implications for Domain Applications

Scenarios such as biodiversity recognition and agricultural disease detection share a common feature: the rare classes are precisely the ones that most need to be correctly recognized in business terms, yet they account for an extremely low proportion of the data. TARS provides a path to directly intervene in advantage signals during the RL fine-tuning stage, without the need to collect large amounts of additional tail data or rely on complex model architecture changes.

The method's validation is currently concentrated on four domain benchmarks, and its performance on larger-scale LVLMs and more task types remains to be observed. But it at least reveals an important direction: the value of reinforcement learning in vertical domains depends not only on the algorithm itself, but also on whether the long-tail structure of the data distribution is explicitly incorporated into the optimization objective.

One-line Summary

TARS amplifies the advantage values of tail classes in GRPO, enabling reinforcement learning fine-tuning to improve long-tail recognition performance more fairly.

Paragraph Summary

Aiming at the problem of limited training data and severely imbalanced class distributions in vertical-domain visual recognition, this study points out that supervised fine-tuning (SFT) easily overfits head classes, while the generalization gains of GRPO reinforcement learning cannot reliably extend to tail classes. To this end, it proposes the TARS method, which defines a "Tailness" metric as the product of class rarity and SFT error rate, and accordingly amplifies the GRPO advantage values of tail classes, making policy gradient signals flow more precisely to the classes that truly need improvement. On classification and detection benchmarks in four vertical domains, TARS consistently improves tail-class performance without degrading overall performance, and can also be stacked with imbalance-aware SFT methods, providing a supplementary means at the RL stage for long-tail visual recognition.

#TARS#reinforcement learning#long-tail recognition#GRPO#vision-language models#supervised fine-tuning#vertical-domain visual recognition
Share:

Related articles