r/datascience • u/RobertWF_47 • 6d ago
ML DCNv2 vs XGBoost?
My company is transitioning into Databricks where we'll have much more RAM to build our predictive models.
Does anyone have experience modeling Deep & Cross Networks? Are they worth the extra coding and compute?
My team is currently using XGBoost (or LightGBM) + elastic net logistic regression ensembles to model healthcare data. Our tabular data is large and sparse, typically millions of rows & hundreds of variables, most of which are binary, with rare binary outcomes < 1%.
XGBoost + elastic net models perform well, but I've read that Deep & Cross Network v2 (DCNv2) may outperform in certain cases.
12
u/Stochastic_diff_eq 5d ago
I'm currently working on similar stack although regression is applied via manually adjusted formula. Would you be kind to explain what is the reason for using elastic net at all? Or you are using it only for some "strong" subset of feature where to somehow require more smoothed out relationship between predictors / target? Also bump for visibility as I am curious about your enquiry as well :)
10
u/sadfoot3000 4d ago
Don't replace your ensemble, just add a residual layer. Keep the XGBoost + Elastic Net base model because it's robust for those sparse binary features, then train a tiny neural net solely to predict the residuals. This captures non-linearities without throwing away the stability of trees. I tried this last year and got better calibration than pure DCNv2, plus it was way easier to debug when things broke. Full replacement is overkill for <1% outcomes.
4
u/Saitamagasaki 5d ago
What’s the performance right now
7
u/jad2192 5d ago
I work on similar data, lots of arrays of HCPCS/CPT/ICD codes etc. We went w XGBoost as a meta ensemble layer on top of looking simple statistical models looking various combinations of the categorical features. It works very well.
2
u/Manos_DataScience_ML 1d ago
For healthcare tabular data with mostly binary features and a <1% positive rate, stick with LightGBM/XGBoost + elastic net.
DCNv2 shines when you have high cardinality categorical features like millions of user IDs or item IDs where dense embeddings actually learn useful latent representations. With hundreds of binary columns, you don't really benefit from embedding layers, and you just end up paying a massive tax in training time, hyperparameter tuning, and GPU compute.
Also, in healthcare, probability calibration and explainability usually matter way more than squeezing out an extra 0.002 PR AUC. Tree ensembles plus regularized logistic regression are much easier to calibrate for rare events and way easier to defend to clinical stakeholders than a deep cross network.
If you suddenly have way more RAM on Databricks, spend it on better feature engineering, interaction terms for your elastic net, or proper out of time validation instead of switching architectures.
4
u/Ok-Dragonfruit65 5d ago
Please look into TabPFN from Prior Labs
It’s the SOTA model by far on all sorts of tabular tasks and needs no training
It’s a zero-shot foundation model
1
u/tracye_7886 3d ago
Treat DCNv2 as a challenger: compare it with your stack on the same holdout at equal recall, tracking precision and calibration. At 5% precision and 70% recall, added complexity needs a payoff.