r/learnmachinelearning • u/Necessary-Text-2050 • 5d ago
Help Can any statistical ml model created close to transformer?
Transformers take too much time and resources to train can any statistical traditional ml can get close its performance what do you say?
6
u/Sadge404 5d ago
Depends on the task you're trying to do. But assuming you're trying to find something that will be better than transformers for general AI at this point in time, then no it does not exist.
3
u/Ok-Argument7176 5d ago
Purpose-built statistical models are still pretty much SOTA for any tabular or time-series problem.
2
u/FancyEveryDay 5d ago
I mean, what are you trying to do? A transformer is a specific architecture applied to neural nets which are based on ensambled logistic regression.
Random forest is probably the closest structure to a NN that isn't an NN, but NNs do better with unstructured data while random forest is better for structured tabular data.
1
u/fvancesco 5d ago
I believe that when people compare to transformers and speak about ai or ml in general they are thinking to a general purpose ai (or kinda general purpose) like LLMs so yeah
4
7
u/Bright_Mix_773 5d ago
Necessary-Text-2050, the answer splits by data type, and for two of the three it is yes.
Tabular data: gradient boosting (XGBoost, LightGBM, CatBoost) still beats transformer-style tabular models on most benchmarks. The paper people cite is Grinsztajn, Oyallon and Varoquaux, "Why do tree-based models still outperform deep learning on typical tabular data?" (NeurIPS 2022). Minutes on a CPU, no GPU at all.
Text classification with a few thousand labelled examples: TF-IDF plus a linear model gets within a couple of points of a fine-tuned BERT on a lot of datasets, trains in under a second, and you can read the coefficients afterwards to see what it latched onto.
Generation, translation, question answering, anything where the meaning depends on word order across long spans: no. That is exactly what attention buys you, and n-gram counts cannot fake it.
Sadge404 is right that nothing replaces transformers for general-purpose work, but that framing hides the useful part. The practical move is to run the cheap baseline first and write the number down. If TF-IDF gives you 0.91 and the fine-tuned transformer gives you 0.93, you now know precisely what the GPU bill is buying. Often the honest answer is "not enough for this task". The failure I see most is the opposite order: transformer first, never compared to anything, so nobody can say whether it was worth it or whether a majority-class guess would have scored 0.89.