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

Evidentiality-guided Generator - Retrieval model #15387

Open
3 tasks done
patrickvonplaten opened this issue Jan 28, 2022 · 10 comments
Open
3 tasks done

Evidentiality-guided Generator - Retrieval model #15387

patrickvonplaten opened this issue Jan 28, 2022 · 10 comments

Comments

@patrickvonplaten
Copy link
Contributor

🌟 New model addition

Model description

In this paper, we introduce Evidentiality-guided GGenerator, which incorporates evidentiality of passages---whether a passage contains correct evidence to support the output---into training the generator via multi-task learning of answer generation and evidentiality prediction for retrieval-augmented generation. Experimental results show large improvements across three knowledge intensive tasks: open question answering, fact verification and knowledge-enhanced dialogue.

Open source status

Happy to guide anyone who is interested through adding this model! Seems like it gives some nice improvements over RAG!

@qqaatw - maybe interesting for you ;-)

@patrickvonplaten
Copy link
Contributor Author

cc @patil-suraj

@qqaatw
Copy link
Contributor

qqaatw commented Jan 29, 2022

I think we could firstly add Fusion-in-Decoder (FiD), paper and code, since Evidentiality-guided Generator is based on it.

@bhavitvyamalik
Copy link
Contributor

Hi everyone, Can I work on adding Fusion-in-Decoder (FiD) to Transformers?

@patrickvonplaten
Copy link
Contributor Author

Yeah that makes sense - @patil-suraj actually mentioned the same!

@patrickvonplaten
Copy link
Contributor Author

@bhavitvyamalik - definitely! I think @qqaatw and I would be happy to guide you. Do you want to open a PR for it?

@bhavitvyamalik
Copy link
Contributor

I was just going through the paper and will open a PR for it! Since this will be my first model contribution to Transformers, I wanted to know if there any guidlines that I should follow for the same?

@qqaatw
Copy link
Contributor

qqaatw commented Jan 29, 2022

@patrickvonplaten - absolutely! After Fusion-in-Decoder (FiD) is merged, I can open a follow-up addition for Evidentiality-guided Generator.

@bhavitvyamalik - I think having a look at contributing guidelines would be helpful in the first step :-)

@bhavitvyamalik
Copy link
Contributor

bhavitvyamalik commented Feb 1, 2022

Update: Preparing the original train/val/test data took some time as they were loading the full wikipedia dump (~13GB) in memory which was not possible from my side. I tried forward pass with available pretrained weights after removing functions that were not required and it worked well! I had a doubt related to FiD:

Integrating the retrieval in FiD is part of their future work, which means the users will have to input the context by themselves. So in what format should I get input from user? Current implementation is taking input like this:

[
    {
        "question":"who got the first nobel prize in physics",
        "answers":[
            "Wilhelm Conrad Röntgen"
        ],
        "ctxs":[
            {
                "title":"Nobel Prize in Physics",
                "text":"Nobel Prize in Physics The Nobel Prize in Physics () is a yearly award given by the Royal Swedish Academy of Sciences for those who have made the most outstanding contributions for mankind in the field of physics. It is one of the five Nobel Prizes established by the will of Alfred Nobel in 1895 and awarded since 1901; the others being the Nobel Prize in Chemistry, Nobel Prize in Literature, Nobel Peace Prize, and Nobel Prize in Physiology or Medicine. The first Nobel Prize in Physics was awarded to physicist Wilhelm Röntgen in recognition of the extraordinary services he"
            },
            {
                "title":"Nobel Prize",
                "text":"His son, George Paget Thomson, received the same prize in 1937 for showing that they also have the properties of waves. William Henry Bragg and his son, William Lawrence Bragg, shared the Physics Prize in 1915 for inventing the X-ray spectrometer. Niels Bohr was awarded the Physics prize in 1922, as was his son, Aage Bohr, in 1975. Manne Siegbahn, who received the Physics Prize in 1924, was the father of Kai Siegbahn, who received the Physics Prize in 1981. Hans von Euler-Chelpin, who received the Chemistry Prize in 1929, was the father of Ulf von Euler, who was awarded"
            },
            {
                "title":"Nobel Prize in Physics",
                "text":"receive a diploma, a medal and a document confirming the prize amount. Nobel Prize in Physics The Nobel Prize in Physics () is a yearly award given by the Royal Swedish Academy of Sciences for those who have made the most outstanding contributions for mankind in the field of physics. It is one of the five Nobel Prizes established by the will of Alfred Nobel in 1895 and awarded since 1901; the others being the Nobel Prize in Chemistry, Nobel Prize in Literature, Nobel Peace Prize, and Nobel Prize in Physiology or Medicine. The first Nobel Prize in Physics was"
            }
        ]
    },
]

@patrickvonplaten
Copy link
Contributor Author

Great question @bhavitvyamalik ! We've discussed this a bit with @patil-suraj as well. @patil-suraj - would you be interested in guiding @bhavitvyamalik here a bit regarding the design?

@patrickvonplaten
Copy link
Contributor Author

Happy to help otherwise as well if you're too busy :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants