1. The advantages of using convolutional layers:
1) Parameter sharing
Feature detectors used in one part of the image (such as vertical edge detection) tend to apply to another part of the image, greatly reducing the amount of parameters
2) Sparse connection
Each output value is only related to a small part of the input value, preventing overfitting
2. CNN still has Cost Function (cost function) and reduces Cost through optimization algorithms