Deep Complex Networks

Chiheb Trabelsi, Olexa Bilaniuk, Ying Zhang, Dmitriy Serdyuk, Sandeep Subramanian, Joao Felipe Santos, Soroush Mehri, Negar Rostamzadeh, Yoshua Bengio, Christopher J Pal

TL;DR

While deep learning has traditionally relied on real-valued math, Deep Complex Networks introduces the essential building blocks—complex-valued convolutions, batch normalization, and weight initialization—to bring complex numbers into the deep learning mainstream. The result? Models that are not only competitive in computer vision but achieve state-of-the-art performance in audio-related tasks like music transcription and speech prediction by effectively leveraging phase information.

What Problem Does This Paper Address?

The vast majority of modern deep learning is "real-valued." We represent data as real numbers and process them using real-valued weights. However, many signals in the real world—especially audio, radio waves, and medical imaging (MRI)—are naturally represented as complex numbers (magnitude and phase).

Historically, complex-valued neural networks were theoretically promising but practically sidelined. They lacked the "atomic" components that make modern deep learning work: stable initialization strategies and robust normalization. Without these, training deep complex-valued architectures was unstable and prone to vanishing or exploding gradients. This paper fills that gap by providing a standardized framework for building deep complex-valued residual networks (ResNets) and LSTMs.

Methods

The authors didn't just swap floats for complex numbers; they re-engineered the core components of a neural network to respect complex arithmetic:

  • Complex Convolution: To perform $W * h$ where both are complex, the authors use the distributive property: $(A + iB) * (x + iy) = (A*x - B*y) + i(B*x + A*y)$. This allows the network to simulate complex math using standard real-valued operations.
  • Complex Batch Normalization (The "Circular" Fix): This is a major contribution. Standard batch norm fails for complex numbers because it doesn't account for the correlation between the real and imaginary parts. The authors treat complex numbers as 2D vectors and perform whitening, ensuring the distribution remains "circular" rather than collapsing into an ellipse. This prevents numerical instability (NaNs) during training.
Comparison of normalization techniques showing Naive Complex Batch Normalization (NCBN) leading to NaNs, while the proposed Complex Batch Normalization (CBN) remains stable.
  • Complex Weight Initialization: They derived a new initialization strategy based on the Rayleigh distribution. This ensures that the variance of the signal stays constant as it moves through the layers, preventing the signal from dying out or blowing up.
  • Complex Activations: They compared several functions, including $\mathbb{C}$ReLU (applying ReLU to the real and imaginary parts separately) and modReLU (which only affects the magnitude).

Datasets

The team evaluated their models across three distinct domains:

  1. Computer Vision: CIFAR-10, CIFAR-100, and a truncated version of the Street View House Numbers (SVHN) dataset.
  2. Music: MusicNet, a large-scale dataset for multi-instrument music transcription.
  3. Speech: The TIMIT dataset, used for predicting the speech spectrum.

Key Insights and Ideas

  • Phase Matters: In audio and speech, the "phase" (the timing/alignment of waves) contains critical structural information. Real-valued networks often discard phase or treat it as a separate, unrelated channel. Complex networks naturally "understand" the relationship between magnitude and phase.
  • The Stability Secret: The paper reveals that naive complex normalization is the primary reason previous attempts failed. By using 2D whitening to "re-circularize" the data, they made deep complex networks as stable to train as their real-valued counterparts.
  • Parameter Efficiency: A complex-valued weight has two components (real and imaginary). While this sounds like more parameters, the authors found that complex networks often outperform real-valued networks even when the total parameter count is lower, suggesting a "richer representational capacity."

Key Results

  • State-of-the-Art in Audio: On MusicNet, the Deep Complex Network achieved 72.9% average precision, significantly outperforming the previous real-valued state-of-the-art (69.6%).
  • Speech Prediction: On the TIMIT task, their Complex Convolutional LSTM (CConv-LSTM) achieved the lowest Mean Squared Error (11.90) compared to standard LSTMs and other specialized architectures.
  • Competitive in Vision: On CIFAR-100, the complex-valued models actually outperformed real-valued ResNets of similar size, proving that complex numbers aren't just for audio—they are a general-purpose tool for deep learning.
Error rates on vision datasets comparing complex architectures with real-valued counterparts. $\mathbb{C}$ReLU emerges as the most effective complex activation.

Limitations and Future Work

  • Computational Overhead: Complex multiplication is mathematically equivalent to four real multiplications. Consequently, these models are roughly 4x more expensive in terms of floating-point operations (FLOPs) than real-valued models with the same number of parameters.
  • Hardware/Software Support: Current deep learning libraries (like cuDNN) are heavily optimized for real-valued operations. The authors had to "simulate" complex math, meaning their implementation doesn't yet see the full speed benefits that dedicated complex-valued kernels would provide.
  • Activation Functions: While $\mathbb{C}$ReLU worked best for feed-forward networks, the authors suggest that finding the "perfect" complex activation function is still an open research question, especially for recurrent architectures.

Summary updated

BibTeX
@inproceedings{trabelsi2018deep,
  author = {Chiheb Trabelsi and Olexa Bilaniuk and Ying Zhang and Dmitriy Serdyuk and Sandeep Subramanian and Joao Felipe Santos and Soroush Mehri and Negar Rostamzadeh and Yoshua Bengio and Christopher J Pal},
  title = {{Deep Complex Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=H1T2hmZAb},
}
Figure