# Do XBGoost and LightGBM only use trees as base learners?

From my understanding of GBM is that it can take not only decision trees as base learners, but different weak learners as well (e.g., linear models), since it relies on sequential gradient descent. But what about XGBoost and LightGBM? All explanations of their methodology speak about trees form what I seen. Can't they use other weak learners as well? For context information, I need to intuitively describe their methodology in my work without getting deep into formulas and maths.

Yes, all GBM implementations can use linear models as base learners. In the case of XGBoost we can them directly by setting the relevant booster type parameter as being as gblinear. LightGBM does not allow for this functionality (but it has an argument lineartree that is more akin to the Cubist (or M5) model where a tree is grown where the terminal leaves contain linear regression models).