Accurate prediction of electronic band gaps from chemical composition alone remains a formidable challenge in materials informatics, with existing approaches often limited by reliance on internal validation or computational targets that inherit density functional theory's systematic errors. Here, we present a machine learning framework that achieves high accuracy in predicting experimental band gaps using only compositional features. Through rigorous Bayesian optimization and zero-overlap external validation, our XGBoost model attains a mean absolute error of 0.424 eV on 1885 completely unseen compounds, demonstrating robust generalization beyond its training distribution. Comprehensive learning curve analysis reveals remarkable data efficiency, with the model achieving useful performance (MAE < 0.5 eV) with only 1381 training samples and showing near-linear computational scaling. SHAP interpretability analysis confirms the model captures physically meaningful relationships, with valence electron configuration emerging as the dominant predictor, aligning with established band structure principles. This work establishes composition-based machine learning as a powerful tool for high-throughput materials screening, accelerating the discovery of functional materials for energy conversion and electronic applications. • Achieves 0.42 eV MAE for experimental band gap prediction from composition alone. • Demonstrates robust generalization via rigorous zero-overlap external validation. • Model shows high data efficiency, reaching useful accuracy with only ∼1400 samples. • SHAP analysis confirms physically meaningful, interpretable model decisions. • Enables millisecond, experimental-quality screening for novel materials discovery.
Garza et al. (2026) studied this question.