Improving Gradient Regularization using Complex-Valued Neural Networks

Eric C. Yeats, Yiran Chen, Hai LiICML 2021

Introduction

Deep learning models are highly susceptible to adversarial examples—tiny, often imperceptible perturbations that cause confident misclassifications. While adversarial training is the current gold standard for defense, it is computationally expensive and requires prior knowledge of specific attacks.

An alternative is gradient regularization, which penalizes the model if its output changes too drastically in response to small input changes. Though computationally efficient and attack-agnostic, gradient regularization in standard real-valued networks forces a severe trade-off: forcing the model to be stable typically causes its ability to learn complex features (clean accuracy) to plummet. This paper demonstrates that Complex-Valued Neural Networks (CVNNs) possess unique mathematical properties that decouple these competing objectives, allowing for high adversarial resistance without sacrificing clean performance.

Methodology

The authors propose replacing standard real-valued networks with CVNNs, where weights and activations are represented by complex numbers ($z = x + iy$). In this architecture, the magnitude of the complex activation serves as the output for each layer.

To train the models, the researchers employ a double backpropagation technique to minimize the squared $L_1$ norm of the input gradient. To ensure a fair evaluation, the CVNNs were compared against real-valued networks with equivalent total parameter counts and Multiply-Accumulate (MAC) operations. The approach was evaluated across four standard image classification benchmarks: MNIST, FashionMNIST, SVHN, and CIFAR-10.

Key Insights and Mechanisms

The core innovation lies in the geometry of complex numbers. In a real-valued network, a single weight influences all objectives simultaneously, leading to competing gradients. In a CVNN, the phase and magnitude components provide a natural buffer.

The authors mathematically prove a constraint between the activation derivatives (used for accuracy) and the Jacobian derivatives (used for regularization). When a parameter change is highly important for one objective, it is mathematically "unimportant" for the other, creating a degree of mutual exclusivity.

  • Parameter Update Similarity ($\zeta$): The authors introduce this metric to measure how much the two objectives compete. CVNNs naturally exhibit lower similarity, confirming they can balance both goals more effectively than real-valued networks.
  • Feature Stability: Summing complex-valued features creates multiple local maxima and minima in the feature response. This "wavy" landscape makes the representations inherently more stable against natural variations in input data.

Experimental Results

  • Superior Robustness-Accuracy Trade-off: On MNIST, CVNNs with high regularization maintained 99% clean accuracy. In contrast, real-valued networks dropped to 62–78% accuracy to achieve the same level of robustness.
  • Closing the Gap with Adversarial Training: On the SVHN dataset, the CVNN approach achieved performance comparable to state-of-the-art, computationally heavy multi-step adversarial training.
  • Black-Box Resistance: CVNNs demonstrated superior resistance to transfer attacks (where an attacker crafts an image on a different model) and query-based attacks (where the attacker lacks access to gradients).
  • Computational Efficiency: As a regularization-based approach, it requires significantly less training overhead compared to generating adversarial examples for every batch.

Limitations and Future Work

Despite the strong results, the approach has limitations. On the more complex CIFAR-10 dataset, CVNNs struggled to reach the same clean accuracy as the largest real-valued models, showing a tendency to overfit the training set.

Furthermore, the authors encountered architectural instability when attempting to stack many complex convolutional layers, necessitating the use of wider, simpler architectures and specific batch normalization techniques. Future research will focus on developing deep architectures and optimization strategies specifically tailored for complex-valued features, moving beyond mere adaptations of real-valued designs.

Summary updated

BibTeX
@inproceedings{yeats2021improving,
  author = {Eric C. Yeats and Yiran Chen and Hai Li},
  title = {{Improving Gradient Regularization using Complex-Valued Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=wFCcZ_x573S},
}
Figure