Skip to content

Learning rate in MEND edit procedure #15

@Xiaoxi-Luo-CL

Description

@Xiaoxi-Luo-CL

Hi, I have a small question about MEND edit procedure in test time:
In your paper's Algorithm 2, line 7 (updating the weight matrix of layer $l$), you wrote $\tilde{W}l \gets W_l-\tilde{\delta}{l+1} \tilde{u}_l ^T$, and there is no learning rate in this equation. However, in mend.py, line 227,
updates = {n: lr * g for lr, (n, g) in zip(self.edit_lrs, mean_grads.items())},
there actually is learning rate when updating, right?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions