Comments (2)
Thanks for your comments and suggestion.
Your re-formulation is correct. But I don't see how
y = sigma( softmax( q * k + q * r^k + k * r^q + r^q * r^k ) * (v + r^v) )
is different from
y = sigma( softmax( q * k + q * r^q + k * r^k ) * (v + r^v) )
because
- The
r^k
you mentioned in the two papers is calledr^q
in our paper. - The notation of
r^k
andr^q
does not matter because they are simply two learnable vectors. You could use any name for them. - The additional bias term
r^q * r^k
is simply an input-agnostic relative positional bias. And I don't think omitting this term makes much difference.
In addition, we were not aware of the Self-Attention with Relative Position Representations when we formulated it. So we did not follow the tradition that relative positional embeddings are added to q
or k
. Instead, we focused directly on the unfolded formulation and added k
dependent terms to it. And we simply call the vector that will be multiplied with k
, r^k
.
from axial-deeplab.
Thanks for your reply!
Indeed, there is no difference between them in the implementations.
Thanks again.
from axial-deeplab.
Related Issues (20)
- About the class activation map HOT 3
- position-sensitive attention HOT 1
- Seems dist_train.py didn't wrap the model with the synchronize batch norm HOT 2
- Confused about the `transpose` in positional encoding of key HOT 1
- Pretrained weights HOT 3
- Confused about the shape of relative position encoding HOT 4
- how does axial-attention support multi-scale training/testing? HOT 1
- Question about table 9 in paper HOT 3
- What's HERE?? HOT 1
- Training with non-square images HOT 1
- It seems that the code of qkv_transform is missing. HOT 1
- Question about Axial-Res50 HOT 2
- 关于AxialAttention中kernel_size的问题 HOT 1
- Shape of relative position encoding r^q, r^k, r^v HOT 1
- About local constraints HOT 2
- Pretrain_weights HOT 1
- about function parameter “s=0.5” in code
- why batchnormalization after qkv transform?
- Different resolution for inference
- Can it be used in video tasks?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axial-deeplab.