Statsformer: Validated Ensemble Learning with LLM-Derived Semantic Priors
Erica Zhang, Naomi Sagan, Danny Tse, Fangzhao Zhang, Mert Pilanci, Jose Blanchet
TL;DR
Statsformer presents a principled approach to integrating LLM-derived semantic priors into supervised learning through a guardrailed ensemble. By injecting priors with monotone transformations and validating their utility via out-of-fold stacking, it achieves oracle-like guarantees relative to convex combinations of base learners while automatically downweighting unreliable priors. Empirical results across diverse high-dimensional tabular datasets show consistent gains from informative priors and robustness to priors of varying quality. The framework is scalable, model-agnostic, and data-corroborated, offering a practical path to leveraging foundation-model knowledge in standard predictive tasks.
Abstract
We introduce Statsformer, a principled framework for integrating large language model (LLM)-derived knowledge into supervised statistical learning. Existing approaches are limited in adaptability and scope: they either inject LLM guidance as an unvalidated heuristic, which is sensitive to LLM hallucination, or embed semantic information within a single fixed learner. Statsformer overcomes both limitations through a guardrailed ensemble architecture. We embed LLM-derived feature priors within an ensemble of linear and nonlinear learners, adaptively calibrating their influence via cross-validation. This design yields a flexible system with an oracle-style guarantee that it performs no worse than any convex combination of its in-library base learners, up to statistical error. Empirically, informative priors yield consistent performance improvements, while uninformative or misspecified LLM guidance is automatically downweighted, mitigating the impact of hallucinations across a diverse range of prediction tasks.
