Skip to main content
QUICK REVIEW

[Paper Review] On the Decision Boundary of Deep Neural Networks

Li Yu, Lizhong Ding|arXiv (Cornell University)|Aug 16, 2018
Adversarial Robustness in Machine LearningComputer Science30 references31 citations
TL;DR

This paper demonstrates that, under weak assumptions, the last weight layer of a deep neural network converges to a linear SVM solution trained on the features from the last hidden layer, both theoretically and empirically. For both binary and multi-class classification with cross-entropy loss, the decision boundary aligns with that of an SVM when the loss converges to zero, and full network training improves the bias constant, enhancing generalization.

ABSTRACT

While deep learning models and techniques have achieved great empirical success, our understanding of the source of success in many aspects remains very limited. In an attempt to bridge the gap, we investigate the decision boundary of a production deep learning architecture with weak assumptions on both the training data and the model. We demonstrate, both theoretically and empirically, that the last weight layer of a neural network converges to a linear SVM trained on the output of the last hidden layer, for both the binary case and the multi-class case with the commonly used cross-entropy loss. Furthermore, we show empirically that training a neural network as a whole, instead of only fine-tuning the last weight layer, may result in better bias constant for the last weight layer, which is important for generalization. In addition to facilitating the understanding of deep learning, our result can be helpful for solving a broad range of practical problems of deep learning, such as catastrophic forgetting and adversarial attacking. The experiment codes are available at https://github.com/lykaust15/NN_decision_boundary

Motivation & Objective

  • To understand the decision boundary of deep neural networks under minimal assumptions about data and model architecture.
  • To investigate the implicit bias of stochastic gradient descent (SGD) in deep learning, particularly regarding the final classifier layer.
  • To bridge the gap between theoretical analysis of simplified models and practical deep learning performance.
  • To explore how full network training versus fine-tuning the last layer affects the bias constant and generalization.
  • To provide theoretical and empirical justification for practical deep learning challenges such as catastrophic forgetting and data efficiency.

Proposed method

  • Theoretical analysis is conducted under the assumption that the loss converges to zero, without requiring linear separability or specific data distributions.
  • The network is decomposed into a transformation function (last hidden layer) and a final linear classifier (last weight layer), with the latter shown to converge to an SVM solution on the transformed features.
  • For multi-class classification, the cross-entropy loss is analyzed to show convergence to the multi-class linear SVM solution.
  • Empirical validation is performed on CIFAR-10 and MNIST using ResNet and DenseNet architectures to assess convergence of the last layer to an SVM decision boundary.
  • The bias constant of the last layer is compared between full network training and fine-tuning, with the former shown to yield better generalization.
  • Theoretical support is derived from gradient dynamics, showing that as training progresses, only support vectors (max-margin samples) influence the final weight direction.

Experimental results

Research questions

  • RQ1Does the last weight layer of a deep neural network converge to a linear SVM solution when training loss converges to zero?
  • RQ2How does full network training compare to fine-tuning the last layer in terms of the bias constant and generalization performance?
  • RQ3Can the decision boundary of a deep network be characterized as equivalent to that of an SVM trained on the last hidden layer features?
  • RQ4What is the role of the transformation function in determining data efficiency and generalization in deep learning?
  • RQ5Why does the rehearsal-based method SupportNet work well in practice, and can this be theoretically explained?

Key findings

  • The direction of the last weight layer converges to that of a linear SVM trained on the features from the last hidden layer, both in the binary and multi-class cases with cross-entropy loss.
  • Empirical results show that full network training leads to a better bias constant in the last layer compared to fine-tuning, which improves generalization.
  • The convergence to the SVM solution holds even when the data is not linearly separable, provided the loss converges to zero.
  • Theoretical analysis confirms that as training progresses, only the support vectors (samples with minimal margin) contribute to the gradient, explaining the implicit bias of SGD.
  • The result explains the empirical success of the SupportNet rehearsal framework for catastrophic forgetting, as it selects samples corresponding to the SVM support vectors.
  • The findings suggest that data efficiency in deep learning is primarily limited by the transformation function, not the final linear classifier, enabling effective transfer learning with limited data.

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.