NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning to Segment the Tail

Xinting Hu, Yi Jiang, Kaihua Tang, Jingyuan Chen, Chunyan Miao, Hanwang Zhang · DOI · OpenReview

Abstract

Real-world visual recognition requires handling the extreme sample imbalance in large-scale long-tailed data. We propose a "divide&conquer" strategy for the challenging LVIS task: divide the whole data into balanced parts and then apply incremental learning to conquer each one. This derives a novel learning paradigm: class-incremental few-shot learning, which is especially effective for the challenge evolving over time: 1) the class imbalance among the old-class knowledge review and 2) the few-shot data in new-class learning. We call our approach Learning to Segment the Tail (LST). In particular, we design an instance-level balanced replay scheme, which is a memory-efficient approximation to balance the instance-level samples from the old-class images. We also propose to use a meta-module for new-class learning, where the module parameters are shared across incremental phases, gaining the learning-to-learn knowledge incrementally, from the data-rich head to the data-poor tail. We empirically show that: at the expense of a little sacrifice of head-class forgetting, we can gain a significant 8.3% AP improvement for the tail classes with less than 10 instances, achieving an overall 2.0% AP boost for the whole 1,230 classes.

Introduction

Visual data in the real world typically follows a long-tail distribution, often described by Zipf’s Law. A small number of "head" classes (e.g., person, chair) appear in thousands of images, while a vast majority of "tail" classes (e.g., drone, lantern) appear only a few times. Standard deep learning models tend to be "greedy," optimizing for data-rich head classes at the expense of rare tail classes.

In instance segmentation, this challenge is compounded because objects do not exist in isolation. A single image might contain both rare and common objects. Traditional solutions like image-level over-sampling or under-sampling often lead to overfitting the tail or underfitting the head. We introduce Learning to Segment the Tail (LST), a framework that treats long-tailed learning as a class-incremental few-shot learning problem.

Methodology: Divide and Conquer

The core of LST is a "divide-and-conquer" strategy. Instead of training on the entire imbalanced dataset simultaneously, we partition the 1,230 classes of the LVIS dataset into balanced "bins" and learn them incrementally.

Overview of the LST framework showing the incremental learning phases from frequent head classes to rare tail classes.

Class-Incremental Few-Shot Learning

The process begins by training a robust model on data-rich base classes. Rarer classes are then introduced in successive phases. To mitigate catastrophic forgetting of previously learned classes, we employ a knowledge distillation mechanism and a novel replay scheme.

Instance-level Balanced Replay (BR)

A significant hurdle in long-tailed instance segmentation is the "co-occurrence trap." Image-level resampling to boost a rare class (e.g., "guitar") often inadvertently over-samples common classes (e.g., "person") that frequently appear in the same images.

Comparison of sampling strategies: (a) image-level re-sampling remains imbalanced, (b) one-instance-per-image is inefficient, and (c) LST's instance-level balanced replay is both balanced and efficient.

LST addresses this through Instance-level Balanced Replay. By specifically sampling instances of old categories rather than entire images, we ensure the training batch remains balanced and avoid reinforcing head-class bias.

Meta Weight Generator (MWG)

For extreme tail classes with fewer than 10 samples, we utilize a meta-learning module. This Meta Weight Generator "learns how to learn" by using features from rare objects and their semantic similarity to well-known base classes to generate weights for the new classifier. This allows the model to transfer knowledge from the data-rich head to the data-poor tail.

Experimental Results

We evaluated LST on the LVIS (Large Vocabulary Instance Segmentation) benchmark, which contains 1,230 categories with extreme imbalance (from >26,000 instances to just 1).

Quantitative Performance

LST achieved a significant 8.3% AP improvement on tail classes (those with <10 instances) compared to the baseline. Across the entire 1,230-class dataset, the method provided an overall 2.0% AP boost.

Efficiency and Qualitative Insights

The Balanced Replay scheme proved more memory-efficient and converged faster than full-dataset retraining. Qualitative analysis using t-SNE visualizations of the Meta Weight Generator showed that semantically similar classes (e.g., "diary" and "diskette") were grouped together in the weight space, confirming successful knowledge transfer.

Conclusion and Future Work

LST demonstrates that treating long-tailed learning as a dynamic, incremental process is highly effective. While it significantly improves tail performance, a minor trade-off in head-class forgetting remains. Future research will focus on refining the balance between head and tail performance and reducing the memory overhead of episodic meta-learning to handle even larger incremental phases.

Summary updated

BibTeX
@inproceedings{hu2020learning,
  author = {Xinting Hu and Yi Jiang and Kaihua Tang and Jingyuan Chen and Chunyan Miao and Hanwang Zhang},
  title = {{Learning to Segment the Tail}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01406},
}
Figure