Abstract
In computer vision applications, such as domain adaptation (DA), few shot learning (FSL) and zero-shot learning (ZSL), we encounter new objects and environments, for which insufficient examples exist to allow for training models from scratch, and methods that adapt existing models, trained on the presented training environment, to the new scenario are required. We propose a novel visual attribute encoding method that encodes each image as a low-dimensional probability vector composed of prototypical part-type probabilities. The prototypes are learnt to be representative of all training data. At test-time we utilize this encoding as an input to a classifier. At test-time we freeze the encoder and only learn/adapt the classifier component to limited annotated labels in FSL; new semantic attributes in ZSL. We conduct extensive experiments on benchmark datasets. Our method outperforms state-of-art methods trained for the specific contexts (ZSL, FSL, DA).
Introduction
Deep Neural Networks (DNNs) typically require massive labeled datasets to achieve high accuracy. However, real-world applications often face data scarcity where labels are limited or non-existent. This paper addresses three such challenging scenarios:
- Few-Shot Learning (FSL): Learning from only a handful of examples per class.
- Zero-Shot Learning (ZSL): Recognizing classes with no image examples, relying instead on semantic descriptions.
- Domain Adaptation (DA): Transferring knowledge from a labeled source domain (e.g., synthetic data) to an unlabeled or sparsely labeled target domain (e.g., real-world imagery).
The authors propose a unified framework based on Low-Dimensional Visual Attribute (LDVA) encoding. Instead of aligning high-dimensional feature spaces—which is computationally intensive and prone to overfitting—LDVA represents images as mixtures of prototypical object parts. This robust, part-based representation generalizes effectively across diverse tasks by freezing the encoder and adapting only a small task-specific predictor.
Methodology: Low-Dimensional Visual Attribute Encoding
The core innovation is the LDVA Encoder, which adopts a "decompose and compose" philosophy. The architecture, illustrated in Figure 1, consists of three primary stages.
1. Part-Feature Extraction
Using a Multi-Attention CNN (MA-CNN), the model identifies $M$ distinct "attention regions" or parts of an object (e.g., a bird’s head, wing, or feet). Features are extracted for each of these regions.
2. Part-Probability Encoding
This stage transforms raw features into a low-dimensional bottleneck. Each part feature is projected onto a dictionary of $K$ "prototypical atoms" (primitive part types). The output is a probability vector ($\pi \in \mathbb{R}^{K \times M}$) representing the mixture of these prototypes. This process is visualized in Figure 2, where bird images are decomposed into parts and then encoded based on prototypical part-types.
3. Task-Specific Prediction
The compact nature of the LDVA encoding allows for simple predictors, such as two-layer fully connected networks. The system is trained end-to-end using a combination of reconstruction loss (via an auto-encoder structure) to ensure representative prototypes and task-specific losses (e.g., cross-entropy for FSL or ranking loss for ZSL). At test time, the encoder is frozen, and only the small predictor is adapted to the new domain or classes.
Experimental Results
The LDVA method was evaluated on several benchmark datasets, demonstrating state-of-the-art performance across all three target tasks.
Few-Shot Learning
On the miniImageNet dataset, the model achieved 78.7% accuracy in the 5-way 5-shot setting, outperforming established methods like Relation Nets and MAML. Its success on Omniglot further confirms its ability to learn from minimal data.
Zero-Shot Learning
The model showed significant improvements on the CUB (birds), AWA2 (animals), and aPY datasets. On CUB, it achieved a harmonic mean (H) of 66.0% using Calibrated Stacking, a notable increase over the previous state-of-the-art of approximately 58%.
Domain Adaptation
In the challenging SVHN $\rightarrow$ MNIST transfer, the model reached 95.2% accuracy. The "joint" encoding strategy effectively reduces the distance between different domains in the feature space by focusing on shared part compositions rather than domain-specific styles.
Discussion and Conclusion
The success of LDVA highlights the importance of compositionality. While entire object classes may change, the underlying "parts" (e.g., textures, shapes) are often shared. By learning a dictionary of these primitives, the model can describe novel objects as unique combinations of known parts, mirroring human cognitive processes.
Furthermore, the low-dimensional bottleneck provides inherent robustness to visual distortions and noise, which is particularly beneficial for domain adaptation. While the model currently uses a fixed number of parts ($M$) and prototypes ($K$), future work could explore dynamic part discovery to better handle objects of varying complexity. In summary, LDVA provides a powerful, unified approach for learning in data-constrained environments by leveraging robust, part-based representations.
Summary updated