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

Question regarding policy of memory pruning #38

Open
lorafib opened this issue Nov 19, 2024 · 1 comment
Open

Question regarding policy of memory pruning #38

lorafib opened this issue Nov 19, 2024 · 1 comment

Comments

@lorafib
Copy link

lorafib commented Nov 19, 2024

Hey,

thanks for sharing your exciting work!

I have a question regarding a minor thing in the memory pruning logic.
As far as I understood, the weights for finding relevant features are masked to keep the working memory at the beginning of memory_prune() by:

weights[self.mem_count<self.work_mem_size+5] = 1e8

However, I saw this mysterious +5 in there. Could you maybe explain why it's there?

Additionally, in the paper in Figure 7 we see a performance drop for a number of tokens < 2000. Could it be that this stems from this logic? My feeling would be that this will basically set the same weight for 1960 tokens in the memory, and if the memory gets pruned to a smaller number, "random" features are thrown out. Do you think this might explain this trend or have you used a different working memory size for this experiment?

Thanks again!

@HengyiWang
Copy link
Owner

Thanks @lorafib for flagging this issue! Yes, I think you are right! I double-checked with the code and that +5 used to be there because, at the early stage, I want to ensure the memory features stay in long-term memory for an extra 5 frames and then get pruned. However, this indeed causes the issues you mentioned.

After fixing that issue, the number of memory features can be further compressed to less than 1500 on the 7scenes dataset. I will update the paper for the camera-ready version. Thanks:)

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

2 participants