[Paper Review] Persistency of Excitation for Robustness of Neural Networks
This paper investigates how the choice of loss function—specifically cross-entropy versus squared-error—impacts the robustness of neural networks by analyzing persistent excitation of network weights during training. It shows that cross-entropy loss leads to poor decision margins due to insufficient excitation of support vectors in low-dimensional subspaces, and proposes regularization inspired by linear models to enforce persistent excitation, improving robustness against adversarial examples.
When an online learning algorithm is used to estimate the unknown parameters of a model, the signals interacting with the parameter estimates should not decay too quickly for the optimal values to be discovered correctly. This requirement is referred to as persistency of excitation, and it arises in various contexts, such as optimization with stochastic gradient methods, exploration for multi-armed bandits, and adaptive control of dynamical systems. While training a neural network, the iterative optimization algorithm involved also creates an online learning problem, and consequently, correct estimation of the optimal parameters requires persistent excitation of the network weights. In this work, we analyze the dynamics of the gradient descent algorithm while training a two-layer neural network with two different loss functions, the squared-error loss and the cross-entropy loss; and we obtain conditions to guarantee persistent excitation of the network weights. We then show that these conditions are difficult to satisfy when a multi-layer network is trained for a classification task, for the signals in the intermediate layers of the network become low-dimensional during training and fail to remain persistently exciting. To provide a remedy, we delve into the classical regularization terms used for linear models, reinterpret them as a means to ensure persistent excitation of the model parameters, and propose an algorithm for neural networks by building an analogy. The results in this work shed some light on why adversarial examples have become a challenging problem for neural networks, why merely augmenting training data sets will not be an effective approach to address them, and why there may not exist a data-independent regularization term for neural networks, which involve only the model parameters but not the training data.
Motivation & Objective
- To understand why deep neural networks are vulnerable to small input perturbations despite high accuracy.
- To investigate whether the choice of training loss function—particularly cross-entropy—contributes to this lack of robustness.
- To analyze the role of persistent excitation in gradient descent dynamics during neural network training.
- To identify conditions under which network weights fail to remain persistently excited, especially in deeper networks.
- To propose a regularization strategy for neural networks based on the principle of persistent excitation, inspired by classical linear model regularization.
Proposed method
- Analyzes gradient descent dynamics on two-layer neural networks using both squared-error and cross-entropy loss functions.
- Derives conditions for persistent excitation of network weights during training, showing that cross-entropy loss leads to rapid decay of gradient contributions from non-support vectors.
- Introduces a margin analysis for linear classifiers trained with cross-entropy loss, proving that margin size depends on the geometry of support vectors in affine subspaces.
- Reinterprets classical regularization terms (e.g., L2) as mechanisms to enforce persistent excitation of model parameters.
- Proposes a novel regularization algorithm for deep networks by emulating the persistent excitation behavior seen in linear models.
- Uses theoretical analysis and empirical validation to show that poor margin formation under cross-entropy loss arises from low-dimensional support vector configurations.
Experimental results
Research questions
- RQ1Why do neural networks trained with cross-entropy loss exhibit poor robustness to small input perturbations?
- RQ2How does the geometry of support vectors in the input space affect the margin size when using cross-entropy loss?
- RQ3To what extent does the lack of persistent excitation in network weights contribute to adversarial vulnerability?
- RQ4Can regularization terms traditionally used in linear models be reinterpreted as mechanisms to enforce persistent excitation in neural networks?
- RQ5Is it possible to design a data-independent regularization method for deep networks that improves robustness by ensuring persistent excitation?
Key findings
- Neural networks trained with cross-entropy loss consistently achieve significantly smaller decision margins than those trained with squared-error loss, even with identical architectures and optimization algorithms.
- The margin of a linear classifier trained via cross-entropy loss is bounded above by $ \frac{1}{\sqrt{\frac{1}{\gamma_{\text{OPT}}^2} + B^2 \sum_{k \in K} \Delta_k^2}} $, where $ \gamma_{\text{OPT}} $ is the optimal SVM margin and $ B $ depends on the bias of support vectors.
- When support vectors lie in a low-dimensional affine subspace, the margin shrinks further due to increased $ \sum_{k \in K} \Delta_k^2 $, making robustness harder to achieve.
- The bias term $ B $ in the margin bound cannot be eliminated by data preprocessing, as it depends on the support vectors, which are unknown a priori.
- The lack of persistent excitation—especially from non-support vectors—leads to rapid decay of their gradient influence, causing optimization to focus only on the most critical points.
- Classical regularization terms (e.g., L2) can be reinterpreted as tools to enforce persistent excitation, suggesting a new design principle for robust neural network training.
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.