gpt-3 icon indicating copy to clipboard operation
gpt-3 copied to clipboard

Improve your state of the art by using best activation function and best meta optimizer

Open LifeIsStrange opened this issue 5 years ago • 5 comments

You could increase GPT 3 accuracy by using Ranger, which combine state of the art optimizers + gradient centralization https://github.com/lessw2020/Ranger-Deep-Learning-Optimizer You seem to be using the Adam optimizer. It has been succeeded by RAdam (rectified Adam). Ranger will bring you this improvment and a lot more synergistic others, for free.

Hortogonally, you would probably benefit from Mish too instead of the one you use (Relu ?) but should be tested after Ranger as it could regress accuracy (even if unlikely) https://github.com/digantamisra98/Mish

LifeIsStrange avatar May 30 '20 09:05 LifeIsStrange

At the level these models are trained at, using a specific optimizer/activation will not necessarily get you better results.

minimaxir avatar Jun 01 '20 16:06 minimaxir

Additionally considering GPT-3 size I would suggest not to use any optimizer above SGD because of the computation levels. Same goes for Mish.

digantamisra98 avatar Jun 01 '20 16:06 digantamisra98

@minimaxir it will not necessarily bring gains but it is still a low hanging fruit that should be tried.

LifeIsStrange avatar Jun 01 '20 18:06 LifeIsStrange

@digantamisra98 RAdam (not the full Ranger package) does not increase computational cost.

I've read somewhere that Mish can be as efficient as Relu Maybe with https://github.com/thomasbrandon/mish-cuda?

LifeIsStrange avatar Jun 01 '20 18:06 LifeIsStrange

@LifeIsStrange everything above SGD is expensive.

digantamisra98 avatar Jun 01 '20 19:06 digantamisra98