r/MachineLearning • u/rantana • Dec 05 '23
Research [R] "Sequential Modeling Enables Scalable Learning for Large Vision Models" paper from UC Berkeley has a strange scaling curve.
Came across this paper "Sequential Modeling Enables Scalable Learning for Large Vision Models" (https://arxiv.org/abs/2312.00785) which has a figure that looks a little bit strange. The lines appear identical for different model sizes.
Are different runs or large models at different sizes usually this identical?
https://twitter.com/JitendraMalikCV/status/1731553367217070413

This is the full Figure 3 plot

139
Upvotes
103
u/young-geng Dec 05 '23 edited Dec 05 '23
Co-author of this paper here. First of all I’d like to thank the OP for reporting this interesting phenomenon. We believe this is a result of our deterministic training pipeline. LVM models are trained using a variant of EasyLM, which means all the data are pre-tokenized and pre-shuffled. The resulting effect is that the batch order across training runs are exactly the same as long as the same batch size is used. Also since we don’t have any stochasticity (dropout, random noise) during training, the similarity in loss across different sizes of models are likely emphasized. Here are the training logs if you are interested.
Since I also used EasyLM to train OpenLLaMA, I dug into the training logs of OpenLLaMA-v2, where the 3B and 7B models are trained using the same deterministic training pipeline. In this case I also see highly correlated trends in the loss, where the losses peak and drop at the same place, although in this case the OpenLLaMA v2-7B and v2-3B models were trained using different hardware platforms (TPU v4 for 7B vs TPU v3 for 3B), which makes the losses a bit more different than in the LVM case.
39
u/maizeq Dec 05 '23
I’ve seen similar phenomena happen with fixed seeds/batches across different training runs.
Though in this case they do look startlingly similar, I would wait before you assume fake data.
25
u/ganzzahl Dec 05 '23
They look fairly suspicious, but you can very easily get near identical curves with two different model sizes if you take care to use the same random seed/use a fully deterministic training data loader. I'd be hesitant to accuse anyone of fraud here without further proof in the form of attempted replications.
24
u/[deleted] Dec 05 '23 edited Dec 05 '23
These are how the llama curves look
https://imgur.com/a/GSA6IPs
Edit: still those do look copy pasted lol (though it's not actually identical)
28
u/[deleted] Dec 05 '23
I think this can happen if the minibatches throughout training are identical across models (same minibatches, same order), so this is not necessarily a sign of misconduct, but of course it would be nice if the authors released the code and models asap to address these concerns.
7
u/Wild_Reserve507 Dec 05 '23
I mean… if you look really closely they are not identical. Can’t this happens if you have no randomness in order of samples etc? It doesn’t sound impossible that models of different sizes find the same samples more easy/difficult hence losses looking similar
43
u/we_are_mammals Dec 05 '23
First, the curves are not identical. If you look closely, you'll notice some differences. So they are not "copy-pasted", just correlated.
Second, training curves will be very correlated, if you are using the same shuffle of the training data. Even though they are different models, they find the same samples difficult and easy.
Third, you should probably be using the same shuffle in a case like this, to make comparing the models easier.
46
u/new_name_who_dis_ Dec 05 '23
Someone needs to call out Malik on Twitter. I want to see the drama. This legitimately looks like a fake curve and this is a disgrace that they are posting this considering the researcher's names (Efros is pretty big as well) and lab names (Berkeley + Hopkins) lend it credibility that it obviously doesn't deserve.
61
u/Journalist1970 Dec 05 '23 edited Dec 05 '23
Ex-intern with first author. She used to report fraudulent numbers to publish papers, got found out and had bad reputation in the group. The second author is currently an employee of OAI, not sure how the conflict of interests is handled here.
This whole work seems very sus and bad quality to begin with.
22
u/lolillini Dec 05 '23 edited Dec 06 '23
Half of the people in the comments probably never trained a large model, and are bandwagoning against the first author and Malik like they have some personal vendetta.
The truth is this trend happens very often when data batch ordering lines up. I've noticed it in my training runs, my friends noticed it, and almost all of us know about this behavior. It might seem like they plots are fabricated to someone who is outside this area, and that is understandable, but that doesn't mean you get to confidently claim that "oh yeah it's obviously copy pasted".
13
u/count___zero Dec 05 '23
They look suspicious. However, it is weird to imagine that anyone willing to make such blatant fraud would not try to make the curves look different enough by just adding a bunch of random noise.
21
u/Single_Blueberry Dec 05 '23
Lmao, reminds me of this great youtube documentary: https://www.youtube.com/watch?v=nfDoml-Db64
"The man who almost faked his way to a Nobel Prize"
22
u/Annual-Minute-9391 Dec 05 '23
Couldn’t even add some noise lmao
11
u/noxiousmomentum Dec 05 '23
calm down. it's attributable to the deterministic batching. and there is difference between training runs. don't have a horse in the race but here's where she explains it: https://twitter.com/YutongBAI1002/status/1731512089825698166 also jumping to these conclusions without evidence is stupid. let's just judge her for the (verified?) academic fradulency she committed for sure
24
u/InsiderInfo824 Dec 05 '23
These are clearly copy pasted lollll
3
u/LeopardOk6119 Jan 09 '24
I’ve heard of horrific tales of the first author’s unapologetic fraud in top research labs! Always shocking to see how such big cheats pave their way forward cheating the whole research community! I wouldn’t be surprised if I hear they are a faculty in Stanford next!
5
u/Powerful_Freedom_394 Dec 06 '23 edited Dec 06 '23
One Zhihu answer (https://www.zhihu.com/question/633213568/answer/3314862974) points out that the curves of different-sized models are actually DIFFERENT, based on the check on the internal training logs in Google
And, it seems quite disrespectful and deceitful for the authors to not add the Google affiliation regarding the computational resources
2
u/Latter-Builder-9443 Dec 06 '23
I heard they are using thousands of tpus in google during internship (w no Google researchers in the author list) It has been discussed a lot in Chinese social media since her Google manager / mentor posted online
If they are using DDP/FSDP - will training curves actually look so much similar? - just wondering
3
u/HyperPotatoNeo Dec 05 '23
Yo wut
-7
u/Breck_Emert Dec 05 '23 edited Dec 05 '23
Not everything has to be random in training models; we set manual things all the time. Some hyperparameters just make the training similar across models. Maybe learning rate, regularization, batch sizes, etc.
Remember that the x-axis is the number of tokens they're exposed to at that point, so you're going to have synchronization.
-14
u/[deleted] Dec 05 '23
[removed] — view removed comment