LOBG:Less Overfitting for Better Generalization in Vision-Language Model

Chenhao Ding, Xinyuan Gao, Songlin Dong, Yuhang He, Qiang Wang, Alex C. Kot, Yihong Gong · DOI

Introduction

Large-scale Vision-Language Models (VLMs) like CLIP have demonstrated remarkable zero-shot capabilities. However, adapting these models to specific downstream tasks through prompt learning often introduces a significant challenge: the Base-to-Novel (B2N) generalization gap. While models become highly proficient at identifying "base" classes seen during training, they frequently overfit to specific fine-grained details—such as the exact texture of a cat's whiskers—at the expense of broader structural knowledge. Consequently, when presented with "novel" classes (e.g., a lynx instead of a house cat), the model fails because it searches for specific training-set artifacts rather than general category features.

Comparison of attention maps and performance across base and novel classes.

Methodology

The LOBG (Less Overfitting for Better Generalization) framework addresses this overfitting by prioritizing coarse-grained structural information over distracting fine-grained details. The approach consists of three primary components:

1. Foreground Information Filtering (FIF)

Counter-intuitively, the high-attention areas of an image are often the primary source of overfitting. FIF utilizes the original CLIP model's attention maps as a mask to filter out these fine-grained foreground details. By intentionally "blurring" these areas, the model is forced to focus on robust structural elements like contours, shapes, and poses, which generalize more effectively to unseen categories.

2. Structural Topology Preservation (STP)

Traditional distillation methods often enforce rigid "point-to-point" constraints, requiring new features to match original features exactly. LOBG instead employs STP to preserve the angular relationships (topology) of the feature space. This ensures that if two images were conceptually close in the original CLIP space, they remain relatively close in the adapted space, maintaining the model's inherent "wisdom" while allowing the plasticity needed for task adaptation.

3. Hierarchical Logit Distillation (HLD)

To maintain grounding at the output level, LOBG uses two-tier distillation:

  • Instance-aware: Keeps individual image predictions consistent with the original model.
  • Class-aware: Preserves the relationships between different classes (e.g., ensuring a "dog" remains more similar to a "wolf" than a "car").
The LOBG framework architecture, featuring Foreground Information Filtering (FIF), Structural Topology Preservation (STP), and Hierarchical Logit Distillation (HLD).

Experimental Results

LOBG was evaluated across 11 benchmark datasets, including general objects (ImageNet), fine-grained categories (OxfordPets, StanfordCars), and specialized tasks (EuroSAT, UCF101).

  • State-of-the-Art Generalization: LOBG achieved an average accuracy of 77.04% on novel classes across all 11 datasets, outperforming the previous state-of-the-art method (TCP) by 1.68%.
  • Fine-Grained Performance: On challenging datasets like FGVCAircraft and EuroSAT, LOBG improved the Harmonic Mean (the balance between base and novel performance) by 2.05% over existing methods.
  • Cross-Dataset Robustness: When trained on ImageNet and tested on diverse external datasets, LOBG demonstrated superior stability, proving that it captures generalizable features rather than benchmark-specific shortcuts.

Conclusion

LOBG demonstrates that "less is more" when it comes to feature extraction for generalization. By filtering out distracting foreground details and preserving the underlying topology of the vision-language space, the framework successfully mitigates the B2N gap. Future research will focus on making the Foreground Information Filtering (FIF) more adaptive, automatically distinguishing between essential features and distracting details based on the specific task context.

Summary updated

Abstract

Existing prompt learning methods in Vision-Language Models (VLM) have effectively enhanced the transfer capability of VLM to downstream tasks, but they suffer from a significant decline in generalization due to severe overfitting. To address this issue, we propose a framework named LOBG for vision-language models. Specifically, we use CLIP to filter out fine-grained foreground information that might cause overfitting, thereby guiding prompts with basic visual concepts. To further mitigate overfitting, we devel oped a structural topology preservation (STP) loss at the feature level, which endows the feature space with overall plasticity, allowing effective reshaping of the feature space during optimization. Additionally, we employed hierarchical logit distilation (HLD) at the output level to constrain outputs, complementing STP at the output end. Extensive experimental results demonstrate that our method significantly improves generalization capability and alleviates overfitting compared to state-of-the-art approaches.
BibTeX
@misc{ding2024lobg,
  author = {Chenhao Ding and Xinyuan Gao and Songlin Dong and Yuhang He and Qiang Wang and Alex C. Kot and Yihong Gong},
  title = {{LOBG:Less Overfitting for Better Generalization in Vision-Language Model}},
  year = {2024},
  eprint = {2410.10247},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.10247},
}
Figure