Solved – Difference between “kernel” and “filter” in CNN

conv-neural-networkdeep learningneural networksterminology

What is the difference between the terms "kernel" and "filter" in the context of convolutional neural networks?

Best Answer

In the context of convolutional neural networks, kernel = filter = feature detector.


Here is a great illustration from Stanford's deep learning tutorial (also nicely explained by Denny Britz).

enter image description here

The filter is the yellow sliding window, and its value is:

\begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 0 \\ 1 & 0 & 1 \end{bmatrix}