← Reference · Nestor G Pestelos Jr

Reference Document

Deep Neural Networks

A citable reference on Deep Neural Networks (DNNs): multi-layer architecture, non-linear activation functions, backpropagation via the chain rule, and hierarchical representation learning.

See Also & Related References

Jump to Section

1. Definition & Mathematical Formulation

A Deep Neural Network (DNN) is an artificial neural network with multiple hidden layers (\(L \ge 2\)) between its input and output layers. Mathematically, a DNN is a nested composite function that maps an input vector \(x \in \mathbb{R}^{d_{in}}\) to an output vector \(y \in \mathbb{R}^{d_{out}}\):

$$y = f(x; \theta) = f_L\Big(f_{L-1}\big(\dots f_1(x; W_1, b_1)\dots; W_{L-1}, b_{L-1}\big); W_L, b_L\Big)$$

where each layer \(l\) computes an affine linear transformation followed by an element-wise non-linear activation function \(\sigma\):

$$h_l = \sigma(W_l h_{l-1} + b_l)$$

2. The Necessity of Non-Linearity

Without non-linear activation functions, any deep composition of linear layers collapses algebraically into a single matrix multiplication:

$$W_3 (W_2 (W_1 x)) = (W_3 W_2 W_1) x = W_{net} x$$

Non-linear activations (e.g. ReLU \(\max(0, x)\), GELU \(x \Phi(x)\), SwiGLU) allow the network to construct complex, non-linear decision boundaries. Under the Universal Approximation Theorem (Cybenko 1989, Hornik 1991), non-linear feedforward networks can approximate any continuous function on compact subsets of \(\mathbb{R}^n\) to arbitrary precision.

3. Hierarchical Representation Learning

The fundamental advantage of depth over width is automatic feature hierarchy extraction:

4. Training, Loss & Backpropagation

Deep networks are trained end-to-end via gradient descent by minimizing an objective empirical loss function \(\mathcal{L}(y_{pred}, y_{true})\) (e.g. Cross-Entropy Loss for language modeling).

5. Major Architectural Families

Family Core Structural Mechanism Primary Domains
Multilayer Perceptrons (MLPs) Fully-connected dense linear transformations. Tabular data, classification heads, inner projection blocks.
Convolutional Neural Networks (CNNs) Spatial weight sharing and translation equivariance via sliding filters. Computer vision, medical imaging, audio spectrogram analysis.
Recurrent Neural Networks (RNNs / LSTMs) Sequential hidden-state recurrence across time steps. Time series, legacy machine translation.
Transformers (Self-Attention Networks) Pairwise dot-product attention scaling across sequence length. Modern Large Language Models, vision transformers (ViT), multimodal foundation models.