TL;DR
Regression Networks rethink few-shot classification by representing each class as a linear subspace rather than a single point. By measuring the "regression error"—how far a query point is from its closest approximation in a class's subspace—this method captures richer structural information and achieves state-of-the-art performance, especially as the number of available examples (shots) increases.
What Problem Does This Paper Address?
Few-shot learning (FSL) is the challenge of training a model to recognize new categories using only a handful of examples. Traditional deep learning fails here because it overfits on small datasets.
Existing "metric-learning" approaches, like Prototypical Networks (ProtoNet), solve this by embedding images into a high-dimensional space and comparing a query image to the average (prototype) of the available examples for each class. However, collapsing multiple examples into a single average point loses valuable information about the distribution and "direction" of data in that class. The authors argue that in high-dimensional spaces, the orientation of data is often more informative than its magnitude, and current methods don't fully exploit this.
Methods
The authors propose Regression Networks, which introduce a novel distance metric based on subspace projection:
- Subspace Representation: Instead of averaging the $K$ examples (shots) of a class, the model treats them as vectors that span a $K$-dimensional linear subspace.
- Regression-Error Distance: To classify a new query image, the model projects the query's embedding onto each class's subspace. It calculates the "regression error"—the Euclidean distance between the query point and its closest possible linear combination within that subspace.
- Closed-Form Solution: Because the number of shots ($K$) is typically very small (e.g., 1 to 10), the best approximation can be found using a differentiable, closed-form least-squares solution. This makes the model efficient and easy to train via backpropagation.
- Subspace Orthogonalization: The authors add a regularization term to the loss function that encourages the subspaces of different classes to be as orthogonal (directionally different) as possible, which helps the model distinguish between similar classes.
Datasets
The researchers evaluated their approach on two standard benchmarks:
- mini-ImageNet: A subset of the massive ImageNet dataset, containing 100 classes with 600 images each.
- CUB (Caltech-UCSD Birds-200-2011): A fine-grained dataset of 200 bird species. This is a harder task because the differences between classes are much more subtle.
- Domain Shift Experiments: They also tested the model's ability to generalize by training on mini-ImageNet and testing on CUB (and vice versa).
Key Insights and Ideas
- Subspaces > Prototypes: Representing a class as a subspace allows the model to account for variations within a class that a single mean vector cannot capture.
- The Power of "Direction": By using regression, the model focuses on whether a query point "points" in the same direction as the class's support vectors.
- Scaling with Shots: Regression Networks show a significant performance boost as $K$ (the number of shots) increases. While ProtoNet just gets a "better average," RegressionNet gets a "richer subspace."
- Robustness to Depth: As the "backbone" neural network gets deeper (e.g., ResNet-34), the advantage of using subspace regression becomes even more pronounced.
Key Results
- State-of-the-Art Accuracy: On mini-ImageNet (5-way 5-shot), RegressionNet achieved 76.29% accuracy with a ResNet-10 backbone, significantly outperforming ProtoNet (73.77%).
- Fine-Grained Success: On the CUB dataset (5-way 5-shot), it reached 89.30% accuracy with a ResNet-34 backbone.
- Cross-Domain Generalization: In the difficult "Domain Shift" scenario, RegressionNet maintained a higher accuracy than its competitors, suggesting it learns more fundamental geometric features.
Limitations and Future Work
- The 1-Shot Case: When $K=1$, the subspace is just a line through the origin, limiting the model's ability to capture complex class structure.
- Linearity Assumption: The model assumes classes can be represented by linear subspaces. Future work could explore non-linear manifolds.
- Low-Rank Approximations: Investigating low-rank approximations could further improve efficiency and noise robustness.
Summary updated