[Paper Review] Large Margin Deep Networks for Classification
This paper proposes a novel deep learning loss function that enforces large margins at any chosen layer (input, hidden, or output) using any lp norm (p ≥ 1), improving generalization, robustness to label noise, and adversarial robustness. The method achieves state-of-the-art performance on MNIST, CIFAR-10, and ImageNet, outperforming standard cross-entropy loss in accuracy under data scarcity, noisy labels, and adversarial attacks—especially with l1 and l∞ margin constraints.
We present a formulation of deep learning that aims at producing a large margin classifier. The notion of margin, minimum distance to a decision boundary, has served as the foundation of several theoretically profound and empirically successful results for both classification and regression tasks. However, most large margin algorithms are applicable only to shallow models with a preset feature representation; and conventional margin methods for neural networks only enforce margin at the output layer. Such methods are therefore not well suited for deep networks. In this work, we propose a novel loss function to impose a margin on any chosen set of layers of a deep network (including input and hidden layers). Our formulation allows choosing any norm on the metric measuring the margin. We demonstrate that the decision boundary obtained by our loss has nice properties compared to standard classification loss functions. Specifically, we show improved empirical results on the MNIST, CIFAR-10 and ImageNet datasets on multiple tasks: generalization from small training sets, corrupted labels, and robustness against adversarial perturbations. The resulting loss is general and complementary to existing data augmentation (such as random/adversarial input transform) and regularization techniques (such as weight decay, dropout, and batch norm).
Motivation & Objective
- To develop a deep learning training method that enforces large margins at any layer in a neural network, not just the output layer.
- To improve generalization under data scarcity and label noise by leveraging margin-based regularization.
- To enhance robustness against adversarial perturbations through explicit margin enforcement in input or hidden space.
- To create a flexible, architecture-agnostic loss function compatible with standard deep learning techniques like batch normalization, dropout, and data augmentation.
Proposed method
- Proposes a first-order approximation of the margin to make it differentiable and trainable in deep networks.
- Defines margin based on the distance from each training sample to the decision boundary in the input or hidden layer space using lp norms (p ≥ 1).
- Applies the margin loss to any selected set of layers—input, hidden, or output—enabling multi-layer margin enforcement.
- Uses a differentiable approximation of the margin to allow backpropagation through the network during training.
- Combines the large margin loss with standard regularization techniques (e.g., weight decay, dropout, batch norm) and data augmentation.
- Employs a hyperparameter search over margin values to optimize performance on each dataset and task.
Experimental results
Research questions
- RQ1Can enforcing a large margin at hidden layers improve generalization in deep networks?
- RQ2Does margin enforcement in input space enhance robustness to adversarial perturbations?
- RQ3How does the choice of lp norm (l1, l2, l∞) affect model performance across different datasets and tasks?
- RQ4Can margin-based training coexist with and complement existing regularization and data augmentation techniques?
- RQ5Does large margin training improve performance under label noise and limited training data?
Key findings
- On CIFAR-10 with 80% noisy labels, the l∞ and l2 margin models outperformed cross-entropy by 4% to 10%.
- With only 1% of training data, the l1 margin model achieved 2.5% higher accuracy than cross-entropy.
- For white-box FGSM attacks at ϵ=0.1, the l1 margin model achieved 44% top-1 accuracy on ImageNet, compared to 33% for cross-entropy.
- On black-box IFGSM attacks at ϵ=0.1, the margin model achieved 59% accuracy on ImageNet, compared to 33% for cross-entropy.
- The l1 margin model achieved 82% accuracy on ImageNet under SNR=33, a 18.7% relative improvement over prior work.
- The method incurred only 1.6× higher training cost per step than cross-entropy on ImageNet, making it computationally practical.
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.