M2- Autoencoders
M2- Autoencoders
Presented By:
1
What is Autoencoders?
2
Components of Autoencoders
★ Encoder.
★ Code/Bottleneck.
★ Decoder
3
Basic architecture of autoencoders 4
Properties of Autoencoders
Unsupervised
Data-specific
Lossy
5
Autoencoders and PCA
★ Both PCA and autoencoders are used for
dimensionality reduction.
Overfitting :
Training data - high accuracy
9
Two main types of Regularization
L1 Regularization(Lasso Regression)
10
L1 Regularization(Lasso Regression):
regularization
actual target value
parameter
number of examples coefficient
predicted target value 11
L2 Regularization (Ridge Regression):
number of examples
regularization coefficient
actual target value
parameter
12
predicted target value
Denoising autoencoders
Remove noise from data.
Helps to avoid the autoencoders to copy the input to the output, without learning
features about the data .
13
Denoising Autoencoders
14
15
Sparse Autoencoder
A Sparse Autoencoder (SAE) is a type of autoencoder that enforces
sparsity on the hidden layer.
Most neurons are inactive, Only a few neurons “light up” at a time.
Think of it like: A team where only the specialists work on a task, not
everyone
16
Here is the diagram of SAE
where only blue color
neurons are activate and
rest others are in neutral
state for a particular
training dataset
17
Advantages of Sparse Autoencoder
Improved Generalization
Feature Extraction
18
How Do We Make It Sparse
Add a rule (called an L1 penalty) to the training process.
Analogy: Like paying a small fine every time too many team members join
in—keeps the group small.
19
Contractive Autoencoder
Encoder
compresses
noisy image into
a lower-
dimensional
representation.
Decoder
reconstructs
original image
from compressed
representation. 20
Working of CAE
Additional regularization constraints that enforce robustness.
Ensures that each neuron does not overreact to slight input variations,
making the encoding more stable and robust
21
Sensitivity
here,
hi --> output image
xj ---> input image
22
Loss Function
Loss
Reconstruction Error
coefficient penalty factor
for sensitivity and
stability
23
24
Thank You
25