News for hackers. Stuff that matters.
Re:Thoughts on ML Engineering After a Year of My PhD by sfifs on Tuesday July 19, 2022 @09:55AM (#32151480)
> I have done enough research on production ML now to know that it pays to simply overfit to the most recent data and constantly retrain.

> It puzzles me when people say that small companies can’t retrain every day because they don’t have FAANG-style budgets. It costs a few dollars, at best, to retrain many xgboost or scikit-learn models.

if re-training every-day actually gives you a significant business material benefit (excepting cases where you specifically want to significantly over-weight recent data - phone keyboard autocomplete predictions as an example), you likely don't have a model that is actually picking signal from noise or generalizing on the data. This is memorization, not learning. This is essentially how you get expensive ML disasters.

Re:Thoughts on ML Engineering After a Year of My PhD by InefficientRed on Tuesday July 19, 2022 @10:32AM (#32152076)
The back half of the essay was unrecognizable for me, but that's probably because I'm working in different contexts and on different product types. It would be helpful to know what systems the author has worked on and why these findings applied to that context. That way, if I ever find myself in one of those contexts, I can leverage the author's experience.

Generalizing individual experiences to general prognostications sells well as a genre, especially in software. This writing pattern was epitomized by OOP thought leaders in the 90s/00s, but was also present in the process evangelists who followed and the more iconoclastic folks like Dijkstra who preceded. However, actually following such general advice without taking into account the author's context can easily end in tears.

Ideally, these sorts of pieces should be written up as case studies rather than as general prognostications. With the context that a case study provides, these pieces can teach us a lot about how to engineer systems. Without that context, the reader is left to blindly follow advice that may not be relevant to their context. Or, best case, reverse engineer the context.

Re:Thoughts on ML Engineering After a Year of My PhD by fleetwoodsnack on Tuesday July 19, 2022 @11:48AM (#32153341)
It’s a blog, my guy.
Re:Thoughts on ML Engineering After a Year of My PhD by InefficientRed on Tuesday July 19, 2022 @03:03PM (#32156378)
It's a comment, my guy.
Re:Thoughts on ML Engineering After a Year of My PhD by vandreas2 on Tuesday July 19, 2022 @11:19AM (#32152771)
What is the difference between memorization and learning? Could you please elaborate on this? It always seemed to me that a lot of learning is in fact memorization otherwise you wouldn't need a large dataset of cars photos from every angle (or some angles so that ML can work out in the in-between poses, no amount of 'learning' of photos from the front can work out what a car looks like from the side) to be able to recognise them. Also in what context would you get expensive ML disasters? If you keep retraining on cars as new car models come out then you get 100% recognition memorization notwithstanding, which in the end is what you would want.
Re:Thoughts on ML Engineering After a Year of My PhD by atty on Tuesday July 19, 2022 @12:29PM (#32154123)
Learning in this sense means it’s able to extrapolate to unseen data (I.e., it’s learned correlations that are inherent to the problem, not just inherent in the training data). Memorizing, on the other hand, implies that it will do very well on any examples in the domain of the training data, and will break (sometimes pretty hilariously) on unseen data.

The fact that refitting once a day improves real world performance actually makes me think that the problem/data they work on is highly non-stationary, not that the model is memorizing. If it was purely memorizing then the model would perform poorly on all non-training data, and would not work for even one day.

To your point about large datasets - the large datasets are what allow learning to take place. With the most common forms of models we have now, they will memorize when they only have a few examples, and only “learn” when the training data is large enough. There is work to improve learning from a handful of examples, but in many of these cases they require a model that was already trained on the domain in question, and then are specialized to a specific use-case.

Re:Thoughts on ML Engineering After a Year of My PhD by vandreas2 on Tuesday July 19, 2022 @12:59PM (#32154657)
OK I think I got what you're saying, is that memorizing means that it will perform only on data it has seen in training that is exactly identical to the current one, and it will fail on even slight variations. My question then becomes what's the boundary of that extrapolation in order for it to be considered learning vs memorization? For example to come back to my earlier example, let's say a model is trained on photos of cars taken from only some angles, then it should be able to extrapolate to the intermediate ones without having seen the exact same photo. A large dataset would ensure that it has enough angles to be able to do that right? But there is no amount of photos that will make it identify a car from an underneath photo if it hasn't already seen one from underneath I wouldn't think. So this is the limit of 'learning' as opposed to 'memorization'?
Re:Thoughts on ML Engineering After a Year of My PhD by atty on Tuesday July 19, 2022 @01:19PM (#32154952)
Yes, your explanation is essentially correct. There is work done in the areas you’re talking about - essentially forcing models to more explicitly learn “concepts” - and in very large language models that seems to be emerging naturally. But current vision models would almost certainly break when trying to identify a vehicle from the bottom shot if it had never seen a vehicles undercarriage during training. Current vision models are capable of identifying vehicles from arbitrary angles (when viewed from the side/head on) and in arbitrary shades/colors/models/etc, and that’s about the amount of extrapolation we’d be talking about.
Re:Thoughts on ML Engineering After a Year of My PhD by pietro72ohboy on Tuesday July 19, 2022 @04:36PM (#32157617)
I don’t think your premise is correct. The holy grail of such systems - Human Intelligence- will also break similarly if it’s asked to identify a car from an undercarriage when the human subject has never ever seen an undercarriage. We really forget how much data humans are able to expose themselves to in their formative years. I’d often bend down to fetch my ball that had accidentally slid under a parked car and that’s how I learnt about the look of undercarriages.
Re:Thoughts on ML Engineering After a Year of My PhD by Der_Einzige on Tuesday July 19, 2022 @12:55PM (#32154606)
There actually is no difference, like, at all.

GPT-2 was for a time the best lossless text compressor (lossless compression is just memorization) - https://bellard.org/libnc/gpt2tc.html

Re:Thoughts on ML Engineering After a Year of My PhD by auxym on Tuesday July 19, 2022 @10:29AM (#32152045)
To be fair, that quote does say "it pays to overfit", which is the inverse of "picking signal from noise".

I'm not convinced it actually pays, though.

Re:Thoughts on ML Engineering After a Year of My PhD by Der_Einzige on Tuesday July 19, 2022 @12:54PM (#32154579)
No, this is because "online/incremental" learning doesn't work due to a wide variety of reasons, most notably the phenomenon of "Catestrophic Forgetting".

Ideally, we would simply never stop training.

Re:Thoughts on ML Engineering After a Year of My PhD by jwmoz on Tuesday July 19, 2022 @10:29AM (#32152041)
Sounds like max overfit.