Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

125
Views
CNN Convolution backward pass

I've tried to implement a CNN from scratch in Java. I am not using any external libraries which make things harder.

My CNN has the following structure: Input -> [ConvLayer, Pool, ReLU, FullyConnected] -> Output

These layers can be added behind each other in nearly any order. Every Layer works except the ConvLayer. The forward pass is fine but I am stuck with the backward pass of the error and the update of the weights.

I know that it is some kind of backward convolution with reversed kernels or something like this but I just can't get this to work and it would be great if someone could briefly explain what values have to be multiplied with what values :)

My attempt can be found here: CNN Convolution Layer - Backpropagation problems

I am happy for any kind of help.

Greetings, Finn

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

When we do backward passing for a specific layer, we need

  • Loss or error values at that layer,
  • Output of previous convolutional layer,
  • 'Delta', which is the partial of the loss with respect to convolution output.

The fact is weights updating in convolutional layer is very similar with things you do in fully connected layer. If you have your loss L calculated in fully connected layer, then you can calculate the loss of convolutional layer by partial of L with respect to y, where y is the output of the convolutional layer in your case. Then gradients computing will be the same as you do for fully connected layer.

If you like some description more mathematical, please refer to Backpropagation.

Hope this will help you.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!