Giter Site home page Giter Site logo

Comments (8)

HobbitLong avatar HobbitLong commented on August 24, 2024

I noticed similar pattern, but it only happens in the first few (<3~5) epochs and is not as obvious as you described. Below is an example of the loss, with x axis being the # of epochs:

ab
l

from cmc.

semi-supervised-paper avatar semi-supervised-paper commented on August 24, 2024

Thanks for your kindly response.

from cmc.

talshef avatar talshef commented on August 24, 2024

Hi, thanks for sharing the code.
I've got the same issue, the loss is decay durning the epoch but reversed to the same point in the beginning of the next epoch. did you fin a solution?

from cmc.

IFICL avatar IFICL commented on August 24, 2024

I also got the same issue. I guess the reason leads to this situation might be that the features stored in the memory bank come from the previous epoch and leads to high loss when new features come in. But if you average the loss of each epoch, it still decays.

from cmc.

ShaoTengLiu avatar ShaoTengLiu commented on August 24, 2024

I also got the same issue, which has also been discussed in #27. Yes, the average loss still decays, but I find this may hurt the performance of CMC on small datasets.

from cmc.

talshef avatar talshef commented on August 24, 2024

I also got the same issue, which has also been discussed in #27. Yes, the average loss still decays, but I find this may hurt the performance of CMC on small datasets.

I have the same experiment.
Tuning the hyperparameters: nce_k, nce_m and learning rate improved the issue in my experiments

from cmc.

ShaoTengLiu avatar ShaoTengLiu commented on August 24, 2024

I also got the same issue, which has also been discussed in #27. Yes, the average loss still decays, but I find this may hurt the performance of CMC on small datasets.

I have the same experiment.
Tuning the hyperparameters: nce_k, nce_m and learning rate improved the issue in my experiments

Yes, I also find decreasing nce_k can improve the performance. Could you please share some experience on tuning nce_m and lr?

from cmc.

talshef avatar talshef commented on August 24, 2024

decreasing nce_m helped in some case to make the training more stable, meaning that the loss start follow the loss of the last epoch sooner.
For the lr, i played with it until i get the right shape of the loss curve. The same as:

ab
l

from cmc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.