TL;DR
Statsformer is a model-agnostic framework that safely integrates large language model (LLM) domain knowledge into supervised learning pipelines as "semantic priors." By using out-of-fold cross-validation to blend prior-informed and prior-free models, it mathematically guarantees a safety floor: bad or hallucinated LLM advice won't hurt performance, while accurate advice provides a significant boost, especially in data-scarce settings.
What Problem Does This Paper Address?
Supervised learning in high-dimensional, low-sample regimes (such as genomics or quantitative finance) is notoriously difficult because purely data-driven models easily overfit. While human-curated domain knowledge (priors) can stabilize these models, gathering expert priors is slow and scales poorly.
LLMs offer a tempting alternative by generating automated feature-relevance scores at scale. However, LLMs are prone to hallucinations, noise, and misspecification. Existing methods either trust LLM signals blindly—leaving them vulnerable to bad advice—or restrict their integration to a single model class (like Lasso). The authors introduce Statsformer to solve a critical question: How can we leverage foundation-model knowledge without assuming the foundation model is reliable?
Methods
Statsformer splits the integration of LLM knowledge into two distinct stages: Prior Injection and Prior Validation.
- Prior Injection via Monotone Transformations: The framework queries an LLM once to get feature relevance scores. It then maps these scores into learner-specific adapters using a parameterized monotone transformation family ($\tau_\alpha$). Statsformer implements three broadly applicable injection mechanisms:
- Penalty-based injection: Rescales feature-specific regularization strengths (e.g., for Lasso).
- Feature-reweighting injection: Rescales input features or alters feature sampling proportions (e.g., for XGBoost and Kernel SVMs).
- Instance-weight injection: Induces sample weights to concentrate training on examples where prior-identified features are active (e.g., for Random Forests).
- Prior Validation via Out-of-Fold (OOF) Stacking: Instead of picking a single prior strength ($\alpha$), Statsformer builds a heterogeneous library of both prior-informed and completely prior-free ($\alpha=0$) candidate models. It uses $K$-fold cross-validation to generate out-of-fold predictions and trains a simplex-constrained meta-learner to find the optimal convex combination of these models. If the LLM prior is garbage, the meta-learner automatically downweights the prior-informed candidates to zero.
Datasets
The authors evaluated Statsformer across eight diverse tabular benchmark datasets featuring semantically meaningful variable names, focusing heavily on high-dimensional, low-sample regimes:
- Biomedical/Genomics: Breast Cancer, ETP (Early T-cell precursor acute lymphoblastic leukemia), Lung Cancer.
- Marketing/Finance/Web: Bank Marketing, Credit, Internet Ads, Nomao.
- Physical Sciences: Superconductivity (a regression task predicting critical temperature).
Key Insights and Ideas
- Reframing the LLM's Role: Instead of treating the LLM as an active decision-maker or pipeline builder (as seen in many recent AutoML agent frameworks), Statsformer treats the LLM as a passive generator of candidate inductive biases that must prove their utility against empirical data.
- The Statistical Floor: Using classical convex aggregation theory, the authors prove an oracle-style guarantee. Statsformer performs no worse than the best convex combination of its in-library candidates. This creates a provable safety floor against adversarial or highly hallucinated LLM outputs.
- The Semantic Ceiling: The value of an LLM prior is highly dependent on the data regime. In underdetermined settings ($p \gg n$), an informative prior provides massive headroom for improvement because the data alone isn't enough to resolve feature relevance. In well-determined settings (large $n$), the data speaks for itself, and Statsformer automatically discounts the prior to avoid biasing the asymptotic efficiency of the base learners.
Key Results
- Consistently Superior Performance: Statsformer consistently emerged as the top or near-top performing method across all benchmark datasets, outperforming strong classical baselines and complex AutoML systems like AutoGluon and AutoML-Agent.
- Graceful Degradation: When stress-tested with deliberately corrupted, "adversarial" priors designed to mislead the model, Statsformer successfully protected downstream performance, gracefully reverting to the baseline level of a prior-free ensemble.
- LLM Scaling Effects: The framework's performance scales naturally with the reasoning capabilities of the underlying foundation model. Stronger frontier models (like Claude Opus 4.5 and OpenAI o3) generated higher-quality semantic priors, translating directly into better downstream predictive accuracy compared to smaller open-source models.
Limitations and Future Work
- Feature-Level Granularity: The current framework is restricted to feature-level relevance scores. The authors note that extending the framework to handle richer, structured semantic priors—such as textual rationales, feature interactions, or causal graphs—is an open avenue.
- Dependency on Semantics: Statsformer requires human-readable, semantically meaningful feature names to query the LLM. It cannot be applied out-of-the-box to anonymized or completely abstract tabular datasets.
- Training Data Biases: Because the semantic priors originate from LLMs, they may inherently reflect data biases present in the foundation models' pre-training corpora, which requires caution in high-stakes scientific or clinical deployments.
Summary updated