Abstract
Few-shot image classification aims to recognize new categories from very few examples. This paper introduces DF-LSL (Data-Efficient Language Shaped Learning), which leverages natural language descriptions during training to enhance visual representations. By treating individual images as distinct prototypes and implementing bi-directional alignment between visual and linguistic features, DF-LSL achieves state-of-the-art performance on benchmarks like ShapeWorld and CUB without requiring text at test time.
Introduction
Generalization remains a core challenge in few-shot learning—identifying the essence of a category from just a handful of images. While human learning is often guided by language (e.g., "this bird has a bright red crest"), standard computer vision models often lack this semantic grounding. Language-Shaped Learning (LSL) addresses this by using descriptions during training. However, previous LSL methods often averaged image features into a single class prototype, discarding fine-grained details. DF-LSL addresses this bottleneck to improve data efficiency.
Methodology
DF-LSL introduces two primary innovations to maximize the utility of limited data:
- Multiple Prototypes: Instead of averaging $K$ images into one vector, DF-LSL treats each support image as an individual prototype. This allows the language model to align with specific visual features of every example.
- Bi-directional Alignment: Beyond standard image-to-language generation, DF-LSL adds a reverse task. Language embeddings (processed via a GRU) are used to classify both support and query images. This forces visual and linguistic information into a shared conceptual space.
The training objective combines image classification, language generation, and cross-modal supervision tasks.
Experiments
The model was evaluated on two benchmarks:
- ShapeWorld: A synthetic dataset for testing abstract concepts and spatial logic (e.g., "a green square to the left of a red circle").
- CUB (Caltech-UCSD Birds): A real-world dataset of 200 bird species, each with ten descriptive sentences.
Results and Analysis
DF-LSL consistently outperformed state-of-the-art baselines across various backbones, including VGG16, Conv4, and ResNet-18.
Key Insights
- Averaging as a Bottleneck: Retaining individual prototypes prevents information loss, which is critical in low-data regimes like 2-shot learning.
- Language as a Structural Guide: By using language representations for classification during training, the visual encoder learns more semantic features, reducing overfitting on noise.
- Efficiency in Scarcity: The largest gains were observed when the number of training images ($K$) was smallest, highlighting the regularizing power of linguistic guidance. On the CUB dataset at $K=2$, DF-LSL outperformed the baseline by 2.29%.
Conclusion and Future Work
While DF-LSL shows significant gains, the authors identified limitations. "Back-translation" (reconstructing pixels from prototypes) and certain negative sampling tasks did not improve performance. Future research will explore more effective auxiliary tasks to bridge the vision-language gap without introducing detrimental noise or complexity.
Summary updated