Comments (3)
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.
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.
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.
from ecnmt.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ecnmt.