Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

126
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda