Skip to main content
QUICK REVIEW

[Paper Review] Towards Task and Architecture-Independent Generalization Gap Predictors

Scott Yak, Javier Gonzalvo|arXiv (Cornell University)|Jun 4, 2019
Advanced Neural Network ApplicationsComputer Science10 references9 citations
TL;DR

This paper proposes task- and architecture-agnostic generalization gap predictors using deep neural networks (DNNs) and recurrent neural networks (RNNs) to predict generalization performance across diverse datasets and network architectures. By training on 13,500 neural networks with varying architectures, hyperparameters, and spiral dataset variations, the authors achieve an R² of 0.965 in predicting generalization gaps, significantly outperforming linear models and demonstrating strong zero-shot generalization to unseen hyperparameters and datasets.

ABSTRACT

Can we use deep learning to predict when deep learning works? Our results suggest the affirmative. We created a dataset by training 13,500 neural networks with different architectures, on different variations of spiral datasets, and using different optimization parameters. We used this dataset to train task-independent and architecture-independent generalization gap predictors for those neural networks. We extend Jiang et al. (2018) to also use DNNs and RNNs and show that they outperform the linear model, obtaining $R^2=0.965$. We also show results for architecture-independent, task-independent, and out-of-distribution generalization gap prediction tasks. Both DNNs and RNNs consistently and significantly outperform linear models, with RNNs obtaining $R^2=0.584$.

Motivation & Objective

  • To develop generalization gap predictors that are independent of both the specific task and neural network architecture.
  • To address the limitation of prior work, which only generalizes within fixed architectures and datasets.
  • To enable zero-shot prediction of generalization performance on unseen architectures, hyperparameters, and data distributions.
  • To improve neural architecture search (NAS) and reduce reliance on holdout validation sets.
  • To explore whether deep learning can be used to predict when deep learning itself generalizes well.

Proposed method

  • Train 13,500 neural networks across 27 spiral dataset variations, diverse architectures, and optimization hyperparameters.
  • Extract layer-wise margin signatures as input features for generalization gap prediction.
  • Use a fixed-dimension vector by summing layer-specific features to handle variable-depth networks.
  • Employ RNNs to naturally process variable-length sequences of layer features without requiring fixed input size.
  • Train DNN and RNN models on margin features to predict generalization gap (difference between train and test accuracy).
  • Evaluate models under same-distribution and out-of-distribution settings, including extrapolation to unseen hyperparameters and datasets.

Experimental results

Research questions

  • RQ1Can generalization gap predictors be trained to be independent of both the specific task and neural network architecture?
  • RQ2Do deep learning models (DNNs and RNNs) outperform linear models in predicting generalization gaps across diverse architectures and datasets?
  • RQ3How well do these predictors generalize to unseen hyperparameters and data distributions?
  • RQ4Can RNNs effectively model variable-depth neural networks by processing sequential layer features?
  • RQ5Does the model learn generalizable patterns beyond hyperparameter-specific correlations?

Key findings

  • The DNN-based generalization gap predictor achieves an R² of 0.965 in the dataset-dependent, same-distribution setting, outperforming the linear model (R² = 0.956) and replicating Jiang et al. (2018)’s results.
  • The RNN-based predictor achieves R² = 0.584 in the dataset-independent, same-distribution setting, significantly outperforming the linear model (R² = 0.390) and DNNs (R² = 0.502).
  • Even under out-of-distribution evaluation—testing on unseen hyperparameters and datasets—the DNN and RNN models show only a minor drop in performance (≤0.002 R² decrease), indicating robust generalization.
  • The models generalize well to unseen architectures and hyperparameters, suggesting they learn generalizable patterns rather than overfitting to specific configurations.
  • The use of RNNs enables effective modeling of variable-depth networks without architectural constraints, demonstrating the feasibility of sequence-based modeling for deep learning generalization prediction.
  • The results suggest that deep learning can be used to predict deep learning generalization, with potential applications in NAS and model selection without holdout sets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.