[Paper Review] Deep pNML: Predictive Normalized Maximum Likelihood for Deep Neural Networks
This paper proposes Deep pNML, a predictive normalized maximum likelihood framework for deep neural networks that outperforms standard ERM in accuracy and log-loss, especially under noisy labels and adversarial attacks. It introduces a pointwise learnability measure (Γ) that detects out-of-distribution and adversarial samples, and extends the approach to a 'twice universal' scheme for model class selection, achieving superior performance across DNN architectures and hyperparameters on CIFAR10 and MNIST.
The Predictive Normalized Maximum Likelihood (pNML) scheme has been recently suggested for universal learning in the individual setting, where both the training and test samples are individual data. The goal of universal learning is to compete with a ``genie'' or reference learner that knows the data values, but is restricted to use a learner from a given model class. The pNML minimizes the associated regret for any possible value of the unknown label. Furthermore, its min-max regret can serve as a pointwise measure of learnability for the specific training and data sample. In this work we examine the pNML and its associated learnability measure for the Deep Neural Network (DNN) model class. As shown, the pNML outperforms the commonly used Empirical Risk Minimization (ERM) approach and provides robustness against adversarial attacks. Together with its learnability measure it can detect out of distribution test examples, be tolerant to noisy labels and serve as a confidence measure for the ERM. Finally, we extend the pNML to a ``twice universal'' solution, that provides universality for model class selection and generates a learner competing with the best one from all model classes.
Motivation & Objective
- To develop a universal learning framework for deep neural networks that competes with an optimal genie learner in the individual setting.
- To introduce a pointwise learnability measure (Γ) based on min-max regret that quantifies the difficulty of learning a specific data point.
- To improve robustness against noisy labels and adversarial examples compared to standard ERM.
- To extend the pNML framework to a 'twice universal' scheme that selects the best model class across hyperparameters, such as number of fine-tuned layers.
- To validate the method on standard benchmarks (CIFAR10, MNIST) and demonstrate its superiority in accuracy, log-loss, and generalization detection.
Proposed method
- The pNML predictor is defined as q_pNML(y|z^N;x) = max_θ p_θ(y|x,z^N) / sum_y max_θ p_θ(y|x,z^N), ensuring optimal min-max regret.
- The regret Γ = log(sum_y max_θ p_θ(y|x,z^N)) serves as a pointwise measure of learnability for individual data points.
- The method uses a fine-tuning phase to optimize model parameters for each test sample, enabling the pNML to adapt per test instance.
- The twice universal approach combines pNML over multiple model classes (e.g., different numbers of fine-tuned layers), selecting the best-performing model per test sample.
- The framework is applied using standard DNNs with log-loss as the evaluation metric, and the pNML is computed via maximization over model parameters.
- The method is evaluated on CIFAR10 and MNIST using accuracy, log-loss, and regret as metrics, with comparisons to ERM and genie benchmarks.
Experimental results
Research questions
- RQ1Can the pNML framework be effectively applied to deep neural networks to improve generalization beyond ERM?
- RQ2Does the pNML regret measure (Γ) serve as a reliable pointwise indicator of learnability for individual data points in DNNs?
- RQ3How does pNML perform under noisy training labels and adversarial test samples compared to ERM?
- RQ4Can a 'twice universal' pNML approach that selects across model classes (e.g., number of fine-tuned layers) outperform both ERM and single-class pNML?
- RQ5Is the pNML framework robust enough to detect out-of-distribution and adversarial test samples?
Key findings
- On CIFAR10, the twice universal pNML achieved a test accuracy of 0.920 and log-loss of 0.168, outperforming all individual model classes and matching the best ERM performance.
- On MNIST, the twice universal pNML achieved 0.950 accuracy and 0.081 log-loss, surpassing even the best single-model pNML and ERM.
- For noisy labels (ε=0.05), pNML maintained 0.27 accuracy and 1.72 log-loss, significantly better than ERM’s 0.26 accuracy and 3.22 log-loss.
- The pNML regret measure (Γ) effectively detected out-of-distribution and adversarial samples, with higher regret values indicating lower confidence and higher anomaly likelihood.
- The pNML framework demonstrated superior robustness to adversarial attacks, maintaining lower log-loss and higher accuracy than ERM under FGSM attacks.
- The pointwise regret measure Γ was found to be informative and valid for DNNs, even in 'learnable' scenarios where other generalization measures (e.g., VC dimension) fail.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.