Skip to main content
QUICK REVIEW

[Paper Review] Neural Complexity Measures

Yoonho Lee, Juho Lee|arXiv (Cornell University)|Aug 7, 2020
Domain Adaptation and Few-Shot LearningComputer Science39 references5 citations
TL;DR

This paper proposes Neural Complexity (NC), a data-driven meta-learning framework that learns a scalar complexity measure to predict and regularize generalization in deep neural networks. By training a neural network to estimate the generalization gap using multiple heterogeneous tasks, NC improves test performance and accelerates training, outperforming traditional regularization methods and demonstrating strong transferability across architectures and hyperparameters.

ABSTRACT

While various complexity measures for deep neural networks exist, specifying an appropriate measure capable of predicting and explaining generalization in deep networks has proven challenging. We propose Neural Complexity (NC), a meta-learning framework for predicting generalization. Our model learns a scalar complexity measure through interactions with many heterogeneous tasks in a data-driven way. The trained NC model can be added to the standard training loss to regularize any task learner in a standard supervised learning scenario. We contrast NC's approach against existing manually-designed complexity measures and other meta-learning models, and we validate NC's performance on multiple regression and classification tasks

Motivation & Objective

  • To address the challenge of predicting and explaining generalization in deep neural networks, where manually designed complexity measures often fail to capture key behaviors like worsening with label noise or improving with network size.
  • To develop a meta-learning framework that learns a generalization-aware complexity measure through interactions with diverse tasks, enabling transferable and stable regularization.
  • To create a scalable, data-driven complexity measure that can be integrated into standard supervised learning as a regularizer, improving generalization without requiring architectural changes.
  • To validate that the learned complexity measure generalizes across different network architectures, learning rates, and nonlinearities, and performs well in large-scale tasks beyond few-shot settings.

Proposed method

  • NC employs a meta-learning setup where a neural network learns to predict the generalization gap $ G_{T,S}(h) = \mathcal{L}_T(h) - \widehat{\mathcal{L}}_{T,S}(h) $ by observing true and empirical losses across many tasks.
  • The framework uses a task-splitting scheme: a single large dataset is randomly split into training and validation sets to simulate multiple tasks, enabling meta-training on diverse data splits.
  • The NC model is trained to predict the generalization gap using inputs including training and validation data, model predictions, and the trained model’s parameters, forming a differentiable proxy for generalization.
  • The learned NC model is then used as a regularizer in the training loss: $ \mathcal{L}_{\text{reg}} = \widehat{\mathcal{L}}_{T,S}(h) + \lambda \cdot \text{NC}(\cdot) $, directly regularizing the task learner.
  • The method is grounded in a probabilistic generalization bound that tightens as the NC model improves, linking the learned complexity to generalization performance.
  • Experiments use a variety of datasets (MNIST, FMNIST, KMNIST, SVHN, CIFAR-10) and models (MLP, ResNet-18), with no data augmentation or learning rate scheduling to isolate the effect of NC.

Experimental results

Research questions

  • RQ1Can a data-driven, meta-learned complexity measure outperform manually designed complexity measures in predicting generalization in deep networks?
  • RQ2Does the NC framework generalize across different neural network architectures, hyperparameters (e.g., learning rate), and nonlinearities?
  • RQ3Can NC serve as an effective regularizer in large-scale, single-task learning scenarios, not just few-shot or meta-learning tasks?
  • RQ4How does NC’s performance compare to standard regularization techniques like $ L_2 $, label smoothing, and Mixup in terms of test accuracy and training dynamics?
  • RQ5Does NC effectively capture the impact of dataset size on overfitting, and can it predict increasing generalization gaps with smaller datasets?

Key findings

  • NC consistently improved test accuracy across multiple classification tasks, performing comparably or better than modern regularization techniques like Mixup and label smoothing.
  • The NC-regularized training process accelerated convergence, as shown by faster decay in training and validation loss in the KMNIST visualization.
  • NC effectively captured the trend of increasing overfitting with smaller datasets, as evidenced by its accurate estimation of growing generalization gaps on KMNIST with reduced training sizes.
  • NC outperformed larger models with 2× and 4× capacity, indicating that the performance gain is due to the complexity measure itself, not just increased capacity.
  • The NC model demonstrated strong transferability, effectively regularizing models with different architectures, learning rates, and nonlinearities, even when not seen during meta-training.
  • NC achieved lower test loss than training loss in multiple experiments, indicating that the regularizer successfully mitigated overfitting and improved generalization.

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.