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

Is context images really needed during few-shot inference? #278

Open
zhang9302002 opened this issue Nov 7, 2023 · 0 comments
Open

Is context images really needed during few-shot inference? #278

zhang9302002 opened this issue Nov 7, 2023 · 0 comments

Comments

@zhang9302002
Copy link

Dear author,

I am reproducing few-shot image captioning task recently. I notice that in Flamingo and OpenFlamingo setting, one token can only attend to one previous image (or none). This means that, suppose we're performing a k-shot image caption, the newly generated token can only attend to the query image, and therefore the previous k context images can't be accessed anyhow. The generation process only depends on the query image, and the context (image, text) pair serve as text tokens and '' token only, not containing any visual information encoded.

I tried some experiments and found that using (image, text) as context, or (text) as context, this 2 setting seem have very similar CIDEr. I'm wondering if it means Flamingo few-shot inference only depends on k pure-text context, instead of (image, text) paired context? Or if I missed some details.

Thank you :)

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

1 participant