LGAICVMay 2, 2024

A separability-based approach to quantifying generalization: which layer is best?

arXiv:2405.01524v35 citationsh-index: 5Has Code
Originality Incremental advance
AI Analysis

This addresses the challenge of assessing generalization for deep learning models in open-set scenarios, with implications for tasks like few-shot learning and model pruning, though it is incremental as it builds on existing pre-trained models.

The paper tackles the problem of understanding generalization in deep learning by proposing a method to quantify which network layers generalize best to unseen data variations, finding that high classification accuracy does not guarantee high generalizability and deeper layers are not always optimal.

Generalization to unseen data remains poorly understood for deep learning classification and foundation models, especially in the open set scenario. How can one assess the ability of networks to adapt to new or extended versions of their input space in the spirit of few-shot learning, out-of-distribution generalization, domain adaptation, and category discovery? Which layers of a network are likely to generalize best? We provide a new method for evaluating the capacity of networks to represent a sampled domain, regardless of whether the network has been trained on all classes in that domain. Our approach is the following: after fine-tuning state-of-the-art pre-trained models for visual classification on a particular domain, we assess their performance on data from related but distinct variations in that domain. Generalization power is quantified as a function of the latent embeddings of unseen data from intermediate layers for both unsupervised and supervised settings. Working throughout all stages of the network, we find that (i) high classification accuracy does not imply high generalizability; and (ii) deeper layers in a model do not always generalize the best, which has implications for pruning. Since the trends observed across datasets are largely consistent, we conclude that our approach reveals (a function of) the intrinsic capacity of the different layers of a model to generalize. Our code is available at https://github.com/dyballa/generalization

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes