Papers
Topics
Authors
Recent
Search
2000 character limit reached

Widely Linear Kernel Activation Functions

Updated 18 November 2025
  • Widely linear kernel activation functions extend standard KAFs by incorporating both the input and its complex conjugate, enabling richer nonlinear transformations.
  • They combine kernel and pseudo-kernel responses with trainable complex coefficients to capture dependencies between real and imaginary parts efficiently.
  • Empirical evaluations show WL-KAFs improve convergence speed and accuracy on complex pattern recognition tasks compared to conventional approaches.

Widely linear kernel activation functions (WL-KAFs) are a family of flexible, data-driven activation functions designed for complex-valued neural networks (CVNNs). These functions extend the kernel activation function (KAF) paradigm to the complex domain by using widely linear kernels, permitting richer nonlinear transformations that exploit both the input and its complex conjugate. WL-KAFs enable enhanced expressivity in CVNNs with minimal computational and parameter overhead, and have demonstrated improved performance on complex-valued pattern recognition tasks (Scardapane et al., 2019).

1. Background: Complex-Valued Neural Networks and KAFs

CVNNs generalize real-valued feedforward networks by allowing all weights, biases, and activations to be complex-valued. For an LL-layer CVNN, the transformation is

f(x)=f(L)(f(2)(f(1)(x))),f(x) = f^{(L)}(\cdots f^{(2)}(f^{(1)}(x))\cdots),

where each layer computes a complex affine transformation followed by an activation: h(i)=Wih(i1)+bih^{(i)} = W_i h^{(i-1)} + b_i, z(i)=g(h(i))z^{(i)} = g(h^{(i)}) with Wi,biW_i, b_i complex, and g:CCg: \mathbb{C}\to\mathbb{C} elementwise. Training minimizes a loss J(w)J(w), typically a sum of a data-dependent loss (e.g., squared error, complex cross-entropy) and a regularization term.

The standard KAF framework sidesteps the need to select a fixed analytic activation gg by learning each neuron's activation function via a one-dimensional kernel expansion. Fixing a dictionary {d1,,dD}C\{d_1,\dots,d_D\}\subset\mathbb{C}, the activation is

g(z)=n=1Dαnκ(z,dn)=k(z)α,g(z) = \sum_{n=1}^D \alpha_n \kappa(z, d_n) = \mathbf{k}(z)^\top \alpha,

where f(x)=f(L)(f(2)(f(1)(x))),f(x) = f^{(L)}(\cdots f^{(2)}(f^{(1)}(x))\cdots),0 are trainable and the kernel f(x)=f(L)(f(2)(f(1)(x))),f(x) = f^{(L)}(\cdots f^{(2)}(f^{(1)}(x))\cdots),1 is usually the complex Gaussian, f(x)=f(L)(f(2)(f(1)(x))),f(x) = f^{(L)}(\cdots f^{(2)}(f^{(1)}(x))\cdots),2.

While KAFs allow neuronwise activations tuned to data, standard complex KAFs are limited; they cannot model arbitrary dependencies between the real and imaginary parts of f(x)=f(L)(f(2)(f(1)(x))),f(x) = f^{(L)}(\cdots f^{(2)}(f^{(1)}(x))\cdots),3, as they entail intrinsic constraints among subblocks of their reproducing kernel Hilbert space (RKHS) representations.

2. Widely Linear Kernel Activation Function Formulation

Widely linear kernels extend KAFs by incorporating a dependence on both f(x)=f(L)(f(2)(f(1)(x))),f(x) = f^{(L)}(\cdots f^{(2)}(f^{(1)}(x))\cdots),4 and its conjugate f(x)=f(L)(f(2)(f(1)(x))),f(x) = f^{(L)}(\cdots f^{(2)}(f^{(1)}(x))\cdots),5, thus lifting the constraint that the expansion models only analytic functions. A widely linear kernel is defined as

f(x)=f(L)(f(2)(f(1)(x))),f(x) = f^{(L)}(\cdots f^{(2)}(f^{(1)}(x))\cdots),6

where f(x)=f(L)(f(2)(f(1)(x))),f(x) = f^{(L)}(\cdots f^{(2)}(f^{(1)}(x))\cdots),7 is the original kernel and f(x)=f(L)(f(2)(f(1)(x))),f(x) = f^{(L)}(\cdots f^{(2)}(f^{(1)}(x))\cdots),8 is the so-called pseudo-kernel, typically involving the conjugate.

The widely linear KAF (WL-KAF) for a single neuron is then

f(x)=f(L)(f(2)(f(1)(x))),f(x) = f^{(L)}(\cdots f^{(2)}(f^{(1)}(x))\cdots),9

where both h(i)=Wih(i1)+bih^{(i)} = W_i h^{(i-1)} + b_i0. In practice, h(i)=Wih(i1)+bih^{(i)} = W_i h^{(i-1)} + b_i1 is often set to h(i)=Wih(i1)+bih^{(i)} = W_i h^{(i-1)} + b_i2, giving the compact trainable form h(i)=Wih(i1)+bih^{(i)} = W_i h^{(i-1)} + b_i3. The number of trainable parameters per neuron remains h(i)=Wih(i1)+bih^{(i)} = W_i h^{(i-1)} + b_i4 complex coefficients, as in the standard KAF.

Different WL-KAF flavors are defined via choices of h(i)=Wih(i1)+bih^{(i)} = W_i h^{(i-1)} + b_i5 and h(i)=Wih(i1)+bih^{(i)} = W_i h^{(i-1)} + b_i6:

  • Case 1 (Independent real/imag parts):

h(i)=Wih(i1)+bih^{(i)} = W_i h^{(i-1)} + b_i7

with bandwidths h(i)=Wih(i1)+bih^{(i)} = W_i h^{(i-1)} + b_i8.

  • Case 2 (Mixed-effects separable kernels):

h(i)=Wih(i1)+bih^{(i)} = W_i h^{(i-1)} + b_i9

where each z(i)=g(h(i))z^{(i)} = g(h^{(i)})0 is real-valued (typically Gaussian) and z(i)=g(h(i))z^{(i)} = g(h^{(i)})1.

These forms allow independent or coupled modeling of real and imaginary parts, and can recover the standard KAF as a special case.

3. Training, Architecture, and Implementation

WL-KAFs are integrated into CVNN layers as drop-in replacements for analytic nonlinearities. The forward pass for a neuron computes the kernel and pseudo-kernel response vectors, uses the learned mixing coefficients, and outputs the linear combination:

  1. Linear preactivation: z(i)=g(h(i))z^{(i)} = g(h^{(i)})2.
  2. For neuron z(i)=g(h(i))z^{(i)} = g(h^{(i)})3, compute z(i)=g(h(i))z^{(i)} = g(h^{(i)})4 and z(i)=g(h(i))z^{(i)} = g(h^{(i)})5.
  3. Output: z(i)=g(h(i))z^{(i)} = g(h^{(i)})6.

Gradients are propagated using

  • z(i)=g(h(i))z^{(i)} = g(h^{(i)})7
  • z(i)=g(h(i))z^{(i)} = g(h^{(i)})8
  • z(i)=g(h(i))z^{(i)} = g(h^{(i)})9

Training employs standard optimizers (e.g., Adagrad, Adam). Hyperparameters include the dictionary size Wi,biW_i, b_i0 (e.g., Wi,biW_i, b_i1 or Wi,biW_i, b_i2), dictionary grid (uniform over Wi,biW_i, b_i3), kernel bandwidths (Wi,biW_i, b_i4), and regularization constant Wi,biW_i, b_i5. Dictionary elements and kernel bandwidths are typically initialized using heuristics, then fine-tuned by gradient descent. Early stopping and weight decay on the kernel coefficients are recommended.

In terms of complexity:

  • Each neuron retains Wi,biW_i, b_i6 complex coefficients (as in standard KAF).
  • Forward/backward pass per neuron has Wi,biW_i, b_i7 cost for both kernel and pseudo-kernel, effectively doubling kernel computations relative to standard KAF, though this is a minor constant factor.

4. Empirical Evaluation and Results

Performance was investigated on image-classification benchmarks transformed to the complex domain using 2D FFT, with the top 100 coefficients per image selected as Wi,biW_i, b_i8 vectors. Datasets included MNIST, Fashion-MNIST, EMNIST Digits, and Latin OCR.

Each model used three hidden layers of 100 complex neurons with KAF or WL-KAF activations; the output layer performed a softmax on Wi,biW_i, b_i9. Optimization used Adagrad, batch size 40, with grid search to tune regularization.

Test accuracy (mean g:CCg: \mathbb{C}\to\mathbb{C}0 std over five runs):

Model MNIST (%) F-MNIST (%) EMNIST-D (%) Latin OCR (%)
Real-valued NN 92.39 g:CCg: \mathbb{C}\to\mathbb{C}1 0.10 71.08 g:CCg: \mathbb{C}\to\mathbb{C}2 0.45 92.78 g:CCg: \mathbb{C}\to\mathbb{C}3 1.25 39.01 g:CCg: \mathbb{C}\to\mathbb{C}4 3.42
Complex KAF 97.18 g:CCg: \mathbb{C}\to\mathbb{C}5 0.27 81.94 g:CCg: \mathbb{C}\to\mathbb{C}6 0.91 98.11 g:CCg: \mathbb{C}\to\mathbb{C}7 2.04 71.79 g:CCg: \mathbb{C}\to\mathbb{C}8 2.40
WL-KAF (Case 1) 97.50 g:CCg: \mathbb{C}\to\mathbb{C}9 0.41 77.29 J(w)J(w)0 2.43 98.46 J(w)J(w)1 0.12 74.57 J(w)J(w)2 0.80
WL-KAF (Case 2) 96.22 J(w)J(w)3 0.74 82.89 J(w)J(w)4 1.09 99.03 J(w)J(w)5 1.01 72.53 J(w)J(w)6 0.36

WL-KAFs achieved performance improvements over standard KAFs that were statistically significant at J(w)J(w)7 using paired J(w)J(w)8-tests. Convergence speed with WL-KAFs was typically faster (plateau at J(w)J(w)94,000 iterations) compared to standard KAFs (gg06,000 iterations) (Scardapane et al., 2019).

5. Practical Considerations and Recommendations

  • Expressiveness vs. cost: WL-KAFs provide a substantial gain in nonlinear modeling power with negligible increase in parameter count or computational footprint. Their use is preferred over standard KAFs except in highly constrained deployment scenarios.
  • Case selection: Case 1 is suitable when the real and imaginary parts of the nonlinearity are approximately independent, minimizing hyperparameter requirements. Case 2 is indicated where modeling cross-correlation is necessary, e.g., in signal processing.
  • Hyperparameter tuning:
    • Dictionary: choose elements covering typical activation range (e.g., uniform in gg1).
    • Bandwidth: initialize by median heuristic or rules from real KAF literature, allow further tuning.
    • Dictionary size gg2 should remain moderate (16–64) to balance capacity and overfitting risk.
  • Regularization and optimization:
    • Apply weight decay on gg3 coefficients.
    • Employ early stopping based on validation loss.
    • Adaptive optimizers such as Adagrad or Adam handle the disparity in gradient scales.
    • Monitor gradient norms for real and imaginary components independently to maintain training stability.

For practical deployment, implementing WL-KAFs involves fixing the complex dictionary, coding the forward and backward routines for both kernel and pseudo-kernel, integrating with CVNN libraries (e.g., TensorFlow, PyTorch), and tuning the principal hyperparameters (gg4, gg5, gg6, optionally gg7 and gg8). These steps suffice to equip CVNNs with neuron-specific, highly expressive nonlinearities suitable for a broad class of complex-valued learning problems (Scardapane et al., 2019).

6. Context and Significance

Widely linear kernel activation functions address a foundational limitation of standard (analytic) KAFs by enabling the modeling of arbitrary dependencies between real and imaginary parts in complex-valued transformations. This is accomplished without increasing the number of trainable parameters per neuron. The observed empirical gains—in accuracy and convergence rate—across standard complex pattern recognition benchmarks underscore their utility in both scientific and engineering contexts. Their introduction represents a principled extension of KAF theory, contributing to the expressiveness and practicality of modern CVNNs (Scardapane et al., 2019).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Widely Linear Kernel Activation Functions.