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

About hypothesis generation #57

Open
MarkDeng1 opened this issue Jul 10, 2024 · 1 comment
Open

About hypothesis generation #57

MarkDeng1 opened this issue Jul 10, 2024 · 1 comment
Labels
question Further information is requested

Comments

@MarkDeng1
Copy link

I would like to ask how your hypothesis is generated. I have read the article many times but find it difficult to understand. The initial hypothesis is directly input into the trained inversion model, resulting in x^(0). Then, to obtain x^(1), we need e, \hat{e}^(0), and X^(0). How are these obtained? We currently only have one inversion model (i.e. the decoder and target embedding model). The input dimension of the decoder should be consistent with e. How do we input e and e(0) together?

Thanks

@jxmorris12 jxmorris12 added the question Further information is requested label Jul 10, 2024
@jxmorris12
Copy link
Owner

Hi! Thanks for the questions. If you have any feedback on how to make the paper clearer I'm happy to make changes.

There are two models. One model, which we call the inverter, outputs hypothesis text given a true embedding. The second model, which we call the corrector, outputs hypothesis text given three things: a true embedding, a hypothesis text, and a hypothesis embedding. The corrector takes the concatenation of the text embeddings of the hypothesis as well as the 'unrolled' true embedding and 'unrolled' hypothesis embedding. They all just form one long sequence.

The mechanism inside the corrector might be easier to understand if you read through the code: https://github.com/jxmorris12/vec2text/blob/master/vec2text/models/corrector_encoder.py#L75-L142

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

No branches or pull requests

2 participants