Coder Social home page Coder Social logo

Comments (3)

yaoyiran avatar yaoyiran commented on June 12, 2024

Hi, here is a simple solution: (1) set the learning rate as 1e-4 rather than the default 1e-3; (2) set a minimum message length in models.py, e.g. replacing line 26 "if idx_ == 0:" with , say, "if idx_ <= 5:", "if idx_ <= 10:" or "if idx_ >= 0:".

PS. To reproduce the results in our paper, you can just use the default hyper-parameters and stop the training process when you get a model whose EC accuracy is satisfactory.

from ecnmt.

soumye avatar soumye commented on June 12, 2024

I was indeed able to get the EC accuracy to a satisfactory 99%, which I guess is good enough for pre-training. But the instability of the model to maintain that and the eventual drift I think highlights the brittleness of the training. I was wondering if there was a fix to prevent the model from collapsing later on.

from ecnmt.

yaoyiran avatar yaoyiran commented on June 12, 2024

I've already mentioned that such a "fix" really exists: you could just set the lr = 1e-4 and set a minimum message length. Here is my training log with the new hyper-parameters, where the EC prediction accuracy on our valid set is >= 99.95% and super stable from the beginning to epoch 251000 and I expect it to be stable afterwards. Please feel free to leave a comment if you still cannot get a stable training process.

log.train.txt

from ecnmt.

Related Issues (3)

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.