It all started on ICLR2015(!) @goodfellow_ian@OriolVinyalsML@SaxeLab
Checked points between the converged model and the random initialization.
They found that the loss between them is monotonically decreasing.
Why shouldn't it?
Well... The real question is why should it.
If the loss terrain is anything but a slope, we would expect bumps. Maybe there are different sinks (local minima), or you need to get a bad model before you reach the best model (topologically, you are in a ditch)
One way to look at this interpolation is thinking on the graph as a slice of the loss space.
A straight line between init and converged looks as above (going down a hill).
If you got up the hill before getting down, you hit a
barrier
The original conclusion was:
"The reason for the success of SGD on a wide variety of tasks is now clear: these tasks are relatively easy to optimize."
You probably feel this itch too... Don't worry, later literature contested this.
1⃣ In larger datasets loss improvement came only close to the endpoint, so optimization is more like looking for a hole in a field than going down a mountain (convex).
2⃣ Loss space is not simple.
The way from init to other points in space (iterations in training) goes through barriers (see the hills in the figure).
So it is not that all optimization is convex and simple. It is somehow a trait of the converged point.
This graph is so pretty, I couldn't resist putting it too... (speaks for itself)
Just now came the last call on this topic by Tiffany Vlaar and @jefrankle.
They share the mixed feelings about the phenomenon.
Specifically, they show test results and the loss slice from init to your point are not correlated. arxiv.org/pdf/2106.16004…
First, they show that pretraining reduces the barriers (Intuitive, true, but someone needed to show it) and
bad init adds such barriers:
Intuitively, to converge one needs to move out of bad local minima, not only to decrease to a minima
Making more complex training data adds barriers and (obviously) improves test score.
(my) possible explanation: complex training forces exiting the initial local minima (not minima for each subset of the data = batch).
Weight decay (in addition to learning rate and adam mentioned) also controls the loss path seen in interpolation.
The authors deduce that this path should not tell you about what happened to the model, as more barriers mean again higher test scores.
I probably miss something, but IIUC it means that they are connected. If you passed barriers before convergence, it might just be that you got out of some local minima and reached a lower point.
(yes, one can devise a bad optimizer that just randomly moves, it will pass barriers)
Of course, if you start from a point that leads to less barriers with the same optimization, that IS a good thing (it didn't bother going away, you are already near a minima)
Last, the authors say their results are negative (as far as I can see they are just analysis work, which in this untreated territory is great) and they share it for the "widespread use". What do people use this for? Is it actually well known?
To sum up, I feel there is a lot to talk about the meaning of all of this, fascinating! What do pertaining, bad init, decay, momentum and so on has to do with the loss path, but I believe those results might click on different points of view, so I will leave mine out of it.
Oh, they may hint on it at one point near the end "a more difficult optimization trajectory can lead to improved generalization"
Oh, a last note, none of it was really tested on #NLProc ... So we assume it is all just the same.
Main finding: Generalization in pretraining follows a single dimension
Different networks, architectures, seeds, sizes but:
Similar performance → similar linguistic capabilities
Model combination\ensembling:
Average ensembling is practical - but naive.
Combine considering each network's strengths, much better!
Moreover, let's make the networks diverse so they will have different strengths.
The basic idea is quite simple:
Given some models, why would we want the average? We want to rely on each one(or group) when it is more likely to be the correct one.
This was actually introduced in our previous work (as admitted by the authors) in aclanthology.org/W19-4414.pdf
The paper's addition: 1. Given a set of black-box models we may train at least one of them to be different from the rest with RL. 2. we can use more sophisticated NNs to combine the outputs 3. we can ignore domain knowledge for the combination (I am not sure this is a bonus)
Ever since MAEGE (aclanthology.org/P18-1127/) I have a soft spot for evaluation of evaluation = EoE (especially when they are automatic, but without is still ok).
Capture formality - XLM-R with regression not classification
Preservation - with chrf not BLEU
Fluency - XLM-R but there is room for improvement
System Ranking - XLM-R and chrf
Crosslingual Transfer - rely on zero shot not machine translation