Confidence Dimension for Deep Learning based on Hoeffding Inequality and Relative Evaluation

Runqi Wang, Linlin Yang, Baochang Zhang, Wentao Zhu, David S. Doermann, Guodong GuoarXiv 2022 · DOI

Abstract

Measuring the generalization ability of deep neural networks (DNNs) remains a fundamental challenge, as classical metrics like the VC-dimension often fail for over-parameterized models. This paper introduces the Confidence Dimension (CD), a novel metric that integrates VC-dimension estimation with a correction term based on Hoeffding’s inequality. By accounting for the optimization process and training error, CD provides a stable and reliable framework for ranking the generalization potential of diverse architectures across various tasks.

Introduction

Modern deep learning models often possess far more parameters than training samples, yet they generalize remarkably well—a phenomenon that contradicts classical learning theory. Traditional measures like the VC-dimension focus solely on model architecture, ignoring the crucial role of the optimization process. Existing attempts to tighten these bounds often rely on restrictive assumptions or prove unstable in practice. To bridge this gap, Wang et al. propose the Confidence Dimension (CD), a metric designed for practical, stable, and objective model ranking.

Methodology: The Confidence Dimension

The core innovation of this work is the two-step calculation of CD, which blends classical statistical theory with empirical optimization results:

  1. VC-dimension Estimation ($p$): The authors use a "randomization test" where models are trained on datasets with partially shuffled (incorrect) labels. The model's ability to "shatter" or fit these random labels provides an estimate of its raw capacity ($p$).
  2. Hoeffding Correction Term ($\delta$): To make the measure more realistic, they add a correction term derived from Hoeffding’s inequality: $$\delta = \alpha \sqrt{\frac{\ln(2 + Err)}{m}}$$ where $Err$ is the training error and $m$ is the sample size. This term ensures that the metric accounts for how effectively the optimizer navigated the loss landscape.

The final formula is $CD = p + \delta$. This provides a theoretical upper bound on generalization that holds with high probability (specifically, $1 - \frac{1}{(2+Err)^4}$).

The proposed evaluation workflow for Confidence Dimension, illustrating the randomization test and its application to cross-task validation.

Key Insights and Results

The authors validated their approach across standard benchmarks including CIFAR-10, ImageNet, PASCAL VOC, and MS COCO.

Stability Across Optimizers

A significant finding is that CD remains consistent even when changing the optimizer (e.g., switching from SGD to AdamW). Traditional VC-dimension estimates fluctuate wildly under these changes, but CD stays stable. Experimental results show that the volatility of the CD metric was only 44%, compared to 71% for traditional capacity estimation.

Stability of the CD metric across different optimizers (SGD, Adam, AdamW) compared to the raw capacity estimate $p$.

Cross-Task Predictive Power

The authors demonstrated that CD calculated on a classification task could predict performance on object detection. Models with lower CD values in classification suffered less "performance degradation" when moved to more complex detection tasks. For instance, the PCNN model showed a better CD than ReActNet, which correctly predicted its superior performance in object detection (72.0 mAP vs 69.3 mAP on PASCAL VOC).

Binary Neural Network (BNN) Analysis

The paper rigorously ranks the generalization of BNNs like ReActNet and PCNN. While BNNs are highly compressed, they often exhibit higher CD values (indicating worse generalization) than their full-precision counterparts, highlighting the trade-offs in model binarization.

Conclusion

The Confidence Dimension offers a robust alternative to traditional generalization metrics by incorporating the optimization process into the evaluation. Its stability across optimizers and predictive power for cross-task performance make it a valuable tool for researchers seeking to objectively rank and select deep learning models. Future work will explore applying CD to a wider variety of tasks to further prove its universality as a pragmatic guidance tool.

Summary updated

BibTeX
@misc{wang2022confidence,
  author = {Runqi Wang and Linlin Yang and Baochang Zhang and Wentao Zhu and David S. Doermann and Guodong Guo},
  title = {{Confidence Dimension for Deep Learning based on Hoeffding Inequality and Relative Evaluation}},
  year = {2022},
  eprint = {2203.09082},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.09082},
}
Figure