Skip to content

why MEMIT+'s adj_k add layer_kp @ layer_kp.T? #7

Description

@jasonrichdarmawan

Hi,

I am trying to understand AnyEdit. However, I am not sure why we add layer_kp @ layer_kp.T when computing adj_k. I understand MEMIT weight update is from the objective function, which does not have layer_kp @ layer_kp.T, but what about MEMIT+'s?

Note: my motivation is to understand how the objective function derived into weight update, like MEMIT. I am especially interested why layer_kp is only used in the left side of AX=B and there is comment of layer_kp @ layer_kp.T in the right side

adj_k = torch.linalg.solve(
hparams.mom2_update_weight * cov + layer_kp @ layer_kp.T +layer_ks @ layer_ks.T, #layer_kp @ layer_kp.T +
layer_ks
)

Image Image

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