基于树形机器学习模型的横向扩展形式验证
Formal verification of tree-based machine learning models for lateral spreading
AI总结:
本文通过SMT求解器对树形模型进行形式验证,确保地质灾害预测模型在输入域内满足物理规范,展示约束应用如何提升物理一致性,揭示准确率与合规性的权衡。
摘要:
用于地质灾害预测的机器学习模型可以在稀疏或有偏的训练数据中学习出高精度的物理不一致关系。当前的解决方案(如SHAP和LIME的后验可解释性,以及训练时的约束)要么只能近似诊断个别预测,要么限制模型容量而无法提供全面保证。本文将训练好的树形集合编码为Satisfiability Modulo Theories (SMT)求解器中的逻辑公式,并在整个输入域内检查物理规范,而不仅仅是采样点。四个地质规范(地下水位深度、PGA单调性、距离安全性和平坦地面安全性)被形式化为可判定的逻辑公式,并通过SMT与训练的XGBoost集合和Explainable Boosting Machines (EBMs)进行验证,这些模型基于2011年基督church地震横向扩展数据集(7,291个站点,四个特征)。SMT求解器要么产生一个具体的反例,显示规范失败,要么证明不存在违反。无约束的EBM(80.1%准确率)违反所有四个规范。一个完全受约束的EBM(67.2%)满足三个规范,展示了由验证引导的迭代约束应用如何逐步提高物理一致性。33种模型变体的帕累托分析揭示了一个持续的权衡,因为没有研究过的变体能同时实现超过80%的准确率和完全合规。对规范反例的SHAP分析显示,违规特征可以排在最后,证明后验解释不能替代形式验证。这些结果建立了一个验证-修复-验证的工程循环和正式认证,用于在安全关键的地质应用中部署物理一致的机器学习模型。
英文摘要:
Machine learning models for geotechnical hazard prediction can achieve high accuracy while learning physically inconsistent relationships from sparse or biased training data. Current remedies (post-hoc explainability, such as SHAP and LIME, and training-time constraints) either diagnose individual predictions approximately or restrict model capacity without providing exhaustive guarantees. This paper encodes trained tree ensembles as logical formulas in a Satisfiability Modulo Theories (SMT) solver and checks physical specifications across the entire input domain, not just sampled points. Four geotechnical specifications (water table depth, PGA monotonicity, distance safety, and flat-ground safety) are formalized as decidable logical formulas and verified via SMT against both XGBoost ensembles and Explainable Boosting Machines (EBMs) trained on the 2011 Christchurch earthquake lateral spreading dataset (7,291 sites, four features). The SMT solver either produces a concrete counterexample where a specification fails or proves that no violation exists. The unconstrained EBM (80.1% accuracy) violates all four specifications. A fully constrained EBM (67.2%) satisfies three of four specifications, demonstrating that iterative constraint application guided by verification can progressively improve physical consistency. A Pareto analysis of 33 model variants reveals a persistent trade-off, as none of the variants studied achieve both greater than 80% accuracy and full compliance with the specified set. SHAP analysis of specification counterexamples shows that the offending feature can rank last, demonstrating that post-hoc explanations do not substitute for formal verification. These results establish a verify-fix-verify engineering loop and a formal certification for deploying physically consistent ML models in safety-critical geotechnical applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。