Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why use the pool(x) - x #1

Closed
FlyEgle opened this issue Nov 24, 2021 · 5 comments
Closed

Why use the pool(x) - x #1

FlyEgle opened this issue Nov 24, 2021 · 5 comments

Comments

@FlyEgle
Copy link

FlyEgle commented Nov 24, 2021

I have a quesition for use the pool(x) - x

I give the answer is : pooling is used for smooth x, '-' mean model ignore the same value with the pool size and focus the neightbor wihch small or bigger than smooth x. Reinforcement the relation for the 8-neighboor.

So this pooling is the local-relation, than use the conv mlp mixer to exchange the information for gloabl.

Is that reason? Thank for you replay

@yuweihao
Copy link
Collaborator

Hi @FlyEgle ,

As shown in the paper, since the MetaFormer block already has a residual connection, subtraction of the input
itself is added in Equation (4).

@wsy-yjys
Copy link

@yuweihao Hi, have you tried pool(x)+x or pool(x)?

@yuweihao
Copy link
Collaborator

Hi @wsy-yjys , I tried pool(x) and pool(x) - x. I remember pool(x) -x is better than poo(x) by about 0.2 or 0.3 accuracy (the number is a bit blurry). I have not tried pool(x) + x.

@wsy-yjys
Copy link

@yuweihao Thank you for your reply. I am very curious how did you come up with the idea of pool(x) - x at that time?

@yuweihao
Copy link
Collaborator

yuweihao commented May 20, 2024

@wsy-yjys , from the perspective of image processing, pool(x) is Mean Filter while pool(x) -x ` is Laplacian Filter. At that time, I wanted to specify the token mixers as extremely sample operators, so I tried these simple filters without any learnable parameters. I also gave another explanation in this issue #4 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants