Improving Few-Shot Image Classification Using Machine- and User-Generated Natural Language Descriptions

Kosuke Nishida, Kyosuke Nishida, Shuichi Nishioka

Introduction

Few-shot learning—the ability to recognize a new concept from only a handful of examples—remains a significant challenge in computer vision. While humans can identify a rare bird species after reading a brief description of its plumage and markings, standard machine learning models typically require thousands of labeled images to achieve similar proficiency. Previous attempts to integrate natural language descriptions into few-shot classification often faltered because machine-generated text is inherently noisy. Rather than aiding the model, inaccurate descriptions frequently degraded performance.

In this paper, the authors introduce LIDE (Learning from Image and DEscription), a multi-modal framework designed to treat natural language as a bridge between raw visual features and conceptual understanding. By effectively fusing visual and textual data, LIDE improves classification accuracy, increases robustness to image degradation, and provides human-readable explanations for its decisions.

The LIDE Architecture

LIDE employs a four-stage pipeline to process and fuse information:

  1. Image Encoder: A convolutional neural network (CNN) extracts high-level visual features from the input image.
  2. Text Decoder: A Transformer-based module "translates" these visual features into a natural language description.
  3. Text Encoder: A BERT-based module converts the description—whether generated by the decoder or provided by a human user—into a dense vector representation.
  4. Feature Fusion & Prediction: A fusion module blends the image and text vectors into a unified multi-modal representation. This representation is then passed to a Prototypical Network (ProtoNet) for final classification.

A key technical innovation in LIDE is the use of weighted average pooling. To mitigate the impact of noisy machine-generated text, the model uses the token generation probabilities from the decoder to weight the importance of words during encoding. This allows the model to prioritize high-confidence terms while ignoring "hallucinated" or low-confidence words. Crucially, this mechanism allows classification loss to back-propagate through the discrete text generation process, overcoming a common bottleneck in multi-modal training.

Experimental Results

The authors evaluated LIDE on the Caltech-UCSD Birds (CUB-200-2011) dataset, a standard benchmark for fine-grained classification consisting of 200 bird species. The primary task was 5-way 1-shot classification, where the model must identify a bird from five possible species given only one training example per class.

LIDE demonstrated significant improvements over both image-only baselines and previous state-of-the-art methods:

  • LIDE (Machine-generated text): 67.53% accuracy
  • RS-FSL (Previous State-of-the-Art): 65.66% accuracy
  • ProtoNet (Image-only baseline): 57.97% accuracy
  • L3 (Text-only classification): 53.96% accuracy

When the model was provided with "Gold" (high-quality human) descriptions, performance jumped to 73.08%. This suggests that LIDE can effectively act as a "human-in-the-loop" system, where expert descriptions significantly refine the model's visual understanding.

Why Text Helps: Manifolds and Robustness

The researchers investigated why the addition of text provides such a substantial boost. They identified two primary mechanisms:

1. Manifold Shrinking

By calculating the Local Intrinsic Dimension (LID), the authors found that multi-modal features exist in a much simpler, lower-dimensional space compared to image-only features. The textual description acts as a "manifold shrinker," helping the model filter out irrelevant background noise and focus on the core attributes (e.g., beak shape, wing color) necessary for classification.

2. Robustness to Visual Noise

Text descriptions serve as a critical safety net when visual data is compromised. In tests where images were converted to grayscale or subjected to adversarial attacks, image-only models failed spectacularly. In contrast, LIDE maintained much higher accuracy by leaning on the textual information. Furthermore, probing tests revealed that certain features—such as intricate "spotted patterns"—are difficult for a CNN to resolve in low-resolution (84x84) images but are easily utilized when explicitly described in text.

Explainability and Limitations

Beyond performance, LIDE offers a unique advantage in explainability. Because the model generates a caption before it classifies, the text serves as a justification for the prediction. The authors observed a positive correlation between the quality of the generated caption and the accuracy of the final prediction, providing a window into the model's "reasoning."

However, the model is not without limitations. LIDE occasionally overfits to the specific linguistic structure of the CUB dataset, struggling to describe highly distinctive features that fall outside common bird-description patterns. Additionally, the current implementation uses a relatively small 4-layer CNN backbone.

Conclusion

LIDE demonstrates that natural language is more than just a label; it is a rich source of structured information that can guide visual learning. By successfully integrating noisy machine-generated text and high-quality human descriptions, LIDE sets a new standard for few-shot classification and paves the way for more interpretable, robust multi-modal AI systems.

Summary updated

BibTeX
@inproceedings{nishida2022improving,
  author = {Kosuke Nishida and Kyosuke Nishida and Shuichi Nishioka},
  title = {{Improving Few-Shot Image Classification Using Machine- and User-Generated Natural Language Descriptions}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-naacl.106},
}
Figure