Add DL expressivity

This commit is contained in:
2024-02-28 21:40:00 +01:00
parent 8e52be7518
commit c0b02f2d79
3 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,58 @@
\chapter{Neural networks expressivity}
\section{Perceptron}
Single neuron that defines a binary threshold through a hyperplane:
\[
\begin{cases}
1 & \sum_{i} w_i x_i + b \geq 0 \\
0 & \text{otherwise}
\end{cases}
\]
\begin{description}
\item[Expressivity] \marginnote{Perceptron expressivity}
A perceptron can represent a NAND gate but not a XOR gate.
\begin{center}
\begin{minipage}{.2\textwidth}
\centering
\includegraphics[width=\textwidth]{img/perceptron_nand.pdf}
\tiny NAND
\end{minipage}
\begin{minipage}{.2\textwidth}
\centering
\includegraphics[width=\textwidth]{img/xor.pdf}
\tiny XOR
\end{minipage}
\end{center}
\begin{remark}
Even if NAND is logically complete, the strict definition of a perceptron is not a composition of them.
\end{remark}
\end{description}
\section{Multi-layer perceptron}
Composition of perceptrons.
\begin{descriptionlist}
\item[Shallow neural network] \marginnote{Shallow NN}
Neural network with one hidden layer.
\item[Deep neural network] \marginnote{Deep NN}
Neural network with more than one hidden layer.
\end{descriptionlist}
\begin{description}
\item[Expressivity] \marginnote{Multi-layer perceptron expressivity}
Shallow neural networks allow to approximate any continuous function
\[ f: \mathbb{R} \rightarrow [0, 1] \]
\begin{remark}
Still, deep neural networks allow to use less neural units.
\end{remark}
\end{description}