VL-LTR: Learning Class-wise Visual-Linguistic Representation for Long-Tailed Visual Recognition

Changyao Tian, Wenhai Wang, Xizhou Zhu, Jifeng Dai, Yu Qiao

Abstract

Recently, computer vision foundation models such as CLIP and ALIGN have shown impressive generalization capabilities on various downstream tasks. However, their ability to handle long-tailed data—where a few classes dominate and many others have very few samples—remains to be proven. In this work, we present VL-LTR, a novel framework based on pre-trained visual-linguistic models for long-tailed recognition (LTR). We conduct empirical studies on the benefits of introducing text modality for LTR tasks. VL-LTR learns visual representations from images and corresponding linguistic representations from noisy class-level text descriptions collected from the Internet. This approach effectively uses the learned visual-linguistic representation to improve recognition performance, especially for classes with fewer samples. Our method achieves 77.2% overall accuracy on ImageNet-LT, significantly outperforming previous best methods by over 17 points.

Addressing the Long-Tail Challenge

In real-world scenarios, visual data is often distributed in a "long-tail" manner: a small number of "head" classes have abundant samples, while a vast majority of "tail" classes have very few. Standard deep learning models tend to be biased toward head classes, leading to poor performance on rare categories. Traditional solutions typically involve re-sampling the data or re-weighting the loss function to balance the influence of different classes.

VL-LTR takes a different approach by incorporating text modality. While a tail class might lack sufficient images, detailed textual descriptions (e.g., from Wikipedia) provide high-level, abstract priors that can guide the model. For instance, a rare bird might only have a few photos, but its "conical beak" and "light blue lower half" are well-documented in text.

The VL-LTR Framework

The proposed framework operates in two distinct stages to bridge the gap between visual and linguistic information.

The VL-LTR framework consists of two stages: Class-wise Visual-Linguistic Pre-training (CVLP) and Language-Guided Recognition (LGR).

1. Class-wise Visual-Linguistic Pre-training (CVLP)

Instead of instance-level alignment, CVLP focuses on aligning images with text at the class level. The model learns to pull image embeddings and text embeddings of the same class closer in a shared latent space. To maintain the generalization power of large-scale foundation models, the authors employ Knowledge Distillation from a frozen CLIP model, ensuring the visual encoder doesn't overfit to the limited long-tailed dataset.

2. Language-Guided Recognition (LGR)

The LGR head serves as the inference mechanism. Recognizing that internet-scraped text can be noisy, the authors introduce Anchor Sentence Selection (AnSS). This strategy filters out non-descriptive sentences (e.g., historical facts) and identifies the most visually discriminative "anchor sentences." During recognition, an attention mechanism allows the query image to interact with these anchor sentences, leveraging linguistic knowledge to refine the final classification.

Experimental Results

The authors evaluated VL-LTR on major benchmarks including ImageNet-LT, Places-LT, and iNaturalist 2018. The results demonstrate a significant leap in performance over existing state-of-the-art methods.

Performance comparison on ImageNet-LT. VL-LTR significantly outperforms existing methods across Overall, Few, Medium, and Many class splits.

On ImageNet-LT, VL-LTR achieved a staggering 77.2% overall accuracy using a ViT-Base backbone, representing a 17.2-point improvement over the previous best method (PaCo). Crucially, the gains are most pronounced in the "Few" (tail) classes, where accuracy rose significantly compared to baseline methods, proving that linguistic information can effectively compensate for a lack of visual data.

Key Insights

  • Text as a Stable Prior: Visual features are often concrete and low-level, making them hard to generalize from few samples. Text provides abstract, high-level descriptions that serve as a stable prototype for recognition.
  • Class-Level Alignment: Aligning modalities at the class level is more effective for categorization tasks than the instance-level alignment used in general-purpose models like CLIP.
  • Filtering Noisy Knowledge: Not all text is useful. The AnSS strategy is vital for selecting sentences that actually describe visual traits, ensuring the model isn't confused by irrelevant information.

Conclusion and Future Work

VL-LTR proves that "reading" about a class can effectively compensate for a lack of visual examples. While the current model relies on a two-stage process and high-quality text corpora like Wikipedia, it sets a new standard for long-tailed recognition. Future work may focus on end-to-end training pipelines and expanding the framework to domains where textual descriptions are less readily available.

Summary updated

BibTeX
@inproceedings{tian2022vl,
  author = {Changyao Tian and Wenhai Wang and Xizhou Zhu and Jifeng Dai and Yu Qiao},
  title = {{VL-LTR: Learning Class-wise Visual-Linguistic Representation for Long-Tailed Visual Recognition}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=_u6EJEJwmV},
}
Figure