Abstract
We propose a Multi-level Second-order (MlSo) few-shot learning network designed for both supervised and unsupervised image classification and action recognition. By leveraging power-normalized second-order base learner streams combined with features expressing multiple levels of visual abstraction, the MlSo framework achieves robust performance across diverse benchmarks. Our approach integrates Second-order Pooling (SoP) to handle varying spatial sizes, a Feature Matching (FM) module to adaptively reweight multi-level and multi-scale branches, and a self-supervised discriminator (VALSD) to maintain feature distinctiveness. Experimental results on datasets such as mini-ImageNet, CUB Birds, and UCF101 demonstrate that MlSo significantly outperforms standard first-order methods.
Introduction
Standard deep learning models are notoriously data-hungry, often requiring thousands of labeled examples to achieve high accuracy. Few-shot learning (FSL) seeks to bridge this gap by enabling models to learn new concepts from as few as one or five examples.
Existing FSL paradigms, such as Prototypical Networks, typically rely on "first-order" statistics, which involve averaging feature vectors to create a class representative. However, simple averaging discards complex structural relationships and correlations between features. Furthermore, most models focus exclusively on the final layer of a backbone network, ignoring the rich "fine-to-coarse" hierarchy of visual information—ranging from textures in early layers to object parts in later layers—that is essential for distinguishing visually similar classes.
The MlSo Framework
The Multi-level Second-order (MlSo) pipeline addresses these limitations by capturing rich structural information through second-order statistics across multiple layers of a CNN and multiple image scales.
Core Components
- Second-order Pooling (SoP): Rather than using global average pooling, MlSo computes autocorrelation matrices. This captures how different feature channels correlate, providing a more descriptive "signature" of the image than first-order vectors.
- Power Normalization (PN): Second-order statistics are susceptible to "burstiness," where certain features appear too frequently by chance. We employ a PN operator to suppress this noise, ensuring stable end-to-end training.
- Multi-level & Multi-scale Extraction: Features are extracted from different blocks of the backbone (e.g., ResNet stages) and from images fed at multiple resolutions (1x, 0.5x, 0.25x). This allows the model to match objects regardless of their size or semantic complexity.
- VALSD (Self-Supervised Discriminator): To ensure that multi-level features remain distinct and informative, we introduce a pretext task where the network must predict the specific layer and scale from which a feature matrix originated. This acts as a powerful regularizer during training.
Feature Matching (FM) Module
Not all layers or scales are equally relevant for every task. To exploit the most discriminative information, we developed a Feature Matching module that adaptively reweights different branches. This module can employ several strategies, including Optimal Transport or Gate Modules, to align support and query features.
Experimental Evaluation
We evaluated MlSo on an extensive suite of benchmarks covering general FSL, fine-grained classification, and action recognition.
- General FSL: On mini-ImageNet, MlSo achieved 66.79% (1-shot) and 83.41% (5-shot) using a ResNet-18 backbone, significantly outperforming traditional Relation Networks.
- Fine-grained Classification: The model showed its greatest strength in fine-grained tasks. On Stanford Cars, MlSo improved 1-shot accuracy by nearly 20% compared to first-order baselines, proving that feature correlations are vital for distinguishing subtle class differences.
- Action Recognition: By aggregating second-order statistics over both spatial and temporal dimensions, the model set competitive new results on HMDB51 and UCF101.
- Unsupervised Learning: Our unsupervised variant, U-MlSo, utilizes data augmentation and contrastive learning. Remarkably, U-MlSo often outperforms older supervised methods, suggesting that structural information captured by second-order statistics is inherently discriminative even without explicit labels.
Discussion and Conclusion
The success of MlSo highlights that correlations matter. Second-order statistics provide a "complementary" view of the data that single-layer, first-order models lack. While computing $d \times d$ covariance matrices introduces higher computational complexity, the use of element-wise variants and power normalization makes these high-dimensional descriptors stable and effective for deep learning.
Future work will explore more sophisticated temporal modeling for action recognition, such as integrating Transformers with second-order approaches, and developing adaptive scaling mechanisms to replace fixed spatial resolutions.
Summary updated