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

How to prevent "collapse" during training? #79

Open
imagio87 opened this issue Jun 10, 2022 · 0 comments
Open

How to prevent "collapse" during training? #79

imagio87 opened this issue Jun 10, 2022 · 0 comments

Comments

@imagio87
Copy link

imagio87 commented Jun 10, 2022

Hi guys, I have read your paper and really like the approach of Fixmatch.
I am trying to implement this method for a different domain than image classification.
But I have some issues with training dynamics.

Over training time the number of unlabeled examples that have pseudo labels with confidence above threshold converges to zero.
So in the end no unlabeled data is used in the loss function (mask rate is approaching 0%). And actually this makes sense from an optimization point of view.

The model could learn to predict class distributions that are below the threshold value for the unlabeled data and therby making the unsupervised loss term zero. It then can overfit the few labeled examples and loss is down to zero.

So I have two questions here.
1.) What will prevent the model from this kind of training collapse? Or am I missing something here?
2.) Why are you using the weakly augmented labeled examples for training and not the strongly augmented data like you are doing in the fully supervised setting? I have the feeling that this even increases the above problem since it is more easy to overfit the weakly augmented labeled data.

I would appreciate your help. Best regards.

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