Introduction
Few-shot learning (FSL) challenges models to recognize novel categories from extremely limited data. Traditional FSL methods often rely on global pooling, which collapses spatial information and obscures the fine-grained "parts" (e.g., a bird's beak or wings) that define an object. While compositionality—viewing objects as a collection of parts—is a powerful inductive bias, existing methods typically require manual attribute annotations that are difficult to scale.
The Compositional Feature Aggregation (CFA) module addresses this by enforcing semantic and spatial compositionality in a weakly-supervised manner, using only standard category labels. It acts as a plug-and-play component that boosts recognition by teaching models to see objects as a collection of parts and attributes.
Methodology: The CFA Module
The CFA module transforms deep feature maps through three primary stages to preserve spatial structure while remaining translation-invariant:
- Semantic Decomposition: The deep feature map is split along the channel dimension into $N$ disjoint groups. Each group is treated as a "semantic subspace" intended to capture specific object attributes.
- Bilinear Aggregation: Instead of simple pooling, each subspace employs a differentiable version of Vector of Locally Aggregated Descriptors (VLAD). This captures second-order statistics by calculating residuals between local features and learned "semantic prototypes."
- Weakly-supervised Regularization: An orthogonality constraint is applied to the loss function to ensure that learned prototypes within each subspace remain distinct, preventing the model from collapsing into redundant representations.
Experimental Evaluation
The researchers evaluated CFA across image classification and action recognition benchmarks, including miniImageNet, CUB (Caltech-UCSD Birds), Kinetics-CMN, and the Jester hand gesture dataset.
Key Results
CFA consistently outperformed baseline models and previous state-of-the-art methods:
- mini-ImageNet: Achieved 58.5% 1-shot accuracy, significantly higher than ProtoNet (54.1%) and MatchingNet (53.0%).
- Action Recognition: On Kinetics-CMN, CFA reached 69.9% for 1-shot recognition—a massive 14% improvement over ProtoNet.
- Fine-grained Recognition: On the CUB dataset, performance improved as the number of semantic subspaces ($N$) increased, validating the importance of part-based decomposition for distinguishing similar species.
Discussion and Insights
The success of CFA highlights several key principles. By forcing the network to decompose images into parts, the module acts as a powerful regularization tool, preventing overfitting to holistic textures and encouraging the learning of transferable primitives. Splitting the feature space into independent subspaces effectively "disentangles" the representation, making the final descriptor more discriminative.
Limitations and Future Work
The number of subspaces ($N$) remains a fixed hyperparameter (with $N=64$ often being optimal). Future work may explore attention mechanisms to dynamically identify semantic subspaces. Additionally, cross-domain transfer in complex video tasks remains challenging, suggesting that larger source datasets may be required to learn highly generalized semantic sub-features for complex motions.
Summary updated