Shortformer: Better Language Modeling using Shorter Inputs [pdf]
ofir.io
ofir.io
There's a summary of our paper on twitter: https://twitter.com/OfirPress/status/1344387959563325442
And our code is on GitHub: https://github.com/ofirpress/shortformer
I confess to being a bit shocked that given the same number of parameters, training is 1.65x faster (whoa), generation is 9x faster (wait, what!?), and perplexity is better (which is a flawed measure, but still), and all by using a new form of "curriculum learning" and adding position embeddings to the queries and keys but not the values.
And it's so nice to see new ideas and improvements that don't rely on yet more computation or yet more parameters (I'm looking at you, GPT-3).
Congratulations!
Loss isn't the whole story -- the steepest slope during training often produces the worst quality language models. You want a nice, gentle downward slope.
SubsimulatorGPT2 (https://reddit.com/r/subsimulatorgpt2) continued to improve in terms of human evaluation even though the loss stayed flat for over a week.
Great find!