Complex-Valued Input is a neural network architecture that processes IQ data natively as complex numbers, using complex-valued weights and complex activation functions to preserve the phase relationships inherent in the signal. Unlike dual-channel real-valued approaches that split I and Q into separate streams, this method treats the signal as a single analytic entity, enabling the network to learn representations directly in the complex domain.
Glossary
Complex-Valued Input

What is Complex-Valued Input?
A neural network design paradigm that processes in-phase and quadrature data as a single, unified complex number, preserving the intrinsic phase relationships of the signal.
This approach leverages Wirtinger calculus for backpropagation, allowing the network to optimize both the real and imaginary components of weights simultaneously. By maintaining the algebraic structure of the complex baseband signal, complex-valued networks often achieve superior generalization on phase-sensitive tasks like automatic modulation classification, requiring fewer parameters than equivalent real-valued architectures.
Key Characteristics of Complex-Valued Input
Complex-valued neural networks process IQ data as a single mathematical entity, preserving the intrinsic phase and amplitude relationships that real-valued models must learn indirectly.
Holomorphic Activation Functions
Unlike standard ReLU or sigmoid functions that operate on real numbers, complex-valued networks require holomorphic activation functions that are differentiable in the complex domain. Common choices include modReLU, which applies rectification to the magnitude while preserving phase, and cReLU, which applies separate real-valued activations to the real and imaginary parts. The Cauchy-Riemann equations impose strict constraints on fully complex activations, making the design of effective nonlinearities a central research challenge.
Complex Weight Initialization
Proper initialization of complex weights is critical to avoid vanishing or exploding gradients. The complex Gaussian distribution with zero mean and variance scaled by the number of input connections is standard. The phase of each weight is typically drawn from a uniform distribution between -π and π. Improper initialization can cause the network to converge to suboptimal local minima where all phase information is lost.
Wirtinger Calculus for Backpropagation
Standard backpropagation relies on real-valued derivatives. Complex-valued networks use Wirtinger calculus, which treats the complex variable and its complex conjugate as independent entities. This yields two partial derivatives: the R-derivative and the conjugate R-derivative. The gradient descent update is then computed using the conjugate derivative, ensuring the optimization moves in the direction of steepest descent in the complex plane.
Phase-Preserving Convolution
Complex convolution multiplies and accumulates complex-valued filter weights with complex-valued input patches. This operation inherently preserves cross-channel phase relationships that are destroyed when I and Q are processed as separate real channels. The resulting feature maps retain both magnitude and phase information, allowing deeper layers to learn phase-sensitive features such as rotational symmetries in the constellation diagram.
Complex Batch Normalization
Standard batch normalization assumes real-valued data. Complex batch normalization must whiten complex-valued activations by treating the real and imaginary parts as a 2D vector. This requires computing a 2x2 covariance matrix for each batch and applying a whitening transformation that decorrelates and scales the real and imaginary components jointly. This stabilizes training and accelerates convergence for deep complex architectures.
Rotational Invariance Encoding
A key advantage of complex-valued networks is their natural ability to encode rotational equivariance. A phase shift in the input IQ stream, caused by residual carrier offset, corresponds to multiplication by a unit complex number. Complex-valued weights can learn to represent features that are covariant with rotation, meaning the feature representation rotates in lockstep with the input. This eliminates the need for explicit data augmentation with random phase rotations.
Complex-Valued vs. Dual-Channel Real-Valued Input
Comparison of neural network input modalities for processing IQ sample streams, contrasting native complex-valued processing with separated real-valued channel approaches.
| Feature | Complex-Valued Input | Dual-Channel Real-Valued Input | I/Q Spectrogram Input |
|---|---|---|---|
Mathematical Representation | Single complex tensor z = I + jQ | Two separate real tensors (I, Q) | 2D real-valued image (time × frequency) |
Phase Information Preservation | Native preservation via complex multiplication | Implicit through paired channel correlation | Encoded in frequency-domain patterns |
Weight Parameter Type | Complex-valued (real + imaginary parts) | Real-valued only | Real-valued only |
Activation Functions | Complex ReLU, modReLU, cReLU | Standard ReLU, tanh, sigmoid | Standard ReLU, tanh, sigmoid |
Gradient Computation | Wirtinger calculus (complex backpropagation) | Standard real-valued backpropagation | Standard real-valued backpropagation |
Rotational Equivariance | Inherent through complex algebra | Must be learned via data augmentation | Partially encoded via STFT magnitude |
Parameter Efficiency | Higher (2× parameters per complex weight) | Standard | Standard |
Framework Support | Limited (specialized libraries required) | Universal (PyTorch, TensorFlow, JAX) | Universal (PyTorch, TensorFlow, JAX) |
Frequently Asked Questions
Addressing common questions about processing IQ data natively as complex numbers to preserve phase relationships and improve automatic modulation classification performance.
A complex-valued neural network (CVNN) is a network architecture where all parameters—including weights, biases, and activation functions—operate natively in the complex domain (a + jb). Unlike a standard real-valued network that treats the In-Phase (I) and Quadrature (Q) components as two independent real channels, a CVNN processes them as a single unified entity. This is achieved through complex-valued convolution, where the multiplication of a complex weight W = W_R + jW_I with a complex input X = I + jQ naturally mixes the I and Q streams: W * X = (W_R*I - W_I*Q) + j(W_R*Q + W_I*I). This cross-coupling explicitly models the orthogonal relationship between the signal components, preserving the phase structure that is fundamental to modulation schemes like QPSK and QAM. Real-valued dual-channel approaches can theoretically learn this relationship, but they require twice the parameters to approximate a complex multiplication, making CVNNs more parameter-efficient and better at generalizing phase rotations.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Understanding complex-valued inputs requires fluency in the foundational signal representations and preprocessing steps that feed neural networks.
IQ Sample
The fundamental data unit for complex-valued networks. An IQ sample is a discrete time-domain measurement capturing a signal's instantaneous state using an In-Phase (I) and Quadrature (Q) component. This pair mathematically represents a single complex number, encoding both amplitude and phase information without loss.
Complex Baseband
A signal representation centered at zero frequency where the modulating information is expressed as a complex-valued stream. It is mathematically equivalent to the IQ sample pair and is the native domain for complex neural networks, allowing them to process the signal's envelope and phase directly without a high-frequency carrier.
Dual-Channel Input
A practical architecture strategy where the In-Phase (I) and Quadrature (Q) components are treated as two separate real-valued input channels, analogous to the red and blue channels of an image. This allows standard real-valued convolutional layers to process complex data, though it does not natively preserve phase algebra.
I/Q Normalization
A critical preprocessing step that scales the amplitude of an IQ stream to a standard range, typically using Z-score or min-max scaling. This prevents numerical instability during training by ensuring the complex-valued weights and activation functions operate on data with a consistent statistical distribution.
Phase Rotation
A channel-induced or deliberate angular shift applied uniformly to all IQ samples in a segment. It is used as a data augmentation technique to teach complex-valued classifiers rotational invariance, ensuring the model recognizes a modulation scheme regardless of the absolute phase offset of the receiver.
I/Q Imbalance
A hardware impairment in direct-conversion receivers where the gain or phase relationship between the I and Q paths deviates from perfect orthogonality. This distorts the complex plane and is a primary reason for using I/Q Correction algorithms before feeding data to a classifier that expects a pristine complex-valued input.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us