I have a question about how to solve 'catastrophic forgetting" problem. #8536
Unanswered
qingyun1988
asked this question in
Help: Other Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have read the comments #7666 (comment) and the article https://explosion.ai/blog/pseudo-rehearsal-catastrophic-forgetting
It seems to have two ways to resolve the 'catastrophic forgetting' problem.
One is 'Pseudo rehearsal' in which its key is to contains two data examples: revision_data and fine_turn_data. But I still have a few questions about it. Should the content and number of sentences in 'revision_data' be the same as those in 'fine_turn_data'? For example, let's say, there are two sentences 'I love you' and 'You hurt me' in 'revision_data' and the content of 'fine_turn_data' must be the same?
Another is
nlp.rehearse()
method in Spacy v3.0. But the code example here only containsnlp.rehearse()
but nonlp.update()
:Doesn't the
nlp.rehearse()
method need to update the changes? Do I need to add a line of code like this at the end:I'm a bit confused with these.
Beta Was this translation helpful? Give feedback.
All reactions