Questions tagged [residual-networks]

A type of neural network architecture suggested in 2015 that allows to train very deep networks with 100s or 1000s of layers.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Different convergence rate between two different data representations with same neural net

I am currently training a ResNet18 on audio data recordings using Mel Spectrograms which are of shape $(128,6025)$ and a different, less known audio data representation - the Multi-Resolution ...
user avatar
  • 71
1 vote
0 answers
7 views

How does the fixed point interation in invertible resnets work?

I feel like I am missing some easy point about this invertible resnet paper which is making it hard for me to grasp how the fixed point iteration works. stated simply, the residual connection in a ...
user avatar
  • 639
0 votes
0 answers
59 views

How to architect an encoder-decoder architecture using ResNets?

I am trying to implement my own encoder/decoder architecture in Pytorch. Specifically I am trying to use ResNet-18, both for encoding and decoding part. While by following the paper I believe I ...
user avatar
1 vote
0 answers
16 views

Backprop in Residual neural network?

I'm trying to build a Residual neural network with 2 layers , and I'm having difficultiy understanding what are the equations for the backprop for the following : $$ W_{2}x+tanh(W_{1}x+b_1)+b_2 $$ ...
user avatar
1 vote
0 answers
61 views

Derive the gradient matrices w.r.t. W1 and W2 and backprop equation in a Residual Network [closed]

How would I go about deriving gradient matrices w.r.t. W1 and W2 and backpropagation equation in a residual block that is a part of a larger ResNet network with forward propagation expressed as: $$ F(...
user avatar
  • 11
7 votes
1 answer
2k views

Why are residual connections needed in transformer architectures?

Residual connections are often motivated by the fact that very deep neural networks tend to "forget" some features of their input data-set samples during training. This problem is ...
user avatar
0 votes
0 answers
6 views

How does ResNet perform identity shortcut when the number of channels needs to be adjusted? [duplicate]

I'm reading the research paper of Resnet: https://arxiv.org/pdf/1512.03385.pdf When testing various ways to perform shortcut connections, they start off with this option: (A) zero-padding shortcuts ...
user avatar
2 votes
1 answer
99 views

Is it necessary to skip two or more layers in ResNets?

I was watching Andrew Ng's video about ResNets and in that video he skipped 2 layers while "short cutting" them. For example, if we have input $a^{l}$, next layer will be $a^{l+1} = g(z^{l+1}...
user avatar
  • 133
5 votes
1 answer
191 views

Are there any weight matrices of residual connections in ResNet?

In the resnet and its variants, such as (taken from here) Do these shortcut connections have any weight matrices (and bias) associated with them or do they simply copy the same output and transfer it ...
user avatar
  • 199
0 votes
0 answers
18 views

equal error rate increasing while training speaker recognition model

I'm training a ResNet-based speaker recognition model. This is a fixed-data training protocol. I am validating my model on a different test set. The issue is the more I am training it seems the VEER ...
user avatar
1 vote
1 answer
154 views

Look ahead bias in the skip connection of the Transformer-decoder/GPT2 architecture

How come the residual connection on the attention module in Decoder-Transformers/GPT2 does not cause a look ahead bias? This is my current understanding: GPT is similar to the decoder side of the ...
user avatar
0 votes
0 answers
11 views

How does Residual Shift work in the Temporal Shift Paper?

While reading this paper, I came across the paragraph, "Instead of inserting it in-place, we put the TSM inside the residual branch in a residual block. We denote such version of shift as ...
user avatar
1 vote
0 answers
27 views

Why are shrinkage methods not effective for regularizing CNN?

This is going to be a very specific question. TLDR: I tried to use various shrinkage methods (L1, L2,...) to "emulate" what ResNet does, but they all sucked. Why? I'd like to start with a ...
user avatar
0 votes
1 answer
217 views

Max Pooling vs Average Pooling for residual/skip connections

I've implemented a CNN with skip connections; some connections skip across residual blocks with no spatial downsampling but some connections skip across blocks that have convolutions with a stride of ...
user avatar
  • 1,036
2 votes
0 answers
48 views

Why is the block size in ResNets usually 2 or 3 layers and not more?

Is there a reason why only 2 or 3 layers are skipped by a shortcut connection? What benefits would it have to skip more than 3 layers? I do not find an obvious answer besides that increasing the block ...
user avatar
3 votes
1 answer
381 views

Is a Residual Network a Feedforward Network?

I am really confused about people comparing feedforward networks to residual networks. This is done in several papers I have read into (just one for example, first line in this paper: https://arxiv....
user avatar
1 vote
0 answers
207 views

Does the 'skip' in a residual network actually happen in the backward pass?

The following is a question regarding a residual block. Let $A^{[l-1]\{t\}}$ denote the activation of the $(l-1)^\mathrm{th}$ layer of a particular fully connected neural network, given the $t^\mathrm{...
user avatar
2 votes
1 answer
18 views

Residual Networks - Non-image use cases

I've been doing some research into computer vision lately and constantly come across the ability of residual networks to improve performance. Intuitively I think I grasp them, however, I struggle to ...
user avatar
1 vote
0 answers
168 views

How to calculate number-of-ops used in the backward pass of the neural net in training phase?

I'm trying to study a basic model like ResNet and how many operations it does and memory usage during backward-pass. For forward pass for layer like 1x1 conv or 3x3 conv, i was able to easily compute ...
user avatar
  • 309
-1 votes
1 answer
113 views

Where is BatchNorm performed in ResNeXT https://github.com/facebookresearch/ResNeXt neural network?

In the original paper that described ResNeXT (variation of Resnet) at https://arxiv.org/pdf/1611.05431.pdf. On Page-5 top right column, it says: ReLU is performed right after eachBN, expect for ...
user avatar
  • 309
2 votes
1 answer
576 views

how is this Bottleneck design the same as original residual block in resnet?

This paper/link talks about resnet's bottleneck design. It's totally not clear to me how the bottleneck design on the right is equivalent to the left-diagram and how is it reducing the parameters? ...
user avatar
  • 309
3 votes
1 answer
2k views

Why does residual block in resnet shown as skipping not just 1-layer (conv + relu) but also the next weight layer?

I was reading about resnet at this link. This link and others say that residual block skips 1-layer, but then all of them show a diagram where there is an additional weight layer (i think it can be ...
user avatar
  • 309
1 vote
0 answers
183 views

How to pad skip connections when using transposed / deconvolutional layers

if you have a standard CNN architecture with convolutional layers there are 2 reasons why the identity of the skip connection can't be added with the current output. 1) There was pooling between the ...
user avatar
  • 158
0 votes
1 answer
134 views

Can residual connection affect the learning of skipped layers?

My understanding of residual connection is it could help avoid degradation by making $F(x)$, the skipped layers, close to 0 so that when $F(x)$ become redundant it won't hurt the performance. What ...
user avatar
0 votes
1 answer
22 views

How do Residual layers not inhibit the learning?

My understanding of residual layers is that we can take a layer and branch it into two paths. One going the typical path for a network, and the other is an identity mapping forward over the ...
user avatar
3 votes
0 answers
108 views

How harmful is a wide Dense layer after a narrow?

My CNN-LSTM EEG Keras classification model includes a Dense 'shortcut' connection for residual sequence learning as shown below; to match dimensionality, the Dense layer's set to ...
user avatar
1 vote
0 answers
239 views

Why is my keras resnet50 model overfitting? [duplicate]

I have applied Keras ResNet-50 on a small x-ray image dataset. I tried making layers both trainable and non-trainable, but my model validation accuracy doesn't improve above 50%. I don't understand ...
user avatar
1 vote
1 answer
266 views

Why resolution is not important for pre-trained models

As far as I understand (and even successfully applied in Kaggle competition), it's possible to feed images of any resolution into the pre-trained model (e.g. ResNet34). But I do not understand, why it ...
user avatar
  • 113
0 votes
1 answer
384 views

Residual Network: Is small deviation of layer response good? What's the point of resnet?

I have 2 questions... In the paper Deep Residual Learning for Image Recognition, it says We show by experiments (Fig. 7) that the learned residual functions in general have small responses, ...
user avatar
1 vote
1 answer
520 views

ResNet 34 training with custom dataset

I am a beginner in Neural Networks and wanted to implement ResNet34 for a pet project at my workplace. Due to confidentiality issues, I do not want to use ImageNet trained weights. I have a dataset ...
user avatar
1 vote
1 answer
3k views

How does backpropagation in residual network works?

i am studying the deep residual network currently, and i cannot fully understand how backpropagation in residual network works. Here some parts of the paper that i read. so, how does the ...
user avatar
2 votes
1 answer
932 views

ResNet: What is the content of the second skip-connection?

I have a question regarding the second skip connection in ResNet. Here is a part of the image of the architecture as it was presented in the paper: As I understand the output of the pool layer gets ...
user avatar
  • 158
5 votes
1 answer
484 views

Can a residual neural network be interpreted as a form of ensemble learning?

I stumbled over this paper: "Veit, A., Wilber, M. & Belongie, S. Residual Networks Behave Like Ensembles of Relatively Shallow Networks. (2016).". In it, they argue that residual neural ...
user avatar
4 votes
1 answer
617 views

How to initialize weights in the presence of skip connections?

Weight initialization is an important parameter for success in large networks, in the absence of techniques such as batch normalization that reduces their impact. There are known initialization ...
user avatar
  • 147
3 votes
1 answer
1k views

How do the residual blocks prevent exploding gradients?

I am reading Roger Grosse's lecture notes on ResNet and I have a question regarding the explanation on how residue blocks prevent gradient explosion, see the screenshot below: My confusion is: this ...
user avatar
  • 51
0 votes
1 answer
469 views

Residual connection in Xception [closed]

I am trying to understand residual connection in Xception. If I am getting right, there's nothing really happen in residual connection (right figure) because it is just addition. But, I could not ...
user avatar
  • 3
2 votes
1 answer
6k views

How resNet increasing the dimension?

In the above image, It is the part of the resNet Architecture, here they have used dotted line to increase the dimension, but my question is How they are increasing the dimension?? or this dotted line ...
user avatar
  • 181
28 votes
4 answers
38k views

What are "residual connections" in RNNs?

In Google's paper Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation, it is stated Our LSTM RNNs have $8$ layers, with residual connections between ...
user avatar
2 votes
1 answer
1k views

Residual network: why is each block learning residual error with respect to identity mapping?

In original version of neural network, it learns H(x) from input x, and in the residual network, it is said that learning is improved by learning only residual error with respect to identity mapping, ...
user avatar
11 votes
3 answers
9k views

Shortcut connections in ResNet with different spatial sizes

If I take Fig.3 of the paper "Deep residual learning for image recognition", and look at the following piece of the residual network: $3\times3$ conv, 64 filters ...
user avatar
  • 211
1 vote
0 answers
140 views

Validation error smaller than training error in Deep Residual Learning for Image Recognition paper

At one of the examples of Deep Residual Learning for Image Recognition paper, figure 4, leftmost graph it's said that thin curves denote training error and bold curves validation error. Throughout ...
user avatar
  • 111
0 votes
1 answer
406 views

How neural networks manages to learn 0 class for sigmoidal Cross-Entropy loss function using ReLU as activation unit?

Let's say we have binary classification problem: 0 vs 1. Some set of images needs to be mapped to those labels by convolutional neural network. Main trend for now is to use ReLu as activation unit, ...
user avatar
4 votes
1 answer
690 views

Are shortcut connections with stride > 1 still "identity mappings" in ResNets?

In Deep Residual Learning for Image Recognition, I am trying to understand better the "dotted shortcuts" from Figure 3, where the first convolutional layer in those shortcuts is applied with stride of ...
user avatar
12 votes
1 answer
10k views

What exactly is a Residual Learning block in the context of Deep Residual Networks in Deep Learning?

I was reading the paper Deep Residual Learning for Image Recognition and I had difficulties understanding with 100% certainty what a residual block entails computationally. Reading their paper they ...
user avatar
11 votes
3 answers
7k views

Why do residual networks work?

I have a few questions about the paper Deep Residual Learning for Image Recognition by Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun. The building blocks of residual networks can be viewed as ...
user avatar
3 votes
2 answers
426 views

Do ResNets from Microsoft experts represent convolutional neural nets?

I am talking about the article of Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun (Microsoft Research team): "Deep Residual Learning for Image Recognitione (2015)" ResNets won the 1-st place at ...
user avatar
5 votes
2 answers
2k views

How does the Identity connection in ResNets work

I am currently going through the Research paper "Deep Learning for Image recognition" by Kaiming He. I don't quite understand the concept of shortcut connections. Suppose the input to the residual ...
user avatar
  • 408
14 votes
2 answers
2k views

Are Residual Networks related to Gradient Boosting?

Recently, we saw the emergence of the Residual Neural Net, wherein, each layer consists of a computational module $c_i$ and a shortcut connection that preserves the input to the layer such as the ...
user avatar
  • 970
6 votes
1 answer
1k views

Residual network dimension changing blocks identity function

In trying to implement ResNet with bottleneck blocks for myself, I got very confused about the identity function residual blocks with different dimensions. They compared identity, conv projections on ...
user avatar
  • 61