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

Code for computing the right vector for the rank-1 update #32

Open
QZH-777 opened this issue Mar 17, 2023 · 1 comment
Open

Code for computing the right vector for the rank-1 update #32

QZH-777 opened this issue Mar 17, 2023 · 1 comment

Comments

@QZH-777
Copy link

QZH-777 commented Mar 17, 2023

In the compute_v function of rome/compute_v.py, you use the get_module_input_output_at_word function to get cur_input and cur_output.
image
In details, cur_input and cur_output are obtained by inputting “Steve Jobs was the founder of” to gpt2-xl. So cur_input, cur_output are not equal to k*, and W_{proj} k*, but you seem to use cur_input and cur_output as k* and W_{proj} k* when calculating the right vector for the rank-1 update, which is slightly different from your proposed equation (2) in the paper. I wonder why you use this method to approximate k*, and W_{proj} k*?

@LuoXiaoxi-cxq
Copy link

I have the same question.

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