Object-Centric Cropping for Visual Few-Shot Classification

Aymane Abdali, Bartosz Boguslawski, Lucas Drumetz, Vincent GriponarXiv 2025 · DOI

Abstract

Few-shot learning (FSL) often suffers from "task ambiguity," where models over-rely on background context rather than the object of interest. This paper introduces object-centric cropping strategies—ranging from manual bounding boxes to unsupervised salient object detection—to disambiguate visual tasks. By augmenting training data with context-aware crops, the proposed method significantly improves classification accuracy across standard benchmarks like ImageNet, CUB, and Pascal VOC, demonstrating that high-quality, localized data can be more effective than simply increasing sample size.

The Challenge of Task Ambiguity

In Few-Shot Learning, a model must recognize a new category from just a handful of examples. While large pre-trained models like CLIP have advanced the field, they are prone to task ambiguity. For instance, if a model sees a single image of a waterbird on a lake, it may struggle to determine if the label "waterbird" refers to the bird, the water, or the combination. If a test image later shows the same bird in a forest, the model might fail because it over-relied on the lake background. This research explores how to "disambiguate" these images by explicitly guiding the model toward the object's location.

Methodology: Object-Centric Cropping

The authors propose a methodology centered on Object-Centric Cropping to focus the model's attention. They explore three distinct ways to obtain the object's location:

  1. Ground Truth (Manual): A human provides a precise bounding box.
  2. SAM-based (Semi-Manual): A human clicks a single point on the object, prompting the Segment Anything Model (SAM) to generate a mask and subsequent bounding box.
  3. Salient Object Detection (Fully Automatic): An unsupervised model (MOVE) identifies the most prominent foreground object without human intervention.
Overview of the three disambiguation pipelines: (a) Ground truth, (b) SAM-based point click, and (c) fully automatic salient object detection.

Augmentation with Context

A key finding of the study is that tight cropping alone can hurt performance by removing useful global information. To solve this, the researchers use the location data to create multiple augmentations with varying levels of context (e.g., crops including 20%, 50%, and 80% of the surrounding area). This allows the model to see the object clearly while maintaining a sense of the original scene. The final classification uses a CLIP (ResNet50) backbone with a linear layer trained on the features of both the original image and these object-centric crops.

Experimental Results

The approach was evaluated on ImageNet, CUB (birds), and Pascal VOC. The results consistently showed that object-centric cropping improves accuracy across the board.

Accuracy curves for Inductive and Transductive settings across ImageNet, CUB, and Pascal VOC datasets, comparing various cropping strategies against a 'No Cropping' baseline.

Key Insights

  • Significant Gains in Complex Scenes: The most dramatic improvements occurred on Pascal VOC (up to 5%). Because Pascal VOC images often contain multiple objects, disambiguation is particularly valuable.
  • Efficiency of Human Effort: A single point click using SAM provided a performance boost nearly identical to a full manual bounding box, suggesting a highly efficient path for human-in-the-loop annotation.
  • Data Quality vs. Quantity: In Pascal VOC, enhancing five labeled samples with crops yielded performance equivalent to eight labeled samples without crops, highlighting that localized data can be more valuable than more raw data.
  • Variance-Bias Trade-off: Analysis revealed that while tight cropping reduces intra-class variance (making clusters tighter), it can introduce bias by shifting the feature center away from uncropped test images. This underscores the necessity of including context in the crops.

Conclusion and Future Work

Object-centric cropping is a powerful tool for mitigating task ambiguity in few-shot classification. While the fully automatic method (MOVE) is effective, it can occasionally focus on the wrong salient object in multi-object scenes. Future research will focus on more efficient object identification and scaling these techniques to even more complex, cluttered environments. Despite these challenges, the study proves that providing models with even minimal spatial guidance significantly enhances their ability to learn new concepts from limited data.

Summary updated

BibTeX
@misc{abdali2025object,
  author = {Aymane Abdali and Bartosz Boguslawski and Lucas Drumetz and Vincent Gripon},
  title = {{Object-Centric Cropping for Visual Few-Shot Classification}},
  year = {2025},
  eprint = {2508.00218},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.00218},
}
Figure