TARS: Extending Reinforcement Learning Gains to the Long Tail under Limited Data for Domain-Specific Visual Recognition

Beomchan Park, Seongho Kim, Yong Man RoarXiv 2026

TL;DR

Reinforcement learning is supposed to help Large Vision-Language Models generalize better than standard fine-tuning, yet on imbalanced, real-world datasets, it frequently leaves rare "long-tail" classes behind. TARS (Tailness-aware Advantage ReScaling) fixes this by turning up the volume on learning signals for classes that are both rare in the dataset and genuinely confusing to the model. The result is a crisp, virtually zero-overhead boost in recognizing rare species and agricultural pests—without sacrificing performance on common ones.

What Problem Does This Paper Address?

Nature does not distribute data evenly. If you are building a visual recognition system for biodiversity or agriculture, you will quickly drown in photos of common squirrels and aphids while starving for examples of elusive damselflies.

Large Vision-Language Models (LVLMs)—models pretrained on massive web data that can "see" images and "speak" text—are great starting points when domain-specific data is scarce. Typically, we adapt them using Supervised Fine-Tuning (SFT), teaching the model to imitate ground-truth labels. Unsurprisingly, SFT tends to memorize and overfit to the abundant "head" classes.

Recently, Reinforcement Learning (RL) using Group Relative Policy Optimization (GRPO)—where a model generates multiple guesses for an image and learns by comparing which guesses got higher rewards—has been celebrated for generalizing better than SFT. You might hope GRPO would naturally rescue those rare "tail" classes.

The authors show it doesn't. Because GRPO still samples training images uniformly, common classes dominate policy updates. Furthermore, GRPO normalizes rewards within the guesses for a single image, remaining completely blind to how rare a class is globally or whether the model is failing at it overall. In fact, vanilla GRPO often makes tail-class performance worse than SFT!

Figure 1: Gain over the CE loss SFT baseline, broken down by class frequency in the training data. Vanilla GRPO does not consistently improve performance on tail classes and sometimes un- derperforms SFT, while TARS achieves higher tail-class and overall performance than both SFT and vanilla GRPO on every benchmark. IP102 is reported in [email protected] and the others in accuracy.

Methods

Enter TARS, an elegant modification to the standard SFT-then-GRPO pipeline.

First, the standard setup: an LVLM (Qwen2.5-VL-3B) undergoes SFT, followed by GRPO using verifiable rewards—exact text matching of species names for classification, and bounding-box overlap (IoU) plus label matching for object detection (skipping explicit "chain-of-thought" reasoning traces, which prior work shows isn't always helpful for pure visual perception).

Here is what’s new: before RL begins, TARS runs a single pass over the training set using the SFT model to calculate a fixed score for every class called tailness.

  • Tailness is defined as (Class Rarity × SFT Error Rate)$^\gamma$, normalized by the median score across all classes.
  • Why the product? Because rarity alone isn't enough. If a rare bird has neon-pink feathers, the model might already nail it 100% of the time—no need to over-amplify it. Conversely, a rare pest that looks like a twig will have both high rarity and a high error rate.
Figure 2: Overview of TARS. Class tailness is computed once before RL from class rarity and the SFT model’s recognition error, then normalized by its median across classes. During RL, these fixed scores rescale GRPO advantages through max(1, ˜tc), amplifying signals for classes with above- median tailness while retaining the original scale for the rest.

During GRPO training, TARS looks up the ground-truth class of the training query in this frozen table and applies one-sided rescaling:

  • If a class's calibrated tailness is $\le 1$ (common or already well-learned), its GRPO advantage is untouched.
  • If tailness is $> 1$, its GRPO advantage is multiplied by that tailness score (for multi-class detection images, weights of present classes are averaged).

When a rare, poorly understood species finally shows up in a training batch, TARS megaphones its gradient update to compensate for how seldom the model gets to see it.

Datasets

To test domain-specific recognition under scarce (< 20,000 training images) and heavily skewed data (imbalance factors > 10), the authors evaluate on four open-world benchmarks where models must generate class names as free-form text without a multiple-choice list:

  • iNat-Sciuridae & iNat-Coenagrionidae: Two family-level subsets (squirrels and damselflies) from iNaturalist-2018 for classification.
  • CUB-LT: A long-tailed bird classification dataset derived from CUB-200-2011.
  • IP102: An agricultural pest dataset used here for object detection. (A long-tailed variant of PlantDoc is also briefly noted in the appendix).

Key Insights and Ideas

  • Rarity $\times$ Error is the sweet spot: Ablation studies show that multiplying rarity and model error beats using rarity alone, error alone, or adding them together. It focuses the RL budget strictly on classes that are both under-exposed and poorly recognized.
  • Keep tailness frozen (Static > Dynamic): You might think updating error rates after every RL epoch ("dynamic tailness") would be smarter. Surprisingly, static tailness works better on rare classes! As the model starts memorizing the few training examples of a rare class, its training error drops, causing dynamic weighting to prematurely let off the gas before true generalization happens. Plus, static tailness adds 0% runtime overhead during RL.
  • SFT and RL imbalance fixes stack: Even if you already use classic imbalance-fighting tricks during SFT—like Focal Loss or class-balanced sampling—adding TARS during RL still yields substantial gains. They are complementary, not redundant.

Key Results

Across all four benchmarks, TARS consistently outperforms both SFT baselines and vanilla GRPO on tail ("Few") classes and overall ("All") performance:

  • Classification: Starting from standard Cross-Entropy SFT, TARS boosts Few-class accuracy over vanilla GRPO by +6.3, +3.4, and +2.8 percentage points on iNat-Sciuridae, iNat-Coenagrionidae, and CUB-LT, respectively, while losing at most 1.1 points on abundant "Many" classes. Stacking TARS on top of class-balanced SFT on iNat-Coenagrionidae jumps Few-class accuracy from 43.5% to 51.7%.
  • Object Detection (IP102): While vanilla GRPO actually degrades Few-class F1 scores below the SFT baseline (dropping from 23.8% to 23.5% on CE SFT, and 31.1% to 25.7% on Focal Loss SFT), TARS lifts them to 27.7% and 35.3% (+4.2 and +9.6 points over vanilla GRPO).
  • Beating RL Baselines: TARS achieves higher overall performance than other imbalance- and difficulty-aware RL methods (like DISCO, DRPO, and DiVE-k), which rely on noisy batch-level or prompt-level statistics rather than global class-level signals. Qualitatively, where baselines lazily guess common labels like generic aphids, TARS pinpoints specific rare species like Toxoptera citricidus.

Limitations and Future Work

  • The Zero-Advantage Trap: Like vanilla GRPO, if the model gets all guesses right or all guesses wrong for an image, the variance is zero, the advantage is zero, and multiplying zero by a big tailness score still gives zero. TARS relies on the SFT checkpoint being just competent enough to generate mixed rollouts (which happened for 59% of Few-class queries on iNat-Sciuridae).
  • Noisy Error Estimates: If a tail class only has one or two training images, estimating its SFT error rate is inherently noisy. Investigating robustness to this estimation noise is an open question.
  • Need for Explicit Labels: TARS requires clean class labels to count frequencies and errors. However, the authors note this core principle—amplifying RL advantages based on group rarity and initial error—could be extended to broader tasks with looser definitions of "groups" or domains.

Summary updated

BibTeX
@misc{park2026tars,
  author = {Beomchan Park and Seongho Kim and Yong Man Ro},
  title = {{TARS: Extending Reinforcement Learning Gains to the Long Tail under Limited Data for Domain-Specific Visual Recognition}},
  year = {2026},
  eprint = {2611.37281},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37281},
}
Figure