# GFN2-xTB

**GFN2-xTB**（即“几何、频率、非共价相互作用、扩展紧束缚”第二代）是一种自洽的半经验紧束缚量子化学方法，2019年由波恩大学的克里斯托夫·班瓦特（Christoph Bannwarth）、塞巴斯蒂安·埃勒特（Sebastian Ehlert）和斯特凡·格里姆（Stefan Grimme）发表，用于快速计算约1000个原子体系中的分子结构与非共价相互作用能<sup>[1](https://pubs.acs.org/doi/10.1021/acs.jctc.8b01176)</sup>。它是GFN方法家族中的第二个版本，也是首个在单极近似之外引入静电与交换关联哈密顿项、并得到广泛参数化的紧束缚方法；同时它是免费程序xtb默认的通用哈密顿量<sup>[1](https://pubs.acs.org/doi/10.1021/acs.jctc.8b01176)</sup><sup> • </sup><sup>[2](https://molssi-seamm.github.io/xtb-step/user_guide/methods.html)</sup>。

| 关键事实 | 详情 |
|---|---|
| 来源 | 班瓦特、埃勒特与格里姆，波恩大学马利肯理论化学中心；《化学理论与计算杂志》2019, 15, 1652<sup>[1](https://pubs.acs.org/doi/10.1021/acs.jctc.8b01176)</sup> |
| 物理模型 | 自洽电荷密度泛函紧束缚，每个原子上含至四极矩的多极静电，外加密度依赖（D4）色散校正<sup>[2](https://molssi-seamm.github.io/xtb-step/user_guide/methods.html)</sup> |
| 参数化 | 仅使用元素特异性参数（不含元素对特异性拟合），覆盖 Z = 1 至 86（氡）<sup>[1](https://pubs.acs.org/doi/10.1021/acs.jctc.8b01176)</sup><sup> • </sup><sup>[2](https://molssi-seamm.github.io/xtb-step/user_guide/methods.html)</sup> |
| 目标性质 | 几何结构、振动频率与非共价相互作用；化学能仅用作交叉检验<sup>[3](https://wires.onlinelibrary.wiley.com/doi/full/10.1002/wcms.1493)</sup> |
| 典型精度 | GMTKN55 总偏差 18.94 kcal/mol，而 B97-3c 为 10.33，B3LYP-D3BJ/def2-QZVP 为 6.28<sup>[4](https://benchmarks.rowansci.com/methods/gfn2-xtb)</sup> |
| 速度 | 在水团簇基准上比常规DFT至少快两个数量级；在CEP有机数据集上，电子结构类GFN方法按 O(N³) 标度<sup>[5](https://arxiv.org/abs/2009.11637)</sup><sup> • </sup><sup>[6](https://d197for5662m48.cloudfront.net/documents/publicationstatus/260641/preprint_pdf/a9055656bab70dc2f6cb6eac2bbdff91.pdf)</sup> |
| 许可与代码 | 以GNU宽通用公共许可证第3版在xtb程序中发布，并提供与ORCA、TURBOMOLE、DFTB+、CP2K等的接口<sup>[4](https://benchmarks.rowansci.com/methods/gfn2-xtb)</sup><sup> • </sup><sup>[7](https://manual.cp2k.org/trunk/methods/semiempiricals/xtb.html)</sup> |

## 方法设计

与相关的DFTB方法一样，GFN2-xTB植根于Kohn–Sham密度泛函理论，其推导方式是把总能量围绕中性原子参考密度ρ₀的叠加展开为密度涨落δρ的级数，且密度涨落被限制在价轨道空间内；该展开在三阶项之后截断<sup>[1](https://pubs.acs.org/doi/10.1021/acs.jctc.8b01176)</sup>。能量表达式由电子项、各向异性静电项、原子对排斥项和色散项组合而成<sup>[7](https://manual.cp2k.org/trunk/methods/semiempiricals/xtb.html)</sup>。

**多极静电。** 其标志性的技术特征，是把静电与交换关联效应都处理到多极展开的二阶。GFN1-xTB与DFTB3只用球对称单极电荷描述原子对静电，GFN2-xTB则额外加入原子偶极矩与四极矩，从而成为首个现成可用的、具备多极静电与各向异性交换关联贡献的紧束缚方法<sup>[1](https://pubs.acs.org/doi/10.1021/acs.jctc.8b01176)</sup><sup> • </sup><sup>[3](https://wires.onlinelibrary.wiley.com/doi/full/10.1002/wcms.1493)</sup>。单极部分采用按壳层划分的Mulliken电荷，并含一个三阶对角项，该项有助于稳定带电原子态，并部分补偿最小基组所缺的弥散函数<sup>[1](https://pubs.acs.org/doi/10.1021/acs.jctc.8b01176)</sup>。

**色散。** 色散采用D4模型处理，其中色散系数依赖于自洽部分电荷，而非GFN1-xTB所用的固定系数D3校正<sup>[2](https://molssi-seamm.github.io/xtb-step/user_guide/methods.html)</sup><sup> • </sup><sup>[7](https://manual.cp2k.org/trunk/methods/semiempiricals/xtb.html)</sup>。

**基组与参数。** 原子轨道基组为最小价基组，由近似Slater函数的原子中心收缩高斯函数（STO-mG）构成，对大多数主族元素还带有极化函数。与GFN1-xTB不同，氢原子只分配一个1s函数，这降低了典型有机与生物分子体系的矩阵维度；因此尽管哈密顿量更为复杂，计算时间反而比GFN1-xTB更短<sup>[1](https://pubs.acs.org/doi/10.1021/acs.jctc.8b01176)</sup>。所有参数均为元素特异性，不含成对或组合特异性拟合，拟合过程中也未使用原子部分电荷或分子偶极矩<sup>[1](https://pubs.acs.org/doi/10.1021/acs.jctc.8b01176)</sup><sup> • </sup><sup>[8](https://github.com/grimme-lab/xtb/discussions/659)</sup>。

## 在GFN家族中的位置

GFN这一缩写记录了其设计目标：为几何结构、频率和非共价相互作用——而非反应能——而参数化的方法。在xtb程序的四级阶梯中，GFN2-xTB位于精度一端<sup>[2](https://molssi-seamm.github.io/xtb-step/user_guide/methods.html)</sup>：

- **GFN-FF** 是一种非电子力场，由结构自动参数化，是超大体系和分子动力学最快的选项，但精度明显更低<sup>[2](https://molssi-seamm.github.io/xtb-step/user_guide/methods.html)</sup>。
- **GFN0-xTB** 是非自洽的单次变体，以经典方式处理静电，面向粗略筛选和初始几何结构<sup>[2](https://molssi-seamm.github.io/xtb-step/user_guide/methods.html)</sup><sup> • </sup><sup>[3](https://wires.onlinelibrary.wiley.com/doi/full/10.1002/wcms.1493)</sup>。
- **GFN1-xTB** 只使用单极静电，热化学精度通常低于GFN2，但对严重张力体系和不寻常氧化态有时更稳健<sup>[2](https://molssi-seamm.github.io/xtb-step/user_guide/methods.html)</sup>。
- **GFN2-xTB** 在程序文档中被描述为有机、无机、有机金属和主族体系推荐的通用起点<sup>[2](https://molssi-seamm.github.io/xtb-step/user_guide/methods.html)</sup>。

GFN1-xTB与GFN2-xTB都以限制性开壳层方式处理开壳层体系，因为它们的能量表达式与自旋无关；后来发展出的自旋极化变体（spGFN1-xTB与spGFN2-xTB）可通过tblite库使用。在芳基卡宾单重态-三重态分裂的AC12数据集上，自旋极化GFN1方法把平均绝对偏差从标准GFN1-xTB的11.0 kcal/mol降至5.2 kcal/mol<sup>[9](https://xtb-docs.readthedocs.io/en/latest/spgfn.html)</sup><sup> • </sup><sup>[10](https://onlinelibrary.wiley.com/doi/full/10.1002/jcc.27185)</sup>。

## 精度基准

原始论文在既有基准集上，将GFN2-xTB与GFN-xTB、PM6-D3H4X和DFTB3-D3(BJ)作了比较。对于取自GMTKN55数据库的非共价缔合能，除弱烷烃二聚体集ADIM6外，GFN2-xTB在所考察的每个子集上都排名第一或第二；在广泛使用的S22和S66相互作用集上，它优于GFN-xTB和DFTB-D3(BJ)，后两者的哈密顿量中缺少专门的氢键项<sup>[1](https://pubs.acs.org/doi/10.1021/acs.jctc.8b01176)</sup>。

在Rowan基准汇编所整理的完整GMTKN55套件上，GFN2-xTB的总偏差为18.94 kcal/mol，其中势垒高度的偏差为13.92，分子间非共价相互作用的偏差为11.64 kcal/mol。作为对比，复合方法B97-3c得分为10.33，使用四ζ基组的B3LYP-D3BJ为6.28，可见这种半经验方法以约两到三倍的误差换取了低得多的计算成本<sup>[4](https://benchmarks.rowansci.com/methods/gfn2-xtb)</sup>。

基准结果在很大程度上取决于所测性质。对于气相红外光谱，GFN1-xTB与GFN2-xTB介于力场与B3LYP-3c之间，但总体上更接近DFT的表现<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC8378236/)</sup>。在2025年一项针对水合大气团簇的基准测试中，各半经验方法的平均CPU时间为0.4至3秒，其中GFN1-xTB与GFN2-xTB的平均绝对误差最低，GFN1-xTB的最大误差略低<sup>[12](https://ar.copernicus.org/preprints/ar-2025-30/ar-2025-30-manuscript-version3.pdf)</sup>。就结构而言，2025年一项针对小分子有机半导体的基准测试发现，以重原子RMSD、转动常数、键长与键角以及HOMO-LUMO能隙为指标，对照QM9和Harvard Clean Energy Project数据集上的DFT结果，GFN1-xTB与GFN2-xTB在GFN家族中结构保真度最高<sup>[13](https://arxiv.org/abs/2505.09606)</sup>。

反应能与键能是公认的短板。在一项对照实验键解离焓的基准测试中，GFN1-xTB与GFN2-xTB的均方根误差均约为DFT的两倍<sup>[14](https://www.cambridge.org/engage/api-gateway/coe/assets/orp/resource/item/6878fc0f728bf9025ef68c49/original/exp-bde54-a-slim-experimental-benchmark-for-exploring-the-pareto-frontier-of-bond-dissociation-enthalpy-prediction-methods.pdf)</sup>，这与"化学能不属于训练数据"的设计选择一致<sup>[3](https://wires.onlinelibrary.wiley.com/doi/full/10.1002/wcms.1493)</sup>。结果也可能因数据集而异：在Wiggle150基准中，GFN2-xTB的排名低于GFN1-xTB、PM3和AM1<sup>[15](https://chemrxiv.org/engage/api-gateway/chemrxiv/assets/orp/resource/item/67f5035c6dde43c908ee4655/original/Wiggle150.pdf)</sup>。

## 应用与工作流

该方法处于多级建模工作流的低成本入口层：先进行大量筛选或构象采样计算，待候选名单收窄后再以更高层次的理论处理<sup>[3](https://wires.onlinelibrary.wiley.com/doi/full/10.1002/wcms.1493)</sup>。典型用途包括配合CREST程序进行构象搜索、在DFT精修前做几何预优化、二面角扫描，以及估计类药分子的非共价相互作用<sup>[16](https://onlinelibrary.wiley.com/doi/pdfdirect/10.1002/advs.202303837)</sup><sup> • </sup><sup>[17](https://pubs.rsc.org/en/content/articlepdf/2024/ra/d4ra05422a)</sup>。它也可作为ONIOM式多层方案的低层方法；已发表的一种组合ONIOM(TPSS:GFN2-xTB(GBSA))曾作为参考方法给出一项 −44.9 kcal/mol 的反应能，而与TURBOMOLE和ORCA的接口支持此类组合<sup>[18](https://pubs.rsc.org/en/content/articlepdf/2023/cp/d3cp02178e)</sup>。

**实现。** GFN2-xTB随独立的xtb程序发布，其参数化可通过C API加载，无需参数文件<sup>[19](https://github.com/grimme-lab/xtb_docs/blob/main/source/capi.rst)</sup>。它已被外部软件包采用：DFTB+自21.2版起支持GFN1-xTB与GFN2-xTB，AMS在其DFTB模块中实现，CP2K原生提供GFN0-xTB与GFN1-xTB，GFN2-xTB则可通过tblite库获得<sup>[20](https://xtb-docs.readthedocs.io/en/latest/index.html)</sup><sup> • </sup><sup>[7](https://manual.cp2k.org/trunk/methods/semiempiricals/xtb.html)</sup>。GFN1-xTB与GFN2-xTB的周期性边界计算通过tblite的Python API运行<sup>[21](https://openreview.net/pdf?id=jtAXitX6dh)</sup>。

## 局限

已记录的失效模式集中在金属表面和困难的电子结构情形。在OpenCatalyst铜表面反应数据集上，GFN2-xTB对绝大多数体系无法迭代收敛，而GFN1-xTB在该高难度测试中的表现是GFN家族中最好的<sup>[21](https://openreview.net/pdf?id=jtAXitX6dh)</sup>。上述Wiggle150结果则表明，相对更早的半经验方法，精度排名在不同性质类型之间并不一致<sup>[15](https://chemrxiv.org/engage/api-gateway/chemrxiv/assets/orp/resource/item/67f5035c6dde43c908ee4655/original/Wiggle150.pdf)</sup>。

## 后继方法

后继方法g-xTB已发布供测试。在键解离焓基准中，它的表现可与双ζ基组DFT竞争，而速度快若干数量级；不过由于目前缺少解析梯度，它比GFN2-xTB慢。g-xTB//GFN2-xTB组合计算（在GFN2-xTB几何结构上做g-xTB单点能）显示出与纯g-xTB相近的精度，而成本仅略高于纯GFN2-xTB<sup>[14](https://www.cambridge.org/engage/api-gateway/coe/assets/orp/resource/item/6878fc0f728bf9025ef68c49/original/exp-bde54-a-slim-experimental-benchmark-for-exploring-the-pareto-frontier-of-bond-dissociation-enthalpy-prediction-methods.pdf)</sup>。

## References

1. [Bannwarth, Ehlert, Grimme (2019). GFN2-xTB—An Accurate and Broadly Parametrized Self-Consistent Tight-Binding Quantum Chemical Method with Multipole Electrostatics and Density-Dependent Dispersion Contributions. J. Chem. Theory Comput. 15, 1652.](https://pubs.acs.org/doi/10.1021/acs.jctc.8b01176)
2. [Methods: Choosing among the GFN family, SEAMM xTB Plug-in documentation](https://molssi-seamm.github.io/xtb-step/user_guide/methods.html)
3. [Bannwarth et al. (2021). Extended tight-binding quantum chemistry methods. WIREs Computational Molecular Science 11, e1493.](https://wires.onlinelibrary.wiley.com/doi/full/10.1002/wcms.1493)
4. [GFN2-xTB, Rowan Benchmarks (GMTKN55 results)](https://benchmarks.rowansci.com/methods/gfn2-xtb)
5. [Brandenburg et al. (2020). Modeling interstellar amorphous solid water grains by tight-binding based methods: comparison between GFN-xTB and CCSD(T) results for water clusters. arXiv:2009.11637.](https://arxiv.org/abs/2009.11637)
6. [Kouam et al. (2025). Comparative Analysis of GFN Methods in Geometry Optimization of Small Organic Semiconductor Molecules (preprint PDF).](https://d197for5662m48.cloudfront.net/documents/publicationstatus/260641/preprint_pdf/a9055656bab70dc2f6cb6eac2bbdff91.pdf)
7. [Extended Tight Binding, CP2K documentation](https://manual.cp2k.org/trunk/methods/semiempiricals/xtb.html)
8. [How good are gfn2-xtb or gfnff charges? grimme-lab/xtb Discussion #659](https://github.com/grimme-lab/xtb/discussions/659)
9. [Spin-polarization, xtb documentation](https://xtb-docs.readthedocs.io/en/latest/spgfn.html)
10. [Neugebauer et al. (2023). High-throughput screening of spin states for transition metal complexes with spin-polarized extended tight-binding methods. J. Comput. Chem.](https://onlinelibrary.wiley.com/doi/full/10.1002/jcc.27185)
11. [Comprehensive Assessment of GFN Tight-Binding and Composite DFT Methods for Calculating Gas-Phase Infrared Spectra (PMC8378236)](https://pmc.ncbi.nlm.nih.gov/articles/PMC8378236/)
12. [Thermodynamic Benchmarking of Hydrated Atmospheric Clusters (ACP preprint ar-2025-30)](https://ar.copernicus.org/preprints/ar-2025-30/ar-2025-30-manuscript-version3.pdf)
13. [Kouam et al. (2025). Comparative Analysis of GFN Methods in Geometry Optimization of Small Organic Semiconductor Molecules: A DFT Benchmarking Study. arXiv:2505.09606.](https://arxiv.org/abs/2505.09606)
14. [A slim experimental benchmark for exploring the Pareto frontier of bond dissociation enthalpy prediction methods (Cambridge Open Engage)](https://www.cambridge.org/engage/api-gateway/coe/assets/orp/resource/item/6878fc0f728bf9025ef68c49/original/exp-bde54-a-slim-experimental-benchmark-for-exploring-the-pareto-frontier-of-bond-dissociation-enthalpy-prediction-methods.pdf)
15. [Wiggle150: Benchmarking Density Functionals (ChemRxiv)](https://chemrxiv.org/engage/api-gateway/chemrxiv/assets/orp/resource/item/67f5035c6dde43c908ee4655/original/Wiggle150.pdf)
16. [Advanced Science paper describing GFN2-xTB/CREST geometry and conformer workflow](https://onlinelibrary.wiley.com/doi/pdfdirect/10.1002/advs.202303837)
17. [Combining de novo molecular design with semiempirical protein–ligand binding free energy calculation (RSC Adv. 2024)](https://pubs.rsc.org/en/content/articlepdf/2024/ra/d4ra05422a)
18. [ONIOM meets xtb: efficient, accurate, and robust multi-layer simulations across the periodic table (Phys. Chem. Chem. Phys. 2023)](https://pubs.rsc.org/en/content/articlepdf/2023/cp/d3cp02178e)
19. [xtb C API documentation (grimme-lab/xtb_docs)](https://github.com/grimme-lab/xtb_docs/blob/main/source/capi.rst)
20. [User Guide to Semiempirical Tight Binding, xtb documentation](https://xtb-docs.readthedocs.io/en/latest/index.html)
21. [Machine learning force field ranking of candidate solid electrolyte materials (OpenReview PDF)](https://openreview.net/pdf?id=jtAXitX6dh)

---
*Initially written Oct 22, 2026*

Topic: 物质世界与数学 › 物理学 › 物质与辐射物理学 › Condensed matter physics › Electronic and magnetic properties › Band theory and electron transport › Band structure calculation methods

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/gfn2-xtb

English original: https://www.edgepedia.org/gfn2-xtb
